	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function IMAGEHLP_RecalculateChecksum
_IMAGEHLP_RecalculateChecksum:          ## @IMAGEHLP_RecalculateChecksum
	.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
	movl	%edi, %r15d
	leaq	L_.str(%rip), %rdi
	movl	%r15d, %esi
	callq	_TRACE
	leaq	-48(%rbp), %rsi
	leaq	-64(%rbp), %r14
	leaq	-56(%rbp), %rbx
	movl	%r15d, %edi
	movq	%r14, %rdx
	movq	%rbx, %rcx
	callq	_IMAGEHLP_GetNTHeaders
	movq	_HDR_NT32@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_3
## %bb.1:
	movq	_HDR_NT64@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_10
## %bb.2:
	movq	%rbx, %r14
LBB0_3:
	movq	_PAGE_READONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r15d, %edi
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_CreateFileMappingW
	movq	_FALSE@GOTPCREL(%rip), %r13
	testl	%eax, %eax
	je	LBB0_12
## %bb.4:
	movl	%eax, %ebx
	movq	_FILE_MAP_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_MapViewOfFile
	testl	%eax, %eax
	je	LBB0_11
## %bb.5:
	movl	%eax, %r12d
	movl	%r15d, %edi
	xorl	%esi, %esi
	callq	_GetFileSize
	movl	$0, (%r14)
	leaq	-68(%rbp), %rdx
	movl	%r12d, %edi
	movl	%eax, %esi
	movq	%r14, %rcx
	callq	_CheckSumMappedFile
	movl	%r12d, %edi
	callq	_UnmapViewOfFile
	movl	%ebx, %edi
	callq	_CloseHandle
	cmpl	$0, (%r14)
	je	LBB0_12
## %bb.6:
	movl	-48(%rbp), %esi
	movq	_FILE_BEGIN@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%r15d, %edi
	xorl	%edx, %edx
	callq	_SetFilePointer
	movq	_INVALID_SET_FILE_POINTER@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_12
## %bb.7:
	movl	$0, -44(%rbp)
	leaq	-44(%rbp), %rcx
	movl	%r15d, %edi
	movq	%r14, %rsi
	movl	$4, %edx
	xorl	%r8d, %r8d
	callq	_WriteFile
	testl	%eax, %eax
	je	LBB0_12
## %bb.8:
	cmpl	$4, -44(%rbp)
	jne	LBB0_10
## %bb.9:
	movq	_TRUE@GOTPCREL(%rip), %r13
	jmp	LBB0_12
LBB0_10:
	movq	_FALSE@GOTPCREL(%rip), %r13
	jmp	LBB0_12
LBB0_11:
	movl	%ebx, %edi
	callq	_CloseHandle
LBB0_12:
	movl	(%r13), %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"handle %p\n"

	.comm	_HDR_NT32,4,2                   ## @HDR_NT32
	.comm	_HDR_NT64,4,2                   ## @HDR_NT64
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_PAGE_READONLY,4,2              ## @PAGE_READONLY
	.comm	_FILE_MAP_READ,4,2              ## @FILE_MAP_READ
	.comm	_FILE_BEGIN,4,2                 ## @FILE_BEGIN
	.comm	_INVALID_SET_FILE_POINTER,4,2   ## @INVALID_SET_FILE_POINTER
	.comm	_TRUE,4,2                       ## @TRUE
	.no_dead_strip	_IMAGEHLP_RecalculateChecksum
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function IMAGEHLP_RecalculateChecksum
_IMAGEHLP_RecalculateChecksum:          ; @IMAGEHLP_RecalculateChecksum
	.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, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_TRACE
	add	x1, sp, #20
	add	x2, sp, #16
	add	x3, sp, #8
	mov	x0, x19
	bl	_IMAGEHLP_GetNTHeaders
Lloh2:
	adrp	x8, _HDR_NT32@GOTPAGE
Lloh3:
	ldr	x8, [x8, _HDR_NT32@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_2
; %bb.1:
	add	x20, sp, #16
	b	LBB0_4
LBB0_2:
Lloh5:
	adrp	x8, _HDR_NT64@GOTPAGE
Lloh6:
	ldr	x8, [x8, _HDR_NT64@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_11
; %bb.3:
	add	x20, sp, #8
LBB0_4:
Lloh8:
	adrp	x8, _PAGE_READONLY@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PAGE_READONLY@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, #0
	mov	w3, #0
	mov	w4, #0
	mov	x5, #0
	bl	_CreateFileMappingW
	cbz	w0, LBB0_11
; %bb.5:
	mov	x21, x0
Lloh11:
	adrp	x8, _FILE_MAP_READ@GOTPAGE
Lloh12:
	ldr	x8, [x8, _FILE_MAP_READ@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	w2, #0
	mov	w3, #0
	mov	w4, #0
	bl	_MapViewOfFile
	cbz	w0, LBB0_10
; %bb.6:
	mov	x22, x0
	mov	x0, x19
	mov	x1, #0
	bl	_GetFileSize
	mov	x1, x0
	str	wzr, [x20]
	add	x2, sp, #24
	mov	x0, x22
	mov	x3, x20
	bl	_CheckSumMappedFile
	mov	x0, x22
	bl	_UnmapViewOfFile
	mov	x0, x21
	bl	_CloseHandle
	ldr	w8, [x20]
	cbz	w8, LBB0_11
; %bb.7:
	ldr	w1, [sp, #20]
Lloh14:
	adrp	x8, _FILE_BEGIN@GOTPAGE
Lloh15:
	ldr	x8, [x8, _FILE_BEGIN@GOTPAGEOFF]
Lloh16:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x2, #0
	bl	_SetFilePointer
Lloh17:
	adrp	x8, _INVALID_SET_FILE_POINTER@GOTPAGE
Lloh18:
	ldr	x8, [x8, _INVALID_SET_FILE_POINTER@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	cmp	w0, w8
	b.eq	LBB0_11
; %bb.8:
	str	wzr, [sp, #28]
	add	x3, sp, #28
	mov	x0, x19
	mov	x1, x20
	mov	w2, #4
	mov	x4, #0
	bl	_WriteFile
Lloh20:
	adrp	x8, _FALSE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
	cbz	w0, LBB0_12
; %bb.9:
	ldr	w9, [sp, #28]
Lloh22:
	adrp	x10, _TRUE@GOTPAGE
Lloh23:
	ldr	x10, [x10, _TRUE@GOTPAGEOFF]
	cmp	w9, #4
	csel	x8, x10, x8, eq
	b	LBB0_12
LBB0_10:
	mov	x0, x21
	bl	_CloseHandle
LBB0_11:
Lloh24:
	adrp	x8, _FALSE@GOTPAGE
Lloh25:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
LBB0_12:
	ldr	w0, [x8]
	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	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"handle %p\n"

	.comm	_HDR_NT32,4,2                   ; @HDR_NT32
	.comm	_HDR_NT64,4,2                   ; @HDR_NT64
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_PAGE_READONLY,4,2              ; @PAGE_READONLY
	.comm	_FILE_MAP_READ,4,2              ; @FILE_MAP_READ
	.comm	_FILE_BEGIN,4,2                 ; @FILE_BEGIN
	.comm	_INVALID_SET_FILE_POINTER,4,2   ; @INVALID_SET_FILE_POINTER
	.comm	_TRUE,4,2                       ; @TRUE
	.no_dead_strip	_IMAGEHLP_RecalculateChecksum
.subsections_via_symbols
