	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function speex_packet
_speex_packet:                          ## @speex_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rax
	movq	(%rax), %r15
	movslq	%esi, %rbx
	shlq	$6, %rbx
	leaq	(%r15,%rbx), %r14
	movq	56(%r15,%rbx), %rdx
	movslq	(%rdx), %rcx
	movq	_OGG_FLAG_EOS@GOTPCREL(%rip), %rsi
	movl	(%rsi), %eax
	testl	%eax, (%r15,%rbx)
	je	LBB0_4
## %bb.1:
	movq	8(%r15,%rbx), %r12
	movq	_AV_NOPTS_VALUE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r12
	je	LBB0_4
## %bb.2:
	movq	16(%r15,%rbx), %r13
	testq	%r13, %r13
	jle	LBB0_4
## %bb.3:
	movq	%r14, %rdi
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	callq	_ogg_page_packets
	movq	_OGG_FLAG_EOS@GOTPCREL(%rip), %rsi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	decl	%eax
	imull	%ecx, %eax
	cltq
	addq	%rax, %r12
	subq	%r12, %r13
	movq	%r13, 8(%rdx)
LBB0_4:
	cmpq	$0, 8(%r15,%rbx)
	jne	LBB0_7
## %bb.5:
	movq	16(%r15,%rbx), %r12
	testq	%r12, %r12
	jle	LBB0_7
## %bb.6:
	leaq	(%r15,%rbx), %rax
	addq	$8, %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r13
	callq	_ogg_page_packets
	movq	_OGG_FLAG_EOS@GOTPCREL(%rip), %rsi
	movq	%r13, %rdx
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	imull	%ecx, %eax
	cltq
	subq	%rax, %r12
	movq	%r12, 24(%r15,%rbx)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%r12, (%rax)
LBB0_7:
	movl	(%rsi), %eax
	testl	%eax, (%r14)
	je	LBB0_10
## %bb.8:
	movq	32(%r15,%rbx), %rax
	cmpq	40(%r15,%rbx), %rax
	jne	LBB0_10
## %bb.9:
	movq	8(%rdx), %rax
	testq	%rax, %rax
	jne	LBB0_11
LBB0_10:
	movq	%rcx, %rax
LBB0_11:
	movq	%rax, 48(%r15,%rbx)
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OGG_FLAG_EOS,4,2               ## @OGG_FLAG_EOS
	.comm	_AV_NOPTS_VALUE,8,3             ## @AV_NOPTS_VALUE
	.no_dead_strip	_speex_packet
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function speex_packet
_speex_packet:                          ; @speex_packet
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
                                        ; kill: def $w1 killed $w1 def $x1
	ldr	x8, [x0]
	ldr	x20, [x8]
	sxtw	x21, w1
	add	x24, x20, x21, lsl #6
	mov	x19, x24
	ldr	x23, [x24, #56]
	ldrsw	x22, [x23]
	ldr	w8, [x24]
Lloh0:
	adrp	x25, _OGG_FLAG_EOS@GOTPAGE
Lloh1:
	ldr	x25, [x25, _OGG_FLAG_EOS@GOTPAGEOFF]
	ldr	w9, [x25]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.1:
	ldr	x26, [x24, #8]
Lloh2:
	adrp	x8, _AV_NOPTS_VALUE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AV_NOPTS_VALUE@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x26, x8
	b.eq	LBB0_4
; %bb.2:
	add	x8, x20, x21, lsl #6
	ldr	x27, [x8, #16]
	cmp	x27, #1
	b.lt	LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_ogg_page_packets
	sub	w8, w0, #1
	mul	w8, w8, w22
	add	x8, x26, w8, sxtw
	sub	x8, x27, x8
	str	x8, [x23, #8]
LBB0_4:
	ldr	x8, [x24, #8]!
	cbnz	x8, LBB0_7
; %bb.5:
	add	x26, x20, x21, lsl #6
	ldr	x27, [x26, #16]
	cmp	x27, #1
	b.lt	LBB0_7
; %bb.6:
	mov	x0, x19
	bl	_ogg_page_packets
	mul	w8, w0, w22
	sub	x8, x27, w8, sxtw
	str	x8, [x26, #24]
	str	x8, [x24]
LBB0_7:
	ldr	w8, [x19]
	ldr	w9, [x25]
	tst	w9, w8
	b.eq	LBB0_10
; %bb.8:
	add	x8, x20, x21, lsl #6
	ldp	x9, x8, [x8, #32]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.9:
	ldr	x8, [x23, #8]
	cbnz	x8, LBB0_11
LBB0_10:
	mov	x8, x22
LBB0_11:
	add	x9, x20, x21, lsl #6
	str	x8, [x9, #48]
	mov	w0, #0
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_OGG_FLAG_EOS,4,2               ; @OGG_FLAG_EOS
	.comm	_AV_NOPTS_VALUE,8,3             ; @AV_NOPTS_VALUE
	.no_dead_strip	_speex_packet
.subsections_via_symbols
