	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pva_check
_pva_check:                             ## @pva_check
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	addq	$24, %rdi
	callq	_AV_RB16
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_AV_RB16
	movl	%eax, %ecx
	movq	_PVA_MAGIC@GOTPCREL(%rip), %rdx
	movl	$-1, %eax
	cmpl	(%rdx), %ecx
	jne	LBB0_5
## %bb.1:
	movl	8(%rbx), %ecx
	testl	%ecx, %ecx
	je	LBB0_5
## %bb.2:
	cmpl	$2, %ecx
	jg	LBB0_5
## %bb.3:
	cmpl	$85, 16(%rbx)
	jne	LBB0_5
## %bb.4:
	movb	20(%rbx), %cl
	andb	$-32, %cl
	movq	_PVA_MAX_PAYLOAD_LENGTH@GOTPCREL(%rip), %rax
	movl	%r14d, %edx
	addl	$8, %edx
	cmpl	(%rax), %r14d
	movl	$-1, %esi
	cmovlel	%edx, %esi
	xorl	%eax, %eax
	negb	%cl
	sbbl	%eax, %eax
	orl	%esi, %eax
LBB0_5:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PVA_MAGIC,4,2                  ## @PVA_MAGIC
	.comm	_PVA_MAX_PAYLOAD_LENGTH,4,2     ## @PVA_MAX_PAYLOAD_LENGTH
	.no_dead_strip	_pva_check
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pva_check
_pva_check:                             ; @pva_check
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	add	x0, x0, #24
	bl	_AV_RB16
	mov	x20, x0
	mov	x0, x19
	bl	_AV_RB16
Lloh0:
	adrp	x8, _PVA_MAGIC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PVA_MAGIC@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_4
; %bb.1:
	ldr	w8, [x19, #8]
	cmp	w8, #0
	ccmp	w8, #2, #0, ne
	b.gt	LBB0_4
; %bb.2:
	ldr	w8, [x19, #16]
	cmp	w8, #85
	b.ne	LBB0_4
; %bb.3:
	ldrb	w8, [x19, #20]
Lloh3:
	adrp	x9, _PVA_MAX_PAYLOAD_LENGTH@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PVA_MAX_PAYLOAD_LENGTH@GOTPAGEOFF]
	and	w8, w8, #0xe0
Lloh5:
	ldr	w9, [x9]
	cmp	w20, w9
	ccmp	w8, #0, #0, le
	add	w8, w20, #8
	csinv	w0, w8, wzr, eq
	b	LBB0_5
LBB0_4:
	mov	w0, #-1
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_PVA_MAGIC,4,2                  ; @PVA_MAGIC
	.comm	_PVA_MAX_PAYLOAD_LENGTH,4,2     ; @PVA_MAX_PAYLOAD_LENGTH
	.no_dead_strip	_pva_check
.subsections_via_symbols
