	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function apply_prediction
_apply_prediction:                      ## @apply_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	%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	%rsi, %rbx
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	cmpl	$0, 8(%rsi)
	jne	LBB0_2
## %bb.1:
	movq	(%rbx), %rdi
	callq	_reset_all_predictors
	movl	$1, 8(%rbx)
LBB0_2:
	movq	16(%rbx), %rax
	movq	(%rax), %rax
	movq	_EIGHT_SHORT_SEQUENCE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.15:
	movq	(%rbx), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_reset_all_predictors           ## TAILCALL
LBB0_3:
	movq	_ff_aac_pred_sfb_max@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdx
	movq	8(%rdx), %rax
	cmpl	$0, (%rcx,%rax,4)
	jle	LBB0_13
## %bb.4:
	movq	24(%rbx), %rax
	xorl	%r12d, %r12d
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_7 Depth=1
	movq	_ff_aac_pred_sfb_max@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	(%rdx), %rdx
LBB0_6:                                 ##   in Loop: Header=BB0_7 Depth=1
	movq	8(%rdx), %rsi
	movslq	(%rcx,%rsi,4), %rsi
	cmpq	%rsi, %r12
	jge	LBB0_13
LBB0_7:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_9 Depth 2
	movq	%r12, %r13
	movslq	(%rax,%r12,4), %r15
	incq	%r12
	cmpl	4(%rax,%r13,4), %r15d
	jge	LBB0_6
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	leaq	(,%r15,4), %r14
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_9 Depth=2
	movq	40(%rbx), %rax
	cmpq	$0, (%rax,%r13,8)
	setne	%al
LBB0_12:                                ##   in Loop: Header=BB0_9 Depth=2
	movzbl	%al, %edx
	callq	_predict
	incq	%r15
	movq	24(%rbx), %rax
	movslq	(%rax,%r12,4), %rcx
	addq	$4, %r14
	cmpq	%rcx, %r15
	jge	LBB0_5
LBB0_9:                                 ##   Parent Loop BB0_7 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%rbx), %rdi
	addq	%r14, %rdi
	movq	56(%rbx), %rsi
	addq	%r14, %rsi
	cmpq	$0, 48(%rbx)
	jne	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=2
	xorl	%eax, %eax
	jmp	LBB0_12
LBB0_13:
	movq	32(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_16
## %bb.14:
	movq	(%rbx), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_reset_predictor_group          ## TAILCALL
LBB0_16:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EIGHT_SHORT_SEQUENCE,8,3       ## @EIGHT_SHORT_SEQUENCE
	.comm	_ff_aac_pred_sfb_max,8,3        ## @ff_aac_pred_sfb_max
	.no_dead_strip	_apply_prediction
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function apply_prediction
_apply_prediction:                      ; @apply_prediction
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x1
	mov	x20, x0
	ldr	w8, [x1, #8]
	cbnz	w8, LBB0_2
; %bb.1:
	ldr	x0, [x19]
	bl	_reset_all_predictors
	mov	w8, #1
	str	w8, [x19, #8]
LBB0_2:
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
Lloh0:
	adrp	x9, _EIGHT_SHORT_SEQUENCE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _EIGHT_SHORT_SEQUENCE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
	ldr	x0, [x19]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_reset_all_predictors
LBB0_4:
Lloh3:
	adrp	x21, _ff_aac_pred_sfb_max@GOTPAGE
Lloh4:
	ldr	x21, [x21, _ff_aac_pred_sfb_max@GOTPAGEOFF]
	ldr	x9, [x21]
	ldr	x10, [x20]
	ldr	x8, [x10, #8]
	ldr	w8, [x9, x8, lsl #2]
	cmp	w8, #1
	b.lt	LBB0_14
; %bb.5:
	mov	x22, #0
	ldr	x8, [x19, #24]
	b	LBB0_8
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=1
	ldr	x9, [x21]
	ldr	x10, [x20]
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	ldr	x11, [x10, #8]
	ldrsw	x11, [x9, x11, lsl #2]
	cmp	x22, x11
	b.ge	LBB0_14
LBB0_8:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_12 Depth 2
	mov	x23, x22
	ldrsw	x24, [x8, x22, lsl #2]
	add	x22, x22, #1
	ldr	w11, [x8, x22, lsl #2]
	cmp	w24, w11
	b.ge	LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	lsl	x25, x24, #2
	b	LBB0_12
LBB0_10:                                ;   in Loop: Header=BB0_12 Depth=2
	ldr	x8, [x19, #40]
	ldr	x8, [x8, x23, lsl #3]
	cmp	x8, #0
	cset	w2, ne
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=2
	ldr	x8, [x19]
	add	x0, x8, x25
	ldr	x8, [x19, #56]
	add	x1, x8, x25
	bl	_predict
	add	x24, x24, #1
	ldr	x8, [x19, #24]
	ldrsw	x9, [x8, x22, lsl #2]
	add	x25, x25, #4
	cmp	x24, x9
	b.ge	LBB0_6
LBB0_12:                                ;   Parent Loop BB0_8 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x19, #48]
	cbnz	x8, LBB0_10
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=2
	mov	w2, #0
	b	LBB0_11
LBB0_14:
	ldr	x1, [x19, #32]
	cbz	x1, LBB0_16
; %bb.15:
	ldr	x0, [x19]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_reset_predictor_group
LBB0_16:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_EIGHT_SHORT_SEQUENCE,8,3       ; @EIGHT_SHORT_SEQUENCE
	.comm	_ff_aac_pred_sfb_max,8,3        ; @ff_aac_pred_sfb_max
	.no_dead_strip	_apply_prediction
.subsections_via_symbols
