	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function atrac3_decode_frame
_atrac3_decode_frame:                   ## @atrac3_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %rax
	movq	%rdi, %r12
	movl	(%rcx), %ecx
	cmpl	(%rdi), %ecx
	jge	LBB0_2
## %bb.1:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_av_log
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_9
LBB0_2:
	movq	%rsi, %r15
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	8(%rax), %r13
	movq	8(%r12), %r14
	movq	_SAMPLES_PER_FRAME@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rsi)
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_ff_get_buffer
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	cmpq	$0, 8(%r14)
	je	LBB0_6
## %bb.5:
	movq	(%r14), %rsi
	movl	(%r12), %edx
	movq	%r13, %rdi
	callq	_decode_bytes
	movq	(%r14), %r13
LBB0_6:
	movq	(%r15), %rdx
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_decode_frame
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	movl	%eax, %ebx
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_av_log
	jmp	LBB0_9
LBB0_3:
	movl	%eax, %ebx
	jmp	LBB0_9
LBB0_8:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	$1, (%rax)
	movl	(%r12), %ebx
LBB0_9:
	movl	%ebx, %eax
	addq	$8, %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	"Frame too small (%d bytes). Truncated file?\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.comm	_SAMPLES_PER_FRAME,4,2          ## @SAMPLES_PER_FRAME
L_.str.1:                               ## @.str.1
	.asciz	"Frame decoding error!\n"

	.no_dead_strip	_atrac3_decode_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function atrac3_decode_frame
_atrac3_decode_frame:                   ; @atrac3_decode_frame
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x0
	ldr	w8, [x3]
	ldr	w9, [x0]
	cmp	w8, w9
	b.ge	LBB0_2
; %bb.1:
Lloh0:
	adrp	x9, _AV_LOG_ERROR@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x9]
	str	x8, [sp]
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]
Lloh7:
	ldr	w23, [x8]
	b	LBB0_9
LBB0_2:
	mov	x20, x2
	mov	x21, x1
	ldr	x22, [x3, #8]
	ldr	x24, [x19, #8]
Lloh8:
	adrp	x8, _SAMPLES_PER_FRAME@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SAMPLES_PER_FRAME@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	w8, [x1, #8]
	mov	x0, x19
	mov	w2, #0
	bl	_ff_get_buffer
	tbnz	w0, #31, LBB0_7
; %bb.3:
	ldr	x8, [x24, #8]
	cbz	x8, LBB0_5
; %bb.4:
	ldr	x1, [x24]
	ldr	w2, [x19]
	mov	x0, x22
	bl	_decode_bytes
	ldr	x22, [x24]
LBB0_5:
	ldr	x2, [x21]
	mov	x0, x19
	mov	x1, x22
	bl	_decode_frame
	cbz	w0, LBB0_8
; %bb.6:
	mov	x23, x0
Lloh11:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
Lloh14:
	adrp	x2, l_.str.1@PAGE
Lloh15:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_av_log
	b	LBB0_9
LBB0_7:
	mov	x23, x0
	b	LBB0_9
LBB0_8:
	mov	w8, #1
	str	w8, [x20]
	ldr	w23, [x19]
LBB0_9:
	mov	x0, x23
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Frame too small (%d bytes). Truncated file?\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_SAMPLES_PER_FRAME,4,2          ; @SAMPLES_PER_FRAME
l_.str.1:                               ; @.str.1
	.asciz	"Frame decoding error!\n"

	.no_dead_strip	_atrac3_decode_frame
.subsections_via_symbols
