	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_av_compare_ts                  ## -- Begin function av_compare_ts
	.p2align	4, 0x90
_av_compare_ts:                         ## @av_compare_ts
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r15
	movl	%ecx, %r12d
	movq	%rdx, %rbx
	movl	%edi, %r14d
	imull	%esi, %r15d
	imull	%r8d, %ebx
	callq	_FFABS
	movl	%eax, %r13d
	movl	%r12d, %edi
	callq	_FFABS
	movl	%r15d, %ecx
	orl	%ebx, %ecx
	orl	%r13d, %eax
	orl	%ecx, %eax
	movq	_INT_MAX@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jle	LBB0_1
## %bb.2:
	movq	_AV_ROUND_DOWN@GOTPCREL(%rip), %r13
	movl	(%r13), %ecx
	movl	%r14d, %edi
	movl	%r15d, %esi
	movl	%ebx, %edx
	callq	_av_rescale_rnd
	movl	%eax, %ecx
	movl	$-1, %eax
	cmpl	%r12d, %ecx
	jl	LBB0_4
## %bb.3:
	movl	(%r13), %ecx
	movl	%r12d, %edi
	movl	%ebx, %esi
	movl	%r15d, %edx
	callq	_av_rescale_rnd
	movl	%eax, %ecx
	xorl	%eax, %eax
	cmpl	%r14d, %ecx
	setl	%al
	jmp	LBB0_4
LBB0_1:
	imull	%r14d, %r15d
	imull	%r12d, %ebx
	xorl	%eax, %eax
	xorl	%ecx, %ecx
	cmpl	%ebx, %r15d
	setg	%al
	setl	%cl
	subl	%ecx, %eax
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_INT_MAX,4,2                    ## @INT_MAX
	.comm	_AV_ROUND_DOWN,4,2              ## @AV_ROUND_DOWN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_av_compare_ts                  ; -- Begin function av_compare_ts
	.p2align	2
_av_compare_ts:                         ; @av_compare_ts
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x3
	mov	x19, x0
	mul	w21, w5, w1
	mul	w22, w4, w2
	bl	_FFABS
	mov	x23, x0
	mov	x0, x20
	bl	_FFABS
	orr	w8, w22, w21
	orr	w8, w8, w23
	orr	w8, w8, w0
Lloh0:
	adrp	x9, _INT_MAX@GOTPAGE
Lloh1:
	ldr	x9, [x9, _INT_MAX@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, w9
	b.le	LBB0_3
; %bb.1:
Lloh3:
	adrp	x23, _AV_ROUND_DOWN@GOTPAGE
Lloh4:
	ldr	x23, [x23, _AV_ROUND_DOWN@GOTPAGEOFF]
	ldr	w3, [x23]
	mov	x0, x19
	mov	x1, x21
	mov	x2, x22
	bl	_av_rescale_rnd
	cmp	w0, w20
	b.ge	LBB0_4
; %bb.2:
	mov	w0, #-1
	b	LBB0_5
LBB0_3:
	mul	w8, w21, w19
	mul	w9, w22, w20
	cmp	w8, w9
	cset	w8, gt
	cset	w9, lt
	sub	w0, w8, w9
	b	LBB0_5
LBB0_4:
	ldr	w3, [x23]
	mov	x0, x20
	mov	x1, x22
	mov	x2, x21
	bl	_av_rescale_rnd
	cmp	w0, w19
	cset	w0, lt
LBB0_5:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_INT_MAX,4,2                    ; @INT_MAX
	.comm	_AV_ROUND_DOWN,4,2              ; @AV_ROUND_DOWN
.subsections_via_symbols
