	.file	"154831081.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"/run/crash/%s"
.LC1:
	.string	"coredump"
.LC2:
	.string	"dumping to %s"
.LC3:
	.string	"Usage: %s NAME\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 64
	mov	DWORD PTR -12340[rbp], edi
	mov	QWORD PTR -12352[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -12324[rbp], 1
	cmp	DWORD PTR -12340[rbp], 2
	jne	.L17
	mov	rax, QWORD PTR -12352[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	esi, 47
	mov	rdi, rax
	call	strchr@PLT
	test	rax, rax
	jne	.L18
	mov	rax, QWORD PTR -12352[rbp]
	add	rax, 8
	mov	rdx, QWORD PTR [rax]
	lea	rax, -12304[rbp]
	mov	rcx, rdx
	lea	rdx, .LC0[rip]
	mov	esi, 4096
	mov	rdi, rax
	mov	eax, 0
	call	snprintf@PLT
	mov	DWORD PTR -12320[rbp], eax
	cmp	DWORD PTR -12320[rbp], 0
	jle	.L19
	mov	eax, DWORD PTR -12320[rbp]
	cmp	eax, 4095
	ja	.L19
	mov	edi, 0
	call	umask@PLT
	lea	rax, -12304[rbp]
	mov	edx, 420
	mov	esi, 193
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -12316[rbp], eax
	cmp	DWORD PTR -12316[rbp], -1
	je	.L20
	mov	edx, 8
	mov	esi, 9
	lea	rdi, .LC1[rip]
	call	openlog@PLT
	lea	rax, -12304[rbp]
	mov	rdx, rax
	lea	rsi, .LC2[rip]
	mov	edi, 6
	mov	eax, 0
	call	syslog@PLT
.L13:
	lea	rax, -8208[rbp]
	mov	edx, 8192
	mov	rsi, rax
	mov	edi, 0
	call	read@PLT
	mov	QWORD PTR -12312[rbp], rax
	cmp	QWORD PTR -12312[rbp], -1
	je	.L21
	cmp	QWORD PTR -12312[rbp], 0
	jne	.L10
	mov	DWORD PTR -12324[rbp], 0
	jmp	.L21
.L10:
	mov	rdx, QWORD PTR -12312[rbp]
	lea	rcx, -8208[rbp]
	mov	eax, DWORD PTR -12316[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	cmp	QWORD PTR -12312[rbp], rax
	jne	.L22
	jmp	.L13
.L21:
	nop
	jmp	.L11
.L22:
	nop
.L11:
	call	closelog@PLT
	mov	eax, DWORD PTR -12316[rbp]
	mov	edi, eax
	call	close@PLT
	cmp	DWORD PTR -12324[rbp], 1
	jne	.L23
	lea	rax, -12304[rbp]
	mov	rdi, rax
	call	unlink@PLT
	jmp	.L7
.L19:
	nop
	jmp	.L7
.L20:
	nop
	jmp	.L7
.L23:
	nop
.L7:
	mov	eax, DWORD PTR -12324[rbp]
	jmp	.L15
.L17:
	nop
	jmp	.L3
.L18:
	nop
.L3:
	mov	rax, QWORD PTR -12352[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, DWORD PTR -12324[rbp]
.L15:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L16
	call	__stack_chk_fail@PLT
.L16:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"154831081.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"/run/crash/%s\000"
	.align	2
.LC1:
	.ascii	"coredump\000"
	.align	2
.LC2:
	.ascii	"dumping to %s\000"
	.align	2
.LC3:
	.ascii	"Usage: %s NAME\012\000"
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 12320
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #12288
	sub	sp, sp, #36
	sub	r3, fp, #12288
	sub	r3, r3, #12
	str	r0, [r3, #-28]
	sub	r3, fp, #12288
	sub	r3, r3, #12
	str	r1, [r3, #-32]
	ldr	r3, .L24
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #12288
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #1
	str	r3, [r2, #-20]
	sub	r3, fp, #12288
	sub	r3, r3, #12
	ldr	r3, [r3, #-28]
	cmp	r3, #2
	bne	.L17
	sub	r3, fp, #12288
	sub	r3, r3, #12
	ldr	r3, [r3, #-32]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r1, #47
	mov	r0, r3
	bl	strchr
	mov	r3, r0
	cmp	r3, #0
	bne	.L18
	sub	r3, fp, #12288
	sub	r3, r3, #12
	ldr	r3, [r3, #-32]
	add	r3, r3, #4
	ldr	r3, [r3]
	sub	r2, fp, #12288
	sub	r2, r2, #12
	mov	r4, r2
	sub	r0, fp, #12288
	sub	r0, r0, #12
	sub	r0, r0, #4
	ldr	r2, .L24+4
	mov	r1, #4096
	bl	snprintf
	str	r0, [r4, #-16]
	sub	r3, fp, #12288
	sub	r3, r3, #12
	ldr	r3, [r3, #-16]
	cmp	r3, #0
	ble	.L19
	sub	r3, fp, #12288
	sub	r3, r3, #12
	ldr	r3, [r3, #-16]
	cmp	r3, #4096
	bcs	.L19
	mov	r0, #0
	bl	umask
	sub	r3, fp, #12288
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #12288
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r2, #420
	mov	r1, #193
	mov	r0, r3
	bl	open
	str	r0, [r4, #-12]
	sub	r3, fp, #12288
	sub	r3, r3, #12
	ldr	r3, [r3, #-12]
	cmn	r3, #1
	beq	.L20
	mov	r2, #8
	mov	r1, #9
	ldr	r0, .L24+8
	bl	openlog
	sub	r3, fp, #12288
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r2, r3
	ldr	r1, .L24+12
	mov	r0, #6
	bl	syslog
.L13:
	sub	r3, fp, #12288
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r2, #8192
	mov	r1, r3
	mov	r0, #0
	bl	read
	str	r0, [r4, #-8]
	sub	r3, fp, #12288
	sub	r3, r3, #12
	ldr	r3, [r3, #-8]
	cmn	r3, #1
	beq	.L21
	sub	r3, fp, #12288
	sub	r3, r3, #12
	ldr	r3, [r3, #-8]
	cmp	r3, #0
	bne	.L10
	sub	r3, fp, #12288
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-20]
	b	.L21
.L10:
	sub	r3, fp, #12288
	sub	r3, r3, #12
	ldr	r2, [r3, #-8]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r3, r3, #4
	sub	r1, fp, #12288
	sub	r1, r1, #12
	mov	r0, r1
	mov	r1, r3
	ldr	r0, [r0, #-12]
	bl	write
	mov	r2, r0
	sub	r3, fp, #12288
	sub	r3, r3, #12
	ldr	r3, [r3, #-8]
	cmp	r3, r2
	bne	.L22
	b	.L13
.L21:
	nop
	b	.L11
.L22:
	nop
.L11:
	bl	closelog
	sub	r3, fp, #12288
	sub	r3, r3, #12
	ldr	r0, [r3, #-12]
	bl	close
	sub	r3, fp, #12288
	sub	r3, r3, #12
	ldr	r3, [r3, #-20]
	cmp	r3, #1
	bne	.L23
	sub	r3, fp, #12288
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	unlink
	b	.L7
.L19:
	nop
	b	.L7
.L20:
	nop
	b	.L7
.L23:
	nop
.L7:
	sub	r3, fp, #12288
	sub	r3, r3, #12
	ldr	r3, [r3, #-20]
	b	.L15
.L17:
	nop
	b	.L3
.L18:
	nop
.L3:
	ldr	r3, .L24+16
	ldr	r0, [r3]
	sub	r3, fp, #12288
	sub	r3, r3, #12
	ldr	r3, [r3, #-32]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L24+20
	bl	fprintf
	sub	r3, fp, #12288
	sub	r3, r3, #12
	ldr	r3, [r3, #-20]
.L15:
	ldr	r2, .L24
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L16
	bl	__stack_chk_fail
.L16:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L25:
	.align	2
.L24:
	.word	.LC4
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	stderr
	.word	.LC3
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
