	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ogg_compare_granule
_ogg_compare_granule:                   ## @ogg_compare_granule
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rcx
	movl	8(%rsi), %esi
	xorl	%eax, %eax
	cmpl	$-1, %esi
	je	LBB0_3
## %bb.1:
	movq	%rdx, %rbx
	cmpl	$-1, 8(%rdx)
	je	LBB0_3
## %bb.2:
	movq	(%rdi), %rax
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %r14
	movq	(%rbx), %rcx
	movq	(%rax,%rcx,8), %r15
	movl	4(%r14), %edi
	callq	_ogg_granule_to_timestamp
	movl	(%r14), %esi
	movq	_AV_TIME_BASE_Q@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movl	%eax, %edi
	callq	_av_rescale_q
	movq	%rax, %r14
	movl	4(%r15), %edi
	movl	8(%rbx), %esi
	callq	_ogg_granule_to_timestamp
	movl	(%r15), %esi
	movl	(%r12), %edx
	movl	%eax, %edi
	callq	_av_rescale_q
	movq	%rax, %rcx
	xorl	%eax, %eax
	cmpq	%rcx, %r14
	setg	%al
LBB0_3:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_TIME_BASE_Q,4,2             ## @AV_TIME_BASE_Q
	.no_dead_strip	_ogg_compare_granule
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ogg_compare_granule
_ogg_compare_granule:                   ; @ogg_compare_granule
	.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
	mov	x8, x1
	ldr	w1, [x1, #8]
	cmn	w1, #1
	b.eq	LBB0_3
; %bb.1:
	mov	x19, x2
	ldr	w9, [x2, #8]
	cmn	w9, #1
	b.eq	LBB0_3
; %bb.2:
	ldr	x9, [x0]
	ldr	x8, [x8]
	ldr	x20, [x9, x8, lsl #3]
	ldr	x8, [x19]
	ldr	x21, [x9, x8, lsl #3]
	ldr	w0, [x20, #4]
	bl	_ogg_granule_to_timestamp
	ldr	w1, [x20]
Lloh0:
	adrp	x22, _AV_TIME_BASE_Q@GOTPAGE
Lloh1:
	ldr	x22, [x22, _AV_TIME_BASE_Q@GOTPAGEOFF]
	ldr	w2, [x22]
	bl	_av_rescale_q
	mov	x20, x0
	ldr	w0, [x21, #4]
	ldr	w1, [x19, #8]
	bl	_ogg_granule_to_timestamp
	ldr	w1, [x21]
	ldr	w2, [x22]
	bl	_av_rescale_q
	cmp	x20, x0
	cset	w0, gt
	b	LBB0_4
LBB0_3:
	mov	w0, #0
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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_TIME_BASE_Q,4,2             ; @AV_TIME_BASE_Q
	.no_dead_strip	_ogg_compare_granule
.subsections_via_symbols
