	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function write_frame
_write_frame:                           ## @write_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, %rbx
	addq	$8, %rdi
	movq	_ff_alac_channel_elements@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rbx), %rcx
	movslq	(%rcx), %rcx
	movq	-8(%rax,%rcx,8), %r14
	movq	_ff_alac_channel_layout_offsets@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	-8(%rax,%rcx,8), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	(%rsi), %edx
	movl	4(%rsi), %esi
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	callq	_init_put_bits
	movq	(%rbx), %rax
	cmpl	$0, (%rax)
	jle	LBB0_6
## %bb.1:
	xorl	%r12d, %r12d
	xorl	%r13d, %r13d
	xorl	%r15d, %r15d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_TYPE_SCE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %eax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx,%rax,8), %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx,%rax,8), %rcx
	movq	%rbx, %rdi
	movl	%r13d, %edx
	xorl	%r8d, %r8d
	callq	_write_element
	incl	%r13d
	movl	$1, %eax
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	addl	%eax, %r15d
	movq	(%rbx), %rax
	addq	$4, %r14
	cmpl	(%rax), %r15d
	jge	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %esi
	movq	_TYPE_CPE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %esi
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%r15d, %eax
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	(%rdx,%rax,8), %rcx
	movq	8(%rdx,%rax,8), %rax
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	(%rdx,%rcx,8), %rcx
	movq	(%rdx,%rax,8), %r8
	movq	%rbx, %rdi
	movl	%r12d, %edx
	callq	_write_element
	incl	%r12d
	movl	$2, %eax
	jmp	LBB0_5
LBB0_6:
	movq	_TYPE_END@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movl	$3, %esi
	callq	_put_bits
	movq	%rbx, %rdi
	callq	_flush_put_bits
	movq	%rbx, %rdi
	callq	_put_bits_count
	sarl	$3, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ff_alac_channel_elements,8,3   ## @ff_alac_channel_elements
	.comm	_ff_alac_channel_layout_offsets,8,3 ## @ff_alac_channel_layout_offsets
	.comm	_TYPE_CPE,4,2                   ## @TYPE_CPE
	.comm	_TYPE_SCE,4,2                   ## @TYPE_SCE
	.comm	_TYPE_END,4,2                   ## @TYPE_END
	.no_dead_strip	_write_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function write_frame
_write_frame:                           ; @write_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
	mov	x20, x2
	mov	x21, x0
Lloh0:
	adrp	x8, _ff_alac_channel_elements@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ff_alac_channel_elements@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x9, [x0]
	ldrsw	x9, [x9]
	lsl	x9, x9, #3
	sub	x9, x9, #8
	ldr	x24, [x8, x9]
Lloh3:
	adrp	x8, _ff_alac_channel_layout_offsets@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ff_alac_channel_layout_offsets@GOTPAGEOFF]
	add	x19, x0, #8
Lloh5:
	ldr	x8, [x8]
	ldr	x25, [x8, x9]
	ldp	w2, w8, [x1]
	mov	x0, x19
	mov	x1, x8
	bl	_init_put_bits
	ldr	x8, [x21]
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.1:
	mov	w22, #0
	mov	w23, #0
	mov	w26, #0
Lloh6:
	adrp	x27, _TYPE_CPE@GOTPAGE
Lloh7:
	ldr	x27, [x27, _TYPE_CPE@GOTPAGEOFF]
Lloh8:
	adrp	x28, _TYPE_SCE@GOTPAGE
Lloh9:
	ldr	x28, [x28, _TYPE_SCE@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w1, [x28]
	ldr	x8, [x25, w26, uxtw #3]
	ldr	x3, [x20, x8, lsl #3]
	mov	x0, x21
	mov	x2, x23
	mov	x4, #0
	bl	_write_element
	add	w23, w23, #1
	mov	w8, #1
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x9, [x21]
	ldr	w9, [x9]
	add	x24, x24, #4
	add	w26, w26, w8
	cmp	w26, w9
	b.ge	LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x24]
	ldr	w8, [x27]
	cmp	w1, w8
	b.ne	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x25, w26, uxtw #3]
	ldr	x3, [x20, x8, lsl #3]
	add	w8, w26, #1
	ldr	x8, [x25, w8, uxtw #3]
	ldr	x4, [x20, x8, lsl #3]
	mov	x0, x21
	mov	x2, x22
	bl	_write_element
	add	w22, w22, #1
	mov	w8, #2
	b	LBB0_3
LBB0_6:
Lloh10:
	adrp	x8, _TYPE_END@GOTPAGE
Lloh11:
	ldr	x8, [x8, _TYPE_END@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #3
	bl	_put_bits
	mov	x0, x19
	bl	_flush_put_bits
	mov	x0, x19
	bl	_put_bits_count
	asr	w0, w0, #3
	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
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_ff_alac_channel_elements,8,3   ; @ff_alac_channel_elements
	.comm	_ff_alac_channel_layout_offsets,8,3 ; @ff_alac_channel_layout_offsets
	.comm	_TYPE_CPE,4,2                   ; @TYPE_CPE
	.comm	_TYPE_SCE,4,2                   ; @TYPE_SCE
	.comm	_TYPE_END,4,2                   ; @TYPE_END
	.no_dead_strip	_write_frame
.subsections_via_symbols
