	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function ffp_get_current_position_l
LCPI0_0:
	.quad	0x408f400000000000              ## double 1000
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_ffp_get_current_position_l
	.p2align	4, 0x90
_ffp_get_current_position_l:            ## @ffp_get_current_position_l
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	callq	_assert
	movq	8(%r15), %rbx
	testq	%rbx, %rbx
	je	LBB0_8
## %bb.1:
	movq	8(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_8
## %bb.2:
	movq	(%rax), %rdi
	xorl	%r14d, %r14d
	testq	%rdi, %rdi
	jle	LBB0_5
## %bb.3:
	movq	_AV_NOPTS_VALUE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	je	LBB0_5
## %bb.4:
	callq	_fftime_to_milliseconds
	movq	%rax, %r14
LBB0_5:
	movq	%rbx, %rdi
	callq	_get_master_clock
	movsd	%xmm0, -32(%rbp)                ## 8-byte Spill
	callq	_isnan
	testq	%rax, %rax
	je	LBB0_9
## %bb.6:
	movq	(%rbx), %rdi
	callq	_fftime_to_milliseconds
	cmpq	$0, (%r15)
	jne	LBB0_11
	jmp	LBB0_10
LBB0_8:
	xorl	%eax, %eax
	jmp	LBB0_11
LBB0_9:
	movsd	-32(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	mulsd	LCPI0_0(%rip), %xmm0
	cvttsd2si	%xmm0, %rax
	cmpq	$0, (%r15)
	jne	LBB0_11
LBB0_10:
	xorl	%ecx, %ecx
	movq	%rax, %rdx
	subq	%r14, %rdx
	cmovlq	%rcx, %rdx
	testq	%rax, %rax
	cmovsq	%rcx, %rdx
	movq	%rdx, %rax
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_NOPTS_VALUE,8,3             ## @AV_NOPTS_VALUE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ffp_get_current_position_l     ; -- Begin function ffp_get_current_position_l
	.p2align	2
_ffp_get_current_position_l:            ; @ffp_get_current_position_l
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [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 b8, -56
	.cfi_offset b9, -64
	mov	x19, x0
	bl	_assert
	ldr	x20, [x19, #8]
	cbz	x20, LBB0_4
; %bb.1:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_4
; %bb.2:
	ldr	x0, [x8]
Lloh0:
	adrp	x8, _AV_NOPTS_VALUE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_NOPTS_VALUE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, #1
	ccmp	x0, x8, #4, ge
	b.ne	LBB0_5
; %bb.3:
	mov	x21, #0
	b	LBB0_6
LBB0_4:
	mov	x0, #0
	b	LBB0_9
LBB0_5:
	bl	_fftime_to_milliseconds
	mov	x21, x0
LBB0_6:
	mov	x0, x20
	bl	_get_master_clock
	fmov	d8, d0
	bl	_isnan
	cbz	x0, LBB0_10
; %bb.7:
	ldr	x0, [x20]
	bl	_fftime_to_milliseconds
	ldr	x8, [x19]
	cbnz	x8, LBB0_9
LBB0_8:
	subs	x8, x0, x21
	ccmp	x0, #0, #8, ge
	csel	x0, xzr, x8, lt
LBB0_9:
	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	d9, d8, [sp], #64               ; 16-byte Folded Reload
	ret
LBB0_10:
	mov	x8, #70368744177664
	movk	x8, #16527, lsl #48
	fmov	d0, x8
	fmul	d0, d8, d0
	fcvtzs	x0, d0
	ldr	x8, [x19]
	cbnz	x8, LBB0_9
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_NOPTS_VALUE,8,3             ; @AV_NOPTS_VALUE
.subsections_via_symbols
