	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bktr_getframe
_bktr_getframe:                         ## @bktr_getframe
	.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	%rdi, %rbx
	xorl	%eax, %eax
	callq	_av_gettime
	movq	%rax, %r14
	movq	_last_frame_time@GOTPCREL(%rip), %r12
	movq	(%r12), %rcx
	leaq	(%rcx,%rbx), %rax
	testq	%rcx, %rcx
	je	LBB0_2
## %bb.1:
	cmpq	%r14, %rax
	jle	LBB0_5
LBB0_2:
	leaq	7(%rbx), %rdi
	testq	%rbx, %rbx
	cmovnsq	%rbx, %rdi
	sarq	$3, %rdi
	subq	%r14, %rdi
	addq	%rax, %rdi
	callq	_usleep
	testl	%eax, %eax
	jne	LBB0_5
## %bb.3:
	movq	_nsignals@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_5
## %bb.4:
	movq	_AV_LOG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	xorl	%eax, %eax
	callq	_av_gettime
	addl	(%r12), %ebx
	subl	%ebx, %eax
	leaq	L_.str(%rip), %rdx
	xorl	%edi, %edi
	movl	%r15d, %esi
	movl	%eax, %ecx
	callq	_av_log
LBB0_5:
	movq	_nsignals@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	%r14, (%r12)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_last_frame_time,8,3            ## @last_frame_time
	.comm	_nsignals,8,3                   ## @nsignals
	.comm	_AV_LOG_INFO,4,2                ## @AV_LOG_INFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SLEPT NO signals - %d microseconds late\n"

	.no_dead_strip	_bktr_getframe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bktr_getframe
_bktr_getframe:                         ; @bktr_getframe
	.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, x0
	bl	_av_gettime
	mov	x19, x0
Lloh0:
	adrp	x22, _last_frame_time@GOTPAGE
Lloh1:
	ldr	x22, [x22, _last_frame_time@GOTPAGEOFF]
	ldr	x9, [x22]
	add	x8, x9, x20
	cmp	x9, #0
	ccmp	x8, x0, #0, ne
Lloh2:
	adrp	x23, _nsignals@GOTPAGE
Lloh3:
	ldr	x23, [x23, _nsignals@GOTPAGEOFF]
	b.le	LBB0_3
; %bb.1:
	add	x9, x20, #7
	cmp	x20, #0
	csel	x9, x9, x20, lt
	asr	x9, x9, #3
	sub	x9, x9, x19
	add	x0, x9, x8
	bl	_usleep
	ldr	x8, [x23]
	cmp	w0, #0
	ccmp	x8, #0, #0, eq
	b.ne	LBB0_3
; %bb.2:
Lloh4:
	adrp	x8, _AV_LOG_INFO@GOTPAGE
Lloh5:
	ldr	x8, [x8, _AV_LOG_INFO@GOTPAGEOFF]
Lloh6:
	ldr	w21, [x8]
	bl	_av_gettime
	ldr	w8, [x22]
	add	w8, w8, w20
	sub	w3, w0, w8
Lloh7:
	adrp	x2, l_.str@PAGE
Lloh8:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, #0
	mov	x1, x21
	bl	_av_log
LBB0_3:
	str	xzr, [x23]
	str	x19, [x22]
	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 AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_last_frame_time,8,3            ; @last_frame_time
	.comm	_nsignals,8,3                   ; @nsignals
	.comm	_AV_LOG_INFO,4,2                ; @AV_LOG_INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SLEPT NO signals - %d microseconds late\n"

	.no_dead_strip	_bktr_getframe
.subsections_via_symbols
