	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cit_get_clock_div
_cit_get_clock_div:                     ## @cit_get_clock_div
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	callq	_cit_get_packet_size
	testl	%eax, %eax
	js	LBB0_6
## %bb.1:
	imull	$1000, %eax, %ecx               ## imm = 0x3E8
	movl	(%r14), %r8d
	movl	4(%r14), %r9d
	movl	%r8d, %edx
	imull	%r9d, %edx
	leal	(%rdx,%rdx), %esi
	leal	(%rsi,%rsi,8), %esi
	sarl	%esi
	movl	$7, %ebx
	cmpl	%esi, %ecx
	jle	LBB0_5
## %bb.2:
	leal	(%rdx,%rdx,2), %edx
	leal	(,%rdx,8), %esi
	sarl	%esi
	movl	$6, %ebx
	cmpl	%esi, %ecx
	jle	LBB0_5
## %bb.3:
	leal	(,%rdx,4), %esi
	leal	(%rsi,%rsi,2), %esi
	sarl	%esi
	movl	$5, %ebx
	cmpl	%esi, %ecx
	jle	LBB0_5
## %bb.4:
	leal	(%rdx,%rdx,4), %edx
	leal	(%rdx,%rdx,2), %edx
	movl	%edx, %esi
	shrl	$31, %esi
	addl	%edx, %esi
	sarl	%esi
	xorl	%edx, %edx
	cmpl	%esi, %ecx
	setg	%dl
	movl	$4, %ebx
	subl	%edx, %ebx
LBB0_5:
	movq	_D_PROBE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%ebx, %ecx
	leaq	l___const.cit_get_clock_div.fps(%rip), %rdx
	movl	(%rdx,%rcx,4), %r10d
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	movl	%eax, %ecx
	pushq	%r10
	pushq	%rbx
	callq	_gspca_dbg
	addq	$16, %rsp
	movl	%ebx, %eax
LBB0_6:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @__const.cit_get_clock_div.fps
l___const.cit_get_clock_div.fps:
	.long	30                              ## 0x1e
	.long	25                              ## 0x19
	.long	20                              ## 0x14
	.long	15                              ## 0xf
	.long	12                              ## 0xc
	.long	8                               ## 0x8
	.long	6                               ## 0x6
	.long	3                               ## 0x3

	.comm	_D_PROBE,4,2                    ## @D_PROBE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PacketSize: %d, res: %dx%d -> using clockdiv: %d (%d fps)\n"

	.no_dead_strip	_cit_get_clock_div
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cit_get_clock_div
_cit_get_clock_div:                     ; @cit_get_clock_div
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_cit_get_packet_size
	mov	x3, x0
	tbnz	w0, #31, LBB0_9
; %bb.1:
	mov	w8, #1000
	mul	w8, w3, w8
	ldp	w4, w5, [x19]
	mul	w9, w4, w5
	add	w11, w9, w9, lsl #3
	lsl	w12, w11, #1
	mov	w10, #1
	mov	w13, #1
	bfi	w13, w11, #1, #31
	cmp	w12, #0
	csel	w11, w13, w12, lt
	cmp	w8, w11, asr #1
	b.le	LBB0_5
; %bb.2:
	add	w9, w9, w9, lsl #1
	lsl	w11, w9, #3
	bfi	w10, w9, #3, #29
	cmp	w11, #0
	csel	w10, w10, w11, lt
	cmp	w8, w10, asr #1
	b.le	LBB0_6
; %bb.3:
	add	w10, w9, w9, lsl #1
	lsl	w11, w10, #2
	mov	w12, #1
	bfi	w12, w10, #2, #30
	cmp	w11, #0
	csel	w10, w12, w11, lt
	cmp	w8, w10, asr #1
	b.le	LBB0_7
; %bb.4:
	lsl	w10, w9, #4
	sub	w9, w10, w9
	cmp	w9, #0
	cinc	w9, w9, lt
	cmp	w8, w9, asr #1
	mov	w8, #3
	cinc	w20, w8, le
	b	LBB0_8
LBB0_5:
	mov	w20, #7
	b	LBB0_8
LBB0_6:
	mov	w20, #6
	b	LBB0_8
LBB0_7:
	mov	w20, #5
LBB0_8:
Lloh0:
	adrp	x8, _D_PROBE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _D_PROBE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, l___const.cit_get_clock_div.fps@PAGE
Lloh4:
	add	x8, x8, l___const.cit_get_clock_div.fps@PAGEOFF
	ldr	w7, [x8, w20, uxtw #2]
Lloh5:
	adrp	x2, l_.str@PAGE
Lloh6:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	mov	x6, x20
	bl	_gspca_dbg
	mov	x3, x20
LBB0_9:
	mov	x0, x3
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @__const.cit_get_clock_div.fps
l___const.cit_get_clock_div.fps:
	.long	30                              ; 0x1e
	.long	25                              ; 0x19
	.long	20                              ; 0x14
	.long	15                              ; 0xf
	.long	12                              ; 0xc
	.long	8                               ; 0x8
	.long	6                               ; 0x6
	.long	3                               ; 0x3

	.comm	_D_PROBE,4,2                    ; @D_PROBE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PacketSize: %d, res: %dx%d -> using clockdiv: %d (%d fps)\n"

	.no_dead_strip	_cit_get_clock_div
.subsections_via_symbols
