	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function decode_gain_control
_decode_gain_control:                   ## @decode_gain_control
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	(%rdi), %rax
	movslq	(%rax), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rdi
	movl	$2, %esi
	callq	_get_bits
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	jle	LBB0_10
## %bb.1:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%rax,2), %rax
	leaq	_decode_gain_control.gain_mode(%rip), %rcx
	movq	(%rcx,%rax,8), %rdx
	leaq	(%rcx,%rax,8), %r13
	addq	$16, %r13
	cmpq	$2, %rdx
	movl	$1, %eax
	cmovgeq	%rdx, %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	incq	%rax
	cmpq	-56(%rbp), %rax                 ## 8-byte Folded Reload
	je	LBB0_10
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_3 Depth 2
                                        ##       Child Loop BB0_5 Depth 3
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=2
	incq	%r12
	cmpq	-72(%rbp), %r12                 ## 8-byte Folded Reload
	je	LBB0_9
LBB0_3:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_5 Depth 3
	movq	%r15, %rdi
	movl	$3, %esi
	callq	_get_bits
	testq	%rax, %rax
	jle	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=2
	movq	%rax, %rbx
	testl	$-3, -48(%rbp)                  ## 4-byte Folded Reload
	sete	%al
	testq	%r12, %r12
	setne	%r14b
	orb	%al, %r14b
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=3
	addl	$4, %esi
	movq	%r15, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_skip_bits
	decq	%rbx
	je	LBB0_8
LBB0_5:                                 ##   Parent Loop BB0_2 Depth=1
                                        ##     Parent Loop BB0_3 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movl	$4, %esi
	testb	%r14b, %r14b
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=3
	movq	(%r13), %rsi
	jmp	LBB0_7
LBB0_10:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @decode_gain_control.gain_mode
_decode_gain_control.gain_mode:
	.quad	1                               ## 0x1
	.quad	0                               ## 0x0
	.quad	5                               ## 0x5
	.quad	2                               ## 0x2
	.quad	1                               ## 0x1
	.quad	2                               ## 0x2
	.quad	8                               ## 0x8
	.quad	0                               ## 0x0
	.quad	2                               ## 0x2
	.quad	2                               ## 0x2
	.quad	1                               ## 0x1
	.quad	5                               ## 0x5

	.no_dead_strip	_decode_gain_control
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function decode_gain_control
_decode_gain_control:                   ; @decode_gain_control
	.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	x19, x1
	ldr	x8, [x0]
	ldrsw	x21, [x8]
	mov	x0, x1
	mov	w1, #2
	bl	_get_bits
	cmp	x0, #1
	b.lt	LBB0_11
; %bb.1:
	mov	x20, x0
	mov	x22, #0
	mov	w8, #24
Lloh0:
	adrp	x9, _decode_gain_control.gain_mode@PAGE
Lloh1:
	add	x9, x9, _decode_gain_control.gain_mode@PAGEOFF
	madd	x23, x21, x8, x9
	ldr	x8, [x23], #16
	and	w24, w21, #0xfffffffd
	cmp	x8, #1
	csinc	x25, x8, xzr, gt
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x22, x22, #1
	cmp	x22, x20
	b.eq	LBB0_11
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
                                        ;       Child Loop BB0_9 Depth 3
	mov	x26, #0
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=2
	add	x26, x26, #1
	cmp	x26, x25
	b.eq	LBB0_2
LBB0_5:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_9 Depth 3
	mov	x0, x19
	mov	w1, #3
	bl	_get_bits
	cmp	x0, #1
	b.lt	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=2
	mov	x21, x0
	cmp	x26, #0
	ccmp	w24, #0, #4, eq
	cset	w27, eq
	b	LBB0_9
LBB0_7:                                 ;   in Loop: Header=BB0_9 Depth=3
	ldr	x8, [x23]
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=3
	add	w1, w8, #4
	mov	x0, x19
	bl	_skip_bits
	subs	x21, x21, #1
	b.eq	LBB0_4
LBB0_9:                                 ;   Parent Loop BB0_3 Depth=1
                                        ;     Parent Loop BB0_5 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	cbnz	w27, LBB0_7
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=3
	mov	w8, #4
	b	LBB0_8
LBB0_11:
	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 AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	3                               ; @decode_gain_control.gain_mode
_decode_gain_control.gain_mode:
	.quad	1                               ; 0x1
	.quad	0                               ; 0x0
	.quad	5                               ; 0x5
	.quad	2                               ; 0x2
	.quad	1                               ; 0x1
	.quad	2                               ; 0x2
	.quad	8                               ; 0x8
	.quad	0                               ; 0x0
	.quad	2                               ; 0x2
	.quad	2                               ; 0x2
	.quad	1                               ; 0x1
	.quad	5                               ; 0x5

	.no_dead_strip	_decode_gain_control
.subsections_via_symbols
