	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_v4l2_frame_times               ## -- Begin function v4l2_frame_times
	.p2align	4, 0x90
_v4l2_frame_times:                      ## @v4l2_frame_times
	.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	_video_frame_times@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	leaq	16(%rbp), %rbx
	movq	_ft_info@GOTPCREL(%rip), %r12
	movq	(%r12), %r15
	testq	%r15, %r15
	jne	LBB0_3
## %bb.2:
	movl	$5000, %edi                     ## imm = 0x1388
	movl	$1, %esi
	callq	_calloc
	movq	%rax, %r15
	movq	%rax, (%r12)
LBB0_3:
	movl	12(%rbx), %esi
	movl	16(%rbx), %r13d
	movq	_ft_prevtime@GOTPCREL(%rip), %rdi
	movl	(%rdi), %eax
	cmpl	%eax, %esi
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	jle	LBB0_6
## %bb.4:
	movq	_ft_prevtime2@GOTPCREL(%rip), %rcx
	movl	%r13d, %edx
	subl	4(%rcx), %edx
	addl	$1000000, %edx                  ## imm = 0xF4240
	cmpl	$1000000, %edx                  ## imm = 0xF4240
	jl	LBB0_6
## %bb.5:
	cvtsi2sd	%esi, %xmm1
	movslq	%r13d, %rcx
	imulq	$1125899907, %rcx, %rcx         ## imm = 0x431BDE83
	movq	%rcx, %rdx
	shrq	$63, %rdx
	sarq	$50, %rcx
	addl	%edx, %ecx
	cvtsi2sd	%ecx, %xmm0
	cvtsi2sd	%eax, %xmm2
	addsd	%xmm1, %xmm0
	movslq	4(%rdi), %rax
	imulq	$1125899907, %rax, %rax         ## imm = 0x431BDE83
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$50, %rax
	addl	%ecx, %eax
	xorps	%xmm1, %xmm1
	cvtsi2sd	%eax, %xmm1
	addsd	%xmm2, %xmm1
	subsd	%xmm1, %xmm0
	movq	_ft_fcount@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	leaq	L_.str.1(%rip), %rdi
	movb	$1, %al
	callq	_printf
	movq	_ft_favg@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	imull	$1000, (%r14), %ecx             ## imm = 0x3E8
	cltd
	idivl	%ecx
	leaq	L_.str.2(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_printf
	movq	(%r12), %rsi
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	movq	(%r12), %rdi
	callq	_free
	movl	$5000, %edi                     ## imm = 0x1388
	movl	$1, %esi
	callq	_calloc
	movq	%rax, %r15
	movq	%rax, (%r12)
	movl	$0, (%r14)
	movl	$0, (%r13)
	movq	%rbx, %rax
	movq	12(%rbx), %r13
	movq	_ft_prevtime@GOTPCREL(%rip), %rax
	movq	%r13, (%rax)
	shrq	$32, %r13
LBB0_6:
	movq	_ft_fcount@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	incl	%r14d
	movl	%r14d, (%rax)
	movq	%r15, %rdi
	callq	_strdup
	movq	_ft_info2@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movq	_ft_prevtime2@GOTPCREL(%rip), %r12
	subl	4(%r12), %r13d
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	cmpl	(%r12), %ecx
	leal	1000000(%r13), %ecx
	cmovlel	%r13d, %ecx
	movq	_ft_ftime@GOTPCREL(%rip), %rdx
	movq	_ft_favg@GOTPCREL(%rip), %rsi
	addl	%ecx, (%rsi)
	movl	%ecx, (%rdx)
	movq	%rbx, %r13
	movl	(%rbx), %r8d
	movl	4(%rbx), %r9d
	movl	8(%rbx), %r10d
	movslq	%ecx, %rcx
	imulq	$274877907, %rcx, %rbx          ## imm = 0x10624DD3
	movq	%rbx, %rcx
	shrq	$63, %rcx
	sarq	$38, %rbx
	addl	%ecx, %ebx
	imull	$-1227133513, %r14d, %ecx       ## imm = 0xB6DB6DB7
	addl	$306783378, %ecx                ## imm = 0x12492492
	cmpl	$613566757, %ecx                ## imm = 0x24924925
	leaq	L_.str.5(%rip), %rcx
	leaq	L_.str.6(%rip), %r11
	cmovbq	%rcx, %r11
	subq	$8, %rsp
	leaq	L_.str.4(%rip), %rdx
	movq	%r15, %rdi
	movl	$5000, %esi                     ## imm = 0x1388
	movq	%rax, %rcx
	pushq	%r11
	pushq	%rbx
	pushq	%r10
	callq	_snprintf
	addq	$32, %rsp
	movq	_ft_info2@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_free
	movq	12(%r13), %rax
	movq	%rax, (%r12)
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Off"

	.comm	_video_frame_times,4,2          ## @video_frame_times
	.comm	_ft_info,8,3                    ## @ft_info
	.comm	_ft_prevtime,8,2                ## @ft_prevtime
	.comm	_ft_prevtime2,8,2               ## @ft_prevtime2
L_.str.1:                               ## @.str.1
	.asciz	"Fields last %.2f seconds: %d\n"

	.comm	_ft_fcount,4,2                  ## @ft_fcount
L_.str.2:                               ## @.str.2
	.asciz	"Average frame times: %.3fms\n"

	.comm	_ft_favg,4,2                    ## @ft_favg
L_.str.3:                               ## @.str.3
	.asciz	"Fields timestampdiffs last second:\n%s\n"

	.comm	_ft_info2,8,3                   ## @ft_info2
	.comm	_ft_ftime,4,2                   ## @ft_ftime
L_.str.4:                               ## @.str.4
	.asciz	"%s %6.d %d %d %.2fms%s"

L_.str.5:                               ## @.str.5
	.asciz	"\n"

L_.str.6:                               ## @.str.6
	.space	1

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_v4l2_frame_times               ; -- Begin function v4l2_frame_times
	.p2align	2
_v4l2_frame_times:                      ; @v4l2_frame_times
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
Lloh0:
	adrp	x8, _video_frame_times@GOTPAGE
Lloh1:
	ldr	x8, [x8, _video_frame_times@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_strcmp
	cbz	x0, LBB0_7
; %bb.1:
Lloh5:
	adrp	x24, _ft_info@GOTPAGE
Lloh6:
	ldr	x24, [x24, _ft_info@GOTPAGEOFF]
	ldr	x20, [x24]
	cbnz	x20, LBB0_3
; %bb.2:
	mov	w0, #5000
	mov	w1, #1
	bl	_calloc
	mov	x20, x0
	str	x0, [x24]
LBB0_3:
	mov	w22, #16960
	movk	w22, #15, lsl #16
Lloh7:
	adrp	x26, _ft_prevtime@GOTPAGE
Lloh8:
	ldr	x26, [x26, _ft_prevtime@GOTPAGEOFF]
	ldr	w8, [x26]
Lloh9:
	adrp	x21, _ft_prevtime2@GOTPAGE
Lloh10:
	ldr	x21, [x21, _ft_prevtime2@GOTPAGEOFF]
	ldp	w27, w28, [x19, #12]
Lloh11:
	adrp	x25, _ft_fcount@GOTPAGE
Lloh12:
	ldr	x25, [x25, _ft_fcount@GOTPAGEOFF]
Lloh13:
	adrp	x23, _ft_favg@GOTPAGE
Lloh14:
	ldr	x23, [x23, _ft_favg@GOTPAGEOFF]
	cmp	w27, w8
	b.le	LBB0_6
; %bb.4:
	ldr	w9, [x21, #4]
	add	w10, w28, w22
	sub	w9, w10, w9
	sub	w10, w22, #1
	cmp	w9, w10
	b.le	LBB0_6
; %bb.5:
	scvtf	d0, w27
	sdiv	w9, w28, w22
	scvtf	d1, w9
	fadd	d0, d0, d1
	scvtf	d1, w8
	ldr	w8, [x26, #4]
	sdiv	w8, w8, w22
	scvtf	d2, w8
	fadd	d1, d1, d2
	fsub	d0, d0, d1
	ldr	w8, [x25]
	str	x8, [sp, #8]
	str	d0, [sp]
Lloh15:
	adrp	x0, l_.str.1@PAGE
Lloh16:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_printf
	ldr	w8, [x23]
	ldr	w9, [x25]
	mov	w10, #1000
	mul	w9, w9, w10
	sdiv	w8, w8, w9
	str	x8, [sp]
Lloh17:
	adrp	x0, l_.str.2@PAGE
Lloh18:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_printf
	ldr	x8, [x24]
	str	x8, [sp]
Lloh19:
	adrp	x0, l_.str.3@PAGE
Lloh20:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_printf
	ldr	x0, [x24]
	bl	_free
	mov	w0, #5000
	mov	w1, #1
	bl	_calloc
	mov	x20, x0
	str	x0, [x24]
	str	wzr, [x25]
	str	wzr, [x23]
	ldur	x27, [x19, #12]
	str	x27, [x26]
	lsr	x28, x27, #32
LBB0_6:
	ldr	w8, [x25]
	add	w24, w8, #1
	str	w24, [x25]
	mov	x0, x20
	bl	_strdup
	mov	x3, x0
Lloh21:
	adrp	x25, _ft_info2@GOTPAGE
Lloh22:
	ldr	x25, [x25, _ft_info2@GOTPAGEOFF]
	str	x0, [x25]
	ldp	w8, w9, [x21]
	cmp	w27, w8
	csel	w8, w22, wzr, gt
	sub	w9, w28, w9
	add	w8, w9, w8
Lloh23:
	adrp	x9, _ft_ftime@GOTPAGE
Lloh24:
	ldr	x9, [x9, _ft_ftime@GOTPAGEOFF]
Lloh25:
	str	w8, [x9]
	ldr	w9, [x23]
	add	w9, w9, w8
	str	w9, [x23]
	ldp	w4, w5, [x19]
	ldr	w6, [x19, #8]
	mov	w9, #19923
	movk	w9, #4194, lsl #16
	smull	x8, w8, w9
	lsr	x9, x8, #63
	asr	x8, x8, #38
	add	w7, w8, w9
	mov	w8, #28087
	movk	w8, #46811, lsl #16
	mov	w9, #9362
	movk	w9, #4681, lsl #16
Lloh26:
	adrp	x10, l_.str.6@PAGE
Lloh27:
	add	x10, x10, l_.str.6@PAGEOFF
	madd	w8, w24, w8, w9
Lloh28:
	adrp	x9, l_.str.5@PAGE
Lloh29:
	add	x9, x9, l_.str.5@PAGEOFF
	mov	w11, #18725
	movk	w11, #9362, lsl #16
	cmp	w8, w11
	csel	x8, x9, x10, lo
	str	x8, [sp]
Lloh30:
	adrp	x2, l_.str.4@PAGE
Lloh31:
	add	x2, x2, l_.str.4@PAGEOFF
	mov	x0, x20
	mov	w1, #5000
	bl	_snprintf
	ldr	x0, [x25]
	bl	_free
	ldur	x8, [x19, #12]
	str	x8, [x21]
LBB0_7:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotStr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Off"

	.comm	_video_frame_times,4,2          ; @video_frame_times
	.comm	_ft_info,8,3                    ; @ft_info
	.comm	_ft_prevtime,8,2                ; @ft_prevtime
	.comm	_ft_prevtime2,8,2               ; @ft_prevtime2
l_.str.1:                               ; @.str.1
	.asciz	"Fields last %.2f seconds: %d\n"

	.comm	_ft_fcount,4,2                  ; @ft_fcount
l_.str.2:                               ; @.str.2
	.asciz	"Average frame times: %.3fms\n"

	.comm	_ft_favg,4,2                    ; @ft_favg
l_.str.3:                               ; @.str.3
	.asciz	"Fields timestampdiffs last second:\n%s\n"

	.comm	_ft_info2,8,3                   ; @ft_info2
	.comm	_ft_ftime,4,2                   ; @ft_ftime
l_.str.4:                               ; @.str.4
	.asciz	"%s %6.d %d %d %.2fms%s"

l_.str.5:                               ; @.str.5
	.asciz	"\n"

l_.str.6:                               ; @.str.6
	.space	1

.subsections_via_symbols
