	.file	"624847.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"/"
.LC1:
	.string	"%s"
.LC2:
	.string	"%s: %s"
	.text
	.globl	mkpath
	.type	mkpath, @function
mkpath:
.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	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -172[rbp], 0
	mov	rax, QWORD PTR -184[rbp]
	mov	QWORD PTR -168[rbp], rax
	jmp	.L2
.L7:
	mov	rax, QWORD PTR -168[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	call	strspn@PLT
	add	QWORD PTR -168[rbp], rax
	mov	rax, QWORD PTR -168[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	call	strcspn@PLT
	add	QWORD PTR -168[rbp], rax
	mov	rax, QWORD PTR -168[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	sete	al
	movzx	eax, al
	mov	DWORD PTR -172[rbp], eax
	mov	rax, QWORD PTR -168[rbp]
	mov	BYTE PTR [rax], 0
	lea	rdx, -160[rbp]
	mov	rax, QWORD PTR -184[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	stat@PLT
	test	eax, eax
	je	.L3
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 2
	jne	.L4
	mov	rax, QWORD PTR -184[rbp]
	mov	esi, 511
	mov	rdi, rax
	call	mkdir@PLT
	test	eax, eax
	je	.L5
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 17
	je	.L5
.L4:
	mov	rax, QWORD PTR -184[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	warn@PLT
	mov	eax, -1
	jmp	.L8
.L3:
	mov	eax, DWORD PTR -136[rbp]
	and	eax, 61440
	cmp	eax, 16384
	je	.L5
	mov	edi, 20
	call	strerror@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -184[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	warnx@PLT
	mov	eax, -1
	jmp	.L8
.L5:
	mov	rax, QWORD PTR -168[rbp]
	mov	BYTE PTR [rax], 47
.L2:
	cmp	DWORD PTR -172[rbp], 0
	je	.L7
	mov	eax, 0
.L8:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L9
	call	__stack_chk_fail@PLT
.L9:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	mkpath, .-mkpath
	.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	"624847.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"/\000"
	.align	2
.LC1:
	.ascii	"%s\000"
	.align	2
.LC2:
	.ascii	"%s: %s\000"
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	mkpath
	.syntax unified
	.arm
	.fpu softvfp
	.type	mkpath, %function
mkpath:
	@ 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]
	ldr	r3, .L10
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-104]
	ldr	r3, [fp, #-112]
	str	r3, [fp, #-108]
	b	.L2
.L7:
	ldr	r1, .L10+4
	ldr	r0, [fp, #-108]
	bl	strspn
	mov	r2, r0
	ldr	r3, [fp, #-108]
	add	r3, r3, r2
	str	r3, [fp, #-108]
	ldr	r1, .L10+4
	ldr	r0, [fp, #-108]
	bl	strcspn
	mov	r2, r0
	ldr	r3, [fp, #-108]
	add	r3, r3, r2
	str	r3, [fp, #-108]
	ldr	r3, [fp, #-108]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	str	r3, [fp, #-104]
	ldr	r3, [fp, #-108]
	mov	r2, #0
	strb	r2, [r3]
	sub	r3, fp, #100
	mov	r1, r3
	ldr	r0, [fp, #-112]
	bl	stat
	mov	r3, r0
	cmp	r3, #0
	beq	.L3
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #2
	bne	.L4
	ldr	r1, .L10+8
	ldr	r0, [fp, #-112]
	bl	mkdir
	mov	r3, r0
	cmp	r3, #0
	beq	.L5
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #17
	beq	.L5
.L4:
	ldr	r1, [fp, #-112]
	ldr	r0, .L10+12
	bl	warn
	mvn	r3, #0
	b	.L8
.L3:
	ldr	r3, [fp, #-84]
	and	r3, r3, #61440
	cmp	r3, #16384
	beq	.L5
	mov	r0, #20
	bl	strerror
	mov	r3, r0
	mov	r2, r3
	ldr	r1, [fp, #-112]
	ldr	r0, .L10+16
	bl	warnx
	mvn	r3, #0
	b	.L8
.L5:
	ldr	r3, [fp, #-108]
	mov	r2, #47
	strb	r2, [r3]
.L2:
	ldr	r3, [fp, #-104]
	cmp	r3, #0
	beq	.L7
	mov	r3, #0
.L8:
	ldr	r2, .L10
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L9
	bl	__stack_chk_fail
.L9:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L11:
	.align	2
.L10:
	.word	.LC3
	.word	.LC0
	.word	511
	.word	.LC1
	.word	.LC2
	.size	mkpath, .-mkpath
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
