	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function setfreq
_setfreq:                               ## @setfreq
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$48, %rsp
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -8(%rbp)
	movq	(%rdi), %rax
	movq	_SENSOR_OV6650@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	%rcx, %rax
	je	LBB0_2
## %bb.1:
	movq	_SENSOR_OV7630@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	jne	LBB0_3
LBB0_2:
	cmpq	%rcx, %rax
	movaps	l___const.setfreq.i2c+16(%rip), %xmm0
	movaps	%xmm0, -32(%rbp)
	movaps	l___const.setfreq.i2c(%rip), %xmm0
	movaps	%xmm0, -48(%rbp)
	movl	$79, %ecx
	movl	$138, %edx
	cmovel	%ecx, %edx
	movq	8(%rdi), %rcx
	xorl	%esi, %esi
	cmpl	$1, (%rcx)
	cmovel	%edx, %esi
	movl	%esi, -36(%rbp)
	movq	_sensor_data@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rcx,%rax,4), %eax
	movl	%eax, -44(%rbp)
	leaq	-48(%rbp), %rsi
	callq	_i2c_w
LBB0_3:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-8(%rbp), %rax
	jne	LBB0_5
## %bb.4:
	addq	$48, %rsp
	popq	%rbp
	retq
LBB0_5:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_SENSOR_OV6650,8,3              ## @SENSOR_OV6650
	.comm	_SENSOR_OV7630,8,3              ## @SENSOR_OV7630
	.section	__TEXT,__const
	.p2align	4                               ## @__const.setfreq.i2c
l___const.setfreq.i2c:
	.long	160                             ## 0xa0
	.long	0                               ## 0x0
	.long	43                              ## 0x2b
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	16                              ## 0x10

	.comm	_sensor_data,8,3                ## @sensor_data
	.no_dead_strip	_setfreq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function setfreq
_setfreq:                               ; @setfreq
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-8]
	ldr	x8, [x0]
Lloh3:
	adrp	x9, _SENSOR_OV6650@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SENSOR_OV6650@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
Lloh6:
	adrp	x10, _SENSOR_OV7630@GOTPAGE
Lloh7:
	ldr	x10, [x10, _SENSOR_OV7630@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_2
; %bb.1:
Lloh9:
	adrp	x10, l___const.setfreq.i2c@PAGE
Lloh10:
	add	x10, x10, l___const.setfreq.i2c@PAGEOFF
	ldp	q0, q1, [x10]
	stp	q0, q1, [sp]
	ldr	x10, [x0, #8]
	ldr	w10, [x10]
	cmp	x8, x9
	mov	w9, #138
	mov	w11, #79
	csel	w9, w11, w9, eq
	cmp	w10, #1
	csel	w9, w9, wzr, eq
	str	w9, [sp, #12]
Lloh11:
	adrp	x9, _sensor_data@GOTPAGE
Lloh12:
	ldr	x9, [x9, _sensor_data@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	ldr	w8, [x9, x8, lsl #2]
	str	w8, [sp, #4]
	mov	x1, sp
	bl	_i2c_w
LBB0_2:
	ldur	x8, [x29, #-8]
Lloh14:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh15:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_4
; %bb.3:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_4:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_SENSOR_OV6650,8,3              ; @SENSOR_OV6650
	.comm	_SENSOR_OV7630,8,3              ; @SENSOR_OV7630
	.section	__TEXT,__const
	.p2align	2                               ; @__const.setfreq.i2c
l___const.setfreq.i2c:
	.long	160                             ; 0xa0
	.long	0                               ; 0x0
	.long	43                              ; 0x2b
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	16                              ; 0x10

	.comm	_sensor_data,8,3                ; @sensor_data
	.no_dead_strip	_setfreq
.subsections_via_symbols
