	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_packet
_read_packet:                           ## @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	(%rdi), %rax
	movq	8(%rdi), %rbx
	movq	(%rax), %rax
	movq	(%rax), %rax
	cmpq	(%rbx), %rax
	jg	LBB0_1
## %bb.2:
	movq	%rsi, %r15
	movq	%rdi, %r13
	movl	12(%rbx), %edi
	xorl	%esi, %esi
	callq	_cdio_paranoia_read
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %r14
	movl	8(%rbx), %edi
	callq	_cdio_cddap_errors
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	%rax, %r12
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r13, %rdi
	movq	%r12, %rcx
	callq	_av_log
	movq	%r12, %rdi
	callq	_free
LBB0_5:
	movl	8(%rbx), %edi
	callq	_cdio_cddap_messages
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	%rax, %r12
	movq	_AV_LOG_VERBOSE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r13, %rdi
	movq	%r12, %rcx
	callq	_av_log
	movq	%r12, %rdi
	callq	_free
LBB0_7:
	movq	_CDIO_CD_FRAMESIZE_RAW@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r15, %rdi
	callq	_av_new_packet
	testl	%eax, %eax
	js	LBB0_9
## %bb.8:
	movl	(%r15), %edi
	movl	(%rbx), %edx
	movq	%r14, %rsi
	callq	_memcpy
	xorl	%eax, %eax
	jmp	LBB0_9
LBB0_1:
	movq	_AVERROR_EOF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AVERROR_EOF,4,2                ## @AVERROR_EOF
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s\n"

	.comm	_AV_LOG_VERBOSE,4,2             ## @AV_LOG_VERBOSE
	.comm	_CDIO_CD_FRAMESIZE_RAW,4,2      ## @CDIO_CD_FRAMESIZE_RAW
	.no_dead_strip	_read_packet
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_packet
_read_packet:                           ; @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
	ldp	x8, x23, [x0]
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	x9, [x23]
	cmp	x8, x9
	b.gt	LBB0_8
; %bb.1:
	mov	x19, x1
	mov	x21, x0
	ldr	w0, [x23, #12]
	mov	x1, #0
	bl	_cdio_paranoia_read
	cbz	x0, LBB0_8
; %bb.2:
	mov	x20, x0
	ldr	w0, [x23, #8]
	bl	_cdio_cddap_errors
	cbz	x0, LBB0_4
; %bb.3:
	mov	x22, x0
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, x21
	mov	x3, x22
	bl	_av_log
	mov	x0, x22
	bl	_free
LBB0_4:
	ldr	w0, [x23, #8]
	bl	_cdio_cddap_messages
	cbz	x0, LBB0_6
; %bb.5:
	mov	x22, x0
Lloh5:
	adrp	x8, _AV_LOG_VERBOSE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AV_LOG_VERBOSE@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x2, l_.str@PAGE
Lloh9:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x21
	mov	x3, x22
	bl	_av_log
	mov	x0, x22
	bl	_free
LBB0_6:
Lloh10:
	adrp	x21, _CDIO_CD_FRAMESIZE_RAW@GOTPAGE
Lloh11:
	ldr	x21, [x21, _CDIO_CD_FRAMESIZE_RAW@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_av_new_packet
	tbnz	w0, #31, LBB0_9
; %bb.7:
	ldr	w0, [x19]
	ldr	w2, [x21]
	mov	x1, x20
	bl	_memcpy
	mov	w0, #0
	b	LBB0_9
LBB0_8:
Lloh12:
	adrp	x8, _AVERROR_EOF@GOTPAGE
Lloh13:
	ldr	x8, [x8, _AVERROR_EOF@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
LBB0_9:
	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
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_AVERROR_EOF,4,2                ; @AVERROR_EOF
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s\n"

	.comm	_AV_LOG_VERBOSE,4,2             ; @AV_LOG_VERBOSE
	.comm	_CDIO_CD_FRAMESIZE_RAW,4,2      ; @CDIO_CD_FRAMESIZE_RAW
	.no_dead_strip	_read_packet
.subsections_via_symbols
