	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	callq	_LOGCMD
	movq	_guest@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_2
## %bb.1:
	movq	_noguestmkd@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_2
## %bb.6:
	leaq	L_.str.1(%rip), %rsi
	movl	$550, %edi                      ## imm = 0x226
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_reply                          ## TAILCALL
LBB0_2:
	movq	%rbx, %rdi
	movl	$511, %esi                      ## imm = 0x1FF
	callq	_mkdir
	testq	%rax, %rax
	js	LBB0_7
## %bb.3:
	movq	%rbx, %rdi
	callq	_doublequote
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:
	leaq	L_.str.2(%rip), %rdi
	callq	_fatalerror
LBB0_5:
	leaq	L_.str.3(%rip), %rsi
	movl	$257, %edi                      ## imm = 0x101
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_reply
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_free                           ## TAILCALL
LBB0_7:
	movl	$550, %edi                      ## imm = 0x226
	movq	%rbx, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_perror_reply                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mkdir"

	.comm	_guest,8,3                      ## @guest
	.comm	_noguestmkd,8,3                 ## @noguestmkd
L_.str.1:                               ## @.str.1
	.asciz	"Operation not permitted."

L_.str.2:                               ## @.str.2
	.asciz	"Ran out of memory."

L_.str.3:                               ## @.str.3
	.asciz	"\"%s\" directory created."

.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:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_LOGCMD
Lloh2:
	adrp	x8, _guest@GOTPAGE
Lloh3:
	ldr	x8, [x8, _guest@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
Lloh5:
	adrp	x9, _noguestmkd@GOTPAGE
Lloh6:
	ldr	x9, [x9, _noguestmkd@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, #0
	ccmp	x9, #0, #4, ne
	b.ne	LBB0_5
; %bb.1:
	mov	x0, x19
	mov	w1, #511
	bl	_mkdir
	tbnz	x0, #63, LBB0_6
; %bb.2:
	mov	x0, x19
	bl	_doublequote
	mov	x19, x0
	cbnz	x0, LBB0_4
; %bb.3:
Lloh8:
	adrp	x0, l_.str.2@PAGE
Lloh9:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_fatalerror
LBB0_4:
	str	x19, [sp]
Lloh10:
	adrp	x1, l_.str.3@PAGE
Lloh11:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w0, #257
	bl	_reply
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_free
LBB0_5:
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #550
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_reply
LBB0_6:
	mov	w0, #550
	mov	x1, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_perror_reply
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mkdir"

	.comm	_guest,8,3                      ; @guest
	.comm	_noguestmkd,8,3                 ; @noguestmkd
l_.str.1:                               ; @.str.1
	.asciz	"Operation not permitted."

l_.str.2:                               ; @.str.2
	.asciz	"Ran out of memory."

l_.str.3:                               ; @.str.3
	.asciz	"\"%s\" directory created."

.subsections_via_symbols
