	.file	"750332.c"
	.intel_syntax noprefix
	.text
	.globl	vflag
	.bss
	.align 4
	.type	vflag, @object
	.size	vflag, 4
vflag:
	.zero	4
	.section	.rodata
.LC0:
	.string	"m:pv"
.LC1:
	.string	"invalid file mode: %s"
.LC2:
	.string	"setmode failed"
.LC3:
	.string	"%s"
	.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, 64
	mov	DWORD PTR -52[rbp], edi
	mov	QWORD PTR -64[rbp], rsi
	mov	DWORD PTR -28[rbp], 0
	mov	QWORD PTR -16[rbp], 0
	jmp	.L2
.L7:
	cmp	DWORD PTR -20[rbp], 118
	je	.L3
	cmp	DWORD PTR -20[rbp], 118
	jg	.L4
	cmp	DWORD PTR -20[rbp], 109
	je	.L5
	cmp	DWORD PTR -20[rbp], 112
	je	.L6
	jmp	.L4
.L5:
	mov	rax, QWORD PTR optarg[rip]
	mov	QWORD PTR -16[rbp], rax
	jmp	.L2
.L6:
	mov	DWORD PTR -28[rbp], 1
	jmp	.L2
.L3:
	mov	DWORD PTR vflag[rip], 1
	jmp	.L2
.L4:
	call	usage
.L2:
	mov	rcx, QWORD PTR -64[rbp]
	mov	eax, DWORD PTR -52[rbp]
	lea	rdx, .LC0[rip]
	mov	rsi, rcx
	mov	edi, eax
	call	getopt@PLT
	mov	DWORD PTR -20[rbp], eax
	cmp	DWORD PTR -20[rbp], -1
	jne	.L7
	mov	eax, DWORD PTR optind[rip]
	sub	DWORD PTR -52[rbp], eax
	mov	eax, DWORD PTR optind[rip]
	cdqe
	sal	rax, 3
	add	QWORD PTR -64[rbp], rax
	mov	rax, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L8
	call	usage
.L8:
	cmp	QWORD PTR -16[rbp], 0
	jne	.L9
	mov	DWORD PTR -24[rbp], 511
	jmp	.L10
.L9:
	call	__errno_location@PLT
	mov	DWORD PTR [rax], 0
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	mov	eax, 0
	call	setmode@PLT
	cdqe
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L11
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	jne	.L12
	mov	rax, QWORD PTR -16[rbp]
	mov	rdx, rax
	lea	rsi, .LC1[rip]
	mov	edi, 1
	mov	eax, 0
	call	errx@PLT
.L12:
	lea	rsi, .LC2[rip]
	mov	edi, 1
	mov	eax, 0
	call	err@PLT
.L11:
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, 511
	mov	rdi, rax
	mov	eax, 0
	call	getmode@PLT
	mov	DWORD PTR -24[rbp], eax
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	free@PLT
.L10:
	mov	DWORD PTR -36[rbp], 0
	jmp	.L13
.L22:
	mov	DWORD PTR -32[rbp], 1
	cmp	DWORD PTR -28[rbp], 0
	je	.L14
	mov	rax, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR [rax]
	mov	edx, DWORD PTR -24[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	build
	test	eax, eax
	je	.L15
	mov	DWORD PTR -32[rbp], 0
	jmp	.L15
.L14:
	mov	rax, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR [rax]
	mov	edx, DWORD PTR -24[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	mkdir@PLT
	test	eax, eax
	jns	.L16
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 20
	je	.L17
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 2
	jne	.L18
.L17:
	mov	rax, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	dirname@PLT
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	warn@PLT
	jmp	.L19
.L18:
	mov	rax, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	warn@PLT
.L19:
	mov	DWORD PTR -32[rbp], 0
	jmp	.L15
.L16:
	mov	eax, DWORD PTR vflag[rip]
	test	eax, eax
	je	.L15
	mov	rax, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	puts@PLT
.L15:
	cmp	DWORD PTR -32[rbp], 0
	jne	.L20
	mov	DWORD PTR -36[rbp], 1
.L20:
	cmp	DWORD PTR -32[rbp], 0
	je	.L21
	cmp	QWORD PTR -16[rbp], 0
	je	.L21
	mov	rax, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR [rax]
	mov	edx, DWORD PTR -24[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	chmod@PLT
	cmp	eax, -1
	jne	.L21
	mov	rax, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	warn@PLT
	mov	DWORD PTR -36[rbp], 1
.L21:
	add	QWORD PTR -64[rbp], 8
.L13:
	mov	rax, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L22
	mov	eax, DWORD PTR -36[rbp]
	mov	edi, eax
	call	exit@PLT
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.type	build, @function
build:
.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, 208
	mov	QWORD PTR -200[rbp], rdi
	mov	DWORD PTR -204[rbp], esi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -200[rbp]
	mov	QWORD PTR -168[rbp], rax
	mov	DWORD PTR -188[rbp], 0
	mov	DWORD PTR -176[rbp], 0
	mov	rax, QWORD PTR -168[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 47
	jne	.L24
	add	QWORD PTR -168[rbp], 1
.L24:
	mov	DWORD PTR -184[rbp], 1
	mov	DWORD PTR -180[rbp], 0
	jmp	.L25
.L41:
	mov	rax, QWORD PTR -168[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L26
	mov	DWORD PTR -180[rbp], 1
	jmp	.L27
.L26:
	mov	rax, QWORD PTR -168[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 47
	jne	.L45
.L27:
	mov	rax, QWORD PTR -168[rbp]
	mov	BYTE PTR [rax], 0
	cmp	DWORD PTR -180[rbp], 0
	jne	.L29
	mov	rax, QWORD PTR -168[rbp]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L29
	mov	DWORD PTR -180[rbp], 1
.L29:
	cmp	DWORD PTR -184[rbp], 0
	je	.L30
	mov	edi, 0
	call	umask@PLT
	mov	DWORD PTR -188[rbp], eax
	mov	eax, DWORD PTR -188[rbp]
	and	al, 63
	mov	DWORD PTR -172[rbp], eax
	mov	eax, DWORD PTR -172[rbp]
	mov	edi, eax
	call	umask@PLT
	mov	DWORD PTR -184[rbp], 0
.L30:
	cmp	DWORD PTR -180[rbp], 0
	je	.L31
	mov	eax, DWORD PTR -188[rbp]
	mov	edi, eax
	call	umask@PLT
.L31:
	lea	rdx, -160[rbp]
	mov	rax, QWORD PTR -200[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	stat@PLT
	test	eax, eax
	je	.L32
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 2
	jne	.L33
	cmp	DWORD PTR -180[rbp], 0
	je	.L34
	mov	eax, DWORD PTR -204[rbp]
	jmp	.L35
.L34:
	mov	eax, 511
.L35:
	mov	rdx, QWORD PTR -200[rbp]
	mov	esi, eax
	mov	rdi, rdx
	call	mkdir_race
	test	eax, eax
	jns	.L36
.L33:
	mov	rax, QWORD PTR -200[rbp]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	warn@PLT
	mov	DWORD PTR -176[rbp], 1
	jmp	.L37
.L36:
	mov	eax, DWORD PTR vflag[rip]
	test	eax, eax
	je	.L38
	mov	rax, QWORD PTR -200[rbp]
	mov	rdi, rax
	call	puts@PLT
	jmp	.L38
.L32:
	mov	eax, DWORD PTR -136[rbp]
	and	eax, 61440
	cmp	eax, 16384
	je	.L38
	cmp	DWORD PTR -180[rbp], 0
	je	.L39
	call	__errno_location@PLT
	mov	DWORD PTR [rax], 17
	jmp	.L40
.L39:
	call	__errno_location@PLT
	mov	DWORD PTR [rax], 20
.L40:
	mov	rax, QWORD PTR -200[rbp]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	warn@PLT
	mov	DWORD PTR -176[rbp], 1
	jmp	.L37
.L38:
	cmp	DWORD PTR -180[rbp], 0
	jne	.L28
	mov	rax, QWORD PTR -168[rbp]
	mov	BYTE PTR [rax], 47
	jmp	.L28
.L45:
	nop
.L28:
	add	QWORD PTR -168[rbp], 1
.L25:
	cmp	DWORD PTR -180[rbp], 0
	je	.L41
.L37:
	cmp	DWORD PTR -184[rbp], 0
	jne	.L42
	cmp	DWORD PTR -180[rbp], 0
	jne	.L42
	mov	eax, DWORD PTR -188[rbp]
	mov	edi, eax
	call	umask@PLT
.L42:
	mov	eax, DWORD PTR -176[rbp]
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L44
	call	__stack_chk_fail@PLT
.L44:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	build, .-build
	.type	mkdir_race, @function
mkdir_race:
.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, 192
	mov	QWORD PTR -184[rbp], rdi
	mov	DWORD PTR -188[rbp], esi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	edx, DWORD PTR -188[rbp]
	mov	rax, QWORD PTR -184[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	mkdir@PLT
	mov	DWORD PTR -164[rbp], eax
	cmp	DWORD PTR -164[rbp], 0
	jns	.L47
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 17
	jne	.L47
	lea	rdx, -160[rbp]
	mov	rax, QWORD PTR -184[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	stat@PLT
	test	eax, eax
	jne	.L48
	mov	eax, DWORD PTR -136[rbp]
	and	eax, 61440
	cmp	eax, 16384
	jne	.L48
	mov	eax, 0
	jmp	.L50
.L48:
	mov	edx, DWORD PTR -188[rbp]
	mov	rax, QWORD PTR -184[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	mkdir@PLT
	mov	DWORD PTR -164[rbp], eax
.L47:
	mov	eax, DWORD PTR -164[rbp]
.L50:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L51
	call	__stack_chk_fail@PLT
.L51:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	mkdir_race, .-mkdir_race
	.section	.rodata
	.align 8
.LC4:
	.string	"usage: mkdir [-pv] [-m mode] directory ...\n"
	.text
	.type	usage, @function
usage:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 43
	mov	esi, 1
	lea	rdi, .LC4[rip]
	call	fwrite@PLT
	mov	edi, 64
	call	exit@PLT
	.cfi_endproc
.LFE9:
	.size	usage, .-usage
	.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	"750332.c"
	.text
	.comm	vflag,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"m:pv\000"
	.align	2
.LC1:
	.ascii	"invalid file mode: %s\000"
	.align	2
.LC2:
	.ascii	"setmode failed\000"
	.align	2
.LC3:
	.ascii	"%s\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	mov	r3, #0
	str	r3, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L2
.L7:
	ldr	r3, [fp, #-12]
	cmp	r3, #118
	beq	.L3
	ldr	r3, [fp, #-12]
	cmp	r3, #118
	bgt	.L4
	ldr	r3, [fp, #-12]
	cmp	r3, #109
	beq	.L5
	ldr	r3, [fp, #-12]
	cmp	r3, #112
	beq	.L6
	b	.L4
.L5:
	ldr	r3, .L23
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	b	.L2
.L6:
	mov	r3, #1
	str	r3, [fp, #-24]
	b	.L2
.L3:
	ldr	r3, .L23+4
	mov	r2, #1
	str	r2, [r3]
	b	.L2
.L4:
	bl	usage
.L2:
	ldr	r2, .L23+8
	ldr	r1, [fp, #-44]
	ldr	r0, [fp, #-40]
	bl	getopt
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmn	r3, #1
	bne	.L7
	ldr	r3, .L23+12
	ldr	r3, [r3]
	ldr	r2, [fp, #-40]
	sub	r3, r2, r3
	str	r3, [fp, #-40]
	ldr	r3, .L23+12
	ldr	r3, [r3]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	str	r3, [fp, #-44]
	ldr	r3, [fp, #-44]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L8
	bl	usage
.L8:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L9
	ldr	r3, .L23+16
	str	r3, [fp, #-20]
	b	.L10
.L9:
	bl	__errno_location
	mov	r3, r0
	mov	r2, #0
	str	r2, [r3]
	ldr	r0, [fp, #-16]
	bl	setmode
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L11
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L12
	ldr	r2, [fp, #-16]
	ldr	r1, .L23+20
	mov	r0, #1
	bl	errx
.L12:
	ldr	r1, .L23+24
	mov	r0, #1
	bl	err
.L11:
	ldr	r1, .L23+16
	ldr	r0, [fp, #-8]
	bl	getmode
	mov	r3, r0
	str	r3, [fp, #-20]
	ldr	r0, [fp, #-8]
	bl	free
.L10:
	mov	r3, #0
	str	r3, [fp, #-32]
	b	.L13
.L22:
	mov	r3, #1
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	beq	.L14
	ldr	r3, [fp, #-44]
	ldr	r3, [r3]
	ldr	r1, [fp, #-20]
	mov	r0, r3
	bl	build
	mov	r3, r0
	cmp	r3, #0
	beq	.L15
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L15
.L14:
	ldr	r3, [fp, #-44]
	ldr	r3, [r3]
	ldr	r1, [fp, #-20]
	mov	r0, r3
	bl	mkdir
	mov	r3, r0
	cmp	r3, #0
	bge	.L16
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #20
	beq	.L17
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #2
	bne	.L18
.L17:
	ldr	r3, [fp, #-44]
	ldr	r3, [r3]
	mov	r0, r3
	bl	dirname
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L23+28
	bl	warn
	b	.L19
.L18:
	ldr	r3, [fp, #-44]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L23+28
	bl	warn
.L19:
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L15
.L16:
	ldr	r3, .L23+4
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L15
	ldr	r3, [fp, #-44]
	ldr	r3, [r3]
	mov	r0, r3
	bl	puts
.L15:
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	bne	.L20
	mov	r3, #1
	str	r3, [fp, #-32]
.L20:
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	beq	.L21
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L21
	ldr	r3, [fp, #-44]
	ldr	r3, [r3]
	ldr	r1, [fp, #-20]
	mov	r0, r3
	bl	chmod
	mov	r3, r0
	cmn	r3, #1
	bne	.L21
	ldr	r3, [fp, #-44]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L23+28
	bl	warn
	mov	r3, #1
	str	r3, [fp, #-32]
.L21:
	ldr	r3, [fp, #-44]
	add	r3, r3, #4
	str	r3, [fp, #-44]
.L13:
	ldr	r3, [fp, #-44]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L22
	ldr	r0, [fp, #-32]
	bl	exit
.L24:
	.align	2
.L23:
	.word	optarg
	.word	vflag
	.word	.LC0
	.word	optind
	.word	511
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.size	main, .-main
	.section	.rodata
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	build, %function
build:
	@ args = 0, pretend = 0, frame = 128
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #128
	str	r0, [fp, #-128]
	str	r1, [fp, #-132]
	ldr	r3, .L48
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-128]
	str	r3, [fp, #-108]
	mov	r3, #0
	str	r3, [fp, #-124]
	mov	r3, #0
	str	r3, [fp, #-112]
	ldr	r3, [fp, #-108]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #47
	bne	.L26
	ldr	r3, [fp, #-108]
	add	r3, r3, #1
	str	r3, [fp, #-108]
.L26:
	mov	r3, #1
	str	r3, [fp, #-120]
	mov	r3, #0
	str	r3, [fp, #-116]
	b	.L27
.L43:
	ldr	r3, [fp, #-108]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L28
	mov	r3, #1
	str	r3, [fp, #-116]
	b	.L29
.L28:
	ldr	r3, [fp, #-108]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #47
	bne	.L47
.L29:
	ldr	r3, [fp, #-108]
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-116]
	cmp	r3, #0
	bne	.L31
	ldr	r3, [fp, #-108]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L31
	mov	r3, #1
	str	r3, [fp, #-116]
.L31:
	ldr	r3, [fp, #-120]
	cmp	r3, #0
	beq	.L32
	mov	r0, #0
	bl	umask
	str	r0, [fp, #-124]
	ldr	r3, [fp, #-124]
	bic	r3, r3, #192
	str	r3, [fp, #-104]
	ldr	r0, [fp, #-104]
	bl	umask
	mov	r3, #0
	str	r3, [fp, #-120]
.L32:
	ldr	r3, [fp, #-116]
	cmp	r3, #0
	beq	.L33
	ldr	r0, [fp, #-124]
	bl	umask
.L33:
	sub	r3, fp, #100
	mov	r1, r3
	ldr	r0, [fp, #-128]
	bl	stat
	mov	r3, r0
	cmp	r3, #0
	beq	.L34
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #2
	bne	.L35
	ldr	r3, [fp, #-116]
	cmp	r3, #0
	beq	.L36
	ldr	r3, [fp, #-132]
	b	.L37
.L36:
	ldr	r3, .L48+4
.L37:
	mov	r1, r3
	ldr	r0, [fp, #-128]
	bl	mkdir_race
	mov	r3, r0
	cmp	r3, #0
	bge	.L38
.L35:
	ldr	r1, [fp, #-128]
	ldr	r0, .L48+8
	bl	warn
	mov	r3, #1
	str	r3, [fp, #-112]
	b	.L39
.L38:
	ldr	r3, .L48+12
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L40
	ldr	r0, [fp, #-128]
	bl	puts
	b	.L40
.L34:
	ldr	r3, [fp, #-84]
	and	r3, r3, #61440
	cmp	r3, #16384
	beq	.L40
	ldr	r3, [fp, #-116]
	cmp	r3, #0
	beq	.L41
	bl	__errno_location
	mov	r3, r0
	mov	r2, #17
	str	r2, [r3]
	b	.L42
.L41:
	bl	__errno_location
	mov	r3, r0
	mov	r2, #20
	str	r2, [r3]
.L42:
	ldr	r1, [fp, #-128]
	ldr	r0, .L48+8
	bl	warn
	mov	r3, #1
	str	r3, [fp, #-112]
	b	.L39
.L40:
	ldr	r3, [fp, #-116]
	cmp	r3, #0
	bne	.L30
	ldr	r3, [fp, #-108]
	mov	r2, #47
	strb	r2, [r3]
	b	.L30
.L47:
	nop
.L30:
	ldr	r3, [fp, #-108]
	add	r3, r3, #1
	str	r3, [fp, #-108]
.L27:
	ldr	r3, [fp, #-116]
	cmp	r3, #0
	beq	.L43
.L39:
	ldr	r3, [fp, #-120]
	cmp	r3, #0
	bne	.L44
	ldr	r3, [fp, #-116]
	cmp	r3, #0
	bne	.L44
	ldr	r0, [fp, #-124]
	bl	umask
.L44:
	ldr	r3, [fp, #-112]
	ldr	r2, .L48
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L46
	bl	__stack_chk_fail
.L46:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L49:
	.align	2
.L48:
	.word	.LC4
	.word	511
	.word	.LC3
	.word	vflag
	.size	build, .-build
	.section	.rodata
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mkdir_race, %function
mkdir_race:
	@ 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, .L56
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-116]
	mov	r1, r3
	ldr	r0, [fp, #-112]
	bl	mkdir
	str	r0, [fp, #-104]
	ldr	r3, [fp, #-104]
	cmp	r3, #0
	bge	.L51
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #17
	bne	.L51
	sub	r3, fp, #100
	mov	r1, r3
	ldr	r0, [fp, #-112]
	bl	stat
	mov	r3, r0
	cmp	r3, #0
	bne	.L52
	ldr	r3, [fp, #-84]
	and	r3, r3, #61440
	cmp	r3, #16384
	bne	.L52
	mov	r3, #0
	b	.L54
.L52:
	ldr	r3, [fp, #-116]
	mov	r1, r3
	ldr	r0, [fp, #-112]
	bl	mkdir
	str	r0, [fp, #-104]
.L51:
	ldr	r3, [fp, #-104]
.L54:
	ldr	r2, .L56
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L55
	bl	__stack_chk_fail
.L55:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L57:
	.align	2
.L56:
	.word	.LC5
	.size	mkdir_race, .-mkdir_race
	.section	.rodata
	.align	2
.LC6:
	.ascii	"usage: mkdir [-pv] [-m mode] directory ...\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	usage, %function
usage:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L59
	ldr	r3, [r3]
	mov	r2, #43
	mov	r1, #1
	ldr	r0, .L59+4
	bl	fwrite
	mov	r0, #64
	bl	exit
.L60:
	.align	2
.L59:
	.word	stderr
	.word	.LC6
	.size	usage, .-usage
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
