	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_efi_register_handles           ## -- Begin function efi_register_handles
	.p2align	4, 0x90
_efi_register_handles:                  ## @efi_register_handles
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r15
	movq	_nentries@GOTPCREL(%rip), %rbx
	movslq	(%rbx), %r13
	movslq	%ecx, %rax
	addq	%r13, %rax
	movl	%eax, (%rbx)
	movq	%rax, %rsi
	shlq	$2, %rsi
	movq	_entry@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	callq	_realloc
	movl	(%rbx), %ecx
	jmp	LBB0_3
LBB0_1:
	movq	%rsi, %rdi
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	callq	_malloc
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
LBB0_3:
	movq	%rbx, %r9
	movq	%rax, (%r12)
	cmpl	%ecx, %r13d
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	jge	LBB0_9
## %bb.4:
	movq	%r13, %rcx
	shlq	$5, %rcx
	xorl	%edx, %edx
	xorl	%esi, %esi
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	(%r14,%rdx), %rax
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	(%r12), %rdi
	addq	%rcx, %rdi
	movq	%rax, 16(%rdi,%rdx,4)
	movq	(%r12), %rax
	addq	%rcx, %rax
	movq	%r15, 8(%rax,%rdx,4)
	movq	(%r12), %rax
	leaq	(%rax,%rcx), %rdi
	movl	%esi, (%rdi,%rdx,4)
	movslq	(%r9), %rdi
	addq	$8, %rdx
	leaq	(%rsi,%r13), %rbx
	incq	%rbx
	incq	%rsi
	cmpq	%rdi, %rbx
	jge	LBB0_9
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	addq	%rcx, %rax
	movq	(%r8,%rdx), %rdi
	movq	%rdi, 24(%rax,%rdx,4)
	testq	%r14, %r14
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_9:
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_nentries,4,2                   ## @nentries
	.comm	_entry,8,3                      ## @entry
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_efi_register_handles           ; -- Begin function efi_register_handles
	.p2align	2
_efi_register_handles:                  ; @efi_register_handles
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x22, _nentries@GOTPAGE
Lloh1:
	ldr	x22, [x22, _nentries@GOTPAGEOFF]
	ldrsw	x23, [x22]
	add	w25, w23, w3
	str	w25, [x22]
	sbfiz	x1, x25, #2, #32
Lloh2:
	adrp	x24, _entry@GOTPAGE
Lloh3:
	ldr	x24, [x24, _entry@GOTPAGEOFF]
	ldr	x0, [x24]
	cbz	x0, LBB0_2
; %bb.1:
	bl	_realloc
	ldr	w25, [x22]
	b	LBB0_3
LBB0_2:
	mov	x0, x1
	bl	_malloc
LBB0_3:
	str	x0, [x24]
	cmp	w23, w25
	b.ge	LBB0_9
; %bb.4:
	mov	x8, #0
	mov	w9, #16
	bfi	x9, x23, #5, #59
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	x10, [x19, x8, lsl #3]
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	x11, [x24]
	str	x10, [x11, x9]
	ldr	x10, [x24]
	add	x10, x10, x9
	stur	x21, [x10, #-8]
	ldr	x0, [x24]
	add	x10, x0, x9
	stur	w8, [x10, #-16]
	add	x8, x8, #1
	ldrsw	x10, [x22]
	add	x9, x9, #32
	add	x11, x23, x8
	cmp	x11, x10
	b.ge	LBB0_9
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x20, x8, lsl #3]
	add	x11, x0, x9
	str	x10, [x11, #8]
	cbnz	x19, LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x10, #0
	b	LBB0_6
LBB0_9:
	mov	w0, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_nentries,4,2                   ; @nentries
	.comm	_entry,8,3                      ; @entry
.subsections_via_symbols
