	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_frame_distances
_set_frame_distances:                   ## @set_frame_distances
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	56(%rdi), %rax
	movq	(%rax), %rax
	movl	(%rax), %eax
	movq	_AV_NOPTS_VALUE@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpl	(%rcx), %eax
	setne	%dil
	callq	_av_assert1
	movq	56(%rbx), %rax
	movq	(%rax), %rax
	movslq	(%rax), %rcx
	movq	8(%rbx), %rdx
	movq	48(%rbx), %rax
	movslq	(%rax), %rax
	imulq	%rcx, %rax
	movl	%eax, (%rbx)
	movq	_AV_PICTURE_TYPE_B@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rdx
	jne	LBB0_2
## %bb.1:
	subq	32(%rbx), %rax
	movq	24(%rbx), %rcx
	addq	%rcx, %rax
	movq	%rax, 16(%rbx)
	testq	%rax, %rax
	setg	%dl
	cmpq	%rcx, %rax
	setl	%al
	andb	%dl, %al
	jmp	LBB0_3
LBB0_2:
	cmpq	$0, 40(%rbx)
	cltq
	sete	%cl
	movq	%rax, %rdx
	subq	32(%rbx), %rdx
	movq	%rdx, 24(%rbx)
	movq	%rax, 32(%rbx)
	setg	%al
	orb	%cl, %al
LBB0_3:
	movzbl	%al, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_av_assert1                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_NOPTS_VALUE,4,2             ## @AV_NOPTS_VALUE
	.comm	_AV_PICTURE_TYPE_B,8,3          ## @AV_PICTURE_TYPE_B
	.no_dead_strip	_set_frame_distances
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_frame_distances
_set_frame_distances:                   ; @set_frame_distances
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x8, [x0, #56]
	ldr	x8, [x8]
	ldr	w8, [x8]
Lloh0:
	adrp	x9, _AV_NOPTS_VALUE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AV_NOPTS_VALUE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, w9
	cset	w0, ne
	bl	_av_assert1
	ldp	x9, x8, [x19, #48]
	ldr	x8, [x8]
	ldrsw	x8, [x8]
	ldrsw	x9, [x9]
	mul	x8, x9, x8
	str	w8, [x19]
	ldr	x9, [x19, #8]
Lloh3:
	adrp	x10, _AV_PICTURE_TYPE_B@GOTPAGE
Lloh4:
	ldr	x10, [x10, _AV_PICTURE_TYPE_B@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_2
; %bb.1:
	ldp	x9, x10, [x19, #24]
	sub	x8, x8, x10
	add	x8, x8, x9
	str	x8, [x19, #16]
	cmp	x8, #0
	ccmp	x8, x9, #0, gt
	cset	w0, lt
	b	LBB0_3
LBB0_2:
                                        ; kill: def $w8 killed $w8 killed $x8 def $x8
	sxtw	x8, w8
	ldp	x9, x10, [x19, #32]
	sub	x9, x8, x9
	stp	x9, x8, [x19, #24]
	cmp	x10, #0
	ccmp	x9, #0, #0, ne
	cset	w0, gt
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_av_assert1
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_NOPTS_VALUE,4,2             ; @AV_NOPTS_VALUE
	.comm	_AV_PICTURE_TYPE_B,8,3          ; @AV_PICTURE_TYPE_B
	.no_dead_strip	_set_frame_distances
.subsections_via_symbols
