	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_jboot_checksum                 ## -- Begin function jboot_checksum
	.p2align	4, 0x90
_jboot_checksum:                        ## @jboot_checksum
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
                                        ## kill: def $edx killed $edx def $rdx
	movl	%edi, %eax
	cmpl	$2, %edx
	jge	LBB0_2
## %bb.1:
	movl	%edx, %ecx
LBB0_5:
	cmpl	$1, %ecx
	jne	LBB0_7
## %bb.6:
	movl	(%rsi), %ecx
	addl	%ecx, %eax
	addl	$-255, %eax
LBB0_7:
	cmpl	$65536, %eax                    ## imm = 0x10000
	jb	LBB0_9
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movl	%eax, %ecx
	sarl	$16, %ecx
	addl	%ecx, %eax
	cmpl	$65535, %eax                    ## imm = 0xFFFF
	ja	LBB0_8
LBB0_9:
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	addq	$4, %rsi
	leal	-2(%rdx), %ecx
	cmpl	$3, %edx
	movl	%ecx, %edx
	jle	LBB0_5
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_3 Depth 2
	addl	(%rsi), %eax
	cmpl	$65536, %eax                    ## imm = 0x10000
	jb	LBB0_4
	.p2align	4, 0x90
LBB0_3:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%eax, %ecx
	sarl	$16, %ecx
	addl	%ecx, %eax
	cmpl	$65535, %eax                    ## imm = 0xFFFF
	ja	LBB0_3
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_jboot_checksum                 ; -- Begin function jboot_checksum
	.p2align	2
_jboot_checksum:                        ; @jboot_checksum
	.cfi_startproc
; %bb.0:
	cmp	w2, #2
	b.ge	LBB0_8
; %bb.1:
	mov	x8, x2
LBB0_2:
	cmp	w8, #1
	b.ne	LBB0_4
; %bb.3:
	ldr	w8, [x1]
	add	w8, w0, w8
	sub	w0, w8, #255
LBB0_4:
	cmp	w0, #16, lsl #12                ; =65536
	b.lo	LBB0_6
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	add	w0, w0, w0, asr #16
	lsr	w8, w0, #16
	cbnz	w8, LBB0_5
LBB0_6:
	ret
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	sub	w8, w2, #2
	cmp	w2, #3
	mov	x2, x8
	b.le	LBB0_2
LBB0_8:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_9 Depth 2
	ldr	w8, [x1], #4
	add	w0, w8, w0
	cmp	w0, #16, lsl #12                ; =65536
	b.lo	LBB0_7
LBB0_9:                                 ;   Parent Loop BB0_8 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	w0, w0, w0, asr #16
	lsr	w8, w0, #16
	cbnz	w8, LBB0_9
	b	LBB0_7
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
