	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function PxeClose
_PxeClose:                              ## @PxeClose
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	__OpenFile@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movq	_EBADF@GOTPCREL(%rip), %rbx
	cmpq	%rdi, %rax
	jne	LBB0_6
## %bb.1:
	movq	_NO_FILE@GOTPCREL(%rip), %r15
	cmpq	(%r15), %rax
	je	LBB0_6
## %bb.2:
	leaq	-28(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$4, %esi
	callq	_RtlZeroMemory
	movq	_PXENV_TFTP_CLOSE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_CallPxe
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movq	(%r15), %rax
	movq	%rax, (%r14)
	movq	__CachedFile@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	movq	_ESUCCESS@GOTPCREL(%rip), %rbx
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.5:
	movq	_TAG_PXE_FILE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_FrLdrTempFree
	movq	$0, (%r14)
	jmp	LBB0_6
LBB0_3:
	movq	_EIO@GOTPCREL(%rip), %rbx
LBB0_6:
	movl	(%rbx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	__OpenFile,8,3                  ## @_OpenFile
	.comm	_NO_FILE,8,3                    ## @NO_FILE
	.comm	_EBADF,4,2                      ## @EBADF
	.comm	_PXENV_TFTP_CLOSE,4,2           ## @PXENV_TFTP_CLOSE
	.comm	_EIO,4,2                        ## @EIO
	.comm	__CachedFile,8,3                ## @_CachedFile
	.comm	_TAG_PXE_FILE,4,2               ## @TAG_PXE_FILE
	.comm	_ESUCCESS,4,2                   ## @ESUCCESS
	.no_dead_strip	_PxeClose
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function PxeClose
_PxeClose:                              ; @PxeClose
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x19, __OpenFile@GOTPAGE
Lloh1:
	ldr	x19, [x19, __OpenFile@GOTPAGEOFF]
	ldr	x8, [x19]
Lloh2:
	adrp	x20, _NO_FILE@GOTPAGE
Lloh3:
	ldr	x20, [x20, _NO_FILE@GOTPAGEOFF]
	ldr	x9, [x20]
	cmp	x8, x0
	ccmp	x8, x9, #4, eq
	b.ne	LBB0_2
; %bb.1:
Lloh4:
	adrp	x8, _EBADF@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EBADF@GOTPAGEOFF]
	b	LBB0_7
LBB0_2:
	add	x0, sp, #12
	mov	w1, #4
	bl	_RtlZeroMemory
Lloh6:
	adrp	x8, _PXENV_TFTP_CLOSE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PXENV_TFTP_CLOSE@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	add	x1, sp, #12
	bl	_CallPxe
	cbz	w0, LBB0_6
; %bb.3:
	ldr	x8, [x20]
	str	x8, [x19]
Lloh9:
	adrp	x19, __CachedFile@GOTPAGE
Lloh10:
	ldr	x19, [x19, __CachedFile@GOTPAGEOFF]
	ldr	x0, [x19]
	cbz	x0, LBB0_5
; %bb.4:
Lloh11:
	adrp	x8, _TAG_PXE_FILE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _TAG_PXE_FILE@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	bl	_FrLdrTempFree
	str	xzr, [x19]
LBB0_5:
Lloh14:
	adrp	x8, _ESUCCESS@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ESUCCESS@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh16:
	adrp	x8, _EIO@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
LBB0_7:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	__OpenFile,8,3                  ; @_OpenFile
	.comm	_NO_FILE,8,3                    ; @NO_FILE
	.comm	_EBADF,4,2                      ; @EBADF
	.comm	_PXENV_TFTP_CLOSE,4,2           ; @PXENV_TFTP_CLOSE
	.comm	_EIO,4,2                        ; @EIO
	.comm	__CachedFile,8,3                ; @_CachedFile
	.comm	_TAG_PXE_FILE,4,2               ; @TAG_PXE_FILE
	.comm	_ESUCCESS,4,2                   ; @ESUCCESS
	.no_dead_strip	_PxeClose
.subsections_via_symbols
