	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ov7670_s_test_pattern
_ov7670_s_test_pattern:                 ## @ov7670_s_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %r14
	movq	_REG_SCALING_XSC@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_TEST_PATTTERN_0@GOTPCREL(%rip), %r13
	movl	(%r13), %ebx
	xorl	%edi, %edi
	callq	_BIT
	andl	%r15d, %eax
	je	LBB0_2
## %bb.1:
	movl	(%r13), %eax
LBB0_2:
	movq	%r14, %rdi
	movl	%r12d, %esi
	movl	%ebx, %edx
	movl	%eax, %ecx
	callq	_ov7670_update_bits
	testl	%eax, %eax
	je	LBB0_3
## %bb.6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	_REG_SCALING_YSC@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_TEST_PATTTERN_1@GOTPCREL(%rip), %r13
	movl	(%r13), %ebx
	movl	$1, %edi
	callq	_BIT
	andl	%r15d, %eax
	je	LBB0_5
## %bb.4:
	movl	(%r13), %eax
LBB0_5:
	movq	%r14, %rdi
	movl	%r12d, %esi
	movl	%ebx, %edx
	movl	%eax, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ov7670_update_bits             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_REG_SCALING_XSC,4,2            ## @REG_SCALING_XSC
	.comm	_TEST_PATTTERN_0,4,2            ## @TEST_PATTTERN_0
	.comm	_REG_SCALING_YSC,4,2            ## @REG_SCALING_YSC
	.comm	_TEST_PATTTERN_1,4,2            ## @TEST_PATTTERN_1
	.no_dead_strip	_ov7670_s_test_pattern
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ov7670_s_test_pattern
_ov7670_s_test_pattern:                 ; @ov7670_s_test_pattern
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _REG_SCALING_XSC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _REG_SCALING_XSC@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
Lloh3:
	adrp	x23, _TEST_PATTTERN_0@GOTPAGE
Lloh4:
	ldr	x23, [x23, _TEST_PATTTERN_0@GOTPAGEOFF]
	ldr	w22, [x23]
	mov	w0, #0
	bl	_BIT
	ldr	w8, [x23]
	tst	w0, w20
	csel	w3, wzr, w8, eq
	mov	x0, x19
	mov	x1, x21
	mov	x2, x22
	bl	_ov7670_update_bits
	cbz	w0, LBB0_2
; %bb.1:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_2:
Lloh5:
	adrp	x8, _REG_SCALING_YSC@GOTPAGE
Lloh6:
	ldr	x8, [x8, _REG_SCALING_YSC@GOTPAGEOFF]
Lloh7:
	ldr	w21, [x8]
Lloh8:
	adrp	x23, _TEST_PATTTERN_1@GOTPAGE
Lloh9:
	ldr	x23, [x23, _TEST_PATTTERN_1@GOTPAGEOFF]
	ldr	w22, [x23]
	mov	w0, #1
	bl	_BIT
	ldr	w8, [x23]
	tst	w0, w20
	csel	w3, wzr, w8, eq
	mov	x0, x19
	mov	x1, x21
	mov	x2, x22
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_ov7670_update_bits
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_REG_SCALING_XSC,4,2            ; @REG_SCALING_XSC
	.comm	_TEST_PATTTERN_0,4,2            ; @TEST_PATTTERN_0
	.comm	_REG_SCALING_YSC,4,2            ; @REG_SCALING_YSC
	.comm	_TEST_PATTTERN_1,4,2            ; @TEST_PATTTERN_1
	.no_dead_strip	_ov7670_s_test_pattern
.subsections_via_symbols
