	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function decode_gainc_data
_decode_gainc_data:                     ## @decode_gainc_data
	.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	%rcx, -48(%rbp)                 ## 8-byte Spill
	testl	%edx, %edx
	jle	LBB0_14
## %bb.1:
	movq	%rsi, %r15
	movq	%rdi, %r12
	movl	%edx, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r15), %rax
	movl	$0, (%rax,%r14)
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	cmpq	-56(%rbp), %rbx                 ## 8-byte Folded Reload
	je	LBB0_14
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_11 Depth 2
	movq	(%r15), %rax
	movq	%rbx, %r14
	shlq	$4, %r14
	movq	8(%rax,%r14), %rdi
	movq	_ATRAC3P_SUBBANDS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	shll	$2, %edx
	xorl	%esi, %esi
	callq	_memset
	movq	%r12, %rdi
	callq	_get_bits1
	testq	%rax, %rax
	je	LBB0_12
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	movl	$4, %esi
	callq	_get_bits
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	leal	1(%rax), %r13d
	movq	%r12, %rdi
	callq	_get_bits1
	movq	%rax, %rcx
	movl	%r13d, %eax
	testq	%rcx, %rcx
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	movl	$4, %esi
	callq	_get_bits
	incl	%eax
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r15), %rcx
	movl	%eax, (%rcx,%r14)
	movq	%r12, %rdi
	movq	%r15, %rsi
	movl	%ebx, %edx
	movl	%r13d, %ecx
	callq	_decode_gainc_npoints
	testl	%eax, %eax
	js	LBB0_15
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	movq	%r15, %rsi
	movl	%ebx, %edx
	movl	%r13d, %ecx
	callq	_decode_gainc_levels
	testl	%eax, %eax
	js	LBB0_15
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	movq	%r15, %rsi
	movl	%ebx, %edx
	movl	%r13d, %ecx
	movq	-48(%rbp), %r8                  ## 8-byte Reload
	callq	_decode_gainc_loc_codes
	testl	%eax, %eax
	js	LBB0_15
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$0, -64(%rbp)                   ## 4-byte Folded Reload
	js	LBB0_13
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r15), %rcx
	cmpl	(%rcx,%r14), %r13d
	jge	LBB0_13
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	leaq	(%rcx,%r14), %rax
	movq	8(%rcx,%r14), %rcx
	movslq	%r13d, %rdx
	.p2align	4, 0x90
LBB0_11:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	-4(%rcx,%rdx,4), %esi
	movl	%esi, (%rcx,%rdx,4)
	incq	%rdx
	movslq	(%rax), %rsi
	cmpq	%rsi, %rdx
	jl	LBB0_11
	jmp	LBB0_13
LBB0_14:
	xorl	%eax, %eax
LBB0_15:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ATRAC3P_SUBBANDS,4,2           ## @ATRAC3P_SUBBANDS
	.no_dead_strip	_decode_gainc_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function decode_gainc_data
_decode_gainc_data:                     ; @decode_gainc_data
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	cmp	w2, #1
	b.lt	LBB0_14
; %bb.1:
	mov	x19, x3
	mov	x20, x1
	mov	x21, x0
	mov	x22, #0
	mov	w25, w2
Lloh0:
	adrp	x26, _ATRAC3P_SUBBANDS@GOTPAGE
Lloh1:
	ldr	x26, [x26, _ATRAC3P_SUBBANDS@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x20]
	lsl	x9, x22, #4
	str	wzr, [x8, x9]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x22, x22, #1
	cmp	x22, x25
	b.eq	LBB0_14
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_13 Depth 2
	ldr	x8, [x20]
	add	x8, x8, x22, lsl #4
	ldr	x0, [x8, #8]
	ldr	w8, [x26]
	lsl	w2, w8, #2
	mov	w1, #0
	bl	_memset
	mov	x0, x21
	bl	_get_bits1
	cbz	x0, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x21
	mov	w1, #4
	bl	_get_bits
	mov	x24, x0
	add	w23, w0, #1
	mov	x0, x21
	bl	_get_bits1
	mov	x8, x23
	cbz	x0, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x21
	mov	w1, #4
	bl	_get_bits
	add	w8, w0, #1
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x9, [x20]
	lsl	x10, x22, #4
	str	w8, [x9, x10]
	mov	x0, x21
	mov	x1, x20
	mov	x2, x22
	mov	x3, x23
	bl	_decode_gainc_npoints
	tbnz	w0, #31, LBB0_15
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x21
	mov	x1, x20
	mov	x2, x22
	mov	x3, x23
	bl	_decode_gainc_levels
	tbnz	w0, #31, LBB0_15
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x21
	mov	x1, x20
	mov	x2, x22
	mov	x3, x23
	mov	x4, x19
	bl	_decode_gainc_loc_codes
	tbnz	w0, #31, LBB0_15
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	tbnz	w24, #31, LBB0_3
; %bb.11:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x20]
	add	x8, x8, x22, lsl #4
	ldr	w9, [x8]
	cmp	w23, w9
	b.ge	LBB0_3
; %bb.12:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x9, [x8, #8]
	sxtw	x10, w23
LBB0_13:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x11, x9, x10, lsl #2
	ldur	w12, [x11, #-4]
	str	w12, [x11]
	add	x10, x10, #1
	ldrsw	x11, [x8]
	cmp	x10, x11
	b.lt	LBB0_13
	b	LBB0_3
LBB0_14:
	mov	w0, #0
LBB0_15:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_ATRAC3P_SUBBANDS,4,2           ; @ATRAC3P_SUBBANDS
	.no_dead_strip	_decode_gainc_data
.subsections_via_symbols
