	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function make_dir
_make_dir:                              ## @make_dir
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movl	$1, %r14d
	movl	$1, %esi
	callq	_luaL_checkstring
	movq	%rax, %r15
	xorl	%edi, %edi
	callq	_umask
	movq	_S_IRUSR@GOTPCREL(%rip), %rcx
	movq	_S_IWUSR@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	orl	(%rcx), %esi
	movq	_S_IXUSR@GOTPCREL(%rip), %rcx
	orl	(%rcx), %esi
	movq	_S_IRGRP@GOTPCREL(%rip), %rcx
	orl	(%rcx), %esi
	movq	_S_IWGRP@GOTPCREL(%rip), %rcx
	orl	(%rcx), %esi
	movq	_S_IXGRP@GOTPCREL(%rip), %rcx
	orl	(%rcx), %esi
	movq	_S_IROTH@GOTPCREL(%rip), %rcx
	orl	(%rcx), %esi
	movq	%rax, %r12
	movq	_S_IXOTH@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	%r15, %rdi
	callq	_mkdir
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_lua_pushnil
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_lua_pushfstring
	movl	$2, %r14d
	jmp	LBB0_3
LBB0_2:
	movq	%r12, %rdi
	callq	_umask
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_lua_pushboolean
LBB0_3:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_S_IRUSR,4,2                    ## @S_IRUSR
	.comm	_S_IWUSR,4,2                    ## @S_IWUSR
	.comm	_S_IXUSR,4,2                    ## @S_IXUSR
	.comm	_S_IRGRP,4,2                    ## @S_IRGRP
	.comm	_S_IWGRP,4,2                    ## @S_IWGRP
	.comm	_S_IXGRP,4,2                    ## @S_IXGRP
	.comm	_S_IROTH,4,2                    ## @S_IROTH
	.comm	_S_IXOTH,4,2                    ## @S_IXOTH
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s"

	.comm	_errno,4,2                      ## @errno
	.no_dead_strip	_make_dir
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function make_dir
_make_dir:                              ; @make_dir
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
	mov	w1, #1
	bl	_luaL_checkstring
	mov	x21, x0
	mov	x0, #0
	bl	_umask
	mov	x20, x0
Lloh0:
	adrp	x8, _S_IRUSR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _S_IRUSR@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _S_IWUSR@GOTPAGE
Lloh4:
	ldr	x9, [x9, _S_IWUSR@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh6:
	adrp	x9, _S_IXUSR@GOTPAGE
Lloh7:
	ldr	x9, [x9, _S_IXUSR@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh9:
	adrp	x9, _S_IRGRP@GOTPAGE
Lloh10:
	ldr	x9, [x9, _S_IRGRP@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh12:
	adrp	x9, _S_IWGRP@GOTPAGE
Lloh13:
	ldr	x9, [x9, _S_IWGRP@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh15:
	adrp	x9, _S_IXGRP@GOTPAGE
Lloh16:
	ldr	x9, [x9, _S_IXGRP@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh18:
	adrp	x9, _S_IROTH@GOTPAGE
Lloh19:
	ldr	x9, [x9, _S_IROTH@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh21:
	adrp	x9, _S_IXOTH@GOTPAGE
Lloh22:
	ldr	x9, [x9, _S_IXOTH@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	orr	w1, w8, w9
	mov	x0, x21
	bl	_mkdir
	cbz	w0, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_lua_pushnil
Lloh24:
	adrp	x8, _errno@GOTPAGE
Lloh25:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
	bl	_strerror
	mov	x2, x0
Lloh27:
	adrp	x1, l_.str@PAGE
Lloh28:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_lua_pushfstring
	mov	w20, #2
	b	LBB0_3
LBB0_2:
	mov	x0, x20
	bl	_umask
	mov	w20, #1
	mov	x0, x19
	mov	w1, #1
	bl	_lua_pushboolean
LBB0_3:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_S_IRUSR,4,2                    ; @S_IRUSR
	.comm	_S_IWUSR,4,2                    ; @S_IWUSR
	.comm	_S_IXUSR,4,2                    ; @S_IXUSR
	.comm	_S_IRGRP,4,2                    ; @S_IRGRP
	.comm	_S_IWGRP,4,2                    ; @S_IWGRP
	.comm	_S_IXGRP,4,2                    ; @S_IXGRP
	.comm	_S_IROTH,4,2                    ; @S_IROTH
	.comm	_S_IXOTH,4,2                    ; @S_IXOTH
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s"

	.comm	_errno,4,2                      ; @errno
	.no_dead_strip	_make_dir
.subsections_via_symbols
