	.file	"343240.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"Incorrect number arguments: 2 needed\n"
.LC1:
	.string	"Could not create path\n"
.LC2:
	.string	"File did not open.\n"
.LC3:
	.string	"Writing %s to %s"
.LC4:
	.string	"Write failed.\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, 48
	mov	DWORD PTR -36[rbp], edi
	mov	QWORD PTR -48[rbp], rsi
	mov	edx, 8
	mov	esi, 0
	mov	edi, 0
	call	openlog@PLT
	cmp	DWORD PTR -36[rbp], 3
	je	.L2
	lea	rsi, .LC0[rip]
	mov	edi, 3
	mov	eax, 0
	call	syslog@PLT
	mov	eax, 1
	jmp	.L3
.L2:
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	strdup@PLT
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	dirname@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	access@PLT
	test	eax, eax
	je	.L4
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, 510
	mov	rdi, rax
	call	mkdir@PLT
	cmp	eax, -1
	jne	.L4
	lea	rsi, .LC1[rip]
	mov	edi, 3
	mov	eax, 0
	call	syslog@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, 1
	jmp	.L3
.L4:
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	edx, 420
	mov	esi, 578
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -24[rbp], eax
	cmp	DWORD PTR -24[rbp], -1
	jne	.L5
	lea	rsi, .LC2[rip]
	mov	edi, 3
	mov	eax, 0
	call	syslog@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, 1
	jmp	.L3
.L5:
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 8
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	rcx, rdx
	mov	rdx, rax
	lea	rsi, .LC3[rip]
	mov	edi, 7
	mov	eax, 0
	call	syslog@PLT
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 16
	mov	rcx, QWORD PTR [rax]
	mov	eax, DWORD PTR -24[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	DWORD PTR -20[rbp], eax
	cmp	DWORD PTR -20[rbp], -1
	jne	.L6
	lea	rsi, .LC4[rip]
	mov	edi, 3
	mov	eax, 0
	call	syslog@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, 1
	jmp	.L3
.L6:
	mov	eax, DWORD PTR -24[rbp]
	mov	edi, eax
	call	close@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, 0
.L3:
	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	"343240.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Incorrect number arguments: 2 needed\012\000"
	.align	2
.LC1:
	.ascii	"Could not create path\012\000"
	.align	2
.LC2:
	.ascii	"File did not open.\012\000"
	.align	2
.LC3:
	.ascii	"Writing %s to %s\000"
	.align	2
.LC4:
	.ascii	"Write failed.\012\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #28
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	mov	r2, #8
	mov	r1, #0
	mov	r0, #0
	bl	openlog
	ldr	r3, [fp, #-32]
	cmp	r3, #3
	beq	.L2
	ldr	r1, .L7
	mov	r0, #3
	bl	syslog
	mov	r3, #1
	b	.L3
.L2:
	ldr	r3, [fp, #-36]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	strdup
	mov	r3, r0
	str	r3, [fp, #-28]
	ldr	r0, [fp, #-28]
	bl	dirname
	str	r0, [fp, #-24]
	mov	r1, #0
	ldr	r0, [fp, #-24]
	bl	access
	mov	r3, r0
	cmp	r3, #0
	beq	.L4
	ldr	r1, .L7+4
	ldr	r0, [fp, #-24]
	bl	mkdir
	mov	r3, r0
	cmn	r3, #1
	bne	.L4
	ldr	r1, .L7+8
	mov	r0, #3
	bl	syslog
	ldr	r0, [fp, #-28]
	bl	free
	mov	r3, #1
	b	.L3
.L4:
	ldr	r3, [fp, #-36]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r2, #420
	ldr	r1, .L7+12
	mov	r0, r3
	bl	open
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmn	r3, #1
	bne	.L5
	ldr	r1, .L7+16
	mov	r0, #3
	bl	syslog
	ldr	r0, [fp, #-28]
	bl	free
	mov	r3, #1
	b	.L3
.L5:
	ldr	r3, [fp, #-36]
	add	r3, r3, #8
	ldr	r2, [r3]
	ldr	r3, [fp, #-36]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L7+20
	mov	r0, #7
	bl	syslog
	ldr	r3, [fp, #-36]
	add	r3, r3, #8
	ldr	r4, [r3]
	ldr	r3, [fp, #-36]
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	mov	r1, r4
	ldr	r0, [fp, #-20]
	bl	write
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmn	r3, #1
	bne	.L6
	ldr	r1, .L7+24
	mov	r0, #3
	bl	syslog
	ldr	r0, [fp, #-28]
	bl	free
	mov	r3, #1
	b	.L3
.L6:
	ldr	r0, [fp, #-20]
	bl	close
	ldr	r0, [fp, #-28]
	bl	free
	mov	r3, #0
.L3:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L8:
	.align	2
.L7:
	.word	.LC0
	.word	510
	.word	.LC1
	.word	578
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
