	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function uvc_video_stats_update
_uvc_video_stats_update:                ## @uvc_video_stats_update
	.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
	subq	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_UVC_TRACE_STATS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	144(%rbx), %edx
	movq	(%rbx), %rcx
	movq	8(%rbx), %r9
	movq	%r9, %r8
	subq	16(%rbx), %r8
	movl	96(%rbx), %r10d
	movq	24(%rbx), %r11
	movl	92(%rbx), %r14d
	cmpq	$0, 56(%rbx)
	leaq	L_.str.2(%rip), %r15
	leaq	L_.str.1(%rip), %rax
	movq	%rax, %rsi
	cmoveq	%r15, %rsi
	cmpq	$0, 48(%rbx)
	cmoveq	%r15, %rax
	movups	32(%rbx), %xmm0
	movl	88(%rbx), %r15d
	movl	84(%rbx), %r12d
	movl	80(%rbx), %r13d
	movl	%r13d, 72(%rsp)
	movl	%r12d, 64(%rsp)
	movl	%r15d, 56(%rsp)
	movups	%xmm0, 40(%rsp)
	movq	%rax, 32(%rsp)
	movq	%rsi, 24(%rsp)
	movl	%r14d, 16(%rsp)
	movq	%r11, 8(%rsp)
	movl	%r10d, (%rsp)
	leaq	L_.str(%rip), %rsi
	callq	_uvc_trace
	incl	140(%rbx)
	movq	8(%rbx), %rax
	movq	16(%rbx), %rcx
	movdqu	64(%rbx), %xmm0
	movdqu	124(%rbx), %xmm1
	pshufd	$232, %xmm0, %xmm0              ## xmm0 = xmm0[0,2,2,3]
	pinsrd	$2, %ecx, %xmm0
	pinsrd	$3, %eax, %xmm0
	paddd	%xmm1, %xmm0
	movdqu	%xmm0, 124(%rbx)
	cmpq	$0, 56(%rbx)
	je	LBB0_2
## %bb.1:
	incl	120(%rbx)
LBB0_2:
	cmpq	$0, 48(%rbx)
	je	LBB0_4
## %bb.3:
	incl	116(%rbx)
LBB0_4:
	movq	24(%rbx), %rdx
	cmpq	(%rbx), %rdx
	jg	LBB0_6
## %bb.5:
	incl	112(%rbx)
LBB0_6:
	movq	40(%rbx), %rdx
	subq	%rcx, %rax
	cmpq	%rax, %rdx
	jl	LBB0_8
## %bb.7:
	incl	108(%rbx)
LBB0_8:
	movq	32(%rbx), %rax
	incq	%rax
	cmpq	%rdx, %rax
	jne	LBB0_10
## %bb.9:
	incl	104(%rbx)
LBB0_10:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$104, %edx
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_memset                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_UVC_TRACE_STATS,4,2            ## @UVC_TRACE_STATS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"frame %u stats: %u/%u/%u packets, %u/%u/%u pts (%searly %sinitial), %u/%u scr, last pts/stc/sof %u/%u/%u\n"

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

L_.str.2:                               ## @.str.2
	.asciz	"!"

	.no_dead_strip	_uvc_video_stats_update
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function uvc_video_stats_update
_uvc_video_stats_update:                ; @uvc_video_stats_update
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _UVC_TRACE_STATS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _UVC_TRACE_STATS@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	w2, [x19, #144]
	ldp	x3, x5, [x19]
	ldp	x8, x7, [x19, #16]
	sub	x4, x5, x8
	ldp	w12, w6, [x19, #92]
Lloh3:
	adrp	x8, l_.str.1@PAGE
Lloh4:
	add	x8, x8, l_.str.1@PAGEOFF
Lloh5:
	adrp	x9, l_.str.2@PAGE
Lloh6:
	add	x9, x9, l_.str.2@PAGEOFF
	ldp	x11, x10, [x19, #48]
	cmp	x10, #0
	csel	x10, x9, x8, eq
	cmp	x11, #0
	csel	x8, x9, x8, eq
	ldp	x9, x11, [x19, #32]
	ldp	w14, w13, [x19, #84]
	ldr	w15, [x19, #80]
	stp	w14, w15, [sp, #44]
	str	w13, [sp, #40]
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	stp	x9, x11, [sp, #24]
	stp	x10, x8, [sp, #8]
	str	w12, [sp]
	bl	_uvc_trace
	ldr	w8, [x19, #140]
	add	w8, w8, #1
	str	w8, [x19, #140]
	ldp	x8, x9, [x19, #8]
	ldr	q0, [x19, #64]
	ldur	q1, [x19, #124]
	fmov	s2, w9
	mov.s	v2[1], w8
	xtn.2s	v0, v0
	mov.d	v0[1], v2[0]
	add.4s	v0, v1, v0
	stur	q0, [x19, #124]
	ldr	x10, [x19, #56]
	cbz	x10, LBB0_2
; %bb.1:
	ldr	w10, [x19, #120]
	add	w10, w10, #1
	str	w10, [x19, #120]
LBB0_2:
	ldr	x10, [x19, #48]
	cbz	x10, LBB0_4
; %bb.3:
	ldr	w10, [x19, #116]
	add	w10, w10, #1
	str	w10, [x19, #116]
LBB0_4:
	ldr	x10, [x19, #24]
	ldr	x11, [x19]
	cmp	x10, x11
	b.gt	LBB0_6
; %bb.5:
	ldr	w10, [x19, #112]
	add	w10, w10, #1
	str	w10, [x19, #112]
LBB0_6:
	ldr	x10, [x19, #40]
	sub	x8, x8, x9
	cmp	x10, x8
	b.lt	LBB0_8
; %bb.7:
	ldr	w8, [x19, #108]
	add	w8, w8, #1
	str	w8, [x19, #108]
LBB0_8:
	ldr	x8, [x19, #32]
	add	x8, x8, #1
	cmp	x8, x10
	b.ne	LBB0_10
; %bb.9:
	ldr	w8, [x19, #104]
	add	w8, w8, #1
	str	w8, [x19, #104]
LBB0_10:
	mov	x0, x19
	mov	w1, #0
	mov	w2, #104
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_memset
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_UVC_TRACE_STATS,4,2            ; @UVC_TRACE_STATS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"frame %u stats: %u/%u/%u packets, %u/%u/%u pts (%searly %sinitial), %u/%u scr, last pts/stc/sof %u/%u/%u\n"

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

l_.str.2:                               ; @.str.2
	.asciz	"!"

	.no_dead_strip	_uvc_video_stats_update
.subsections_via_symbols
