	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function IMAGEHLP_GetNTHeaders
_IMAGEHLP_GetNTHeaders:                 ## @IMAGEHLP_GetNTHeaders
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, %r15
	movq	%rsi, %r12
	movl	%edi, %ebx
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	callq	_TRACE
	movq	_HDR_FAIL@GOTPCREL(%rip), %r13
	testq	%r15, %r15
	je	LBB0_21
## %bb.1:
	testq	%r14, %r14
	je	LBB0_21
## %bb.2:
	movq	_FILE_BEGIN@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ebx, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_SetFilePointer
	movq	_INVALID_SET_FILE_POINTER@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_21
## %bb.3:
	movl	$0, -44(%rbp)
	leaq	-80(%rbp), %rsi
	leaq	-44(%rbp), %rcx
	movl	%ebx, %edi
	movl	$32, %edx
	xorl	%r8d, %r8d
	callq	_ReadFile
	testq	%rax, %rax
	je	LBB0_21
## %bb.4:
	cmpl	$32, -44(%rbp)
	jne	LBB0_21
## %bb.5:
	movq	-80(%rbp), %rax
	movq	_IMAGE_DOS_SIGNATURE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_21
## %bb.6:
	movl	-72(%rbp), %esi
	testq	%r12, %r12
	je	LBB0_8
## %bb.7:
	movl	%esi, (%r12)
LBB0_8:
	movq	_FILE_BEGIN@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ebx, %edi
	xorl	%edx, %edx
	callq	_SetFilePointer
	movq	_INVALID_SET_FILE_POINTER@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_9
LBB0_21:
	movl	(%r13), %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movl	$0, -44(%rbp)
	leaq	-44(%rbp), %rcx
	movl	%ebx, %edi
	movq	%r15, %rsi
	movl	$32, %edx
	xorl	%r8d, %r8d
	callq	_ReadFile
	testq	%rax, %rax
	je	LBB0_21
## %bb.10:
	cmpl	$32, -44(%rbp)
	jne	LBB0_21
## %bb.11:
	movq	16(%r15), %rax
	movq	_IMAGE_NT_SIGNATURE@GOTPCREL(%rip), %r12
	cmpq	(%r12), %rax
	jne	LBB0_21
## %bb.12:
	movl	24(%r15), %eax
	cmpl	$129, %eax
	je	LBB0_13
## %bb.14:
	cmpl	$128, %eax
	jne	LBB0_21
## %bb.15:
	movl	-72(%rbp), %esi
	movq	_FILE_BEGIN@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ebx, %edi
	xorl	%edx, %edx
	callq	_SetFilePointer
	movq	_INVALID_SET_FILE_POINTER@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_21
## %bb.16:
	movl	$0, -44(%rbp)
	leaq	-44(%rbp), %rcx
	movl	%ebx, %edi
	movq	%r14, %rsi
	movl	$32, %edx
	xorl	%r8d, %r8d
	callq	_ReadFile
	testq	%rax, %rax
	je	LBB0_21
## %bb.17:
	cmpl	$32, -44(%rbp)
	jne	LBB0_21
## %bb.18:
	movq	16(%r14), %rax
	cmpq	(%r12), %rax
	jne	LBB0_19
## %bb.20:
	movq	_HDR_NT64@GOTPCREL(%rip), %r13
	jmp	LBB0_21
LBB0_13:
	movq	_HDR_NT32@GOTPCREL(%rip), %r13
	jmp	LBB0_21
LBB0_19:
	movq	_HDR_FAIL@GOTPCREL(%rip), %r13
	jmp	LBB0_21
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"handle %p\n"

	.comm	_HDR_FAIL,4,2                   ## @HDR_FAIL
	.comm	_FILE_BEGIN,4,2                 ## @FILE_BEGIN
	.comm	_INVALID_SET_FILE_POINTER,4,2   ## @INVALID_SET_FILE_POINTER
	.comm	_IMAGE_DOS_SIGNATURE,8,3        ## @IMAGE_DOS_SIGNATURE
	.comm	_IMAGE_NT_SIGNATURE,8,3         ## @IMAGE_NT_SIGNATURE
	.comm	_HDR_NT32,4,2                   ## @HDR_NT32
	.comm	_HDR_NT64,4,2                   ## @HDR_NT64
	.no_dead_strip	_IMAGEHLP_GetNTHeaders
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function IMAGEHLP_GetNTHeaders
_IMAGEHLP_GetNTHeaders:                 ; @IMAGEHLP_GetNTHeaders
	.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, x3
	mov	x21, x2
	mov	x22, x1
	mov	x20, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	bl	_TRACE
Lloh2:
	adrp	x8, _HDR_FAIL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _HDR_FAIL@GOTPAGEOFF]
	cbz	x21, LBB0_4
; %bb.1:
	cbz	x19, LBB0_4
; %bb.2:
Lloh4:
	adrp	x23, _FILE_BEGIN@GOTPAGE
Lloh5:
	ldr	x23, [x23, _FILE_BEGIN@GOTPAGEOFF]
	ldr	w3, [x23]
	mov	x0, x20
	mov	w1, #0
	mov	x2, #0
	bl	_SetFilePointer
Lloh6:
	adrp	x24, _INVALID_SET_FILE_POINTER@GOTPAGE
Lloh7:
	ldr	x24, [x24, _INVALID_SET_FILE_POINTER@GOTPAGEOFF]
	ldr	w8, [x24]
	cmp	w0, w8
	b.ne	LBB0_5
LBB0_3:
Lloh8:
	adrp	x8, _HDR_FAIL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _HDR_FAIL@GOTPAGEOFF]
LBB0_4:
	ldr	w0, [x8]
	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
LBB0_5:
	str	wzr, [sp, #12]
	add	x1, sp, #16
	add	x3, sp, #12
	mov	x0, x20
	mov	w2, #32
	mov	x4, #0
	bl	_ReadFile
Lloh10:
	adrp	x8, _HDR_FAIL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _HDR_FAIL@GOTPAGEOFF]
	cbz	x0, LBB0_4
; %bb.6:
	ldr	w9, [sp, #12]
	cmp	w9, #32
	b.ne	LBB0_4
; %bb.7:
	ldr	x8, [sp, #16]
Lloh12:
	adrp	x9, _IMAGE_DOS_SIGNATURE@GOTPAGE
Lloh13:
	ldr	x9, [x9, _IMAGE_DOS_SIGNATURE@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.8:
	ldr	w1, [sp, #24]
	cbz	x22, LBB0_10
; %bb.9:
	str	w1, [x22]
LBB0_10:
	ldr	w3, [x23]
	mov	x0, x20
	mov	x2, #0
	bl	_SetFilePointer
	ldr	w8, [x24]
	cmp	w0, w8
	b.eq	LBB0_3
; %bb.11:
	str	wzr, [sp, #12]
	add	x3, sp, #12
	mov	x0, x20
	mov	x1, x21
	mov	w2, #32
	mov	x4, #0
	bl	_ReadFile
Lloh15:
	adrp	x8, _HDR_FAIL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _HDR_FAIL@GOTPAGEOFF]
	cbz	x0, LBB0_4
; %bb.12:
	ldr	w9, [sp, #12]
	cmp	w9, #32
	b.ne	LBB0_4
; %bb.13:
	ldr	x8, [x21, #16]
Lloh17:
	adrp	x22, _IMAGE_NT_SIGNATURE@GOTPAGE
Lloh18:
	ldr	x22, [x22, _IMAGE_NT_SIGNATURE@GOTPAGEOFF]
	ldr	x9, [x22]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.14:
	ldr	w8, [x21, #24]
	cmp	w8, #129
	b.eq	LBB0_20
; %bb.15:
	cmp	w8, #128
	b.ne	LBB0_3
; %bb.16:
	ldr	w1, [sp, #24]
	ldr	w3, [x23]
	mov	x0, x20
	mov	x2, #0
	bl	_SetFilePointer
	ldr	w8, [x24]
	cmp	w0, w8
	b.eq	LBB0_3
; %bb.17:
	str	wzr, [sp, #12]
	add	x3, sp, #12
	mov	x0, x20
	mov	x1, x19
	mov	w2, #32
	mov	x4, #0
	bl	_ReadFile
Lloh19:
	adrp	x8, _HDR_FAIL@GOTPAGE
Lloh20:
	ldr	x8, [x8, _HDR_FAIL@GOTPAGEOFF]
	cbz	x0, LBB0_4
; %bb.18:
	ldr	w9, [sp, #12]
	cmp	w9, #32
	b.ne	LBB0_4
; %bb.19:
	ldr	x9, [x19, #16]
	ldr	x10, [x22]
Lloh21:
	adrp	x11, _HDR_NT64@GOTPAGE
Lloh22:
	ldr	x11, [x11, _HDR_NT64@GOTPAGEOFF]
	cmp	x9, x10
	csel	x8, x11, x8, eq
	b	LBB0_4
LBB0_20:
Lloh23:
	adrp	x8, _HDR_NT32@GOTPAGE
Lloh24:
	ldr	x8, [x8, _HDR_NT32@GOTPAGEOFF]
	b	LBB0_4
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"handle %p\n"

	.comm	_HDR_FAIL,4,2                   ; @HDR_FAIL
	.comm	_FILE_BEGIN,4,2                 ; @FILE_BEGIN
	.comm	_INVALID_SET_FILE_POINTER,4,2   ; @INVALID_SET_FILE_POINTER
	.comm	_IMAGE_DOS_SIGNATURE,8,3        ; @IMAGE_DOS_SIGNATURE
	.comm	_IMAGE_NT_SIGNATURE,8,3         ; @IMAGE_NT_SIGNATURE
	.comm	_HDR_NT32,4,2                   ; @HDR_NT32
	.comm	_HDR_NT64,4,2                   ; @HDR_NT64
	.no_dead_strip	_IMAGEHLP_GetNTHeaders
.subsections_via_symbols
