	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gainc_loc_mode0
_gainc_loc_mode0:                       ## @gainc_loc_mode0
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rdi, %r14
	movslq	%ecx, %rbx
	testl	%ecx, %ecx
	je	LBB0_2
## %bb.1:
	movq	(%r15), %rcx
	movl	-4(%rcx,%rbx,4), %edx
	cmpl	$14, %edx
	jg	LBB0_3
LBB0_2:
	movq	%r14, %rdi
	movl	$5, %esi
	callq	_get_bits
LBB0_5:
	movq	(%r15), %rcx
LBB0_6:
	movl	%eax, (%rcx,%rbx,4)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movl	$31, %eax
	cmpl	$29, %edx
	ja	LBB0_6
## %bb.4:
	leaq	-1(%rbx), %r12
	movl	$30, %edi
	subl	%edx, %edi
	callq	_av_log2
                                        ## kill: def $eax killed $eax def $rax
	leal	1(%rax), %esi
	movq	(%r15), %rax
	movslq	(%rax,%r12,4), %r12
	movq	%r14, %rdi
	callq	_get_bits
	addq	%r12, %rax
	incq	%rax
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_gainc_loc_mode0
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gainc_loc_mode0
_gainc_loc_mode0:                       ; @gainc_loc_mode0
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x3
	mov	x20, x2
	mov	x21, x0
	cbz	w3, LBB0_2
; %bb.1:
	ldr	x8, [x20]
	sxtw	x9, w19
	sub	x22, x9, #1
	ldr	w9, [x8, x22, lsl #2]
	cmp	w9, #14
	b.gt	LBB0_5
LBB0_2:
	mov	x0, x21
	mov	w1, #5
	bl	_get_bits
LBB0_3:
	ldr	x8, [x20]
LBB0_4:
	str	w0, [x8, w19, sxtw #2]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_5:
	cmp	w9, #29
	b.ls	LBB0_7
; %bb.6:
	mov	w0, #31
	b	LBB0_4
LBB0_7:
	mov	w8, #30
	sub	w0, w8, w9
	bl	_av_log2
	add	w1, w0, #1
	ldr	x8, [x20]
	ldrsw	x22, [x8, x22, lsl #2]
	mov	x0, x21
	bl	_get_bits
	add	x8, x0, x22
	add	x0, x8, #1
	b	LBB0_3
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_gainc_loc_mode0
.subsections_via_symbols
