	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function compute_checksum
_compute_checksum:                      ## @compute_checksum
	.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	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	(%rdi), %esi
	movl	16(%rdi), %edx
	leaq	L_.str(%rip), %rcx
	callq	_range_check
	movl	(%r14), %edi
	notl	%edi
	andl	$1, %edi
	callq	_assert
	movslq	4(%r14), %rax
	xorl	%ebx, %ebx
	cmpq	$9, %rax
	jb	LBB0_7
## %bb.1:
	xorl	%r12d, %r12d
	leaq	-40(%rbp), %r15
	movq	%rax, %rcx
	xorl	%ebx, %ebx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	$0, -40(%rbp)
	xorl	%ecx, %ecx
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	addl	%ecx, %ebx
	movl	%ebx, %ecx
	shrl	$16, %ecx
	addl	%ebx, %ecx
	movzwl	%cx, %ebx
	movslq	%eax, %rcx
	leaq	10(%r12), %rdx
	addq	$2, %r12
	cmpq	%rcx, %rdx
	jae	LBB0_7
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %edx
	cmpq	%rdx, %r12
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	addl	$2, %edx
	cmpq	%rdx, %r12
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	8(%r12), %rax
	xorl	%edi, %edi
	cmpq	%rcx, %rax
	setbe	%dil
	callq	_assert
	movq	8(%r14), %rsi
	addq	%r12, %rsi
	movq	%r15, %rdi
	movl	$8, %edx
	callq	_memcpy
	movq	-40(%rbp), %rcx
	movl	4(%r14), %eax
	jmp	LBB0_6
LBB0_7:
	addl	%eax, %ebx
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PE checksum"

	.no_dead_strip	_compute_checksum
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function compute_checksum
_compute_checksum:                      ; @compute_checksum
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	ldr	w1, [x0]
	ldr	w2, [x0, #16]
Lloh0:
	adrp	x3, l_.str@PAGE
Lloh1:
	add	x3, x3, l_.str@PAGEOFF
	bl	_range_check
	ldr	w8, [x19]
	mvn	w8, w8
	and	w0, w8, #0x1
	bl	_assert
	ldr	w8, [x19, #4]
	cmp	w8, #9
	b.lo	LBB0_6
; %bb.1:
	mov	x21, #0
	mov	w20, #0
	mov	x9, x8
	sxtw	x9, w9
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x8, x21, #8
	cmp	x8, x9
	cset	w0, ls
	bl	_assert
	ldr	x8, [x19, #8]
	add	x1, x21, x8
	add	x0, sp, #8
	mov	w2, #8
	bl	_memcpy
	ldr	x9, [sp, #8]
	ldr	w8, [x19, #4]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w9, w20, w9
	add	w9, w9, w9, lsr #16
	and	w20, w9, #0xffff
	sxtw	x9, w8
	add	x10, x21, #10
	add	x21, x21, #2
	cmp	x10, x9
	b.hs	LBB0_7
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x19]
	add	w11, w10, #2
	cmp	x21, x10
	ccmp	x21, x11, #4, ne
	b.ne	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x9, #0
	str	xzr, [sp, #8]
	b	LBB0_3
LBB0_6:
	mov	w20, #0
LBB0_7:
	add	w0, w8, w20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PE checksum"

	.no_dead_strip	_compute_checksum
.subsections_via_symbols
