	.file	"162644569.c"
	.intel_syntax noprefix
	.text
	.globl	error
	.bss
	.align 4
	.type	error, @object
	.size	error, 4
error:
	.zero	4
	.section	.rodata
.LC0:
	.string	"Usage: mkdir directory...\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, 16
	mov	DWORD PTR -4[rbp], edi
	mov	QWORD PTR -16[rbp], rsi
	cmp	DWORD PTR -4[rbp], 1
	jg	.L2
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	std_err@PLT
	mov	edi, 1
	call	exit@PLT
.L2:
	mov	esi, 1
	mov	edi, 1
	call	signal@PLT
	mov	esi, 1
	mov	edi, 2
	call	signal@PLT
	mov	esi, 1
	mov	edi, 3
	call	signal@PLT
	mov	esi, 1
	mov	edi, 15
	call	signal@PLT
	jmp	.L3
.L4:
	add	QWORD PTR -16[rbp], 8
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	mov	eax, 0
	call	makedir
.L3:
	sub	DWORD PTR -4[rbp], 1
	cmp	DWORD PTR -4[rbp], 0
	jne	.L4
	mov	eax, DWORD PTR error[rip]
	test	eax, eax
	je	.L5
	mov	edi, 1
	call	exit@PLT
.L5:
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
.LC1:
	.string	"\n"
.LC2:
	.string	"mkdir: can't access "
.LC3:
	.string	"mkdir: can't create "
	.text
	.globl	makedir
	.type	makedir, @function
makedir:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 176
	mov	QWORD PTR -168[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -152[rbp], 0
	mov	DWORD PTR -148[rbp], 0
	jmp	.L8
.L9:
	mov	eax, DWORD PTR -148[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -148[rbp], edx
	movsx	rdx, eax
	mov	rax, QWORD PTR -168[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 47
	jne	.L8
	mov	eax, DWORD PTR -148[rbp]
	mov	DWORD PTR -152[rbp], eax
.L8:
	mov	eax, DWORD PTR -148[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -168[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L9
	mov	eax, DWORD PTR -152[rbp]
	movsx	rdx, eax
	mov	rcx, QWORD PTR -168[rbp]
	lea	rax, -144[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	strncpy@PLT
	mov	eax, DWORD PTR -152[rbp]
	cdqe
	mov	BYTE PTR -144[rbp+rax], 0
	lea	rax, -144[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rax, -144[rbp]
	add	rax, rdx
	mov	WORD PTR [rax], 46
	lea	rax, -144[rbp]
	mov	esi, 2
	mov	rdi, rax
	mov	eax, 0
	call	access@PLT
	test	eax, eax
	je	.L10
	lea	rax, -144[rbp]
	lea	rdx, .LC1[rip]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	stderr3
	mov	edi, 1
	call	exit@PLT
.L10:
	mov	rax, QWORD PTR -168[rbp]
	mov	esi, 511
	mov	rdi, rax
	mov	eax, 0
	call	mkdir@PLT
	test	eax, eax
	je	.L12
	mov	rax, QWORD PTR -168[rbp]
	lea	rdx, .LC1[rip]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	stderr3
	mov	eax, DWORD PTR error[rip]
	add	eax, 1
	mov	DWORD PTR error[rip], eax
.L12:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L13
	call	__stack_chk_fail@PLT
.L13:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	makedir, .-makedir
	.globl	stderr3
	.type	stderr3, @function
stderr3:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	QWORD PTR -24[rbp], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	mov	eax, 0
	call	std_err@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	mov	eax, 0
	call	std_err@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	mov	eax, 0
	call	std_err@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	stderr3, .-stderr3
	.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	"162644569.c"
	.text
	.global	error
	.bss
	.align	2
	.type	error, %object
	.size	error, 4
error:
	.space	4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Usage: mkdir directory...\012\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r3, [fp, #-8]
	cmp	r3, #1
	bgt	.L2
	ldr	r0, .L7
	bl	std_err
	mov	r0, #1
	bl	exit
.L2:
	mov	r1, #1
	mov	r0, #1
	bl	signal
	mov	r1, #1
	mov	r0, #2
	bl	signal
	mov	r1, #1
	mov	r0, #3
	bl	signal
	mov	r1, #1
	mov	r0, #15
	bl	signal
	b	.L3
.L4:
	ldr	r3, [fp, #-12]
	add	r3, r3, #4
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	ldr	r3, [r3]
	mov	r0, r3
	bl	makedir
.L3:
	ldr	r3, [fp, #-8]
	sub	r3, r3, #1
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L4
	ldr	r3, .L7+4
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L5
	mov	r0, #1
	bl	exit
.L5:
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L8:
	.align	2
.L7:
	.word	.LC0
	.word	error
	.size	main, .-main
	.section	.rodata
	.align	2
.LC1:
	.ascii	".\000"
	.align	2
.LC2:
	.ascii	"\012\000"
	.align	2
.LC3:
	.ascii	"mkdir: can't access \000"
	.align	2
.LC4:
	.ascii	"mkdir: can't create \000"
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	makedir
	.syntax unified
	.arm
	.fpu softvfp
	.type	makedir, %function
makedir:
	@ args = 0, pretend = 0, frame = 152
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #152
	str	r0, [fp, #-152]
	ldr	r3, .L16
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-144]
	mov	r3, #0
	str	r3, [fp, #-140]
	b	.L10
.L11:
	ldr	r3, [fp, #-140]
	add	r2, r3, #1
	str	r2, [fp, #-140]
	mov	r2, r3
	ldr	r3, [fp, #-152]
	add	r3, r3, r2
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #47
	bne	.L10
	ldr	r3, [fp, #-140]
	str	r3, [fp, #-144]
.L10:
	ldr	r3, [fp, #-140]
	ldr	r2, [fp, #-152]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L11
	ldr	r2, [fp, #-144]
	sub	r3, fp, #136
	ldr	r1, [fp, #-152]
	mov	r0, r3
	bl	strncpy
	sub	r2, fp, #136
	ldr	r3, [fp, #-144]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	sub	r3, fp, #136
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #136
	add	r3, r3, r2
	ldr	r2, .L16+4
	mov	r0, r3
	mov	r1, r2
	mov	r3, #2
	mov	r2, r3
	bl	memcpy
	sub	r3, fp, #136
	mov	r1, #2
	mov	r0, r3
	bl	access
	mov	r3, r0
	cmp	r3, #0
	beq	.L12
	sub	r3, fp, #136
	ldr	r2, .L16+8
	mov	r1, r3
	ldr	r0, .L16+12
	bl	stderr3
	mov	r0, #1
	bl	exit
.L12:
	ldr	r1, .L16+16
	ldr	r0, [fp, #-152]
	bl	mkdir
	mov	r3, r0
	cmp	r3, #0
	beq	.L14
	ldr	r2, .L16+8
	ldr	r1, [fp, #-152]
	ldr	r0, .L16+20
	bl	stderr3
	ldr	r3, .L16+24
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L16+24
	str	r3, [r2]
.L14:
	ldr	r2, .L16
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L15
	bl	__stack_chk_fail
.L15:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L17:
	.align	2
.L16:
	.word	.LC5
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	511
	.word	.LC4
	.word	error
	.size	makedir, .-makedir
	.align	2
	.global	stderr3
	.syntax unified
	.arm
	.fpu softvfp
	.type	stderr3, %function
stderr3:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	ldr	r0, [fp, #-8]
	bl	std_err
	ldr	r0, [fp, #-12]
	bl	std_err
	ldr	r0, [fp, #-16]
	bl	std_err
	nop
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	stderr3, .-stderr3
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
