	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_efi_handle_lookup              ## -- Begin function efi_handle_lookup
	.p2align	4, 0x90
_efi_handle_lookup:                     ## @efi_handle_lookup
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_nentries@GOTPCREL(%rip), %rax
	movl	(%rax), %r10d
	testl	%r10d, %r10d
	jle	LBB0_5
## %bb.1:
	movq	_entry@GOTPCREL(%rip), %r8
	movq	(%r8), %rax
	shlq	$5, %r10
	xorl	%r9d, %r9d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rdi, (%rax,%r9)
	je	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	%rdi, 8(%rax,%r9)
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	addq	$32, %r9
	cmpq	%r9, %r10
	jne	LBB0_2
LBB0_5:
	movq	_ENOENT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_12:
	popq	%rbp
	retq
LBB0_6:
	testq	%rsi, %rsi
	je	LBB0_8
## %bb.7:
	movq	24(%rax,%r9), %rax
	movq	%rax, (%rsi)
LBB0_8:
	testq	%rdx, %rdx
	je	LBB0_10
## %bb.9:
	movq	(%r8), %rax
	movl	16(%rax,%r9), %eax
	movl	%eax, (%rdx)
LBB0_10:
	xorl	%eax, %eax
	testq	%rcx, %rcx
	je	LBB0_12
## %bb.11:
	movq	(%r8), %rdx
	movl	20(%rdx,%r9), %edx
	movl	%edx, (%rcx)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_nentries,4,2                   ## @nentries
	.comm	_entry,8,3                      ## @entry
	.comm	_ENOENT,4,2                     ## @ENOENT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_efi_handle_lookup              ; -- Begin function efi_handle_lookup
	.p2align	2
_efi_handle_lookup:                     ; @efi_handle_lookup
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _nentries@GOTPAGE
Lloh1:
	ldr	x8, [x8, _nentries@GOTPAGEOFF]
Lloh2:
	ldr	w11, [x8]
	cmp	w11, #1
	b.lt	LBB0_5
; %bb.1:
	mov	x8, #0
Lloh3:
	adrp	x9, _entry@GOTPAGE
Lloh4:
	ldr	x9, [x9, _entry@GOTPAGEOFF]
	ldr	x10, [x9]
	lsl	x11, x11, #5
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x12, [x10, x8]
	cmp	x12, x0
	b.eq	LBB0_7
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x12, x10, x8
	ldr	x12, [x12, #8]
	cmp	x12, x0
	b.eq	LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x8, x8, #32
	cmp	x11, x8
	b.ne	LBB0_2
LBB0_5:
Lloh5:
	adrp	x8, _ENOENT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
LBB0_6:
	ret
LBB0_7:
	cbz	x1, LBB0_9
; %bb.8:
	add	x10, x10, x8
	ldr	x10, [x10, #24]
	str	x10, [x1]
LBB0_9:
	cbz	x2, LBB0_11
; %bb.10:
	ldr	x10, [x9]
	add	x10, x10, x8
	ldr	w10, [x10, #16]
	str	w10, [x2]
LBB0_11:
	mov	w0, #0
	cbz	x3, LBB0_6
; %bb.12:
	ldr	x9, [x9]
	add	x8, x9, x8
	ldr	w8, [x8, #20]
	str	w8, [x3]
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_nentries,4,2                   ; @nentries
	.comm	_entry,8,3                      ; @entry
	.comm	_ENOENT,4,2                     ; @ENOENT
.subsections_via_symbols
