	.file	"959092.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"mkdir"
.LC1:
	.string	"/bin/mkdir"
	.text
	.globl	mkdir
	.type	mkdir, @function
mkdir:
.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, 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
	lea	rdx, -160[rbp]
	mov	rax, QWORD PTR -184[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	stat@PLT
	test	eax, eax
	jne	.L2
	call	__errno_location@PLT
	mov	DWORD PTR [rax], 17
	mov	eax, -1
	jmp	.L10
.L2:
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 2
	je	.L4
	mov	eax, -1
	jmp	.L10
.L4:
	call	fork@PLT
	mov	DWORD PTR -168[rbp], eax
	cmp	DWORD PTR -168[rbp], -1
	je	.L5
	cmp	DWORD PTR -168[rbp], 0
	je	.L6
	jmp	.L12
.L5:
	mov	eax, -1
	jmp	.L10
.L6:
	mov	edi, 0
	call	umask@PLT
	mov	DWORD PTR -164[rbp], eax
	mov	eax, DWORD PTR -188[rbp]
	not	eax
	and	eax, 511
	or	eax, DWORD PTR -164[rbp]
	mov	edi, eax
	call	umask@PLT
	mov	rax, QWORD PTR -184[rbp]
	mov	ecx, 0
	mov	rdx, rax
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	execl@PLT
	mov	edi, 1
	call	_exit@PLT
.L12:
	nop
.L8:
	lea	rax, -172[rbp]
	mov	rdi, rax
	mov	eax, 0
	call	wait@PLT
	cmp	DWORD PTR -168[rbp], eax
	jne	.L8
	mov	eax, DWORD PTR -172[rbp]
	test	eax, eax
	je	.L9
	call	__errno_location@PLT
	mov	DWORD PTR [rax], 5
	mov	eax, -1
	jmp	.L10
.L9:
	mov	edx, DWORD PTR -188[rbp]
	mov	rax, QWORD PTR -184[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	chmod@PLT
.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
.LFE6:
	.size	mkdir, .-mkdir
	.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	"959092.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"mkdir\000"
	.align	2
.LC1:
	.ascii	"/bin/mkdir\000"
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	mkdir
	.syntax unified
	.arm
	.fpu softvfp
	.type	mkdir, %function
mkdir:
	@ args = 0, pretend = 0, frame = 120
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #120
	str	r0, [fp, #-120]
	str	r1, [fp, #-124]
	ldr	r3, .L13
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #100
	mov	r1, r3
	ldr	r0, [fp, #-120]
	bl	stat
	mov	r3, r0
	cmp	r3, #0
	bne	.L2
	bl	__errno_location
	mov	r3, r0
	mov	r2, #17
	str	r2, [r3]
	mvn	r3, #0
	b	.L10
.L2:
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #2
	beq	.L4
	mvn	r3, #0
	b	.L10
.L4:
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-108]
	ldr	r3, [fp, #-108]
	cmn	r3, #1
	beq	.L5
	ldr	r3, [fp, #-108]
	cmp	r3, #0
	beq	.L6
	b	.L12
.L5:
	mvn	r3, #0
	b	.L10
.L6:
	mov	r0, #0
	bl	umask
	str	r0, [fp, #-104]
	ldr	r3, [fp, #-124]
	mvn	r3, r3
	lsl	r3, r3, #23
	lsr	r3, r3, #23
	ldr	r2, [fp, #-104]
	orr	r3, r3, r2
	mov	r0, r3
	bl	umask
	mov	r3, #0
	ldr	r2, [fp, #-120]
	ldr	r1, .L13+4
	ldr	r0, .L13+8
	bl	execl
	mov	r0, #1
	bl	_exit
.L12:
	nop
.L8:
	sub	r3, fp, #112
	mov	r0, r3
	bl	wait
	mov	r2, r0
	ldr	r3, [fp, #-108]
	cmp	r3, r2
	bne	.L8
	ldr	r3, [fp, #-112]
	cmp	r3, #0
	beq	.L9
	bl	__errno_location
	mov	r3, r0
	mov	r2, #5
	str	r2, [r3]
	mvn	r3, #0
	b	.L10
.L9:
	ldr	r1, [fp, #-124]
	ldr	r0, [fp, #-120]
	bl	chmod
	mov	r3, r0
.L10:
	ldr	r2, .L13
	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}
.L14:
	.align	2
.L13:
	.word	.LC2
	.word	.LC0
	.word	.LC1
	.size	mkdir, .-mkdir
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
