	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ogg_read_timestamp
_ogg_read_timestamp:                    ## @ogg_read_timestamp
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -96(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r15
	movl	%esi, %r12d
	movq	%rdi, %rbx
	movq	(%rdi), %rdi
	movq	8(%rbx), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	_AV_NOPTS_VALUE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	(%rdx), %rsi
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rdi, -88(%rbp)                 ## 8-byte Spill
	callq	_avio_seek
	movq	%rbx, %rdi
	callq	_ogg_reset
	movslq	%r12d, %rax
	movq	$-1, -72(%rbp)                  ## 8-byte Folded Spill
	leaq	(%rax,%rax,2), %r14
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	callq	_avio_tell
	cmpq	-96(%rbp), %rax                 ## 8-byte Folded Reload
	jg	LBB0_14
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rdi
	leaq	-44(%rbp), %rsi
	leaq	-64(%rbp), %rdx
	leaq	-60(%rbp), %rcx
	movq	%r15, %r8
	callq	_ogg_packet
	testl	%eax, %eax
	jne	LBB0_14
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpl	%r12d, -44(%rbp)
	jne	LBB0_13
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %r13
	movl	(%r13,%r14,8), %eax
	movq	_OGG_FLAG_EOS@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_OGG_FLAG_BOS@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_ff_ogm_video_codec@GOTPCREL(%rip), %rax
	cmpq	%rax, 16(%r13,%r14,8)
	je	LBB0_1
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rdi
	movl	%r12d, %esi
	xorl	%edx, %edx
	callq	_ogg_calc_pts
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	-44(%rbp), %esi
	movl	-64(%rbp), %edx
	movl	-60(%rbp), %ecx
	movq	%rbx, %rdi
	callq	_ogg_validate_keyframe
	movq	_AV_PKT_FLAG_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%r13,%r14,8)
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	(%r15), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
LBB0_13:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	_AV_NOPTS_VALUE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_1
	jmp	LBB0_14
LBB0_9:                                 ##   in Loop: Header=BB0_1 Depth=1
	cmpq	$0, 8(%r13,%r14,8)
	je	LBB0_13
## %bb.10:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	testq	%rax, %rax
	js	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	%rax, (%r15)
	jmp	LBB0_13
LBB0_12:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	_AV_NOPTS_VALUE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_13
LBB0_14:
	movq	%rbx, %rdi
	callq	_ogg_reset
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	addq	$56, %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
	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
	.comm	_OGG_FLAG_EOS,4,2               ## @OGG_FLAG_EOS
	.comm	_OGG_FLAG_BOS,4,2               ## @OGG_FLAG_BOS
	.comm	_ff_ogm_video_codec,4,2         ## @ff_ogm_video_codec
	.comm	_AV_PKT_FLAG_KEY,4,2            ## @AV_PKT_FLAG_KEY
	.no_dead_strip	_ogg_read_timestamp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ogg_read_timestamp
_ogg_read_timestamp:                    ; @ogg_read_timestamp
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _AV_NOPTS_VALUE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_NOPTS_VALUE@GOTPAGEOFF]
	ldp	x24, x26, [x0]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #8]                    ; 8-byte Folded Spill
	ldr	x1, [x2]
Lloh3:
	adrp	x8, _SEEK_SET@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SEEK_SET@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x24
	bl	_avio_seek
	mov	x0, x19
	bl	_ogg_reset
	sxtw	x27, w22
	mov	x8, #-1
	str	x8, [sp]                        ; 8-byte Folded Spill
	mov	w25, #24
	mul	x28, x27, x25
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x24
	bl	_avio_tell
	cmp	x0, x20
	b.gt	LBB0_14
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	add	x1, sp, #28
	add	x2, sp, #24
	add	x3, sp, #20
	mov	x0, x19
	mov	x4, x21
	bl	_ogg_packet
	cbnz	w0, LBB0_14
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w8, [sp, #28]
	cmp	w8, w22
	b.ne	LBB0_9
; %bb.4:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x23, [x26]
	ldr	w8, [x23, x28]
Lloh6:
	adrp	x9, _OGG_FLAG_EOS@GOTPAGE
Lloh7:
	ldr	x9, [x9, _OGG_FLAG_EOS@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_1 Depth=1
Lloh9:
	adrp	x9, _OGG_FLAG_BOS@GOTPAGE
Lloh10:
	ldr	x9, [x9, _OGG_FLAG_BOS@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_1 Depth=1
	madd	x8, x27, x25, x23
	ldr	x8, [x8, #16]
Lloh12:
	adrp	x9, _ff_ogm_video_codec@GOTPAGE
Lloh13:
	ldr	x9, [x9, _ff_ogm_video_codec@GOTPAGEOFF]
	cmp	x8, x9
	b.eq	LBB0_1
LBB0_7:                                 ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x19
	mov	x1, x22
	mov	x2, #0
	bl	_ogg_calc_pts
	str	x0, [sp, #8]                    ; 8-byte Folded Spill
	ldp	w2, w1, [sp, #24]
	ldr	w3, [sp, #20]
	mov	x0, x19
	bl	_ogg_validate_keyframe
	madd	x8, x27, x25, x23
	ldr	w8, [x8, #4]
Lloh14:
	adrp	x9, _AV_PKT_FLAG_KEY@GOTPAGE
Lloh15:
	ldr	x9, [x9, _AV_PKT_FLAG_KEY@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x8, [x21]
	str	x8, [sp]                        ; 8-byte Folded Spill
LBB0_9:                                 ;   in Loop: Header=BB0_1 Depth=1
Lloh17:
	adrp	x8, _AV_NOPTS_VALUE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _AV_NOPTS_VALUE@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
	ldr	x9, [sp, #8]                    ; 8-byte Folded Reload
	cmp	x9, x8
	b.eq	LBB0_1
	b	LBB0_14
LBB0_10:                                ;   in Loop: Header=BB0_1 Depth=1
	madd	x8, x27, x25, x23
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_1 Depth=1
	ldr	x8, [sp]                        ; 8-byte Folded Reload
	tbnz	x8, #63, LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_1 Depth=1
	str	x8, [x21]
	b	LBB0_9
LBB0_13:                                ;   in Loop: Header=BB0_1 Depth=1
Lloh20:
	adrp	x8, _AV_NOPTS_VALUE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _AV_NOPTS_VALUE@GOTPAGEOFF]
Lloh22:
	ldr	x8, [x8]
	str	x8, [sp, #8]                    ; 8-byte Folded Spill
	b	LBB0_9
LBB0_14:
	mov	x0, x19
	bl	_ogg_reset
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_NOPTS_VALUE,8,3             ; @AV_NOPTS_VALUE
	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
	.comm	_OGG_FLAG_EOS,4,2               ; @OGG_FLAG_EOS
	.comm	_OGG_FLAG_BOS,4,2               ; @OGG_FLAG_BOS
	.comm	_ff_ogm_video_codec,4,2         ; @ff_ogm_video_codec
	.comm	_AV_PKT_FLAG_KEY,4,2            ; @AV_PKT_FLAG_KEY
	.no_dead_strip	_ogg_read_timestamp
.subsections_via_symbols
