	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pgp_parse_pkt_hdr              ## -- Begin function pgp_parse_pkt_hdr
	.p2align	4, 0x90
_pgp_parse_pkt_hdr:                     ## @pgp_parse_pkt_hdr
	.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
	movl	%ecx, %r15d
	movq	%rdx, %r14
	movq	%rsi, %r12
	movq	%rdi, %rbx
	leaq	-40(%rbp), %rdx
	movl	$1, %esi
	callq	_pullf_read
	testl	%eax, %eax
	js	LBB0_13
## %bb.1:
	je	LBB0_4
## %bb.2:
	movq	-40(%rbp), %rax
	movl	(%rax), %eax
	testb	$-128, %al
	jne	LBB0_5
## %bb.3:
	leaq	L_.str(%rip), %rdi
	callq	_px_debug
LBB0_8:
	movq	_PXE_PGP_CORRUPT_DATA@GOTPCREL(%rip), %rax
LBB0_12:
	movl	(%rax), %eax
	jmp	LBB0_13
LBB0_4:
	xorl	%eax, %eax
	jmp	LBB0_13
LBB0_5:
	testb	$64, %al
	jne	LBB0_9
## %bb.6:
	movl	%eax, %edx
	andl	$3, %edx
	shrl	$2, %eax
	andl	$15, %eax
	movl	%eax, (%r12)
	cmpl	$3, %edx
	jne	LBB0_10
## %bb.7:
	testl	%r15d, %r15d
	je	LBB0_8
## %bb.11:
	movq	_PKT_CONTEXT@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_9:
	andl	$63, %eax
	movl	%eax, (%r12)
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_parse_new_len
	jmp	LBB0_13
LBB0_10:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_parse_old_len
LBB0_13:
	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	"pgp_parse_pkt_hdr: not pkt hdr"

	.comm	_PXE_PGP_CORRUPT_DATA,4,2       ## @PXE_PGP_CORRUPT_DATA
	.comm	_PKT_CONTEXT,4,2                ## @PKT_CONTEXT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pgp_parse_pkt_hdr              ; -- Begin function pgp_parse_pkt_hdr
	.p2align	2
_pgp_parse_pkt_hdr:                     ; @pgp_parse_pkt_hdr
	.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	x21, x3
	mov	x19, x2
	mov	x22, x1
	mov	x20, x0
	add	x2, sp, #8
	mov	w1, #1
	bl	_pullf_read
	tbnz	w0, #31, LBB0_9
; %bb.1:
	cbz	w0, LBB0_9
; %bb.2:
	ldr	x8, [sp, #8]
	ldr	w8, [x8]
	tbnz	w8, #7, LBB0_4
; %bb.3:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_px_debug
Lloh2:
	adrp	x8, _PXE_PGP_CORRUPT_DATA@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PXE_PGP_CORRUPT_DATA@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	b	LBB0_9
LBB0_4:
	tbnz	w8, #6, LBB0_7
; %bb.5:
	and	w2, w8, #0x3
	ubfx	w8, w8, #2, #4
	str	w8, [x22]
	cmp	w2, #3
	b.ne	LBB0_8
; %bb.6:
Lloh5:
	adrp	x8, _PKT_CONTEXT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PKT_CONTEXT@GOTPAGEOFF]
Lloh7:
	adrp	x9, _PXE_PGP_CORRUPT_DATA@GOTPAGE
Lloh8:
	ldr	x9, [x9, _PXE_PGP_CORRUPT_DATA@GOTPAGEOFF]
	cmp	w21, #0
	csel	x8, x9, x8, eq
	ldr	w0, [x8]
	b	LBB0_9
LBB0_7:
	and	w8, w8, #0x3f
	str	w8, [x22]
	mov	x0, x20
	mov	x1, x19
	bl	_parse_new_len
	b	LBB0_9
LBB0_8:
	mov	x0, x20
	mov	x1, x19
	bl	_parse_old_len
LBB0_9:
	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 AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pgp_parse_pkt_hdr: not pkt hdr"

	.comm	_PXE_PGP_CORRUPT_DATA,4,2       ; @PXE_PGP_CORRUPT_DATA
	.comm	_PKT_CONTEXT,4,2                ; @PKT_CONTEXT
.subsections_via_symbols
