	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function parse_pe_header
_parse_pe_header:                       ## @parse_pe_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movl	4(%rdi), %edi
	callq	_ImageNtHeader
	movq	%rax, 8(%rbx)
	movq	_E_FAIL@GOTPCREL(%rip), %rcx
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movq	(%rax), %rsi
	testq	%rsi, %rsi
	je	LBB0_7
## %bb.2:
	movq	_IMAGE_DIRECTORY_ENTRY_COM_DESCRIPTOR@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdi
	movl	(%rsi,%rdi,8), %edx
	testl	%edx, %edx
	je	LBB0_7
## %bb.3:
	cmpl	$0, 4(%rsi,%rdi,8)
	je	LBB0_7
## %bb.4:
	movl	4(%rbx), %esi
	movq	%rax, %rdi
	xorl	%ecx, %ecx
	callq	_ImageRvaToVa
	movl	%eax, (%rbx)
	testl	%eax, %eax
	jne	LBB0_5
## %bb.6:
	movq	_E_FAIL@GOTPCREL(%rip), %rcx
	jmp	LBB0_7
LBB0_5:
	movq	_S_OK@GOTPCREL(%rip), %rcx
LBB0_7:
	movl	(%rcx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_E_FAIL,4,2                     ## @E_FAIL
	.comm	_IMAGE_NT_OPTIONAL_HDR64_MAGIC,8,3 ## @IMAGE_NT_OPTIONAL_HDR64_MAGIC
	.comm	_IMAGE_DIRECTORY_ENTRY_COM_DESCRIPTOR,8,3 ## @IMAGE_DIRECTORY_ENTRY_COM_DESCRIPTOR
	.comm	_S_OK,4,2                       ## @S_OK
	.no_dead_strip	_parse_pe_header
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function parse_pe_header
_parse_pe_header:                       ; @parse_pe_header
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	w0, [x0, #4]
	bl	_ImageNtHeader
	str	x0, [x19, #8]
	cbz	x0, LBB0_5
; %bb.1:
	ldr	x8, [x0]
	cbz	x8, LBB0_5
; %bb.2:
Lloh0:
	adrp	x9, _IMAGE_DIRECTORY_ENTRY_COM_DESCRIPTOR@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IMAGE_DIRECTORY_ENTRY_COM_DESCRIPTOR@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	lsl	x10, x9, #3
	ldr	w2, [x8, x10]
	cbz	w2, LBB0_5
; %bb.3:
	add	x8, x8, x9, lsl #3
	ldr	w8, [x8, #4]
Lloh3:
	adrp	x20, _E_FAIL@GOTPAGE
Lloh4:
	ldr	x20, [x20, _E_FAIL@GOTPAGEOFF]
	cbz	w8, LBB0_6
; %bb.4:
	ldr	w1, [x19, #4]
	mov	x3, #0
	bl	_ImageRvaToVa
	str	w0, [x19]
Lloh5:
	adrp	x8, _S_OK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _S_OK@GOTPAGEOFF]
	cmp	w0, #0
	csel	x20, x20, x8, eq
	b	LBB0_6
LBB0_5:
Lloh7:
	adrp	x20, _E_FAIL@GOTPAGE
Lloh8:
	ldr	x20, [x20, _E_FAIL@GOTPAGEOFF]
LBB0_6:
	ldr	w0, [x20]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_E_FAIL,4,2                     ; @E_FAIL
	.comm	_IMAGE_NT_OPTIONAL_HDR64_MAGIC,8,3 ; @IMAGE_NT_OPTIONAL_HDR64_MAGIC
	.comm	_IMAGE_DIRECTORY_ENTRY_COM_DESCRIPTOR,8,3 ; @IMAGE_DIRECTORY_ENTRY_COM_DESCRIPTOR
	.comm	_S_OK,4,2                       ; @S_OK
	.no_dead_strip	_parse_pe_header
.subsections_via_symbols
