	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_aac_apply_main_pred         ## -- Begin function ff_aac_apply_main_pred
	.p2align	4, 0x90
_ff_aac_apply_main_pred:                ## @ff_aac_apply_main_pred
	.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, %r13
	movl	48(%rsi), %eax
	movq	_ff_aac_pred_sfb_max@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rdi), %rdx
	movl	(%rcx,%rdx,4), %esi
	movl	%eax, %edi
	callq	_FFMIN
	movq	8(%r13), %rcx
	movq	(%rcx), %rcx
	movq	_EIGHT_SHORT_SEQUENCE@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_1
## %bb.12:
	movq	(%r13), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_reset_all_predictors           ## TAILCALL
LBB0_1:
	testl	%eax, %eax
	jle	LBB0_10
## %bb.2:
	movl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	16(%r13), %rax
	xorl	%r15d, %r15d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_4 Depth=1
	cmpq	-48(%rbp), %r15                 ## 8-byte Folded Reload
	je	LBB0_10
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
	movq	%r15, %r12
	movslq	(%rax,%r15,4), %rbx
	incq	%r15
	cmpl	4(%rax,%r12,4), %ebx
	jge	LBB0_3
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	leaq	(,%rbx,4), %r14
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=2
	movq	32(%r13), %rax
	cmpq	$0, (%rax,%r12,8)
	setne	%al
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=2
	movzbl	%al, %ecx
	callq	_predict
	incq	%rbx
	movq	16(%r13), %rax
	movslq	(%rax,%r15,4), %rcx
	addq	$4, %r14
	cmpq	%rcx, %rbx
	jge	LBB0_3
LBB0_6:                                 ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%r13), %rdi
	addq	%r14, %rdi
	movq	64(%r13), %rsi
	addq	%r14, %rsi
	movq	56(%r13), %rdx
	addq	%r14, %rdx
	cmpq	$0, 40(%r13)
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=2
	xorl	%eax, %eax
	jmp	LBB0_9
LBB0_10:
	movq	24(%r13), %rsi
	testq	%rsi, %rsi
	je	LBB0_13
## %bb.11:
	movq	%r13, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_reset_predictor_group          ## TAILCALL
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ff_aac_pred_sfb_max,8,3        ## @ff_aac_pred_sfb_max
	.comm	_EIGHT_SHORT_SEQUENCE,8,3       ## @EIGHT_SHORT_SEQUENCE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_aac_apply_main_pred         ; -- Begin function ff_aac_apply_main_pred
	.p2align	2
_ff_aac_apply_main_pred:                ; @ff_aac_apply_main_pred
	.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, x1
	ldr	w8, [x1, #48]
Lloh0:
	adrp	x9, _ff_aac_pred_sfb_max@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ff_aac_pred_sfb_max@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldr	x10, [x0]
	ldr	w1, [x9, x10, lsl #2]
	mov	x0, x8
	bl	_FFMIN
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _EIGHT_SHORT_SEQUENCE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _EIGHT_SHORT_SEQUENCE@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	ldr	x0, [x19]
	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
	b	_reset_all_predictors
LBB0_2:
	cmp	w0, #1
	b.lt	LBB0_11
; %bb.3:
	mov	x21, #0
	mov	w20, w0
	ldr	x8, [x19, #16]
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	cmp	x21, x20
	b.eq	LBB0_11
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_9 Depth 2
	mov	x22, x21
	ldrsw	x23, [x8, x21, lsl #2]
	add	x21, x21, #1
	ldr	w9, [x8, x21, lsl #2]
	cmp	w23, w9
	b.ge	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	lsl	x24, x23, #2
	b	LBB0_9
LBB0_7:                                 ;   in Loop: Header=BB0_9 Depth=2
	ldr	x8, [x19, #32]
	ldr	x8, [x8, x22, lsl #3]
	cmp	x8, #0
	cset	w3, ne
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=2
	ldr	x8, [x19]
	add	x0, x8, x24
	ldp	x9, x8, [x19, #56]
	add	x1, x8, x24
	add	x2, x9, x24
	bl	_predict
	add	x23, x23, #1
	ldr	x8, [x19, #16]
	ldrsw	x9, [x8, x21, lsl #2]
	add	x24, x24, #4
	cmp	x23, x9
	b.ge	LBB0_4
LBB0_9:                                 ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x19, #40]
	cbnz	x8, LBB0_7
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=2
	mov	w3, #0
	b	LBB0_8
LBB0_11:
	ldr	x1, [x19, #24]
	cbz	x1, LBB0_13
; %bb.12:
	mov	x0, x19
	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
	b	_reset_predictor_group
LBB0_13:
	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
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ff_aac_pred_sfb_max,8,3        ; @ff_aac_pred_sfb_max
	.comm	_EIGHT_SHORT_SEQUENCE,8,3       ; @EIGHT_SHORT_SEQUENCE
.subsections_via_symbols
