	.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
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movl	(%rdi), %eax
	movq	_SENSOR_OV7660@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_8
## %bb.1:
	movq	8(%rbx), %rax
	movl	(%rax), %eax
	cmpl	$2, %eax
	je	LBB0_7
## %bb.2:
	cmpl	$1, %eax
	je	LBB0_6
## %bb.3:
	testl	%eax, %eax
	jne	LBB0_17
## %bb.4:
	movq	%rbx, %rdi
	movl	$19, %esi
	movl	$255, %edx
	jmp	LBB0_5
LBB0_8:
	cmpl	$128, %eax
	je	LBB0_11
## %bb.9:
	xorl	%edx, %edx
	movl	$0, %r14d
	cmpl	$129, %eax
	jne	LBB0_12
## %bb.10:
	movl	$1, %r14d
	movl	$8, %edx
	jmp	LBB0_12
LBB0_11:
	movl	$129, %r14d
	movl	$17, %edx
LBB0_12:
	movq	8(%rbx), %rax
	movl	(%rax), %eax
	xorl	%r15d, %r15d
	cmpl	$2, %eax
	je	LBB0_15
## %bb.13:
	cmpl	$1, %eax
	jne	LBB0_16
## %bb.14:
	orl	$128, %edx
	orl	$4, %r14d
	movl	$172, %r15d
	jmp	LBB0_16
LBB0_15:
	orl	$128, %edx
	orl	$4, %r14d
LBB0_16:
	movq	%rbx, %rdi
	movl	$42, %esi
	callq	_i2c_w1
	movq	%rbx, %rdi
	movl	$43, %esi
	movl	%r15d, %edx
	callq	_i2c_w1
	movq	%rbx, %rdi
	movl	$45, %esi
	movl	%r14d, %edx
	jmp	LBB0_5
LBB0_7:
	movq	%rbx, %rdi
	movl	$19, %esi
	movl	$223, %edx
	callq	_i2c_w1
	movq	%rbx, %rdi
	movl	$59, %esi
	movl	$2, %edx
	jmp	LBB0_5
LBB0_6:
	movq	%rbx, %rdi
	movl	$19, %esi
	movl	$223, %edx
	callq	_i2c_w1
	movq	%rbx, %rdi
	movl	$59, %esi
	movl	$10, %edx
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_i2c_w1                         ## TAILCALL
LBB0_17:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SENSOR_OV7660,4,2              ## @SENSOR_OV7660
	.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:
	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	x19, x0
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _SENSOR_OV7660@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SENSOR_OV7660@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_5
; %bb.1:
	ldr	x8, [x19, #8]
	ldr	w8, [x8]
	cmp	w8, #2
	b.eq	LBB0_11
; %bb.2:
	cmp	w8, #1
	b.eq	LBB0_12
; %bb.3:
	cbnz	w8, LBB0_14
; %bb.4:
	mov	x0, x19
	mov	w1, #19
	mov	w2, #255
	b	LBB0_13
LBB0_5:
	mov	w9, #129
	mov	w10, #17
	mov	w11, #1
	mov	w12, #8
	cmp	w8, #129
	csel	w12, wzr, w12, ne
	csel	w11, wzr, w11, ne
	cmp	w8, #128
	csel	w2, w10, w12, eq
	csel	w20, w9, w11, eq
	ldr	x8, [x19, #8]
	ldr	w8, [x8]
	cmp	w8, #2
	b.eq	LBB0_8
; %bb.6:
	cmp	w8, #1
	b.ne	LBB0_9
; %bb.7:
	orr	w2, w2, #0x80
	orr	w20, w20, #0x4
	mov	w21, #172
	b	LBB0_10
LBB0_8:
	mov	w21, #0
	orr	w2, w2, #0x80
	orr	w20, w20, #0x4
	b	LBB0_10
LBB0_9:
	mov	w21, #0
LBB0_10:
	mov	x0, x19
	mov	w1, #42
	bl	_i2c_w1
	mov	x0, x19
	mov	w1, #43
	mov	x2, x21
	bl	_i2c_w1
	mov	x0, x19
	mov	w1, #45
	mov	x2, x20
	b	LBB0_13
LBB0_11:
	mov	x0, x19
	mov	w1, #19
	mov	w2, #223
	bl	_i2c_w1
	mov	x0, x19
	mov	w1, #59
	mov	w2, #2
	b	LBB0_13
LBB0_12:
	mov	x0, x19
	mov	w1, #19
	mov	w2, #223
	bl	_i2c_w1
	mov	x0, x19
	mov	w1, #59
	mov	w2, #10
LBB0_13:
	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
	b	_i2c_w1
LBB0_14:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SENSOR_OV7660,4,2              ; @SENSOR_OV7660
	.no_dead_strip	_setfreq
.subsections_via_symbols
