	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lookup_user_directory          ## -- Begin function lookup_user_directory
	.p2align	4, 0x90
_lookup_user_directory:                 ## @lookup_user_directory
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_Header@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	testl	%edx, %edx
	jle	LBB0_8
## %bb.1:
	movq	_FileUsers@GOTPCREL(%rip), %r8
	movq	(%r8), %r9
	movl	$-1, %ecx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%eax, %ecx
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%edx, %eax
	subl	%ecx, %eax
	cmpl	$1, %eax
	jle	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	leal	(%rdx,%rcx), %eax
	sarl	%eax
	movslq	%eax, %rsi
	movq	(%r9,%rsi,8), %rsi
	cmpq	%rdi, (%rsi)
	jle	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%eax, %edx
	jmp	LBB0_5
LBB0_6:
	testl	%ecx, %ecx
	js	LBB0_8
## %bb.7:
	movq	(%r8), %rax
	movl	%ecx, %ecx
	movq	(%rax,%rcx,8), %rax
	cmpq	%rdi, (%rax)
	je	LBB0_9
LBB0_8:
	xorl	%eax, %eax
LBB0_9:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_Header,4,2                     ## @Header
	.comm	_FileUsers,8,3                  ## @FileUsers
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lookup_user_directory          ; -- Begin function lookup_user_directory
	.p2align	2
_lookup_user_directory:                 ; @lookup_user_directory
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _Header@GOTPAGE
Lloh1:
	ldr	x8, [x8, _Header@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.1:
Lloh3:
	adrp	x9, _FileUsers@GOTPAGE
Lloh4:
	ldr	x9, [x9, _FileUsers@GOTPAGEOFF]
	ldr	x11, [x9]
	mov	w10, #-1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	w12, w8, w10
	asr	w12, w12, #1
	ldr	x13, [x11, w12, sxtw #3]
	ldr	x13, [x13]
	cmp	x13, x0
	csel	w10, w10, w12, gt
	csel	w8, w12, w8, gt
	sub	w12, w8, w10
	cmp	w12, #1
	b.gt	LBB0_2
; %bb.3:
	tbnz	w10, #31, LBB0_5
; %bb.4:
	ldr	x8, [x9]
	ldr	x8, [x8, w10, uxtw #3]
	ldr	x9, [x8]
	cmp	x9, x0
	b.eq	LBB0_6
LBB0_5:
	mov	x8, #0
LBB0_6:
	mov	x0, x8
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_Header,4,2                     ; @Header
	.comm	_FileUsers,8,3                  ; @FileUsers
.subsections_via_symbols
