	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function atrac9_decode_frame
_atrac9_decode_frame:                   ## @atrac9_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r13
	movq	%rdi, %r12
	movq	8(%rdi), %rbx
	movl	(%rcx), %eax
	cltd
	idivl	(%rbx)
	movl	24(%rbx), %esi
	movl	%eax, %edi
	callq	_FFMIN
	movl	%eax, %r15d
	movb	4(%rbx), %cl
	shll	%cl, %eax
	movl	%eax, (%r13)
	movq	%r12, %rdi
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	movq	%r13, %rsi
	xorl	%edx, %edx
	callq	_ff_get_buffer
	testl	%eax, %eax
	js	LBB0_9
## %bb.1:
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movl	(%r14), %edx
	movl	4(%r14), %esi
	leaq	-48(%rbp), %rdi
	callq	_init_get_bits8
	testl	%r15d, %r15d
	jle	LBB0_8
## %bb.2:
	movl	%r15d, %ecx
	movq	16(%rbx), %rax
	xorl	%r14d, %r14d
	leaq	-48(%rbp), %r15
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	incl	%r14d
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	cmpl	%ecx, %r14d
	je	LBB0_8
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	cmpl	$0, (%rax)
	jle	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	xorl	%r12d, %r12d
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_5:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	8(%rbx), %rdx
	addq	%r12, %rdx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movl	%r14d, %r8d
	movl	%r13d, %r9d
	callq	_atrac9_decode_block
	testl	%eax, %eax
	jne	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=2
	movq	%r15, %rdi
	callq	_align_get_bits
	incq	%r13
	movq	16(%rbx), %rax
	movslq	(%rax), %rcx
	addq	$4, %r12
	cmpq	%rcx, %r13
	jl	LBB0_5
	jmp	LBB0_7
LBB0_8:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	$1, (%rax)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %eax
LBB0_9:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_atrac9_decode_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function atrac9_decode_frame
_atrac9_decode_frame:                   ; @atrac9_decode_frame
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x24, x3
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
	ldr	x22, [x0, #8]
	ldr	w8, [x3]
	ldr	w9, [x22]
	sdiv	w0, w8, w9
	ldr	w1, [x22, #24]
	bl	_FFMIN
	mov	x23, x0
	ldr	w8, [x22, #4]
	lsl	w8, w0, w8
	str	w8, [x21]
	mov	x0, x20
	mov	x1, x21
	mov	w2, #0
	bl	_ff_get_buffer
	tbnz	w0, #31, LBB0_9
; %bb.1:
	ldp	w2, w1, [x24]
	add	x0, sp, #12
	bl	_init_get_bits8
	cmp	w23, #1
	b.lt	LBB0_8
; %bb.2:
	mov	w24, #0
	ldr	x8, [x22, #16]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w24, w24, #1
	cmp	w24, w23
	b.eq	LBB0_8
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x26, #0
	mov	x25, #0
LBB0_6:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x22, #8]
	add	x2, x8, x26
	add	x1, sp, #12
	mov	x0, x22
	mov	x3, x21
	mov	x4, x24
	mov	x5, x25
	bl	_atrac9_decode_block
	cbnz	w0, LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=2
	add	x0, sp, #12
	bl	_align_get_bits
	add	x25, x25, #1
	ldr	x8, [x22, #16]
	ldrsw	x9, [x8]
	add	x26, x26, #4
	cmp	x25, x9
	b.lt	LBB0_6
	b	LBB0_3
LBB0_8:
	mov	w8, #1
	str	w8, [x19]
	ldr	w0, [x20]
LBB0_9:
	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
	add	sp, sp, #96
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_atrac9_decode_frame
.subsections_via_symbols
