	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function codec2_read_packet
_codec2_read_packet:                    ## @codec2_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	8(%rdi), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movl	(%rax), %ebx
	testl	%ebx, %ebx
	jle	LBB0_6
## %bb.1:
	movl	4(%rax), %r15d
	testl	%r15d, %r15d
	jle	LBB0_6
## %bb.2:
	movq	16(%rdi), %rax
	movl	(%rax), %edx
	testl	%edx, %edx
	jle	LBB0_6
## %bb.3:
	movq	%rsi, %r14
	imull	%ebx, %edx
	movl	(%rdi), %edi
	callq	_av_get_packet
	movl	%eax, %ecx
	testl	%eax, %eax
	js	LBB0_5
## %bb.4:
	movl	%ecx, %eax
	xorl	%edx, %edx
	divl	%ebx
	imull	%r15d, %eax
	movl	%eax, (%r14)
LBB0_5:
	movl	%ecx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_codec2_read_packet
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function codec2_read_packet
_codec2_read_packet:                    ; @codec2_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
	ldr	x8, [x0, #8]
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldp	w20, w21, [x8]
	cmp	w20, #1
	ccmp	w21, #1, #8, ge
	b.lt	LBB0_5
; %bb.1:
	ldr	x8, [x0, #16]
	ldr	w8, [x8]
	cmp	w8, #0
	b.le	LBB0_5
; %bb.2:
	mov	x19, x1
	mul	w2, w8, w20
	ldr	w0, [x0]
	bl	_av_get_packet
	tbnz	w0, #31, LBB0_4
; %bb.3:
	udiv	w8, w0, w20
	mul	w8, w8, w21
	str	w8, [x19]
LBB0_4:
	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
LBB0_5:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	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
	b	_AVERROR
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_codec2_read_packet
.subsections_via_symbols
