	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ov6650_s_frame_interval
_ov6650_s_frame_interval:               ## @ov6650_s_frame_interval
	.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
	movq	%rsi, %r14
	callq	_v4l2_get_subdevdata
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_to_ov6650
	movq	%rax, %rbx
	movl	(%r14), %eax
	movl	$1, %r12d
	testl	%eax, %eax
	je	LBB0_4
## %bb.1:
	movl	4(%r14), %ecx
	testl	%ecx, %ecx
	je	LBB0_4
## %bb.2:
	movq	_FRAME_RATE_MAX@GOTPCREL(%rip), %rdx
	imull	(%rdx), %eax
	cltd
	idivl	%ecx
	movl	%eax, %r12d
	testl	%eax, %eax
	je	LBB0_3
LBB0_4:
	movq	_CLKRC_DIV_MASK@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	callq	_GET_CLKRC_DIV
	cmpl	%eax, %r12d
	jle	LBB0_6
## %bb.5:
	movl	(%r13), %edi
	callq	_GET_CLKRC_DIV
	movl	%eax, %r12d
	jmp	LBB0_6
LBB0_3:
	movl	$1, %r12d
LBB0_6:
	movq	%rbx, %rdi
	addq	$8, %rdi
	movl	%r12d, 8(%rbx)
	movq	_FRAME_RATE_MAX@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	movl	%eax, 12(%rbx)
	movl	(%rbx), %edx
	movl	4(%rbx), %esi
	callq	_to_clkrc
	movl	%eax, %r12d
	movq	_REG_CLKRC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_CLKRC_DIV_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	movl	%r12d, %edx
	callq	_ov6650_reg_rmw
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_8
## %bb.7:
	movl	%r12d, %edi
	callq	_GET_CLKRC_DIV
	movl	%eax, (%r14)
	movl	(%r13), %eax
	movl	%eax, 4(%r14)
LBB0_8:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FRAME_RATE_MAX,4,2             ## @FRAME_RATE_MAX
	.comm	_CLKRC_DIV_MASK,4,2             ## @CLKRC_DIV_MASK
	.comm	_REG_CLKRC,4,2                  ## @REG_CLKRC
	.no_dead_strip	_ov6650_s_frame_interval
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ov6650_s_frame_interval
_ov6650_s_frame_interval:               ; @ov6650_s_frame_interval
	.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
	mov	x19, x1
	bl	_v4l2_get_subdevdata
	mov	x20, x0
	bl	_to_ov6650
	mov	x21, x0
	ldr	w8, [x19]
Lloh0:
	adrp	x23, _FRAME_RATE_MAX@GOTPAGE
Lloh1:
	ldr	x23, [x23, _FRAME_RATE_MAX@GOTPAGEOFF]
Lloh2:
	adrp	x24, _CLKRC_DIV_MASK@GOTPAGE
Lloh3:
	ldr	x24, [x24, _CLKRC_DIV_MASK@GOTPAGEOFF]
	cbz	w8, LBB0_4
; %bb.1:
	ldr	w9, [x19, #4]
	cbz	w9, LBB0_4
; %bb.2:
	ldr	w10, [x23]
	mul	w8, w10, w8
	sdiv	w22, w8, w9
	cbnz	w22, LBB0_5
; %bb.3:
	mov	w22, #1
	b	LBB0_7
LBB0_4:
	mov	w22, #1
LBB0_5:
	ldr	w0, [x24]
	bl	_GET_CLKRC_DIV
	cmp	w22, w0
	b.le	LBB0_7
; %bb.6:
	ldr	w0, [x24]
	bl	_GET_CLKRC_DIV
	mov	x22, x0
LBB0_7:
	mov	x0, x21
	str	w22, [x0, #8]!
	ldr	w8, [x23]
	str	w8, [x21, #12]
	ldp	w2, w1, [x21]
	bl	_to_clkrc
	mov	x21, x0
Lloh4:
	adrp	x8, _REG_CLKRC@GOTPAGE
Lloh5:
	ldr	x8, [x8, _REG_CLKRC@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	ldr	w3, [x24]
	mov	x0, x20
	mov	x2, x21
	bl	_ov6650_reg_rmw
	mov	x20, x0
	cbnz	w0, LBB0_9
; %bb.8:
	mov	x0, x21
	bl	_GET_CLKRC_DIV
	str	w0, [x19]
	ldr	w8, [x23]
	str	w8, [x19, #4]
LBB0_9:
	mov	x0, 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
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_FRAME_RATE_MAX,4,2             ; @FRAME_RATE_MAX
	.comm	_CLKRC_DIV_MASK,4,2             ; @CLKRC_DIV_MASK
	.comm	_REG_CLKRC,4,2                  ; @REG_CLKRC
	.no_dead_strip	_ov6650_s_frame_interval
.subsections_via_symbols
