	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __ov965x_set_frame_interval
___ov965x_set_frame_interval:           ## @__ov965x_set_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rax
	movl	(%rsi), %esi
	testl	%esi, %esi
	je	LBB0_1
## %bb.2:
	movq	%rdi, %r14
	movq	_ov965x_intervals@GOTPCREL(%rip), %r12
	movq	(%r12), %r15
	imull	$10000, 8(%rax), %edi           ## imm = 0x2710
	callq	_do_div
	movq	(%r12), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	je	LBB0_5
## %bb.3:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rdi
	incq	%rbx
	callq	_ARRAY_SIZE
	movl	%eax, %eax
	cmpq	%rax, %rbx
	jb	LBB0_4
LBB0_5:
	movq	%r15, 8(%r14)
	movq	_debug@GOTPCREL(%rip), %rcx
	imull	$1000000, (%r15), %eax          ## imm = 0xF4240
	movl	(%rcx), %esi
	cltd
	idivl	4(%r15)
	leaq	L_.str(%rip), %rcx
	movl	$1, %edi
	movq	%r14, %rdx
	movl	%eax, %r8d
	callq	_v4l2_dbg
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_6:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ov965x_intervals,8,3           ## @ov965x_intervals
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_debug,4,2                      ## @debug
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Changed frame interval to %u us\n"

	.no_dead_strip	___ov965x_set_frame_interval
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __ov965x_set_frame_interval
___ov965x_set_frame_interval:           ; @__ov965x_set_frame_interval
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x8, x1
	ldr	w1, [x1]
	cbz	w1, LBB0_5
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x21, _ov965x_intervals@GOTPAGE
Lloh1:
	ldr	x21, [x21, _ov965x_intervals@GOTPAGEOFF]
	ldr	x20, [x21]
	ldr	w8, [x8, #8]
	mov	w9, #10000
	mul	w0, w8, w9
	bl	_do_div
	ldr	x0, [x21]
	bl	_ARRAY_SIZE
	cbz	w0, LBB0_4
; %bb.2:
	mov	x22, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x21]
	add	x22, x22, #1
	bl	_ARRAY_SIZE
	cmp	x22, w0, uxtw
	b.lo	LBB0_3
LBB0_4:
	str	x20, [x19, #8]
Lloh2:
	adrp	x8, _debug@GOTPAGE
Lloh3:
	ldr	x8, [x8, _debug@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	w8, #16960
	movk	w8, #15, lsl #16
	ldp	w9, w10, [x20]
	mul	w8, w9, w8
	sdiv	w4, w8, w10
Lloh5:
	adrp	x3, l_.str@PAGE
Lloh6:
	add	x3, x3, l_.str@PAGEOFF
	mov	w0, #1
	mov	x2, x19
	bl	_v4l2_dbg
	mov	w0, #0
	b	LBB0_6
LBB0_5:
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_ov965x_intervals,8,3           ; @ov965x_intervals
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_debug,4,2                      ; @debug
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Changed frame interval to %u us\n"

	.no_dead_strip	___ov965x_set_frame_interval
.subsections_via_symbols
