	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function x8_get_prediction
_x8_get_prediction:                     ## @x8_get_prediction
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movslq	4(%rdi), %rcx
	movl	8(%rdi), %eax
	movl	12(%rdi), %edx
	addl	%edx, %edx
	decl	%edx
	xorl	%esi, %esi
	cmpl	%edx, %ecx
	setge	%sil
	xorl	%edx, %edx
	testl	%ecx, %ecx
	sete	%dl
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	leal	(%rdx,%rdi,2), %edx
	leal	(%rdx,%rsi,4), %esi
	movl	%esi, (%rbx)
	cmpl	$3, %edx
	je	LBB0_5
## %bb.1:
	cmpl	$2, %edx
	je	LBB0_4
## %bb.2:
	cmpl	$1, %edx
	jne	LBB0_6
## %bb.3:
	movq	24(%rbx), %rcx
	notl	%eax
	andl	$1, %eax
	movl	(%rcx,%rax,4), %eax
	sarl	$2, %eax
	movl	%eax, 16(%rbx)
	movl	$1, %edx
	jmp	LBB0_10
LBB0_5:
	movl	$16, 16(%rbx)
	xorl	%edx, %edx
	jmp	LBB0_10
LBB0_4:
	movq	24(%rbx), %rax
	movl	-8(%rax,%rcx,8), %eax
	sarl	$2, %eax
	movl	%eax, 16(%rbx)
	movl	$2, %edx
	jmp	LBB0_10
LBB0_6:
	movq	24(%rbx), %rdx
	andl	$1, %eax
	movl	%eax, %esi
	xorl	$1, %esi
	leal	(%rsi,%rcx,2), %edi
	movslq	%edi, %rdi
	movl	(%rdx,%rdi,4), %r15d
	leal	(%rax,%rcx,2), %eax
	addl	$-2, %eax
	cltq
	movl	(%rdx,%rax,4), %r12d
	leal	-2(%rsi,%rcx,2), %eax
	cltq
	movl	(%rdx,%rax,4), %r14d
	movl	%r15d, %edi
	movl	%r12d, %esi
	callq	_FFMIN
	movl	%eax, 16(%rbx)
	movl	8(%rbx), %ecx
	testl	%ecx, 4(%rbx)
	je	LBB0_8
## %bb.7:
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_FFMIN
LBB0_8:
	addl	%r15d, %r15d
	andl	$6, %r15d
	andl	$3, %r12d
	leal	(%r15,%r12,8), %ecx
	movl	$-1379132, %edx                 ## imm = 0xFFEAF4C4
                                        ## kill: def $cl killed $cl killed $ecx
	shrl	%cl, %edx
	sarl	$2, %eax
	movl	%eax, 16(%rbx)
	andl	$3, %edx
	cmpl	$3, %edx
	jne	LBB0_10
## %bb.9:
	addl	%r14d, %r14d
	andl	$6, %r14d
	xorl	%eax, %eax
	cmpl	$13, 36(%rbx)
	setge	%al
	leal	(%r14,%rax,8), %ecx
	movl	$16771800, %edx                 ## imm = 0xFFEAD8
                                        ## kill: def $cl killed $cl killed $ecx
	shrl	%cl, %edx
	andl	$3, %edx
LBB0_10:
	movl	%edx, 32(%rbx)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_x8_get_prediction
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function x8_get_prediction
_x8_get_prediction:                     ; @x8_get_prediction
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, x0
	ldr	w8, [x0, #12]
	lsl	w8, w8, #1
	sub	w10, w8, #1
	ldp	w9, w8, [x0, #4]
	cmp	w9, w10
	cset	w11, ge
	cmp	w9, #0
	cset	w10, eq
	cmp	x8, #0
	cset	w12, eq
	bfi	w10, w12, #1, #1
	mov	x12, x10
	bfi	w12, w11, #2, #1
	str	w12, [x0]
	cmp	w10, #3
	b.eq	LBB0_4
; %bb.1:
	cmp	w10, #2
	b.eq	LBB0_5
; %bb.2:
	cmp	w10, #1
	b.ne	LBB0_6
; %bb.3:
	ldr	x9, [x19, #24]
	mvn	w8, w8
	and	x8, x8, #0x1
	ldr	w8, [x9, x8, lsl #2]
	asr	w8, w8, #2
	str	w8, [x19, #16]
	mov	w8, #1
	b	LBB0_10
LBB0_4:
	mov	w8, #0
	mov	w9, #16
	str	w9, [x19, #16]
	b	LBB0_10
LBB0_5:
	ldr	x8, [x19, #24]
	lsl	w9, w9, #1
	sub	w9, w9, #2
	ldr	w8, [x8, w9, sxtw #2]
	asr	w8, w8, #2
	str	w8, [x19, #16]
	mov	w8, #2
	b	LBB0_10
LBB0_6:
	ldr	x10, [x19, #24]
	lsl	w11, w9, #1
	and	w12, w8, #0x1
	eor	w12, w12, #0x1
	mov	x13, x12
	bfi	w13, w9, #1, #31
	ldr	w21, [x10, w13, sxtw #2]
	sub	w9, w11, #2
	orr	w11, w12, w9
	bfxil	w9, w8, #0, #1
	ldr	w22, [x10, w9, sxtw #2]
	ldr	w20, [x10, w11, sxtw #2]
	mov	x0, x21
	mov	x1, x22
	bl	_FFMIN
	mov	x1, x0
	str	w1, [x19, #16]
	ldp	w8, w9, [x19, #4]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.7:
	mov	x0, x20
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_FFMIN
	mov	x1, x0
LBB0_8:
	asr	w8, w1, #2
	str	w8, [x19, #16]
	ubfiz	w8, w21, #1, #2
	bfi	w8, w22, #3, #2
	mov	w9, #62660
	movk	w9, #65514, lsl #16
	lsr	w8, w9, w8
	and	w8, w8, #0x3
	cmp	w8, #3
	b.ne	LBB0_10
; %bb.9:
	ubfiz	w8, w20, #1, #2
	ldr	w9, [x19, #36]
	cmp	w9, #12
	cset	w9, gt
	bfi	w8, w9, #3, #1
	mov	w9, #60120
	movk	w9, #255, lsl #16
	lsr	w8, w9, w8
	and	w8, w8, #0x3
LBB0_10:
	str	w8, [x19, #32]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_x8_get_prediction
.subsections_via_symbols
