	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ogg_reset
_ogg_reset:                             ## @ogg_reset
	.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	16(%rdi), %r12
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movl	8(%rdi), %edi
	callq	_avio_tell
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	cmpl	$0, (%r12)
	jle	LBB0_5
## %bb.1:
	xorl	%ebx, %ebx
	movq	_AV_NOPTS_VALUE@GOTPCREL(%rip), %r13
	xorl	%r14d, %r14d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	$0, 24(%r15,%rbx)
	leaq	(%r15,%rbx), %rdi
	addq	$16, %rdi
	callq	_av_freep
	movq	$0, 8(%r15,%rbx)
	incq	%r14
	movslq	(%r12), %rax
	addq	$112, %rbx
	cmpq	%rax, %r14
	jge	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r12), %r15
	xorps	%xmm0, %xmm0
	movups	%xmm0, 88(%r15,%rbx)
	movq	$0, 104(%r15,%rbx)
	movl	$-1, (%r15,%rbx)
	movq	(%r13), %rax
	movq	%rax, 32(%r15,%rbx)
	movq	(%r13), %rax
	movq	%rax, 80(%r15,%rbx)
	movl	$-1, 4(%r15,%rbx)
	movups	%xmm0, 40(%r15,%rbx)
	movups	%xmm0, 56(%r15,%rbx)
	movq	$0, 72(%r15,%rbx)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	cmpq	(%rax), %rcx
	jg	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	(%r15,%rbx), %rax
	movq	$0, 32(%rax)
	jmp	LBB0_4
LBB0_5:
	movq	$-1, 4(%r12)
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_NOPTS_VALUE,8,3             ## @AV_NOPTS_VALUE
	.no_dead_strip	_ogg_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ogg_reset
_ogg_reset:                             ; @ogg_reset
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x0
	ldr	x21, [x0, #16]
	ldr	w0, [x0, #8]
	bl	_avio_tell
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.1:
	mov	x20, x0
	mov	x22, #0
	mov	x23, #0
Lloh0:
	adrp	x24, _AV_NOPTS_VALUE@GOTPAGE
Lloh1:
	ldr	x24, [x24, _AV_NOPTS_VALUE@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	str	xzr, [x25, #24]
	add	x0, x25, #16
	bl	_av_freep
	str	xzr, [x25, #8]
	add	x23, x23, #1
	ldrsw	x8, [x21]
	add	x22, x22, #112
	cmp	x23, x8
	b.ge	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21, #16]
	add	x25, x8, x22
	stp	xzr, xzr, [x25, #88]
	str	xzr, [x25, #104]
	ldr	x8, [x24]
	str	x8, [x25, #32]
	ldr	x8, [x24]
	movi.2d	v0, #0xffffffffffffffff
	str	d0, [x25]
	movi.2d	v0, #0000000000000000
	stur	q0, [x25, #40]
	stur	q0, [x25, #56]
	stp	xzr, x8, [x25, #72]
	ldr	x8, [x19]
	ldr	x8, [x8]
	cmp	x20, x8
	b.gt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	str	xzr, [x25, #32]
	b	LBB0_2
LBB0_5:
	movi.2d	v0, #0xffffffffffffffff
	stur	d0, [x21, #4]
	mov	w0, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_NOPTS_VALUE,8,3             ; @AV_NOPTS_VALUE
	.no_dead_strip	_ogg_reset
.subsections_via_symbols
