	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ov7675_get_framerate
_ov7675_get_framerate:                  ## @ov7675_get_framerate
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rsi, %rbx
	callq	_to_state
	movl	(%rax), %esi
	cmpq	$0, 16(%rax)
	movq	_PLL_FACTOR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	leal	(%rcx,%rcx,4), %ecx
	movl	$5, %edx
	cmovel	%ecx, %edx
	incl	%esi
	movq	8(%rax), %rcx
	movq	(%rcx), %rcx
	movq	_MEDIA_BUS_FMT_SBGGR8_1X8@GOTPCREL(%rip), %rdi
	cmpq	(%rdi), %rcx
	sete	%cl
	sarl	%cl, %esi
	movl	$1, (%rbx)
	imull	4(%rax), %edx
	shll	$2, %esi
	movl	%edx, %eax
	cltd
	idivl	%esi
	movl	%eax, 4(%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PLL_FACTOR,4,2                 ## @PLL_FACTOR
	.comm	_MEDIA_BUS_FMT_SBGGR8_1X8,8,3   ## @MEDIA_BUS_FMT_SBGGR8_1X8
	.no_dead_strip	_ov7675_get_framerate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ov7675_get_framerate
_ov7675_get_framerate:                  ; @ov7675_get_framerate
	.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, x1
	bl	_to_state
Lloh0:
	adrp	x8, _PLL_FACTOR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PLL_FACTOR@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	add	w8, w8, w8, lsl #2
	ldp	x10, x9, [x0, #8]
	cmp	x9, #0
	mov	w9, #5
	csel	w8, w8, w9, eq
	ldp	w9, w11, [x0]
	add	w9, w9, #1
	ldr	x10, [x10]
Lloh3:
	adrp	x12, _MEDIA_BUS_FMT_SBGGR8_1X8@GOTPAGE
Lloh4:
	ldr	x12, [x12, _MEDIA_BUS_FMT_SBGGR8_1X8@GOTPAGEOFF]
Lloh5:
	ldr	x12, [x12]
	cmp	x10, x12
	cset	w10, eq
	asr	w9, w9, w10
	mov	w10, #1
	mul	w8, w11, w8
	lsl	w9, w9, #2
	sdiv	w8, w8, w9
	stp	w10, w8, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PLL_FACTOR,4,2                 ; @PLL_FACTOR
	.comm	_MEDIA_BUS_FMT_SBGGR8_1X8,8,3   ; @MEDIA_BUS_FMT_SBGGR8_1X8
	.no_dead_strip	_ov7675_get_framerate
.subsections_via_symbols
