	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pe_load_nt_header              ## -- Begin function pe_load_nt_header
	.p2align	4, 0x90
_pe_load_nt_header:                     ## @pe_load_nt_header
	.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
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movl	%edi, %r12d
	xorl	%r15d, %r15d
	leaq	-56(%rbp), %rdx
	movl	$24, %ecx
	xorl	%r8d, %r8d
	callq	_ReadProcessMemory
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	-56(%rbp), %rax
	movq	_IMAGE_DOS_SIGNATURE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.2:
	addq	-40(%rbp), %rbx
	xorl	%r15d, %r15d
	movl	%r12d, %edi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	movl	$24, %ecx
	xorl	%r8d, %r8d
	callq	_ReadProcessMemory
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	8(%r14), %rax
	movq	_IMAGE_NT_SIGNATURE@GOTPCREL(%rip), %rcx
	xorl	%r15d, %r15d
	cmpq	(%rcx), %rax
	sete	%r15b
LBB0_4:
	movl	%r15d, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IMAGE_DOS_SIGNATURE,8,3        ## @IMAGE_DOS_SIGNATURE
	.comm	_IMAGE_NT_SIGNATURE,8,3         ## @IMAGE_NT_SIGNATURE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pe_load_nt_header              ; -- Begin function pe_load_nt_header
	.p2align	2
_pe_load_nt_header:                     ; @pe_load_nt_header
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
	add	x2, sp, #8
	mov	w3, #24
	mov	x4, #0
	bl	_ReadProcessMemory
	cbz	x0, LBB0_5
; %bb.1:
	ldr	x8, [sp, #8]
Lloh0:
	adrp	x9, _IMAGE_DOS_SIGNATURE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IMAGE_DOS_SIGNATURE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.2:
	ldr	x8, [sp, #24]
	add	x1, x8, x21
	mov	x0, x20
	mov	x2, x19
	mov	w3, #24
	mov	x4, #0
	bl	_ReadProcessMemory
	cbz	x0, LBB0_5
; %bb.3:
	ldr	x8, [x19, #8]
Lloh3:
	adrp	x9, _IMAGE_NT_SIGNATURE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IMAGE_NT_SIGNATURE@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, eq
	b	LBB0_5
LBB0_4:
	mov	w0, #0
LBB0_5:
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_IMAGE_DOS_SIGNATURE,8,3        ; @IMAGE_DOS_SIGNATURE
	.comm	_IMAGE_NT_SIGNATURE,8,3         ; @IMAGE_NT_SIGNATURE
.subsections_via_symbols
