	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function usbvideo_ReportStatistics
_usbvideo_ReportStatistics:             ## @usbvideo_ReportStatistics
	.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
	testq	%rdi, %rdi
	je	LBB0_15
## %bb.1:
	movq	%rdi, %r15
	movq	16(%rdi), %r14
	testq	%r14, %r14
	je	LBB0_15
## %bb.2:
	movq	_CAMERA_URB_FRAMES@GOTPCREL(%rip), %rax
	imulq	(%rax), %r14
	movabsq	$184467440737095516, %r12       ## imm = 0x28F5C28F5C28F5C
	movq	32(%r15), %r13
	addq	24(%r15), %r13
	movq	%r14, %rbx
	subq	%r13, %rbx
	xorl	%edi, %edi
	testq	%r14, %r14
	setne	%dil
	callq	_assert
	cmpq	%r12, %rbx
	jae	LBB0_5
## %bb.3:
	imulq	$100, %rbx, %rax
	movq	%rax, %rcx
	orq	%r14, %rcx
	shrq	$32, %rcx
	je	LBB0_8
## %bb.4:
	xorl	%edx, %edx
	divq	%r14
	jmp	LBB0_7
LBB0_5:
	movq	%r14, %rax
	shrq	$2, %rax
	movabsq	$2951479051793528259, %rcx      ## imm = 0x28F5C28F5C28F5C3
	mulq	%rcx
	movq	%rdx, %rcx
	shrq	$2, %rcx
	movq	%rbx, %rax
	orq	%rcx, %rax
	shrq	$32, %rax
	je	LBB0_9
## %bb.6:
	movq	%rbx, %rax
	xorl	%edx, %edx
	divq	%rcx
LBB0_7:
	movq	%rax, %r8
	jmp	LBB0_11
LBB0_8:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%r14d
	jmp	LBB0_10
LBB0_9:
	movl	%ebx, %eax
	xorl	%edx, %edx
	divl	%ecx
LBB0_10:
	movl	%eax, %r8d
LBB0_11:
	movq	8(%r15), %rdi
	movsbl	%r13b, %ecx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdx
	callq	_dev_info
	movq	(%r15), %rbx
	testq	%rbx, %rbx
	je	LBB0_15
## %bb.12:
	imulq	%r14, %rbx
	movq	40(%r15), %r14
	xorl	%edi, %edi
	testq	%rbx, %rbx
	setne	%dil
	callq	_assert
	cmpq	%r12, %r14
	jae	LBB0_16
## %bb.13:
	imulq	$100, %r14, %rax
	movq	%rax, %rcx
	orq	%rbx, %rcx
	shrq	$32, %rcx
	je	LBB0_18
## %bb.14:
	xorl	%edx, %edx
	divq	%rbx
	movq	%rax, %r8
	jmp	LBB0_19
LBB0_15:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	shrq	$2, %rbx
	movabsq	$2951479051793528259, %rcx      ## imm = 0x28F5C28F5C28F5C3
	movq	%rbx, %rax
	mulq	%rcx
	movq	%rdx, %rcx
	shrq	$2, %rcx
	movq	%r14, %rax
	orq	%rcx, %rax
	shrq	$32, %rax
	je	LBB0_22
## %bb.17:
	movq	%r14, %rax
	xorl	%edx, %edx
	divq	%rcx
	movq	%rax, %r8
	jmp	LBB0_23
LBB0_18:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ebx
	movl	%eax, %r8d
LBB0_19:
	movb	$32, %al
	cmpq	$10241, %r14                    ## imm = 0x2801
	jb	LBB0_24
## %bb.20:
	cmpq	$10486784, %r14                 ## imm = 0xA00400
	jb	LBB0_26
## %bb.21:
	movq	%r14, %rdx
	shrq	$20, %rdx
	movb	$77, %al
	cmpq	$10241, %rdx                    ## imm = 0x2801
	jae	LBB0_23
	jmp	LBB0_25
LBB0_22:
	movl	%r14d, %eax
	xorl	%edx, %edx
	divl	%ecx
	movl	%eax, %r8d
LBB0_23:
	movq	%r14, %rax
	shrq	$30, %rax
	cmpq	$10241, %rax                    ## imm = 0x2801
	movl	$40, %eax
	movl	$30, %ecx
	cmovael	%eax, %ecx
	movl	$84, %edx
	movl	$71, %eax
	cmovael	%edx, %eax
                                        ## kill: def $cl killed $cl killed $ecx
	shrq	%cl, %r14
LBB0_24:
	movq	%r14, %rdx
LBB0_25:
	movq	8(%r15), %rdi
	movzbl	%al, %ecx
	leaq	L_.str.1(%rip), %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_info                       ## TAILCALL
LBB0_26:
	shrq	$10, %r14
	movb	$75, %al
	jmp	LBB0_24
	.cfi_endproc
                                        ## -- End function
	.comm	_CAMERA_URB_FRAMES,8,3          ## @CAMERA_URB_FRAMES
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Packet Statistics: Total=%lu. Empty=%lu. Usage=%lu%%\n"

L_.str.1:                               ## @.str.1
	.asciz	"Transfer Statistics: Transferred=%lu%cB Usage=%lu%%\n"

	.no_dead_strip	_usbvideo_ReportStatistics
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function usbvideo_ReportStatistics
_usbvideo_ReportStatistics:             ; @usbvideo_ReportStatistics
	.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
	cbz	x0, LBB0_8
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_8
; %bb.2:
	mov	x21, #36700
	movk	x21, #62914, lsl #16
	movk	x21, #23592, lsl #32
	movk	x21, #655, lsl #48
Lloh0:
	adrp	x9, _CAMERA_URB_FRAMES@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CAMERA_URB_FRAMES@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	mul	x20, x9, x8
	ldp	x8, x9, [x19, #24]
	add	x22, x9, x8
	sub	x23, x20, x22
	cmp	x20, #0
	cset	w0, ne
	bl	_assert
	lsr	x8, x20, #2
	mov	x9, #62915
	movk	x9, #23592, lsl #16
	movk	x9, #49807, lsl #32
	movk	x9, #10485, lsl #48
	umulh	x8, x8, x9
	lsr	x8, x8, #2
	udiv	x8, x23, x8
	mov	w9, #100
	mul	x9, x23, x9
	udiv	x9, x9, x20
	cmp	x23, x21
	csel	x4, x8, x9, hs
	ldr	x0, [x19, #8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	sxtb	w3, w22
	mov	x2, x20
	bl	_dev_info
	ldr	x8, [x19]
	cbz	x8, LBB0_8
; %bb.3:
	mul	x22, x8, x20
	ldr	x20, [x19, #40]
	cmp	x22, #0
	cset	w0, ne
	bl	_assert
	cmp	x20, x21
	b.hs	LBB0_9
; %bb.4:
	mov	w8, #100
	mul	x8, x20, x8
	mov	w9, #10241
	udiv	x4, x8, x22
	cmp	x20, x9
	b.lo	LBB0_11
; %bb.5:
	mov	w8, #1024
	movk	w8, #160, lsl #16
	cmp	x20, x8
	b.lo	LBB0_12
; %bb.6:
	mov	x8, #2148532224
	movk	x8, #2, lsl #32
	cmp	x20, x8
	b.hs	LBB0_10
; %bb.7:
	lsr	x20, x20, #20
	mov	w3, #77
	b	LBB0_13
LBB0_8:
	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
LBB0_9:
	lsr	x8, x22, #2
	mov	x9, #62915
	movk	x9, #23592, lsl #16
	movk	x9, #49807, lsl #32
	movk	x9, #10485, lsl #48
	umulh	x8, x8, x9
	lsr	x8, x8, #2
	udiv	x4, x20, x8
LBB0_10:
	mov	x8, #1073741823
	movk	x8, #2560, lsl #32
	mov	w9, #30
	mov	w10, #40
	cmp	x20, x8
	csel	x8, x10, x9, hi
	lsr	x20, x20, x8
	mov	w8, #71
	mov	w9, #84
	csel	w3, w9, w8, hi
	b	LBB0_13
LBB0_11:
	mov	w3, #32
	b	LBB0_13
LBB0_12:
	lsr	x20, x20, #10
	mov	w3, #75
LBB0_13:
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	ldr	x0, [x19, #8]
	mov	x2, x20
	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
	b	_dev_info
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_CAMERA_URB_FRAMES,8,3          ; @CAMERA_URB_FRAMES
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Packet Statistics: Total=%lu. Empty=%lu. Usage=%lu%%\n"

l_.str.1:                               ; @.str.1
	.asciz	"Transfer Statistics: Transferred=%lu%cB Usage=%lu%%\n"

	.no_dead_strip	_usbvideo_ReportStatistics
.subsections_via_symbols
