	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_makedir                        ## -- Begin function makedir
	.p2align	4, 0x90
_makedir:                               ## @makedir
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	callq	_strdup
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_strlen
                                        ## kill: def $eax killed $eax def $rax
	testl	%eax, %eax
	jle	LBB0_1
## %bb.2:
	decl	%eax
	cmpb	$47, (%r14,%rax)
	jne	LBB0_4
## %bb.3:
	movb	$0, (%r14,%rax)
LBB0_4:
	movq	%r14, %rdi
	movl	$493, %esi                      ## imm = 0x1ED
	callq	_mkdir
	testl	%eax, %eax
	je	LBB0_15
## %bb.5:
	movq	%r14, %r13
	incq	%r13
	movq	_errno@GOTPCREL(%rip), %r15
	movq	_ENOENT@GOTPCREL(%rip), %r12
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=1
	incq	%r13
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%r13), %ebx
	testb	%bl, %bl
	je	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	cmpb	$47, %bl
	je	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	cmpb	$92, %bl
	jne	LBB0_9
LBB0_10:                                ##   in Loop: Header=BB0_6 Depth=1
	movb	$0, (%r13)
	movq	%r14, %rdi
	movl	$493, %esi                      ## imm = 0x1ED
	callq	_mkdir
	cmpl	$-1, %eax
	jne	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	(%r15), %rax
	cmpq	(%r12), %rax
	je	LBB0_12
LBB0_13:                                ##   in Loop: Header=BB0_6 Depth=1
	testb	%bl, %bl
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_6 Depth=1
	movb	%bl, (%r13)
	incq	%r13
	jmp	LBB0_6
LBB0_15:
	movq	%r14, %rdi
	callq	_free
	movl	$1, %eax
	jmp	LBB0_16
LBB0_12:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_prog@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rcx
	callq	_fprintf
LBB0_1:
	movq	%r14, %rdi
	callq	_free
	xorl	%eax, %eax
LBB0_16:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_errno,8,3                      ## @errno
	.comm	_ENOENT,8,3                     ## @ENOENT
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: Couldn't create directory %s\n"

	.comm	_prog,8,3                       ## @prog
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_makedir                        ; -- Begin function makedir
	.p2align	2
_makedir:                               ; @makedir
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	bl	_strdup
	mov	x19, x0
	bl	_strlen
	cmp	w0, #0
	b.le	LBB0_14
; %bb.1:
	sub	w8, w0, #1
	ldrb	w9, [x19, x8]
	cmp	w9, #47
	b.ne	LBB0_3
; %bb.2:
	strb	wzr, [x19, x8]
LBB0_3:
	mov	x0, x19
	mov	w1, #493
	bl	_mkdir
	cbz	w0, LBB0_12
; %bb.4:
	mov	w20, #1
Lloh0:
	adrp	x21, _errno@GOTPAGE
Lloh1:
	ldr	x21, [x21, _errno@GOTPAGEOFF]
Lloh2:
	adrp	x22, _ENOENT@GOTPAGE
Lloh3:
	ldr	x22, [x22, _ENOENT@GOTPAGEOFF]
	ldrb	w23, [x19, x20]
	cbz	w23, LBB0_8
LBB0_5:
	cmp	w23, #47
	b.eq	LBB0_8
; %bb.6:
	cmp	w23, #92
	b.eq	LBB0_8
LBB0_7:
	add	x20, x20, #1
	ldrb	w23, [x19, x20]
	cbnz	w23, LBB0_5
LBB0_8:
	strb	wzr, [x19, x20]
	mov	x0, x19
	mov	w1, #493
	bl	_mkdir
	cmn	w0, #1
	b.ne	LBB0_10
; %bb.9:
	ldr	x8, [x21]
	ldr	x9, [x22]
	cmp	x8, x9
	b.eq	LBB0_13
LBB0_10:
	cbz	w23, LBB0_12
; %bb.11:
	strb	w23, [x19, x20]
	b	LBB0_7
LBB0_12:
	mov	x0, x19
	bl	_free
	mov	w0, #1
	b	LBB0_15
LBB0_13:
Lloh4:
	adrp	x8, _stderr@GOTPAGE
Lloh5:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
Lloh7:
	adrp	x8, _prog@GOTPAGE
Lloh8:
	ldr	x8, [x8, _prog@GOTPAGEOFF]
Lloh9:
	ldr	x2, [x8]
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	mov	x3, x19
	bl	_fprintf
LBB0_14:
	mov	x0, x19
	bl	_free
	mov	w0, #0
LBB0_15:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_errno,8,3                      ; @errno
	.comm	_ENOENT,8,3                     ; @ENOENT
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: Couldn't create directory %s\n"

	.comm	_prog,8,3                       ; @prog
.subsections_via_symbols
