	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function aic_decode_coeffs
_aic_decode_coeffs:                     ## @aic_decode_coeffs
	.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
	movl	%ecx, %ebx
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r14
	movq	_aic_num_band_coeffs@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%edx, %rcx
	movslq	(%rax,%rcx,4), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	_aic_scan@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	orl	%r8d, %ecx
	movslq	%ecx, %rcx
	movq	(%rax,%rcx,8), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	callq	_get_bits_left
	cmpl	$4, %eax
	jg	LBB0_1
LBB0_5:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_15:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%r14, %rdi
	callq	_get_bits1
	movl	%eax, %r15d
	movq	%r14, %rdi
	callq	_get_bits1
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	%r14, %rdi
	movl	$3, %esi
	callq	_get_bits
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	testl	%r15d, %r15d
	je	LBB0_2
## %bb.6:
	movq	%r14, %rdi
	callq	_get_bits1
	movl	%eax, -76(%rbp)                 ## 4-byte Spill
	movq	%r14, %rdi
	movl	$3, %esi
	callq	_get_bits
	testl	%ebx, %ebx
	jle	LBB0_7
## %bb.8:
	movl	%eax, %r14d
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leal	-1(%rax), %r12d
	xorl	%r13d, %r13d
	xorl	%ecx, %ecx
	movl	%ebx, -68(%rbp)                 ## 4-byte Spill
LBB0_9:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_10 Depth 2
	movl	%ecx, -72(%rbp)                 ## 4-byte Spill
	movl	%r13d, %r15d
	movl	$-1, %ebx
	.p2align	4, 0x90
LBB0_10:                                ##   Parent Loop BB0_9 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%r15d, %edi
	movl	-76(%rbp), %esi                 ## 4-byte Reload
	movl	%r14d, %edx
	callq	_GET_CODE
	leaq	1(%r15), %r13
	addl	%r13d, %ebx
	cmpl	-56(%rbp), %ebx                 ## 4-byte Folded Reload
	jge	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=2
	movl	%r15d, %edi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_GET_CODE
	cmpl	$65535, %r15d                   ## imm = 0xFFFF
	jae	LBB0_5
## %bb.13:                              ##   in Loop: Header=BB0_10 Depth=2
	movslq	%ebx, %rax
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx,%rax,8), %rax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	%r13d, (%rcx,%rax,4)
	movq	%r13, %r15
	cmpl	%r12d, %ebx
	jl	LBB0_10
	jmp	LBB0_14
LBB0_11:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	%r15, %r13
LBB0_14:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax,4), %rcx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movl	-72(%rbp), %ecx                 ## 4-byte Reload
	incl	%ecx
	xorl	%eax, %eax
	movl	-68(%rbp), %ebx                 ## 4-byte Reload
	cmpl	%ebx, %ecx
	jne	LBB0_9
	jmp	LBB0_15
LBB0_2:
	xorl	%eax, %eax
	testl	%ebx, %ebx
	jle	LBB0_15
## %bb.3:
	cmpl	$0, -56(%rbp)                   ## 4-byte Folded Reload
	jle	LBB0_15
## %bb.4:
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_GET_CODE
	jmp	LBB0_5
LBB0_7:
	xorl	%eax, %eax
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_aic_num_band_coeffs,8,3        ## @aic_num_band_coeffs
	.comm	_aic_scan,8,3                   ## @aic_scan
	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.no_dead_strip	_aic_decode_coeffs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function aic_decode_coeffs
_aic_decode_coeffs:                     ; @aic_decode_coeffs
	.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	x25, x3
	mov	x20, x1
	mov	x24, x0
	orr	w8, w4, w2
Lloh0:
	adrp	x9, _aic_num_band_coeffs@GOTPAGE
Lloh1:
	ldr	x9, [x9, _aic_num_band_coeffs@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldrsw	x26, [x9, w2, sxtw #2]
Lloh3:
	adrp	x9, _aic_scan@GOTPAGE
Lloh4:
	ldr	x9, [x9, _aic_scan@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	ldr	x8, [x9, w8, sxtw #3]
	str	x8, [sp, #8]                    ; 8-byte Folded Spill
	bl	_get_bits_left
	cmp	w0, #4
	b.gt	LBB0_3
LBB0_1:
Lloh6:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
LBB0_2:
	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_3:
	mov	x0, x24
	bl	_get_bits1
	mov	x23, x0
	mov	x0, x24
	bl	_get_bits1
	mov	x21, x0
	mov	x0, x24
	mov	w1, #3
	bl	_get_bits
	mov	x22, x0
	cbz	w23, LBB0_12
; %bb.4:
	mov	x0, x24
	bl	_get_bits1
	mov	x23, x0
	mov	x0, x24
	mov	w1, #3
	bl	_get_bits
	cmp	w25, #1
	b.lt	LBB0_15
; %bb.5:
	mov	x24, x0
	mov	x28, #0
	mov	w8, #0
	sub	w19, w26, #1
	str	w25, [sp]                       ; 4-byte Folded Spill
LBB0_6:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	str	w8, [sp, #4]                    ; 4-byte Folded Spill
	and	x25, x28, #0xffffffff
	mov	w27, #-1
LBB0_7:                                 ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x25
	mov	x1, x23
	mov	x2, x24
	bl	_GET_CODE
	add	x28, x25, #1
	add	w27, w27, w28
	cmp	w27, w26
	b.ge	LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	mov	x0, x25
	mov	x1, x21
	mov	x2, x22
	bl	_GET_CODE
	mov	w8, #65535
	cmp	w25, w8
	b.hs	LBB0_1
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=2
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	ldr	x8, [x8, w27, sxtw #3]
	str	w28, [x20, x8, lsl #2]
	mov	x25, x28
	cmp	w27, w19
	b.lt	LBB0_7
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x28, x25
LBB0_11:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	w0, #0
	add	x20, x20, x26, lsl #2
	ldp	w25, w8, [sp]                   ; 8-byte Folded Reload
	add	w8, w8, #1
	cmp	w8, w25
	b.ne	LBB0_6
	b	LBB0_2
LBB0_12:
	mov	w0, #0
	cmp	w25, #1
	b.lt	LBB0_2
; %bb.13:
	cmp	w26, #0
	b.le	LBB0_2
; %bb.14:
	mov	x1, x21
	mov	x2, x22
	bl	_GET_CODE
	b	LBB0_1
LBB0_15:
	mov	w0, #0
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_aic_num_band_coeffs,8,3        ; @aic_num_band_coeffs
	.comm	_aic_scan,8,3                   ; @aic_scan
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.no_dead_strip	_aic_decode_coeffs
.subsections_via_symbols
