	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function posix_name
_posix_name:                            ## @posix_name
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_MAX_FILE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	testl	%ecx, %ecx
	jle	LBB0_5
## %bb.1:
	shlq	$4, %rcx
	xorl	%edx, %edx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	addq	$16, %rdx
	cmpq	%rdx, %rcx
	je	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rdi,%rdx), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$0, 8(%rdi,%rdx)
	je	LBB0_4
	jmp	LBB0_9
LBB0_5:
	testl	%esi, %esi
	jne	LBB0_8
## %bb.6:
	movq	_ok_to_create_file@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_8
## %bb.7:
	movq	_NEW_FILE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	shlq	$4, %rax
	movq	(%rdi,%rax), %rax
	testq	%rax, %rax
	je	LBB0_8
LBB0_9:
	movq	%rax, %rdi
	popq	%rbp
	jmp	_xstrdup                        ## TAILCALL
LBB0_8:
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_FILE,4,2                   ## @MAX_FILE
	.comm	_ok_to_create_file,8,3          ## @ok_to_create_file
	.comm	_NEW_FILE,8,3                   ## @NEW_FILE
	.no_dead_strip	_posix_name
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function posix_name
_posix_name:                            ; @posix_name
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _MAX_FILE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX_FILE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_5
; %bb.1:
	add	x10, x0, #8
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x10, x10, #16
	subs	x9, x9, #1
	b.eq	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldur	x8, [x10, #-8]
	cbz	x8, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x11, [x10]
	cbz	x11, LBB0_2
	b	LBB0_8
LBB0_5:
	cbnz	w1, LBB0_9
; %bb.6:
Lloh3:
	adrp	x8, _ok_to_create_file@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ok_to_create_file@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cbz	x8, LBB0_9
; %bb.7:
Lloh6:
	adrp	x8, _NEW_FILE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _NEW_FILE@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	lsl	x8, x8, #4
	ldr	x8, [x0, x8]
	cbz	x8, LBB0_9
LBB0_8:
	mov	x0, x8
	b	_xstrdup
LBB0_9:
	mov	x0, #0
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_FILE,4,2                   ; @MAX_FILE
	.comm	_ok_to_create_file,8,3          ; @ok_to_create_file
	.comm	_NEW_FILE,8,3                   ; @NEW_FILE
	.no_dead_strip	_posix_name
.subsections_via_symbols
