	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function alac_encode_frame
_alac_encode_frame:                     ## @alac_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r15
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	8(%rdi), %rbx
	movq	(%rdx), %rdi
	movq	%rdi, (%rbx)
	movq	_DEFAULT_FRAME_SIZE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	jge	LBB0_2
## %bb.1:
	movl	(%r14), %edx
	movl	4(%r14), %esi
	callq	_get_max_frame_size
	movl	%eax, %r13d
	jmp	LBB0_3
LBB0_2:
	movl	8(%rbx), %r13d
LBB0_3:
	leal	(,%r13,4), %edx
	movq	%r14, %rdi
	movq	%r12, %rsi
	xorl	%ecx, %ecx
	callq	_ff_alloc_packet2
	testl	%eax, %eax
	js	LBB0_10
## %bb.4:
	xorl	%eax, %eax
	cmpq	$0, 24(%rbx)
	je	LBB0_5
## %bb.6:
	movslq	(%r14), %rax
	addq	$-16, %rax
	xorl	%ecx, %ecx
	jmp	LBB0_7
LBB0_5:
	movl	$1, %ecx
LBB0_7:
	movl	%ecx, 12(%rbx)
	movq	%rax, 16(%rbx)
	movl	8(%r15), %edx
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_write_frame
	cmpl	%r13d, %eax
	jle	LBB0_9
## %bb.8:
	movl	$1, 12(%rbx)
	movq	$0, 16(%rbx)
	movl	8(%r15), %edx
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_write_frame
LBB0_9:
	movl	%eax, (%r12)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	$1, (%rax)
	xorl	%eax, %eax
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DEFAULT_FRAME_SIZE,8,3         ## @DEFAULT_FRAME_SIZE
	.no_dead_strip	_alac_encode_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function alac_encode_frame
_alac_encode_frame:                     ; @alac_encode_frame
	.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, x3
	mov	x21, x2
	mov	x20, x1
	mov	x24, x0
	ldr	x22, [x0, #8]
	ldr	x0, [x2]
	str	x0, [x22]
Lloh0:
	adrp	x8, _DEFAULT_FRAME_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DEFAULT_FRAME_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ge	LBB0_2
; %bb.1:
	ldp	w2, w1, [x24]
	bl	_get_max_frame_size
	mov	x23, x0
	b	LBB0_3
LBB0_2:
	ldr	w23, [x22, #8]
LBB0_3:
	lsl	w2, w23, #2
	mov	x0, x24
	mov	x1, x20
	mov	w3, #0
	bl	_ff_alloc_packet2
	tbnz	w0, #31, LBB0_10
; %bb.4:
	ldr	x8, [x22, #24]
	cbz	x8, LBB0_6
; %bb.5:
	mov	w9, #0
	ldrsw	x8, [x24]
	sub	x8, x8, #16
	b	LBB0_7
LBB0_6:
	mov	w9, #1
LBB0_7:
	str	w9, [x22, #12]
	str	x8, [x22, #16]
	ldr	w2, [x21, #8]
	mov	x0, x22
	mov	x1, x20
	bl	_write_frame
	mov	x8, x0
	cmp	w0, w23
	b.le	LBB0_9
; %bb.8:
	mov	w8, #1
	str	w8, [x22, #12]
	str	xzr, [x22, #16]
	ldr	w2, [x21, #8]
	mov	x0, x22
	mov	x1, x20
	bl	_write_frame
	mov	x8, x0
LBB0_9:
	mov	w0, #0
	str	w8, [x20]
	mov	w8, #1
	str	w8, [x19]
LBB0_10:
	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	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_DEFAULT_FRAME_SIZE,8,3         ; @DEFAULT_FRAME_SIZE
	.no_dead_strip	_alac_encode_frame
.subsections_via_symbols
