	.file	"372871.c"
	.intel_syntax noprefix
	.text
	.globl	usage
	.section	.rodata
.LC0:
	.string	"Usage: mkdir <dirname>"
	.section	.data.rel.local,"aw"
	.align 8
	.type	usage, @object
	.size	usage, 8
usage:
	.quad	.LC0
	.section	.rodata
.LC1:
	.string	"--help"
	.align 8
.LC2:
	.string	"mkdir: Not support multi-level directory yet.\n"
	.align 8
.LC3:
	.string	"mkdir: Directory already exists\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 192
	mov	DWORD PTR -180[rbp], edi
	mov	QWORD PTR -192[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -180[rbp], 2
	jne	.L2
	mov	rax, QWORD PTR -192[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L3
.L2:
	mov	rax, QWORD PTR usage[rip]
	mov	rdi, rax
	call	puts@PLT
	mov	eax, 0
	jmp	.L10
.L3:
	mov	rax, QWORD PTR -192[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	strlen@PLT
	mov	DWORD PTR -164[rbp], eax
	mov	DWORD PTR -168[rbp], 0
	jmp	.L5
.L7:
	mov	rax, QWORD PTR -192[rbp]
	add	rax, 8
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -168[rbp]
	cdqe
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 47
	jne	.L6
	lea	rdi, .LC2[rip]
	call	perror@PLT
	mov	eax, -1
	jmp	.L10
.L6:
	add	DWORD PTR -168[rbp], 1
.L5:
	mov	eax, DWORD PTR -168[rbp]
	cmp	eax, DWORD PTR -164[rbp]
	jl	.L7
	mov	rax, QWORD PTR -192[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rdx, -160[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	stat@PLT
	test	eax, eax
	jne	.L8
	lea	rdi, .LC3[rip]
	call	perror@PLT
	mov	eax, -1
	jmp	.L10
.L8:
	mov	rax, QWORD PTR -192[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	esi, 16893
	mov	rdi, rax
	call	mkdir@PLT
	test	eax, eax
	jns	.L9
	mov	eax, -1
	jmp	.L10
.L9:
	mov	eax, 0
.L10:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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	"372871.c"
	.text
	.global	usage
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Usage: mkdir <dirname>\000"
	.data
	.align	2
	.type	usage, %object
	.size	usage, 4
usage:
	.word	.LC0
	.section	.rodata
	.align	2
.LC1:
	.ascii	"--help\000"
	.align	2
.LC2:
	.ascii	"mkdir: Not support multi-level directory yet.\012\000"
	.align	2
.LC3:
	.ascii	"mkdir: Directory already exists\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 = 112
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #112
	str	r0, [fp, #-112]
	str	r1, [fp, #-116]
	ldr	r3, .L12
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-112]
	cmp	r3, #2
	bne	.L2
	ldr	r3, [fp, #-116]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L12+4
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L3
.L2:
	ldr	r3, .L12+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	puts
	mov	r3, #0
	b	.L10
.L3:
	ldr	r3, [fp, #-116]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	str	r3, [fp, #-104]
	mov	r3, #0
	str	r3, [fp, #-108]
	b	.L5
.L7:
	ldr	r3, [fp, #-116]
	add	r3, r3, #4
	ldr	r2, [r3]
	ldr	r3, [fp, #-108]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #47
	bne	.L6
	ldr	r0, .L12+12
	bl	perror
	mvn	r3, #0
	b	.L10
.L6:
	ldr	r3, [fp, #-108]
	add	r3, r3, #1
	str	r3, [fp, #-108]
.L5:
	ldr	r2, [fp, #-108]
	ldr	r3, [fp, #-104]
	cmp	r2, r3
	blt	.L7
	ldr	r3, [fp, #-116]
	add	r3, r3, #4
	ldr	r3, [r3]
	sub	r2, fp, #100
	mov	r1, r2
	mov	r0, r3
	bl	stat
	mov	r3, r0
	cmp	r3, #0
	bne	.L8
	ldr	r0, .L12+16
	bl	perror
	mvn	r3, #0
	b	.L10
.L8:
	ldr	r3, [fp, #-116]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L12+20
	mov	r0, r3
	bl	mkdir
	mov	r3, r0
	cmp	r3, #0
	bge	.L9
	mvn	r3, #0
	b	.L10
.L9:
	mov	r3, #0
.L10:
	ldr	r2, .L12
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L11
	bl	__stack_chk_fail
.L11:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L13:
	.align	2
.L12:
	.word	.LC4
	.word	.LC1
	.word	usage
	.word	.LC2
	.word	.LC3
	.word	16893
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
