	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check_key_cksum
_check_key_cksum:                       ## @check_key_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	%r15
	pushq	%r14
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	leaq	-40(%rbp), %rdx
	movl	$2, %esi
	callq	_pullf_read_fixed
	testl	%eax, %eax
	js	LBB0_11
## %bb.1:
	movl	-40(%rbp), %r14d
	shll	$8, %r14d
	addl	-36(%rbp), %r14d
	movl	(%rbx), %eax
	leal	-128(%rax), %ecx
	cmpl	$3, %ecx
	jae	LBB0_2
## %bb.5:
	leaq	8(%rbx), %r15
	movl	20(%rbx), %esi
	xorl	%edi, %edi
	callq	_pgp_mpi_cksum
	movl	16(%rbx), %esi
	movl	%eax, %edi
	callq	_pgp_mpi_cksum
	movl	12(%rbx), %esi
	movl	%eax, %edi
	callq	_pgp_mpi_cksum
	movl	%eax, %edi
	movq	%r15, %rbx
	jmp	LBB0_8
LBB0_2:
	cmpl	$132, %eax
	je	LBB0_6
## %bb.3:
	xorl	%ecx, %ecx
	cmpl	$131, %eax
	jne	LBB0_9
## %bb.4:
	addq	$24, %rbx
	jmp	LBB0_7
LBB0_6:
	addq	$4, %rbx
LBB0_7:
	xorl	%edi, %edi
LBB0_8:
	movl	(%rbx), %esi
	callq	_pgp_mpi_cksum
	movl	%eax, %ecx
LBB0_9:
	xorl	%eax, %eax
	cmpl	%r14d, %ecx
	je	LBB0_11
## %bb.10:
	leaq	L_.str(%rip), %rdi
	callq	_px_debug
	movq	_PXE_PGP_KEYPKT_CORRUPT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_11:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-32(%rbp), %rcx
	jne	LBB0_13
## %bb.12:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"key cksum check failed"

	.comm	_PXE_PGP_KEYPKT_CORRUPT,4,2     ## @PXE_PGP_KEYPKT_CORRUPT
	.no_dead_strip	_check_key_cksum
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function check_key_cksum
_check_key_cksum:                       ; @check_key_cksum
	.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, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #8]
	mov	x2, sp
	mov	w1, #2
	bl	_pullf_read_fixed
	tbnz	w0, #31, LBB0_11
; %bb.1:
	ldp	w8, w9, [sp]
	add	w20, w9, w8, lsl #8
	ldr	w8, [x19]
	sub	w9, w8, #128
	cmp	w9, #3
	b.hs	LBB0_3
; %bb.2:
	add	x21, x19, #8
	ldr	w1, [x19, #20]
	mov	w0, #0
	bl	_pgp_mpi_cksum
	ldr	w1, [x19, #16]
	bl	_pgp_mpi_cksum
	ldr	w1, [x19, #12]
	bl	_pgp_mpi_cksum
	b	LBB0_7
LBB0_3:
	cmp	w8, #132
	b.eq	LBB0_6
; %bb.4:
	cmp	w8, #131
	b.ne	LBB0_9
; %bb.5:
	mov	w0, #0
	add	x21, x19, #24
	b	LBB0_7
LBB0_6:
	mov	w0, #0
	add	x21, x19, #4
LBB0_7:
	ldr	w1, [x21]
	bl	_pgp_mpi_cksum
	cmp	w0, w20
	b.ne	LBB0_10
LBB0_8:
	mov	w0, #0
	b	LBB0_11
LBB0_9:
	mov	w0, #0
	cmp	w0, w20
	b.eq	LBB0_8
LBB0_10:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_px_debug
Lloh5:
	adrp	x8, _PXE_PGP_KEYPKT_CORRUPT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PXE_PGP_KEYPKT_CORRUPT@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
LBB0_11:
	ldr	x8, [sp, #8]
Lloh8:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh9:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_13
; %bb.12:
	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
LBB0_13:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"key cksum check failed"

	.comm	_PXE_PGP_KEYPKT_CORRUPT,4,2     ; @PXE_PGP_KEYPKT_CORRUPT
	.no_dead_strip	_check_key_cksum
.subsections_via_symbols
