	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function aal_read_packet
_aal_read_packet:                       ## @aal_read_packet
	.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	%rsi, %r14
	movq	%rdi, %rbx
	movl	8(%rdi), %edi
	callq	_avio_tell
	movl	%eax, %r15d
	movl	8(%rbx), %edi
	callq	_avio_feof
	testq	%rax, %rax
	je	LBB0_4
LBB0_1:
	movq	_AVERROR_EOF@GOTPCREL(%rip), %rax
LBB0_2:
	movl	(%rax), %eax
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movl	8(%rbx), %edi
	callq	_avio_rb24
	testl	%eax, %eax
	je	LBB0_1
## %bb.5:
	movl	%eax, %r12d
	xorl	%edi, %edi
	movl	$66, %esi
	movl	$76, %edx
	movl	$75, %ecx
	callq	_MKBETAG
	cmpl	%eax, %r12d
	jne	LBB0_12
## %bb.6:
	movl	8(%rbx), %edi
	movl	$1, %esi
	callq	_avio_skip
	movl	8(%rbx), %edi
	callq	_avio_rb16
	movl	%eax, %r13d
	movl	8(%rbx), %edi
	movl	$2, %esi
	callq	_avio_skip
	movl	8(%rbx), %edi
	callq	_avio_rb32
	movl	%eax, %r12d
	movl	8(%rbx), %edi
	movl	$12, %esi
	callq	_avio_skip
	movl	8(%rbx), %edi
	movq	%r14, %rsi
	movl	%r13d, %edx
	callq	_av_get_packet
	cmpl	%r13d, %eax
	jge	LBB0_8
## %bb.7:
	movq	_AV_PKT_FLAG_CORRUPT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, 24(%r14)
LBB0_8:
	testl	%eax, %eax
	js	LBB0_3
## %bb.9:
	je	LBB0_1
## %bb.10:
	movq	$0, 16(%r14)
	movl	%r15d, 8(%r14)
	movq	(%rbx), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx), %rcx
	movq	_AV_CODEC_ID_ATRAC3AL@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_13
## %bb.11:
	movl	$1024, (%r14)                   ## imm = 0x400
	shll	$10, %r12d
	jmp	LBB0_14
LBB0_12:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_13:
	movl	$2048, (%r14)                   ## imm = 0x800
	shll	$11, %r12d
LBB0_14:
	movl	%r12d, 4(%r14)
	jmp	LBB0_3
	.cfi_endproc
                                        ## -- End function
	.comm	_AVERROR_EOF,4,2                ## @AVERROR_EOF
	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.comm	_AV_PKT_FLAG_CORRUPT,4,2        ## @AV_PKT_FLAG_CORRUPT
	.comm	_AV_CODEC_ID_ATRAC3AL,8,3       ## @AV_CODEC_ID_ATRAC3AL
	.no_dead_strip	_aal_read_packet
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function aal_read_packet
_aal_read_packet:                       ; @aal_read_packet
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x1
	mov	x20, x0
	ldr	w0, [x0, #8]
	bl	_avio_tell
	mov	x21, x0
	ldr	w0, [x20, #8]
	bl	_avio_feof
	cbz	x0, LBB0_4
LBB0_1:
Lloh0:
	adrp	x8, _AVERROR_EOF@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AVERROR_EOF@GOTPAGEOFF]
LBB0_2:
	ldr	w0, [x8]
LBB0_3:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_4:
	ldr	w0, [x20, #8]
	bl	_avio_rb24
	cbz	w0, LBB0_1
; %bb.5:
	mov	x22, x0
	mov	w0, #0
	mov	w1, #66
	mov	w2, #76
	mov	w3, #75
	bl	_MKBETAG
	cmp	w22, w0
	b.ne	LBB0_12
; %bb.6:
	ldr	w0, [x20, #8]
	mov	w1, #1
	bl	_avio_skip
	ldr	w0, [x20, #8]
	bl	_avio_rb16
	mov	x23, x0
	ldr	w0, [x20, #8]
	mov	w1, #2
	bl	_avio_skip
	ldr	w0, [x20, #8]
	bl	_avio_rb32
	mov	x22, x0
	ldr	w0, [x20, #8]
	mov	w1, #12
	bl	_avio_skip
	ldr	w0, [x20, #8]
	mov	x1, x19
	mov	x2, x23
	bl	_av_get_packet
	cmp	w0, w23
	b.ge	LBB0_8
; %bb.7:
Lloh2:
	adrp	x8, _AV_PKT_FLAG_CORRUPT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AV_PKT_FLAG_CORRUPT@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	ldr	w9, [x19, #24]
	orr	w8, w9, w8
	str	w8, [x19, #24]
LBB0_8:
	tbnz	w0, #31, LBB0_3
; %bb.9:
	cbz	w0, LBB0_1
; %bb.10:
	str	xzr, [x19, #16]
	str	w21, [x19, #8]
	ldr	x8, [x20]
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	x8, [x8]
Lloh5:
	adrp	x9, _AV_CODEC_ID_ATRAC3AL@GOTPAGE
Lloh6:
	ldr	x9, [x9, _AV_CODEC_ID_ATRAC3AL@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_13
; %bb.11:
	mov	w8, #1024
	lsl	w9, w22, #10
	b	LBB0_14
LBB0_12:
Lloh8:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
	b	LBB0_2
LBB0_13:
	mov	w8, #2048
	lsl	w9, w22, #11
LBB0_14:
	stp	w8, w9, [x19]
	b	LBB0_3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_AVERROR_EOF,4,2                ; @AVERROR_EOF
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_AV_PKT_FLAG_CORRUPT,4,2        ; @AV_PKT_FLAG_CORRUPT
	.comm	_AV_CODEC_ID_ATRAC3AL,8,3       ; @AV_CODEC_ID_ATRAC3AL
	.no_dead_strip	_aal_read_packet
.subsections_via_symbols
