	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function MPA_encode_frame
_MPA_encode_frame:                      ## @MPA_encode_frame
	.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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	%rsi, -96(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	%rdi, -88(%rbp)                 ## 8-byte Spill
	movq	8(%rdi), %r15
	movq	_MPA_MAX_CHANNELS@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_SBLIMIT@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	imulq	%r13, %rbx
	leaq	(%rbx,%rbx), %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -80(%rbp)                 ## 8-byte Spill
	movl	(%r15), %ecx
	testl	%ecx, %ecx
	jle	LBB0_9
## %bb.1:
	movq	%r12, %rbx
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	movq	(%rax), %r12
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movl	%r14d, %esi
	movq	%r12, %rdx
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_filter
	incq	%r14
	movslq	(%r15), %rcx
	addq	$4, %r12
	cmpq	%rcx, %r14
	jl	LBB0_2
## %bb.3:
	testl	%ecx, %ecx
	movq	%rbx, %r12
	jle	LBB0_9
## %bb.4:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	32(%r15), %rax
	movl	(%rax,%rbx,4), %esi
	movq	24(%r15), %rax
	movl	(%rax,%rbx,4), %edx
	movq	16(%r15), %rax
	movl	(%rax,%rbx,4), %ecx
	movl	8(%r15), %r8d
	movq	%r15, %rdi
	callq	_compute_scale_factors
	incq	%rbx
	movslq	(%r15), %rax
	cmpq	%rax, %rbx
	jl	LBB0_5
## %bb.6:
	testl	%eax, %eax
	jle	LBB0_9
## %bb.7:
	addq	%r13, %r13
	xorl	%r14d, %r14d
	movq	%r12, %rbx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_psycho_acoustic_model
	incq	%r14
	movslq	(%r15), %rax
	addq	%r13, %rbx
	cmpq	%rax, %r14
	jl	LBB0_8
LBB0_9:
	leaq	-52(%rbp), %rcx
	movq	%r15, %rdi
	movq	%r12, %rsi
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdx
	callq	_compute_bit_allocation
	movq	_MPA_MAX_CODED_FRAME_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-88(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	movq	-96(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rsi
	xorl	%ecx, %ecx
	callq	_ff_alloc_packet2
	testl	%eax, %eax
	js	LBB0_13
## %bb.10:
	leaq	4(%r15), %r12
	movl	(%r14), %edx
	movl	16(%r14), %esi
	movq	%r12, %rdi
	callq	_init_put_bits
	movl	-52(%rbp), %edx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_encode_frame
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rbx
	movq	_AV_NOPTS_VALUE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	je	LBB0_12
## %bb.11:
	movl	(%r13), %esi
	movq	%r13, %rdi
	callq	_ff_samples_to_time_base
	subq	%rax, %rbx
	movq	%rbx, 8(%r14)
LBB0_12:
	movq	%r12, %rdi
	callq	_put_bits_count
                                        ## kill: def $eax killed $eax def $rax
	leal	7(%rax), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	sarl	$3, %ecx
	movl	%ecx, (%r14)
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	$1, (%rax)
	xorl	%eax, %eax
LBB0_13:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_15
## %bb.14:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MPA_MAX_CHANNELS,4,2           ## @MPA_MAX_CHANNELS
	.comm	_SBLIMIT,4,2                    ## @SBLIMIT
	.comm	_MPA_MAX_CODED_FRAME_SIZE,4,2   ## @MPA_MAX_CODED_FRAME_SIZE
	.comm	_AV_NOPTS_VALUE,8,3             ## @AV_NOPTS_VALUE
	.no_dead_strip	_MPA_encode_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function MPA_encode_frame
_MPA_encode_frame:                      ; @MPA_encode_frame
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #16
	mov	x19, x3
	mov	x22, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	ldr	x23, [x0, #8]
	ldr	x8, [x2, #8]
	ldr	x26, [x8]
Lloh3:
	adrp	x8, _MPA_MAX_CHANNELS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MPA_MAX_CHANNELS@GOTPAGEOFF]
Lloh5:
	adrp	x9, _SBLIMIT@GOTPAGE
Lloh6:
	ldr	x9, [x9, _SBLIMIT@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	ldr	w28, [x9]
	mul	x8, x28, x8
	lsl	x9, x8, #1
	add	x10, x9, #15
	and	x12, x10, #0xfffffffffffffff0
Lloh9:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh10:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	sub	x25, x9, x12
	mov	sp, x25
	add	x9, x8, #15
	and	x12, x9, #0xfffffffffffffff0
	mov	x9, x8
Lloh11:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh12:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	sub	x24, x8, x12
	mov	sp, x24
	ldr	w3, [x23]
	cmp	w3, #1
	b.lt	LBB0_9
; %bb.1:
	mov	x27, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x23
	mov	x1, x27
	mov	x2, x26
                                        ; kill: def $w3 killed $w3 killed $x3
	bl	_filter
	add	x27, x27, #1
	ldrsw	x3, [x23]
	add	x26, x26, #4
	cmp	x27, x3
	b.lt	LBB0_2
; %bb.3:
	cmp	w3, #1
	b.lt	LBB0_9
; %bb.4:
	mov	x26, #0
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x23, #32]
	lsl	x9, x26, #2
	ldr	w1, [x8, x9]
	ldp	x10, x8, [x23, #16]
	ldr	w2, [x8, x9]
	ldr	w3, [x10, x9]
	ldr	w4, [x23, #8]
	mov	x0, x23
	bl	_compute_scale_factors
	add	x26, x26, #1
	ldrsw	x8, [x23]
	cmp	x26, x8
	b.lt	LBB0_5
; %bb.6:
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.7:
	mov	x27, #0
	lsl	x28, x28, #1
	mov	x26, x25
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x23
	mov	x1, x26
	bl	_psycho_acoustic_model
	add	x27, x27, #1
	ldrsw	x8, [x23]
	add	x26, x26, x28
	cmp	x27, x8
	b.lt	LBB0_8
LBB0_9:
	sub	x3, x29, #92
	mov	x0, x23
	mov	x1, x25
	mov	x2, x24
	bl	_compute_bit_allocation
Lloh13:
	adrp	x8, _MPA_MAX_CODED_FRAME_SIZE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _MPA_MAX_CODED_FRAME_SIZE@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
	mov	x0, x21
	mov	x1, x20
	mov	w3, #0
	bl	_ff_alloc_packet2
	tbnz	w0, #31, LBB0_13
; %bb.10:
	add	x25, x23, #4
	ldr	w1, [x20, #16]
	ldr	w2, [x20]
	mov	x0, x25
	bl	_init_put_bits
	ldur	w2, [x29, #-92]
	mov	x0, x23
	mov	x1, x24
	bl	_encode_frame
	ldr	x22, [x22]
Lloh16:
	adrp	x8, _AV_NOPTS_VALUE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _AV_NOPTS_VALUE@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
	cmp	x22, x8
	b.eq	LBB0_12
; %bb.11:
	ldr	w1, [x21]
	mov	x0, x21
	bl	_ff_samples_to_time_base
	sub	x8, x22, x0
	str	x8, [x20, #8]
LBB0_12:
	mov	x0, x25
	bl	_put_bits_count
	mov	x8, x0
	mov	w0, #0
	add	w9, w8, #7
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w8, w8, #3
	str	w8, [x20]
	mov	w8, #1
	str	w8, [x19]
LBB0_13:
	ldur	x8, [x29, #-88]
Lloh19:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh20:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_15
; %bb.14:
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_15:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_MPA_MAX_CHANNELS,4,2           ; @MPA_MAX_CHANNELS
	.comm	_SBLIMIT,4,2                    ; @SBLIMIT
	.comm	_MPA_MAX_CODED_FRAME_SIZE,4,2   ; @MPA_MAX_CODED_FRAME_SIZE
	.comm	_AV_NOPTS_VALUE,8,3             ; @AV_NOPTS_VALUE
	.no_dead_strip	_MPA_encode_frame
.subsections_via_symbols
