	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ov9640_write_regs
_ov9640_write_regs:                     ## @ov9640_write_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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r12
	addl	$-128, %esi
	cmpl	$7, %esi
	jae	LBB0_3
## %bb.1:
	movl	%edx, %r15d
	movslq	%esi, %rax
	leaq	l_switch.table.ov9640_write_regs(%rip), %rcx
	movq	(%rcx,%rax,8), %rax
	movq	(%rax), %rbx
	movq	%rbx, %rdi
	callq	_ARRAY_SIZE
	movl	%eax, %r13d
	movq	_MEDIA_BUS_FMT_UYVY8_2X8@GOTPCREL(%rip), %rax
	cmpl	%r15d, (%rax)
	jne	LBB0_4
## %bb.2:
	movq	_ov9640_regs_yuv@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_3:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_21
LBB0_4:
	movq	_ov9640_regs_rgb@GOTPCREL(%rip), %rax
LBB0_5:
	movq	(%rax), %r15
	movq	%r15, %rdi
	callq	_ARRAY_SIZE
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	testl	%r13d, %r13d
	je	LBB0_15
## %bb.6:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leaq	4(%rax), %rcx
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	leaq	8(%rax), %rcx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	addq	$12, %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movl	%r13d, %r13d
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rbx,%r14,8), %esi
	movl	4(%rbx,%r14,8), %edx
	leal	-135(%rsi), %eax
	cmpl	$3, %eax
	ja	LBB0_13
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	leaq	LJTI0_0(%rip), %rdi
	movslq	(%rdi,%rax,4), %rcx
	addq	%rdi, %rcx
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	jmpq	*%rcx
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
LBB0_12:                                ##   in Loop: Header=BB0_7 Depth=1
	orl	(%rax), %edx
LBB0_13:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	%r12, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_ov9640_reg_write
	testl	%eax, %eax
	jne	LBB0_21
## %bb.14:                              ##   in Loop: Header=BB0_7 Depth=1
	incq	%r14
	cmpq	%r14, %r13
	jne	LBB0_7
LBB0_15:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	testl	%eax, %eax
	je	LBB0_20
## %bb.16:
	movl	%eax, %r14d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r15,%rbx,8), %esi
	movl	4(%r15,%rbx,8), %edx
	movq	%r12, %rdi
	callq	_ov9640_reg_write
	testl	%eax, %eax
	jne	LBB0_21
## %bb.18:                              ##   in Loop: Header=BB0_17 Depth=1
	incq	%rbx
	cmpq	%rbx, %r14
	jne	LBB0_17
LBB0_20:
	xorl	%eax, %eax
LBB0_21:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
LJTI0_0:
	.long	L0_0_set_12
	.long	L0_0_set_9
	.long	L0_0_set_10
	.long	L0_0_set_11
	.end_data_region
                                        ## -- End function
	.comm	_ov9640_regs_qqcif,8,3          ## @ov9640_regs_qqcif
	.comm	_ov9640_regs_qqvga,8,3          ## @ov9640_regs_qqvga
	.comm	_ov9640_regs_qcif,8,3           ## @ov9640_regs_qcif
	.comm	_ov9640_regs_qvga,8,3           ## @ov9640_regs_qvga
	.comm	_ov9640_regs_cif,8,3            ## @ov9640_regs_cif
	.comm	_ov9640_regs_vga,8,3            ## @ov9640_regs_vga
	.comm	_ov9640_regs_sxga,8,3           ## @ov9640_regs_sxga
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to select resolution!\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_MEDIA_BUS_FMT_UYVY8_2X8,4,2    ## @MEDIA_BUS_FMT_UYVY8_2X8
	.comm	_ov9640_regs_yuv,8,3            ## @ov9640_regs_yuv
	.comm	_ov9640_regs_rgb,8,3            ## @ov9640_regs_rgb
	.no_dead_strip	_ov9640_write_regs
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.ov9640_write_regs
l_switch.table.ov9640_write_regs:
	.quad	_ov9640_regs_vga
	.quad	_ov9640_regs_sxga
	.quad	_ov9640_regs_qvga
	.quad	_ov9640_regs_qqvga
	.quad	_ov9640_regs_qqcif
	.quad	_ov9640_regs_qcif
	.quad	_ov9640_regs_cif

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ov9640_write_regs
_ov9640_write_regs:                     ; @ov9640_write_regs
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	sub	w8, w1, #128
	cmp	w8, #7
	b.hs	LBB0_16
; %bb.1:
	mov	x20, x3
	mov	x21, x2
Lloh0:
	adrp	x9, l_switch.table.ov9640_write_regs@PAGE
Lloh1:
	add	x9, x9, l_switch.table.ov9640_write_regs@PAGEOFF
	ldr	x8, [x9, w8, sxtw #3]
	ldr	x23, [x8]
	mov	x0, x23
	bl	_ARRAY_SIZE
	mov	x24, x0
Lloh2:
	adrp	x8, _MEDIA_BUS_FMT_UYVY8_2X8@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MEDIA_BUS_FMT_UYVY8_2X8@GOTPAGEOFF]
Lloh4:
	adrp	x9, _ov9640_regs_rgb@GOTPAGE
Lloh5:
	ldr	x9, [x9, _ov9640_regs_rgb@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
Lloh7:
	adrp	x10, _ov9640_regs_yuv@GOTPAGE
Lloh8:
	ldr	x10, [x10, _ov9640_regs_yuv@GOTPAGEOFF]
	cmp	w8, w21
	csel	x8, x10, x9, eq
	ldr	x21, [x8]
	mov	x0, x21
	bl	_ARRAY_SIZE
	mov	x22, x0
	cbz	w24, LBB0_11
; %bb.2:
	add	x25, x20, #4
	add	x26, x20, #8
	add	x27, x20, #12
	mov	w24, w24
	add	x23, x23, #4
Lloh9:
	adrp	x28, lJTI0_0@PAGE
Lloh10:
	add	x28, x28, lJTI0_0@PAGEOFF
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldp	w1, w2, [x23, #-4]
	sub	w8, w1, #135
	cmp	w8, #3
	b.hi	LBB0_9
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	adr	x9, LBB0_5
	ldrb	w10, [x28, x8]
	add	x9, x9, x10, lsl #2
	mov	x8, x27
	br	x9
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x8, x20
	b	LBB0_8
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x8, x25
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x8, x26
LBB0_8:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x8]
	orr	w2, w8, w2
LBB0_9:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	bl	_ov9640_reg_write
	cbnz	w0, LBB0_17
; %bb.10:                               ;   in Loop: Header=BB0_3 Depth=1
	add	x23, x23, #8
	subs	x24, x24, #1
	b.ne	LBB0_3
LBB0_11:
	cbz	w22, LBB0_15
; %bb.12:
	mov	w20, w22
	add	x21, x21, #4
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldp	w1, w2, [x21, #-4]
	mov	x0, x19
	bl	_ov9640_reg_write
	cbnz	w0, LBB0_17
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	add	x21, x21, #8
	subs	x20, x20, #1
	b.ne	LBB0_13
LBB0_15:
	mov	w0, #0
	b	LBB0_17
LBB0_16:
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh13:
	adrp	x8, _EINVAL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_17:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh6
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_8-LBB0_5)>>2
	.byte	(LBB0_5-LBB0_5)>>2
	.byte	(LBB0_6-LBB0_5)>>2
	.byte	(LBB0_7-LBB0_5)>>2
                                        ; -- End function
	.comm	_ov9640_regs_qqcif,8,3          ; @ov9640_regs_qqcif
	.comm	_ov9640_regs_qqvga,8,3          ; @ov9640_regs_qqvga
	.comm	_ov9640_regs_qcif,8,3           ; @ov9640_regs_qcif
	.comm	_ov9640_regs_qvga,8,3           ; @ov9640_regs_qvga
	.comm	_ov9640_regs_cif,8,3            ; @ov9640_regs_cif
	.comm	_ov9640_regs_vga,8,3            ; @ov9640_regs_vga
	.comm	_ov9640_regs_sxga,8,3           ; @ov9640_regs_sxga
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to select resolution!\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_MEDIA_BUS_FMT_UYVY8_2X8,4,2    ; @MEDIA_BUS_FMT_UYVY8_2X8
	.comm	_ov9640_regs_yuv,8,3            ; @ov9640_regs_yuv
	.comm	_ov9640_regs_rgb,8,3            ; @ov9640_regs_rgb
	.no_dead_strip	_ov9640_write_regs
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.ov9640_write_regs
l_switch.table.ov9640_write_regs:
	.quad	_ov9640_regs_vga
	.quad	_ov9640_regs_sxga
	.quad	_ov9640_regs_qvga
	.quad	_ov9640_regs_qqvga
	.quad	_ov9640_regs_qqcif
	.quad	_ov9640_regs_qcif
	.quad	_ov9640_regs_cif

.subsections_via_symbols
