	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function control_cksum
_control_cksum:                         ## @control_cksum
	.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
                                        ## kill: def $esi killed $esi def $rsi
	cmpl	$3, %esi
	jl	LBB0_16
## %bb.1:
	leal	-2(%rsi), %r8d
	xorl	%eax, %eax
	movl	$0, %ecx
	cmpl	$3, %esi
	je	LBB0_14
## %bb.2:
	movl	%r8d, %r10d
	leaq	-1(%r10), %r9
	cmpq	$8, %r9
	jae	LBB0_4
## %bb.3:
	xorl	%edx, %edx
	movl	$1, %ecx
	jmp	LBB0_12
LBB0_4:
	movq	%r9, %rcx
	andq	$-8, %rcx
	leaq	-8(%rcx), %rdx
	movq	%rdx, %rbx
	shrq	$3, %rbx
	incq	%rbx
	movl	%ebx, %r11d
	andl	$3, %r11d
	cmpq	$24, %rdx
	jae	LBB0_6
## %bb.5:
	pxor	%xmm0, %xmm0
	xorl	%edx, %edx
	pxor	%xmm1, %xmm1
	jmp	LBB0_8
LBB0_6:
	andq	$-4, %rbx
	pxor	%xmm0, %xmm0
	xorl	%edx, %edx
	pxor	%xmm1, %xmm1
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movdqu	4(%rdi,%rdx,4), %xmm2
	paddd	%xmm0, %xmm2
	movdqu	20(%rdi,%rdx,4), %xmm0
	paddd	%xmm1, %xmm0
	movdqu	36(%rdi,%rdx,4), %xmm1
	movdqu	52(%rdi,%rdx,4), %xmm3
	movdqu	68(%rdi,%rdx,4), %xmm4
	paddd	%xmm1, %xmm4
	paddd	%xmm2, %xmm4
	movdqu	84(%rdi,%rdx,4), %xmm2
	paddd	%xmm3, %xmm2
	paddd	%xmm0, %xmm2
	movdqu	100(%rdi,%rdx,4), %xmm0
	paddd	%xmm4, %xmm0
	movdqu	116(%rdi,%rdx,4), %xmm1
	paddd	%xmm2, %xmm1
	addq	$32, %rdx
	addq	$-4, %rbx
	jne	LBB0_7
LBB0_8:
	testq	%r11, %r11
	je	LBB0_10
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	leaq	(,%rdx,4), %rbx
	orq	$4, %rbx
	movdqu	(%rdi,%rbx), %xmm2
	paddd	%xmm2, %xmm0
	movdqu	16(%rdi,%rbx), %xmm2
	paddd	%xmm2, %xmm1
	addq	$8, %rdx
	decq	%r11
	jne	LBB0_9
LBB0_10:
	paddd	%xmm1, %xmm0
	pshufd	$238, %xmm0, %xmm1              ## xmm1 = xmm0[2,3,2,3]
	paddd	%xmm0, %xmm1
	pshufd	$85, %xmm1, %xmm0               ## xmm0 = xmm1[1,1,1,1]
	paddd	%xmm1, %xmm0
	movd	%xmm0, %edx
	cmpq	%rcx, %r9
	je	LBB0_13
## %bb.11:
	orq	$1, %rcx
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	addl	(%rdi,%rcx,4), %edx
	incq	%rcx
	cmpq	%rcx, %r10
	jne	LBB0_12
LBB0_13:
	movzwl	%dx, %ecx
LBB0_14:
	movslq	%r8d, %rdx
	movl	(%rdi,%rdx,4), %edx
	shll	$8, %edx
	decl	%esi
	addl	(%rdi,%rsi,4), %edx
	cmpl	%edx, %ecx
	je	LBB0_17
## %bb.15:
	leaq	L_.str(%rip), %rdi
	callq	_px_debug
LBB0_16:
	movq	_PXE_PGP_WRONG_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_17:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PXE_PGP_WRONG_KEY,4,2          ## @PXE_PGP_WRONG_KEY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pubenc cksum failed"

	.no_dead_strip	_control_cksum
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function control_cksum
_control_cksum:                         ; @control_cksum
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	cmp	w1, #3
	b.lt	LBB0_14
; %bb.1:
	sub	w8, w1, #2
	cmp	w1, #3
	b.ne	LBB0_3
; %bb.2:
	mov	w9, #0
	b	LBB0_11
LBB0_3:
	sub	x10, x8, #1
	cmp	x10, #16
	b.hs	LBB0_5
; %bb.4:
	mov	w12, #0
	mov	w9, #1
	b	LBB0_8
LBB0_5:
	and	x11, x10, #0xfffffffffffffff0
	orr	x9, x11, #0x1
	add	x12, x0, #36
	movi.2d	v0, #0000000000000000
	mov	x13, x11
	movi.2d	v1, #0000000000000000
	movi.2d	v2, #0000000000000000
	movi.2d	v3, #0000000000000000
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q4, q5, [x12, #-32]
	ldp	q6, q7, [x12], #64
	add.4s	v0, v4, v0
	add.4s	v1, v5, v1
	add.4s	v2, v6, v2
	add.4s	v3, v7, v3
	subs	x13, x13, #16
	b.ne	LBB0_6
; %bb.7:
	add.4s	v0, v1, v0
	add.4s	v0, v2, v0
	add.4s	v0, v3, v0
	addv.4s	s0, v0
	fmov	w12, s0
	cmp	x10, x11
	b.eq	LBB0_10
LBB0_8:
	add	x10, x0, x9, lsl #2
	sub	x9, x8, x9
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x10], #4
	add	w12, w11, w12
	subs	x9, x9, #1
	b.ne	LBB0_9
LBB0_10:
	and	w9, w12, #0xffff
LBB0_11:
	ldr	w8, [x0, w8, sxtw #2]
	sub	w10, w1, #1
	ldr	w10, [x0, w10, uxtw #2]
	add	w8, w10, w8, lsl #8
	cmp	w9, w8
	b.ne	LBB0_13
; %bb.12:
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_13:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_px_debug
LBB0_14:
Lloh2:
	adrp	x8, _PXE_PGP_WRONG_KEY@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PXE_PGP_WRONG_KEY@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_PXE_PGP_WRONG_KEY,4,2          ; @PXE_PGP_WRONG_KEY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pubenc cksum failed"

	.no_dead_strip	_control_cksum
.subsections_via_symbols
