	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function prism2_pda_ok
_prism2_pda_ok:                         ## @prism2_pda_ok
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movl	(%rdi), %edi
	cmpl	$255, %edi
	jne	LBB0_5
## %bb.1:
	cmpl	$0, 4(%r15)
	jne	LBB0_5
## %bb.2:
	cmpl	$255, 8(%r15)
	jne	LBB0_5
## %bb.3:
	xorl	%r14d, %r14d
	cmpl	$0, 12(%r15)
	je	LBB0_14
## %bb.4:
	movq	_PRISM2_PDA_SIZE@GOTPCREL(%rip), %rax
	cmpl	$3, (%rax)
	jg	LBB0_6
	jmp	LBB0_14
LBB0_5:
	movq	_PRISM2_PDA_SIZE@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	cmpl	$4, (%rax)
	jl	LBB0_14
LBB0_6:
	callq	_le16_to_cpu
	movl	%eax, %r13d
	movl	4(%r15), %edi
	callq	_le16_to_cpu
	xorl	%r14d, %r14d
	testl	%r13d, %r13d
	je	LBB0_14
## %bb.7:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	leal	(%rbx,%r13), %edx
	movq	_PRISM2_PDA_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%esi, %ecx
	shrl	$31, %ecx
	addl	%esi, %ecx
	sarl	%ecx
	cmpl	%ecx, %edx
	jg	LBB0_14
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	testl	%eax, %eax
	jne	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	cmpl	$2, %r13d
	je	LBB0_11
LBB0_12:                                ##   in Loop: Header=BB0_8 Depth=1
	leal	(%rbx,%r13), %r12d
	addl	$2, %r12d
	cmpl	%ecx, %r12d
	jge	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_8 Depth=1
	addl	%r13d, %ebx
	incl	%ebx
	movslq	%ebx, %rax
	movl	(%r15,%rax,4), %edi
	callq	_le16_to_cpu
	movl	%eax, %r13d
	movslq	%r12d, %rax
	movl	(%r15,%rax,4), %edi
	callq	_le16_to_cpu
	testl	%r13d, %r13d
	jne	LBB0_8
	jmp	LBB0_14
LBB0_11:
	movl	$1, %r14d
LBB0_14:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PRISM2_PDA_SIZE,4,2            ## @PRISM2_PDA_SIZE
	.no_dead_strip	_prism2_pda_ok
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function prism2_pda_ok
_prism2_pda_ok:                         ; @prism2_pda_ok
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	ldr	w0, [x0]
Lloh0:
	adrp	x21, _PRISM2_PDA_SIZE@GOTPAGE
Lloh1:
	ldr	x21, [x21, _PRISM2_PDA_SIZE@GOTPAGEOFF]
	cmp	w0, #255
	b.ne	LBB0_5
; %bb.1:
	ldr	w8, [x19, #4]
	cbnz	w8, LBB0_5
; %bb.2:
	ldr	w8, [x19, #8]
	cmp	w8, #255
	b.ne	LBB0_5
; %bb.3:
	mov	w8, #0
	ldr	w9, [x19, #12]
	cbz	w9, LBB0_14
; %bb.4:
	ldr	w9, [x21]
	cmp	w9, #3
	b.gt	LBB0_6
	b	LBB0_14
LBB0_5:
	ldr	w8, [x21]
	cmp	w8, #4
	b.lt	LBB0_13
LBB0_6:
	bl	_le16_to_cpu
	mov	x20, x0
	ldr	w0, [x19, #4]
	bl	_le16_to_cpu
	cbz	w20, LBB0_13
; %bb.7:
	mov	w22, #0
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x21]
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w8, w8, #1
	add	w9, w20, w22
	cmp	w9, w8
	b.gt	LBB0_13
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	cbnz	w0, LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	cmp	w20, #2
	b.eq	LBB0_15
LBB0_11:                                ;   in Loop: Header=BB0_8 Depth=1
	add	w9, w22, w20
	add	w22, w9, #1
	sxtw	x9, w22
	add	x23, x9, #1
	cmp	w23, w8
	b.ge	LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	w0, [x19, x9, lsl #2]
	bl	_le16_to_cpu
	mov	x20, x0
	ldr	w0, [x19, x23, lsl #2]
	bl	_le16_to_cpu
	cbnz	w20, LBB0_8
LBB0_13:
	mov	w8, #0
LBB0_14:
	mov	x0, x8
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_15:
	mov	w8, #1
	b	LBB0_14
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_PRISM2_PDA_SIZE,4,2            ; @PRISM2_PDA_SIZE
	.no_dead_strip	_prism2_pda_ok
.subsections_via_symbols
