	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_efi_setup_gop                  ## -- Begin function efi_setup_gop
	.p2align	4, 0x90
_efi_setup_gop:                         ## @efi_setup_gop
	.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, %r12
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	%rcx, -56(%rbp)
	movq	$0, -48(%rbp)
	movq	_allocate_pool@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_EFI_LOADER_DATA@GOTPCREL(%rip), %rax
	movslq	(%rax), %rsi
	leaq	-48(%rbp), %rax
	movq	%rcx, %rdx
	movq	%rax, %rcx
	xorl	%eax, %eax
	callq	_efi_call_early
	movq	%rax, %rbx
	movq	_EFI_SUCCESS@GOTPCREL(%rip), %r13
	cmpq	(%r13), %rax
	jne	LBB0_7
## %bb.1:
	movq	_locate_handle@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_EFI_LOCATE_BY_PROTOCOL@GOTPCREL(%rip), %rax
	movslq	(%rax), %rsi
	movq	-48(%rbp), %r9
	leaq	-56(%rbp), %r8
	movq	%r12, %rdx
	xorl	%ecx, %ecx
	xorl	%eax, %eax
	callq	_efi_call_early
	movq	%rax, %rbx
	cmpq	(%r13), %rax
	jne	LBB0_6
## %bb.2:
	xorl	%eax, %eax
	callq	_efi_is_64bit
	movq	-56(%rbp), %rcx
	movq	-48(%rbp), %r8
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%r12, %rdx
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	callq	_setup_gop64
	jmp	LBB0_5
LBB0_4:
	callq	_setup_gop32
LBB0_5:
	movq	%rax, %rbx
LBB0_6:
	movq	_free_pool@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-48(%rbp), %rsi
	xorl	%eax, %eax
	callq	_efi_call_early
LBB0_7:
	movq	%rbx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_allocate_pool,4,2              ## @allocate_pool
	.comm	_EFI_LOADER_DATA,4,2            ## @EFI_LOADER_DATA
	.comm	_EFI_SUCCESS,8,3                ## @EFI_SUCCESS
	.comm	_locate_handle,4,2              ## @locate_handle
	.comm	_EFI_LOCATE_BY_PROTOCOL,4,2     ## @EFI_LOCATE_BY_PROTOCOL
	.comm	_free_pool,4,2                  ## @free_pool
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_efi_setup_gop                  ; -- Begin function efi_setup_gop
	.p2align	2
_efi_setup_gop:                         ; @efi_setup_gop
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	stp	xzr, x3, [sp, #32]
Lloh0:
	adrp	x8, _allocate_pool@GOTPAGE
Lloh1:
	ldr	x8, [x8, _allocate_pool@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _EFI_LOADER_DATA@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EFI_LOADER_DATA@GOTPAGEOFF]
Lloh5:
	ldrsw	x1, [x8]
	add	x8, sp, #32
	stp	x3, x8, [sp]
	bl	_efi_call_early
	mov	x22, x0
Lloh6:
	adrp	x23, _EFI_SUCCESS@GOTPAGE
Lloh7:
	ldr	x23, [x23, _EFI_SUCCESS@GOTPAGEOFF]
	ldr	x8, [x23]
	cmp	x0, x8
	b.ne	LBB0_7
; %bb.1:
Lloh8:
	adrp	x8, _locate_handle@GOTPAGE
Lloh9:
	ldr	x8, [x8, _locate_handle@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
Lloh11:
	adrp	x8, _EFI_LOCATE_BY_PROTOCOL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EFI_LOCATE_BY_PROTOCOL@GOTPAGEOFF]
Lloh13:
	ldrsw	x1, [x8]
	ldr	x8, [sp, #32]
	add	x9, sp, #40
	stp	x9, x8, [sp, #16]
	stp	x19, xzr, [sp]
	bl	_efi_call_early
	mov	x22, x0
	ldr	x8, [x23]
	cmp	x0, x8
	b.ne	LBB0_6
; %bb.2:
	bl	_efi_is_64bit
	ldp	x4, x3, [sp, #32]
	cbz	x0, LBB0_4
; %bb.3:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	bl	_setup_gop64
	b	LBB0_5
LBB0_4:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	bl	_setup_gop32
LBB0_5:
	mov	x22, x0
LBB0_6:
Lloh14:
	adrp	x8, _free_pool@GOTPAGE
Lloh15:
	ldr	x8, [x8, _free_pool@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	ldr	x1, [sp, #32]
	bl	_efi_call_early
LBB0_7:
	mov	x0, x22
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_allocate_pool,4,2              ; @allocate_pool
	.comm	_EFI_LOADER_DATA,4,2            ; @EFI_LOADER_DATA
	.comm	_EFI_SUCCESS,8,3                ; @EFI_SUCCESS
	.comm	_locate_handle,4,2              ; @locate_handle
	.comm	_EFI_LOCATE_BY_PROTOCOL,4,2     ; @EFI_LOCATE_BY_PROTOCOL
	.comm	_free_pool,4,2                  ; @free_pool
.subsections_via_symbols
