	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function alac_decode_frame
_alac_decode_frame:                     ## @alac_decode_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, %r13
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r12
	movq	(%rdi), %r14
	leaq	16(%r14), %rbx
	movl	(%rcx), %edx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movl	4(%rcx), %esi
	movq	%rbx, %rdi
	callq	_init_get_bits8
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	movq	$0, 8(%r14)
	movq	%rbx, %rdi
	callq	_get_bits_left
	cmpl	$3, %eax
	jl	LBB0_15
## %bb.3:
	xorl	%r15d, %r15d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	%rbx, %rdi
	callq	_get_bits_left
	movl	%r13d, %r15d
	cmpl	$2, %eax
	jle	LBB0_15
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movl	$3, %esi
	callq	_get_bits
	movq	_TYPE_END@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_16
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_TYPE_CPE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	cmpl	%edx, %eax
	jbe	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_TYPE_LFE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_7
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	xorl	%ecx, %ecx
	cmpl	%edx, %eax
	sete	%cl
	leal	(%rcx,%r15), %r13d
	incl	%r13d
	movslq	(%r14), %rax
	cmpl	%eax, %r13d
	jg	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	incl	%ecx
	movq	_ff_alac_channel_layout_offsets@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	-8(%rdx,%rax,8), %rdx
	movl	%r15d, %esi
	movl	(%rdx,%rsi,4), %edx
	leal	(%rdx,%rcx), %esi
	cmpl	%eax, %esi
	jg	LBB0_10
## %bb.12:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	%r12, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_decode_element
	testl	%eax, %eax
	jns	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_4 Depth=1
	movl	%eax, %r15d
	movq	%rbx, %rdi
	callq	_get_bits_left
	testl	%eax, %eax
	je	LBB0_14
	jmp	LBB0_24
LBB0_1:
	movl	%eax, %r15d
	jmp	LBB0_24
LBB0_15:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	jmp	LBB0_11
LBB0_10:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
LBB0_11:
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_av_log
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
LBB0_23:
	movl	(%rax), %r15d
LBB0_24:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %r13d
	shll	$3, %r13d
	movq	%rbx, %rdi
	callq	_get_bits_count
	subl	%eax, %r13d
	cmpl	$9, %r13d
	jl	LBB0_18
## %bb.17:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %r13d
	shll	$3, %r13d
	movq	%rbx, %rdi
	callq	_get_bits_count
	subl	%eax, %r13d
	leaq	L_.str.3(%rip), %rdx
	movq	%r12, %rdi
	movl	-56(%rbp), %esi                 ## 4-byte Reload
	movl	%r13d, %ecx
	xorl	%eax, %eax
	callq	_av_log
LBB0_18:
	cmpl	%r15d, (%r14)
	jne	LBB0_21
## %bb.19:
	cmpq	$0, 8(%r14)
	je	LBB0_21
## %bb.20:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	$1, (%rax)
	jmp	LBB0_22
LBB0_7:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	movl	%eax, %edx
	callq	_avpriv_report_missing_feature
	movq	_AVERROR_PATCHWELCOME@GOTPCREL(%rip), %rax
	jmp	LBB0_23
LBB0_21:
	movq	_AV_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.4(%rip), %rdx
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_av_log
LBB0_22:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	jmp	LBB0_23
	.cfi_endproc
                                        ## -- End function
	.comm	_TYPE_END,4,2                   ## @TYPE_END
	.comm	_TYPE_CPE,4,2                   ## @TYPE_CPE
	.comm	_TYPE_LFE,4,2                   ## @TYPE_LFE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Syntax element %d"

	.comm	_AVERROR_PATCHWELCOME,4,2       ## @AVERROR_PATCHWELCOME
	.comm	_ff_alac_channel_layout_offsets,8,3 ## @ff_alac_channel_layout_offsets
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
L_.str.1:                               ## @.str.1
	.asciz	"invalid element channel count\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
L_.str.2:                               ## @.str.2
	.asciz	"no end tag found. incomplete packet.\n"

L_.str.3:                               ## @.str.3
	.asciz	"Error : %d bits left\n"

	.comm	_AV_LOG_WARNING,4,2             ## @AV_LOG_WARNING
L_.str.4:                               ## @.str.4
	.asciz	"Failed to decode all channels\n"

	.no_dead_strip	_alac_decode_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function alac_decode_frame
_alac_decode_frame:                     ; @alac_decode_frame
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x19, x3
	mov	x21, x2
	mov	x23, x1
	mov	x20, x0
	ldr	x25, [x0]
	add	x22, x25, #16
	ldp	w2, w1, [x3]
	mov	x0, x22
	bl	_init_get_bits8
	tbnz	w0, #31, LBB0_10
; %bb.1:
	str	x21, [sp, #8]                   ; 8-byte Folded Spill
	str	xzr, [x25, #8]
	mov	x0, x22
	bl	_get_bits_left
	cmp	w0, #3
	b.lt	LBB0_11
; %bb.2:
	mov	w24, #0
Lloh0:
	adrp	x26, _TYPE_END@GOTPAGE
Lloh1:
	ldr	x26, [x26, _TYPE_END@GOTPAGEOFF]
Lloh2:
	adrp	x27, _TYPE_CPE@GOTPAGE
Lloh3:
	ldr	x27, [x27, _TYPE_CPE@GOTPAGEOFF]
Lloh4:
	adrp	x28, _TYPE_LFE@GOTPAGE
Lloh5:
	ldr	x28, [x28, _TYPE_LFE@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x22
	bl	_get_bits_left
	mov	x24, x21
	cmp	w0, #2
	b.le	LBB0_11
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	mov	w1, #3
	bl	_get_bits
	ldr	w8, [x26]
	cmp	w0, w8
	b.eq	LBB0_16
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x2, x0
	ldr	w8, [x27]
	ldr	w9, [x28]
	cmp	w0, w8
	ccmp	w0, w9, #4, hi
	b.ne	LBB0_21
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w2, w8
	mov	w8, #1
	cinc	w3, w8, eq
	ldr	w8, [x25]
	add	w21, w3, w24
	cmp	w21, w8
	b.gt	LBB0_12
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh6:
	adrp	x9, _ff_alac_channel_layout_offsets@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ff_alac_channel_layout_offsets@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	sub	w10, w8, #1
	ldr	x9, [x9, w10, sxtw #3]
	ldr	w2, [x9, w24, uxtw #2]
	add	w9, w2, w3
	cmp	w9, w8
	b.gt	LBB0_12
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x20
	mov	x1, x23
	bl	_decode_element
	tbz	w0, #31, LBB0_3
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x24, x0
	mov	x0, x22
	bl	_get_bits_left
	cbz	w0, LBB0_3
	b	LBB0_15
LBB0_10:
	mov	x24, x0
	b	LBB0_15
LBB0_11:
Lloh9:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x2, l_.str.2@PAGE
Lloh13:
	add	x2, x2, l_.str.2@PAGEOFF
	b	LBB0_13
LBB0_12:
Lloh14:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh15:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
Lloh17:
	adrp	x2, l_.str.1@PAGE
Lloh18:
	add	x2, x2, l_.str.1@PAGEOFF
LBB0_13:
	mov	x0, x20
	bl	_av_log
Lloh19:
	adrp	x19, _AVERROR_INVALIDDATA@GOTPAGE
Lloh20:
	ldr	x19, [x19, _AVERROR_INVALIDDATA@GOTPAGEOFF]
LBB0_14:
	ldr	w24, [x19]
LBB0_15:
	mov	x0, x24
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_16:
	ldr	w8, [x19]
	lsl	w21, w8, #3
	mov	x0, x22
	bl	_get_bits_count
	sub	w8, w21, w0
	cmp	w8, #9
	b.lt	LBB0_18
; %bb.17:
Lloh21:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh22:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh23:
	ldr	w23, [x8]
	ldr	w8, [x19]
	lsl	w21, w8, #3
	mov	x0, x22
	bl	_get_bits_count
	sub	w8, w21, w0
	str	x8, [sp]
Lloh24:
	adrp	x2, l_.str.3@PAGE
Lloh25:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x0, x20
	mov	x1, x23
	bl	_av_log
LBB0_18:
	ldr	w8, [x25]
	cmp	w8, w24
	b.ne	LBB0_22
; %bb.19:
	ldr	x8, [x25, #8]
	cbz	x8, LBB0_22
; %bb.20:
	mov	w8, #1
	ldr	x9, [sp, #8]                    ; 8-byte Folded Reload
	str	w8, [x9]
	b	LBB0_14
LBB0_21:
Lloh26:
	adrp	x1, l_.str@PAGE
Lloh27:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_avpriv_report_missing_feature
Lloh28:
	adrp	x19, _AVERROR_PATCHWELCOME@GOTPAGE
Lloh29:
	ldr	x19, [x19, _AVERROR_PATCHWELCOME@GOTPAGEOFF]
	b	LBB0_14
LBB0_22:
Lloh30:
	adrp	x8, _AV_LOG_WARNING@GOTPAGE
Lloh31:
	ldr	x8, [x8, _AV_LOG_WARNING@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
Lloh33:
	adrp	x2, l_.str.4@PAGE
Lloh34:
	add	x2, x2, l_.str.4@PAGEOFF
	mov	x0, x20
	bl	_av_log
	b	LBB0_14
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_TYPE_END,4,2                   ; @TYPE_END
	.comm	_TYPE_CPE,4,2                   ; @TYPE_CPE
	.comm	_TYPE_LFE,4,2                   ; @TYPE_LFE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Syntax element %d"

	.comm	_AVERROR_PATCHWELCOME,4,2       ; @AVERROR_PATCHWELCOME
	.comm	_ff_alac_channel_layout_offsets,8,3 ; @ff_alac_channel_layout_offsets
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
l_.str.1:                               ; @.str.1
	.asciz	"invalid element channel count\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
l_.str.2:                               ; @.str.2
	.asciz	"no end tag found. incomplete packet.\n"

l_.str.3:                               ; @.str.3
	.asciz	"Error : %d bits left\n"

	.comm	_AV_LOG_WARNING,4,2             ; @AV_LOG_WARNING
l_.str.4:                               ; @.str.4
	.asciz	"Failed to decode all channels\n"

	.no_dead_strip	_alac_decode_frame
.subsections_via_symbols
