	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_aac_encode_main_pred        ## -- Begin function ff_aac_encode_main_pred
	.p2align	4, 0x90
_ff_aac_encode_main_pred:               ## @ff_aac_encode_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r12
	movl	20(%rsi), %edi
	movq	_ff_aac_pred_sfb_max@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r12), %rcx
	movl	(%rax,%rcx,4), %esi
	callq	_FFMIN
	movl	%eax, %r15d
	movq	8(%r12), %rax
	movq	_FF_PROFILE_AAC_MAIN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.1:
	cmpl	$0, 16(%r14)
	je	LBB0_7
## %bb.2:
	addq	$16, %r12
	xorl	%edx, %edx
	cmpl	$0, (%r14)
	setne	%dl
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_put_bits
	movl	(%r14), %edx
	testl	%edx, %edx
	je	LBB0_4
## %bb.3:
	movq	%r12, %rdi
	movl	$5, %esi
	callq	_put_bits
LBB0_4:
	testl	%r15d, %r15d
	jle	LBB0_7
## %bb.5:
	movl	%r15d, %r15d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r14), %rax
	movl	(%rax,%rbx,4), %edx
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_put_bits
	incq	%rbx
	cmpq	%rbx, %r15
	jne	LBB0_6
LBB0_7:
	popq	%rbx
	popq	%r12
	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	_FF_PROFILE_AAC_MAIN,8,3        ## @FF_PROFILE_AAC_MAIN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_aac_encode_main_pred        ; -- Begin function ff_aac_encode_main_pred
	.p2align	2
_ff_aac_encode_main_pred:               ; @ff_aac_encode_main_pred
	.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, x1
	mov	x20, x0
	ldr	w0, [x1, #20]
Lloh0:
	adrp	x8, _ff_aac_pred_sfb_max@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ff_aac_pred_sfb_max@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x9, [x20]
	ldr	w1, [x8, x9, lsl #2]
	bl	_FFMIN
	ldr	x8, [x20, #8]
Lloh3:
	adrp	x9, _FF_PROFILE_AAC_MAIN@GOTPAGE
Lloh4:
	ldr	x9, [x9, _FF_PROFILE_AAC_MAIN@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.1:
	ldr	w8, [x19, #16]
	cbz	w8, LBB0_7
; %bb.2:
	mov	x21, x0
	add	x20, x20, #16
	ldr	w8, [x19]
	cmp	w8, #0
	cset	w2, ne
	mov	x0, x20
	mov	w1, #1
	bl	_put_bits
	ldr	w2, [x19]
	cbz	w2, LBB0_4
; %bb.3:
	mov	x0, x20
	mov	w1, #5
	bl	_put_bits
LBB0_4:
	cmp	w21, #1
	b.lt	LBB0_7
; %bb.5:
	mov	x22, #0
	mov	w8, w21
	lsl	x21, x8, #2
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	ldr	w2, [x8, x22]
	mov	x0, x20
	mov	w1, #1
	bl	_put_bits
	add	x22, x22, #4
	cmp	x21, x22
	b.ne	LBB0_6
LBB0_7:
	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
	.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	_FF_PROFILE_AAC_MAIN,8,3        ; @FF_PROFILE_AAC_MAIN
.subsections_via_symbols
