	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ov7670_get_framerate_legacy
_ov7670_get_framerate_legacy:           ## @ov7670_get_framerate_legacy
	.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
	movq	%rax, %rcx
	movl	$1, (%rbx)
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
	movl	4(%rcx), %ecx
	movq	_CLK_EXT@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	jne	LBB0_3
## %bb.1:
	movq	_CLK_SCALE@GOTPCREL(%rip), %rdx
	andl	(%rdx), %ecx
	cmpl	$2, %ecx
	jl	LBB0_3
## %bb.2:
	cltd
	idivl	%ecx
	movl	%eax, 4(%rbx)
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CLK_EXT,4,2                    ## @CLK_EXT
	.comm	_CLK_SCALE,4,2                  ## @CLK_SCALE
	.no_dead_strip	_ov7670_get_framerate_legacy
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ov7670_get_framerate_legacy
_ov7670_get_framerate_legacy:           ; @ov7670_get_framerate_legacy
	.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
	mov	w10, #1
	ldp	w8, w9, [x0]
	stp	w10, w8, [x19]
Lloh0:
	adrp	x10, _CLK_EXT@GOTPAGE
Lloh1:
	ldr	x10, [x10, _CLK_EXT@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	tst	w10, w9
	b.ne	LBB0_3
; %bb.1:
Lloh3:
	adrp	x10, _CLK_SCALE@GOTPAGE
Lloh4:
	ldr	x10, [x10, _CLK_SCALE@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	and	w9, w10, w9
	cmp	w9, #2
	b.lt	LBB0_3
; %bb.2:
	sdiv	w8, w8, w9
	str	w8, [x19, #4]
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_CLK_EXT,4,2                    ; @CLK_EXT
	.comm	_CLK_SCALE,4,2                  ; @CLK_SCALE
	.no_dead_strip	_ov7670_get_framerate_legacy
.subsections_via_symbols
