	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function atrac1_decode_frame
_atrac1_decode_frame:                   ## @atrac1_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	%rdi, %rbx
	imull	$212, (%rdi), %eax
	cmpl	%eax, (%rcx)
	jge	LBB0_2
## %bb.1:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rdi
	callq	_av_log
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rbx
	jmp	LBB0_10
LBB0_2:
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	8(%rcx), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	8(%rbx), %r13
	movq	_AT1_SU_SAMPLES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rsi)
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_ff_get_buffer
	testl	%eax, %eax
	js	LBB0_11
## %bb.3:
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	cmpl	$0, (%rbx)
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	jle	LBB0_9
## %bb.4:
	xorl	%r15d, %r15d
	leaq	-52(%rbp), %r12
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movq	8(%r13), %r14
	movq	%r12, %rdi
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movl	$1696, %edx                     ## imm = 0x6A0
	callq	_init_get_bits
	movl	(%r14,%r15), %esi
	movq	%r12, %rdi
	callq	_at1_parse_bsm
	testl	%eax, %eax
	js	LBB0_11
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	addq	%r15, %r14
	movl	(%r13), %edx
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_at1_unpack_dequant
	testl	%eax, %eax
	js	LBB0_11
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_at1_imdct_block
	testl	%eax, %eax
	js	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	(%rax,%r15,2), %rdx
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_at1_subband_synthesis
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	incq	%rcx
	movslq	(%rbx), %rax
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	addq	$848, %rsi                      ## imm = 0x350
	addq	$4, %r15
	cmpq	%rax, %rcx
	leaq	-52(%rbp), %r12
	jl	LBB0_5
LBB0_9:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	$1, (%rax)
	addq	$4, %rbx
LBB0_10:
	movl	(%rbx), %eax
LBB0_11:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Not enough data to decode!\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.comm	_AT1_SU_SAMPLES,4,2             ## @AT1_SU_SAMPLES
	.no_dead_strip	_atrac1_decode_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function atrac1_decode_frame
_atrac1_decode_frame:                   ; @atrac1_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	x19, x0
	ldr	w8, [x3]
	ldr	w9, [x0]
	mov	w10, #212
	mul	w9, w9, w10
	cmp	w8, w9
	b.ge	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_av_log
Lloh5:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
	b	LBB0_10
LBB0_2:
	mov	x20, x2
	mov	x21, x1
	ldr	x22, [x3, #8]
	ldr	x23, [x19, #8]
Lloh7:
	adrp	x8, _AT1_SU_SAMPLES@GOTPAGE
Lloh8:
	ldr	x8, [x8, _AT1_SU_SAMPLES@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	str	w8, [x1, #8]
	mov	x0, x19
	mov	w2, #0
	bl	_ff_get_buffer
	tbnz	w0, #31, LBB0_11
; %bb.3:
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.4:
	mov	x25, #0
	mov	x26, #0
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x24, [x23, #8]
	add	x0, sp, #12
	mov	x1, x22
	mov	w2, #1696
	bl	_init_get_bits
	ldr	w1, [x24, x26, lsl #2]
	add	x0, sp, #12
	bl	_at1_parse_bsm
	tbnz	w0, #31, LBB0_11
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x24, x24, x25
	ldr	w2, [x23]
	add	x0, sp, #12
	mov	x1, x24
	bl	_at1_unpack_dequant
	tbnz	w0, #31, LBB0_11
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x24
	mov	x1, x23
	bl	_at1_imdct_block
	tbnz	w0, #31, LBB0_11
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x21]
	ldr	x2, [x8, x26, lsl #3]
	mov	x0, x23
	mov	x1, x24
	bl	_at1_subband_synthesis
	add	x26, x26, #1
	ldrsw	x8, [x19]
	add	x22, x22, #848
	add	x25, x25, #4
	cmp	x26, x8
	b.lt	LBB0_5
LBB0_9:
	mov	w8, #1
	str	w8, [x20]
	add	x8, x19, #4
LBB0_10:
	ldr	w0, [x8]
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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Not enough data to decode!\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_AT1_SU_SAMPLES,4,2             ; @AT1_SU_SAMPLES
	.no_dead_strip	_atrac1_decode_frame
.subsections_via_symbols
