	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ov965x_set_color_matrix
_ov965x_set_color_matrix:               ## @ov965x_set_color_matrix
	.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
	movq	%rdi, %r12
	movl	$1, %edi
	callq	_REG_MTX
	movl	%eax, %r15d
	leaq	_ov965x_set_color_matrix.mtx(%rip), %r14
	movq	%r14, %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	je	LBB0_4
## %bb.1:
	movl	%r15d, %r15d
	xorl	%ebx, %ebx
	movq	%r14, %r13
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	leal	(%r15,%rbx), %esi
	movl	(%r13), %edx
	movq	%r12, %rdi
	callq	_ov965x_write
	testl	%eax, %eax
	js	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	movq	%r14, %rdi
	callq	_ARRAY_SIZE
	movl	%eax, %eax
	addq	$4, %r13
	cmpq	%rax, %rbx
	jb	LBB0_2
LBB0_4:
	xorl	%eax, %eax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @ov965x_set_color_matrix.mtx
_ov965x_set_color_matrix.mtx:
	.long	58                              ## 0x3a
	.long	61                              ## 0x3d
	.long	3                               ## 0x3
	.long	18                              ## 0x12
	.long	38                              ## 0x26
	.long	56                              ## 0x38
	.long	64                              ## 0x40
	.long	64                              ## 0x40
	.long	64                              ## 0x40
	.long	13                              ## 0xd

	.no_dead_strip	_ov965x_set_color_matrix
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ov965x_set_color_matrix
_ov965x_set_color_matrix:               ; @ov965x_set_color_matrix
	.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
	mov	w0, #1
	bl	_REG_MTX
	mov	x21, x0
Lloh0:
	adrp	x20, _ov965x_set_color_matrix.mtx@PAGE
Lloh1:
	add	x20, x20, _ov965x_set_color_matrix.mtx@PAGEOFF
	mov	x0, x20
	bl	_ARRAY_SIZE
	cbz	w0, LBB0_5
; %bb.1:
	mov	x22, #0
	mov	w21, w21
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	w1, w21, w22
	ldr	w2, [x20, x22, lsl #2]
	mov	x0, x19
	bl	_ov965x_write
	tbnz	w0, #31, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x22, x22, #1
	mov	x0, x20
	bl	_ARRAY_SIZE
	cmp	x22, w0, uxtw
	b.lo	LBB0_2
; %bb.4:
	mov	w0, #0
LBB0_5:
	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 AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @ov965x_set_color_matrix.mtx
_ov965x_set_color_matrix.mtx:
	.long	58                              ; 0x3a
	.long	61                              ; 0x3d
	.long	3                               ; 0x3
	.long	18                              ; 0x12
	.long	38                              ; 0x26
	.long	56                              ; 0x38
	.long	64                              ; 0x40
	.long	64                              ; 0x40
	.long	64                              ; 0x40
	.long	13                              ; 0xd

	.no_dead_strip	_ov965x_set_color_matrix
.subsections_via_symbols
