	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function interleave_compare_dts
_interleave_compare_dts:                ## @interleave_compare_dts
	.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	%rdx, %r13
	movq	%rdi, %rbx
	movq	8(%rdi), %rax
	movq	(%rdx), %rcx
	movq	8(%rdx), %rdx
	movq	(%rax,%rcx,8), %r14
	movq	(%rsi), %rcx
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	8(%rsi), %rdi
	movq	(%rax,%rcx,8), %r12
	movq	(%r12), %rsi
	movq	(%r14), %rcx
	callq	_av_compare_ts
	movl	(%rbx), %ebx
	testl	%ebx, %ebx
	je	LBB0_5
## %bb.1:
	movq	8(%r14), %rcx
	movq	(%rcx), %rdi
	movq	_AVMEDIA_TYPE_AUDIO@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	%rcx, %rdi
	sete	%r8b
	movq	8(%r12), %rsi
	movq	(%rsi), %rsi
	cmpq	%rcx, %rsi
	sete	%dl
	cmpb	%dl, %r8b
	je	LBB0_5
## %bb.2:
	xorl	%eax, %eax
	cmpq	%rcx, %rdi
	movl	$0, %r15d
	cmovel	%ebx, %r15d
	cmpq	%rcx, %rsi
	cmovnel	%eax, %ebx
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	movq	8(%r13), %rdi
	movq	_AV_TIME_BASE_Q@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	(%r14), %rsi
	callq	_av_rescale_q
	movl	%eax, %r13d
	movl	%r15d, -52(%rbp)                ## 4-byte Spill
	subl	%r15d, %r13d
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rdi
	movq	_AV_TIME_BASE_Q@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	(%r12), %rsi
	callq	_av_rescale_q
	movl	%eax, %ecx
	subl	%ebx, %ecx
	cmpl	%ecx, %r13d
	jne	LBB0_4
## %bb.3:
	movl	(%r14), %eax
	movl	4(%r14), %ecx
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	imull	8(%rdx), %eax
	movq	_AV_TIME_BASE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	imull	%edx, %eax
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	imull	%ecx, %esi
	subl	%esi, %eax
	movl	4(%r12), %esi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	imull	8(%rdi), %edx
	imull	%esi, %eax
	imull	(%r12), %edx
	imull	%esi, %ebx
	subl	%edx, %ebx
	imull	%ecx, %ebx
	addl	%eax, %ebx
	movl	%ebx, %r13d
	xorl	%ecx, %ecx
LBB0_4:
	xorl	%eax, %eax
	xorl	%edx, %edx
	cmpl	%r13d, %ecx
	setg	%al
	setl	%dl
	subl	%edx, %eax
	movq	-64(%rbp), %r13                 ## 8-byte Reload
LBB0_5:
	testl	%eax, %eax
	je	LBB0_6
## %bb.7:
	setg	%al
	jmp	LBB0_8
LBB0_6:
	movq	(%r13), %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	cmpq	(%rcx), %rax
	setb	%al
LBB0_8:
	movzbl	%al, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AVMEDIA_TYPE_AUDIO,8,3         ## @AVMEDIA_TYPE_AUDIO
	.comm	_AV_TIME_BASE_Q,4,2             ## @AV_TIME_BASE_Q
	.comm	_AV_TIME_BASE,4,2               ## @AV_TIME_BASE
	.no_dead_strip	_interleave_compare_dts
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function interleave_compare_dts
_interleave_compare_dts:                ; @interleave_compare_dts
	.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	x20, x2
	mov	x19, x1
	mov	x21, x0
	ldr	x8, [x0, #8]
	ldp	x9, x2, [x2]
	ldr	x23, [x8, x9, lsl #3]
	ldp	x9, x0, [x1]
	ldr	x22, [x8, x9, lsl #3]
	ldr	x1, [x22]
	ldr	x3, [x23]
	bl	_av_compare_ts
	ldr	w8, [x21]
	cbz	w8, LBB0_5
; %bb.1:
	ldr	x9, [x23, #8]
	ldr	x10, [x9]
Lloh0:
	adrp	x9, _AVMEDIA_TYPE_AUDIO@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AVMEDIA_TYPE_AUDIO@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x10, x9
	cset	w12, eq
	ldr	x11, [x22, #8]
	ldr	x11, [x11]
	cmp	x11, x9
	cset	w13, eq
	cmp	w12, w13
	b.eq	LBB0_5
; %bb.2:
	cmp	x10, x9
	csel	w24, w8, wzr, eq
	cmp	x11, x9
	csel	w21, w8, wzr, eq
	ldr	x0, [x20, #8]
Lloh3:
	adrp	x26, _AV_TIME_BASE_Q@GOTPAGE
Lloh4:
	ldr	x26, [x26, _AV_TIME_BASE_Q@GOTPAGEOFF]
	ldr	w2, [x26]
	ldr	x1, [x23]
	bl	_av_rescale_q
	sub	w25, w0, w24
	ldr	x0, [x19, #8]
	ldr	w2, [x26]
	ldr	x1, [x22]
	bl	_av_rescale_q
	sub	w8, w0, w21
	cmp	w25, w8
	b.ne	LBB0_4
; %bb.3:
	mov	w8, #0
	ldr	w9, [x20, #8]
	ldp	w10, w11, [x23]
	mul	w9, w10, w9
Lloh5:
	adrp	x10, _AV_TIME_BASE@GOTPAGE
Lloh6:
	ldr	x10, [x10, _AV_TIME_BASE@GOTPAGEOFF]
Lloh7:
	ldr	w10, [x10]
	mul	w9, w9, w10
	msub	w9, w11, w24, w9
	ldr	w12, [x19, #8]
	mul	w10, w10, w12
	ldp	w13, w12, [x22]
	mul	w9, w9, w12
	mul	w10, w10, w13
	neg	w10, w10
	madd	w10, w12, w21, w10
	madd	w25, w10, w11, w9
LBB0_4:
	cmp	w8, w25
	cset	w8, gt
	cset	w9, lt
	sub	w0, w8, w9
LBB0_5:
	cbz	w0, LBB0_7
; %bb.6:
	cmp	w0, #0
	cset	w0, gt
	b	LBB0_8
LBB0_7:
	ldr	x8, [x20]
	ldr	x9, [x19]
	cmp	x8, x9
	cset	w0, lo
LBB0_8:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_AVMEDIA_TYPE_AUDIO,8,3         ; @AVMEDIA_TYPE_AUDIO
	.comm	_AV_TIME_BASE_Q,4,2             ; @AV_TIME_BASE_Q
	.comm	_AV_TIME_BASE,4,2               ; @AV_TIME_BASE
	.no_dead_strip	_interleave_compare_dts
.subsections_via_symbols
