	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mp3_read_packet
_mp3_read_packet:                       ## @mp3_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	8(%rdi), %r12
	movq	_MP3_PACKET_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	(%rdi), %edi
	callq	_avio_tell
	movq	(%r12), %rsi
	movq	_ID3v1_TAG_SIZE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rsi
	jle	LBB0_3
## %bb.1:
	subq	%rax, %rsi
	jle	LBB0_3
## %bb.2:
	movl	%r15d, %edi
	callq	_FFMIN
	movl	%eax, %r15d
LBB0_3:
	movl	(%rbx), %edi
	movq	%r14, %rsi
	movl	%r15d, %edx
	callq	_av_get_packet
	testl	%eax, %eax
	jle	LBB0_4
## %bb.6:
	movq	_AV_PKT_FLAG_CORRUPT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	andl	%ecx, 8(%r14)
	movq	$0, (%r14)
	jmp	LBB0_7
LBB0_4:
	jne	LBB0_7
## %bb.5:
	movq	_AVERROR_EOF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_7:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MP3_PACKET_SIZE,4,2            ## @MP3_PACKET_SIZE
	.comm	_ID3v1_TAG_SIZE,8,3             ## @ID3v1_TAG_SIZE
	.comm	_AVERROR_EOF,4,2                ## @AVERROR_EOF
	.comm	_AV_PKT_FLAG_CORRUPT,4,2        ## @AV_PKT_FLAG_CORRUPT
	.no_dead_strip	_mp3_read_packet
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mp3_read_packet
_mp3_read_packet:                       ; @mp3_read_packet
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x1
	mov	x20, x0
	ldr	x22, [x0, #8]
Lloh0:
	adrp	x8, _MP3_PACKET_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MP3_PACKET_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
	ldr	w0, [x0]
	bl	_avio_tell
	ldr	x8, [x22]
Lloh3:
	adrp	x9, _ID3v1_TAG_SIZE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ID3v1_TAG_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	ccmp	x8, x0, #4, gt
	b.le	LBB0_2
; %bb.1:
	sub	x1, x8, x0
	mov	x0, x21
	bl	_FFMIN
	mov	x21, x0
LBB0_2:
	ldr	w0, [x20]
	mov	x1, x19
	mov	x2, x21
	bl	_av_get_packet
	cmp	w0, #0
	b.le	LBB0_4
; %bb.3:
Lloh6:
	adrp	x8, _AV_PKT_FLAG_CORRUPT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AV_PKT_FLAG_CORRUPT@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ldr	w9, [x19, #8]
	bic	w8, w9, w8
	str	w8, [x19, #8]
	str	xzr, [x19]
	b	LBB0_5
LBB0_4:
Lloh9:
	adrp	x8, _AVERROR_EOF@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AVERROR_EOF@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	csel	w0, w8, w0, eq
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_MP3_PACKET_SIZE,4,2            ; @MP3_PACKET_SIZE
	.comm	_ID3v1_TAG_SIZE,8,3             ; @ID3v1_TAG_SIZE
	.comm	_AVERROR_EOF,4,2                ; @AVERROR_EOF
	.comm	_AV_PKT_FLAG_CORRUPT,4,2        ; @AV_PKT_FLAG_CORRUPT
	.no_dead_strip	_mp3_read_packet
.subsections_via_symbols
