	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CallPxe                        ## -- Begin function CallPxe
	.p2align	4, 0x90
_CallPxe:                               ## @CallPxe
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movl	%edi, %r15d
	xorl	%eax, %eax
	callq	_GetPxeStructure
	movq	_FALSE@GOTPCREL(%rip), %r12
	testq	%rax, %rax
	je	LBB0_8
## %bb.1:
	movq	%rax, %rbx
	movq	_PXENV_TFTP_READ@GOTPCREL(%rip), %rax
	cmpl	%r15d, (%rax)
	je	LBB0_3
## %bb.2:
	movl	$100000, %edi                   ## imm = 0x186A0
	callq	_KeStallExecutionProcessor
	leaq	L_.str(%rip), %rdi
	movl	%r15d, %esi
	movq	%r14, %rdx
	callq	_TRACE
LBB0_3:
	movl	(%rbx), %esi
	movl	4(%rbx), %edi
	movl	%r15d, %edx
	movq	%r14, %rcx
	callq	_PxeCallApi
	movq	_PXENV_EXIT_SUCCESS@GOTPCREL(%rip), %rcx
	movslq	(%r14), %r8
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.5:
	movq	_PXENV_STATUS_SUCCESS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r8d
	jne	LBB0_7
## %bb.6:
	movq	_TRUE@GOTPCREL(%rip), %r12
	jmp	LBB0_8
LBB0_4:
	leaq	L_.str.1(%rip), %rdi
	movl	%r15d, %esi
	movq	%r14, %rdx
	movq	%rax, %rcx
                                        ## kill: def $r8d killed $r8d killed $r8
	xorl	%eax, %eax
	callq	_ERR
	jmp	LBB0_8
LBB0_7:
	leaq	L_.str.2(%rip), %rdi
	movl	%r15d, %esi
	movq	%r14, %rdx
	movq	%r8, %rcx
	xorl	%eax, %eax
	callq	_ERR
LBB0_8:
	movl	(%r12), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_PXENV_TFTP_READ,4,2            ## @PXENV_TFTP_READ
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PxeCall(0x%x, %p)\n"

	.comm	_PXENV_EXIT_SUCCESS,8,3         ## @PXENV_EXIT_SUCCESS
L_.str.1:                               ## @.str.1
	.asciz	"PxeCall(0x%x, %p) failed with exit=%d status=0x%x\n"

	.comm	_PXENV_STATUS_SUCCESS,4,2       ## @PXENV_STATUS_SUCCESS
L_.str.2:                               ## @.str.2
	.asciz	"PxeCall(0x%x, %p) succeeded, but returned error status 0x%x\n"

	.comm	_TRUE,4,2                       ## @TRUE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CallPxe                        ; -- Begin function CallPxe
	.p2align	2
_CallPxe:                               ; @CallPxe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x1
	mov	x20, x0
	bl	_GetPxeStructure
	cbz	x0, LBB0_9
; %bb.1:
	mov	x21, x0
Lloh0:
	adrp	x8, _PXENV_TFTP_READ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PXENV_TFTP_READ@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w20
	b.eq	LBB0_3
; %bb.2:
	mov	w0, #34464
	movk	w0, #1, lsl #16
	bl	_KeStallExecutionProcessor
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	mov	x2, x19
	bl	_TRACE
LBB0_3:
	ldp	w1, w0, [x21]
	mov	x2, x20
	mov	x3, x19
	bl	_PxeCallApi
Lloh5:
	adrp	x9, _PXENV_EXIT_SUCCESS@GOTPAGE
Lloh6:
	ldr	x9, [x9, _PXENV_EXIT_SUCCESS@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	ldrsw	x3, [x19]
	cmp	x0, x9
	b.ne	LBB0_6
; %bb.4:
Lloh8:
	adrp	x8, _PXENV_STATUS_SUCCESS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PXENV_STATUS_SUCCESS@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cmp	w3, w8
	b.ne	LBB0_7
; %bb.5:
Lloh11:
	adrp	x8, _TRUE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
	b	LBB0_10
LBB0_6:
	mov	x8, x0
	str	x3, [sp]
Lloh13:
	adrp	x0, l_.str.1@PAGE
Lloh14:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x20
	mov	x2, x19
	mov	x3, x8
	b	LBB0_8
LBB0_7:
Lloh15:
	adrp	x0, l_.str.2@PAGE
Lloh16:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x20
	mov	x2, x19
LBB0_8:
	bl	_ERR
LBB0_9:
Lloh17:
	adrp	x8, _FALSE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
LBB0_10:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_PXENV_TFTP_READ,4,2            ; @PXENV_TFTP_READ
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PxeCall(0x%x, %p)\n"

	.comm	_PXENV_EXIT_SUCCESS,8,3         ; @PXENV_EXIT_SUCCESS
l_.str.1:                               ; @.str.1
	.asciz	"PxeCall(0x%x, %p) failed with exit=%d status=0x%x\n"

	.comm	_PXENV_STATUS_SUCCESS,4,2       ; @PXENV_STATUS_SUCCESS
l_.str.2:                               ; @.str.2
	.asciz	"PxeCall(0x%x, %p) succeeded, but returned error status 0x%x\n"

	.comm	_TRUE,4,2                       ; @TRUE
.subsections_via_symbols
