	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ov5670_enable_test_pattern
_ov5670_enable_test_pattern:            ## @ov5670_enable_test_pattern
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	_OV5670_REG_TEST_PATTERN_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_OV5670_REG_VALUE_08BIT@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	xorl	%ecx, %ecx
	callq	_ov5670_write_reg
	testl	%eax, %eax
	jne	LBB0_6
## %bb.1:
	movq	_OV5670_REG_TEST_PATTERN@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movl	(%r15), %edx
	leaq	-40(%rbp), %rcx
	movq	%rbx, %rdi
	callq	_ov5670_read_reg
	testl	%eax, %eax
	jne	LBB0_6
## %bb.2:
	movq	_OV5670_TEST_PATTERN_ENABLE@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	testq	%r14, %r14
	je	LBB0_4
## %bb.3:
	orq	-40(%rbp), %rcx
	jmp	LBB0_5
LBB0_4:
	notq	%rcx
	andq	-40(%rbp), %rcx
LBB0_5:
	movq	%rcx, -40(%rbp)
	movl	(%r12), %esi
	movl	(%r15), %edx
	movq	%rbx, %rdi
	callq	_ov5670_write_reg
LBB0_6:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OV5670_REG_TEST_PATTERN_CTRL,4,2 ## @OV5670_REG_TEST_PATTERN_CTRL
	.comm	_OV5670_REG_VALUE_08BIT,4,2     ## @OV5670_REG_VALUE_08BIT
	.comm	_OV5670_REG_TEST_PATTERN,4,2    ## @OV5670_REG_TEST_PATTERN
	.comm	_OV5670_TEST_PATTERN_ENABLE,8,3 ## @OV5670_TEST_PATTERN_ENABLE
	.no_dead_strip	_ov5670_enable_test_pattern
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ov5670_enable_test_pattern
_ov5670_enable_test_pattern:            ; @ov5670_enable_test_pattern
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _OV5670_REG_TEST_PATTERN_CTRL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _OV5670_REG_TEST_PATTERN_CTRL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x21, _OV5670_REG_VALUE_08BIT@GOTPAGE
Lloh4:
	ldr	x21, [x21, _OV5670_REG_VALUE_08BIT@GOTPAGEOFF]
	ldr	w2, [x21]
	mov	x3, #0
	bl	_ov5670_write_reg
	cbnz	w0, LBB0_6
; %bb.1:
Lloh5:
	adrp	x22, _OV5670_REG_TEST_PATTERN@GOTPAGE
Lloh6:
	ldr	x22, [x22, _OV5670_REG_TEST_PATTERN@GOTPAGEOFF]
	ldr	w1, [x22]
	ldr	w2, [x21]
	add	x3, sp, #8
	mov	x0, x19
	bl	_ov5670_read_reg
	cbnz	w0, LBB0_6
; %bb.2:
Lloh7:
	adrp	x8, _OV5670_TEST_PATTERN_ENABLE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _OV5670_TEST_PATTERN_ENABLE@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	cbz	x20, LBB0_4
; %bb.3:
	ldr	x9, [sp, #8]
	orr	x3, x9, x8
	b	LBB0_5
LBB0_4:
	ldr	x9, [sp, #8]
	bic	x3, x9, x8
LBB0_5:
	str	x3, [sp, #8]
	ldr	w1, [x22]
	ldr	w2, [x21]
	mov	x0, x19
	bl	_ov5670_write_reg
LBB0_6:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_OV5670_REG_TEST_PATTERN_CTRL,4,2 ; @OV5670_REG_TEST_PATTERN_CTRL
	.comm	_OV5670_REG_VALUE_08BIT,4,2     ; @OV5670_REG_VALUE_08BIT
	.comm	_OV5670_REG_TEST_PATTERN,4,2    ; @OV5670_REG_TEST_PATTERN
	.comm	_OV5670_TEST_PATTERN_ENABLE,8,3 ; @OV5670_TEST_PATTERN_ENABLE
	.no_dead_strip	_ov5670_enable_test_pattern
.subsections_via_symbols
