	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ov9640_alter_regs
_ov9640_alter_regs:                     ## @ov9640_alter_regs
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	cmpl	$129, %edi
	je	LBB0_4
## %bb.1:
	cmpl	$130, %edi
	jne	LBB0_2
## %bb.3:
	movq	_OV9640_COM7_RGB@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%rbx)
	movq	_OV9640_COM13_RGB_AVG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	movq	_OV9640_COM15_RGB_555@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_4:
	movq	_OV9640_COM7_RGB@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%rbx)
	movq	_OV9640_COM13_RGB_AVG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	movq	_OV9640_COM15_RGB_565@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
	jmp	LBB0_6
LBB0_2:
	movq	_OV9640_COM12_YUV_AVG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movq	_OV9640_COM13_Y_DELAY_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	$1, %edi
	callq	_OV9640_COM13_YUV_DLY
	orl	%r14d, %eax
	movl	%eax, (%rbx)
LBB0_6:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OV9640_COM12_YUV_AVG,4,2       ## @OV9640_COM12_YUV_AVG
	.comm	_OV9640_COM13_Y_DELAY_EN,4,2    ## @OV9640_COM13_Y_DELAY_EN
	.comm	_OV9640_COM7_RGB,8,3            ## @OV9640_COM7_RGB
	.comm	_OV9640_COM13_RGB_AVG,8,3       ## @OV9640_COM13_RGB_AVG
	.comm	_OV9640_COM15_RGB_555,4,2       ## @OV9640_COM15_RGB_555
	.comm	_OV9640_COM15_RGB_565,4,2       ## @OV9640_COM15_RGB_565
	.no_dead_strip	_ov9640_alter_regs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ov9640_alter_regs
_ov9640_alter_regs:                     ; @ov9640_alter_regs
	.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
	cmp	w0, #129
	b.eq	LBB0_3
; %bb.1:
	cmp	w0, #130
	b.ne	LBB0_5
; %bb.2:
Lloh0:
	adrp	x8, _OV9640_COM7_RGB@GOTPAGE
Lloh1:
	ldr	x8, [x8, _OV9640_COM7_RGB@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [x19, #8]
Lloh3:
	adrp	x8, _OV9640_COM13_RGB_AVG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _OV9640_COM13_RGB_AVG@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	str	w8, [x19]
Lloh6:
	adrp	x8, _OV9640_COM15_RGB_555@GOTPAGE
Lloh7:
	ldr	x8, [x8, _OV9640_COM15_RGB_555@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh8:
	adrp	x8, _OV9640_COM7_RGB@GOTPAGE
Lloh9:
	ldr	x8, [x8, _OV9640_COM7_RGB@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	str	x8, [x19, #8]
Lloh11:
	adrp	x8, _OV9640_COM13_RGB_AVG@GOTPAGE
Lloh12:
	ldr	x8, [x8, _OV9640_COM13_RGB_AVG@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	str	w8, [x19]
Lloh14:
	adrp	x8, _OV9640_COM15_RGB_565@GOTPAGE
Lloh15:
	ldr	x8, [x8, _OV9640_COM15_RGB_565@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	str	w8, [x19, #4]
	b	LBB0_6
LBB0_5:
Lloh16:
	adrp	x8, _OV9640_COM12_YUV_AVG@GOTPAGE
Lloh17:
	ldr	x8, [x8, _OV9640_COM12_YUV_AVG@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	str	w8, [x19, #16]
Lloh19:
	adrp	x8, _OV9640_COM13_Y_DELAY_EN@GOTPAGE
Lloh20:
	ldr	x8, [x8, _OV9640_COM13_Y_DELAY_EN@GOTPAGEOFF]
Lloh21:
	ldr	w20, [x8]
	mov	w0, #1
	bl	_OV9640_COM13_YUV_DLY
	orr	w8, w0, w20
	str	w8, [x19]
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_OV9640_COM12_YUV_AVG,4,2       ; @OV9640_COM12_YUV_AVG
	.comm	_OV9640_COM13_Y_DELAY_EN,4,2    ; @OV9640_COM13_Y_DELAY_EN
	.comm	_OV9640_COM7_RGB,8,3            ; @OV9640_COM7_RGB
	.comm	_OV9640_COM13_RGB_AVG,8,3       ; @OV9640_COM13_RGB_AVG
	.comm	_OV9640_COM15_RGB_555,4,2       ; @OV9640_COM15_RGB_555
	.comm	_OV9640_COM15_RGB_565,4,2       ; @OV9640_COM15_RGB_565
	.no_dead_strip	_ov9640_alter_regs
.subsections_via_symbols
