	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ov6650_s_fmt
_ov6650_s_fmt:                          ## @ov6650_s_fmt
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r13
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	callq	_v4l2_get_subdevdata
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	callq	_to_ov6650
	movq	%rax, %r15
	movl	(%r13), %edi
	movl	4(%r13), %esi
	leaq	16(%rax), %rdx
	callq	_is_unscaled_ok
	movl	%eax, %r8d
	xorl	%r14d, %r14d
	testl	%eax, %eax
	setne	%al
	sete	%cl
	movl	(%r13), %edx
	movl	%edx, %esi
	shll	%cl, %esi
	movl	%esi, -96(%rbp)
	movl	4(%r13), %esi
	movl	%esi, %edi
	movb	%cl, -41(%rbp)                  ## 1-byte Spill
	shll	%cl, %edi
	movl	%edi, -92(%rbp)
	movl	20(%r15), %edi
	movl	24(%r15), %ebx
	sarl	%edi
	movl	%eax, %ecx
	sarl	%cl, %esi
	subl	%esi, %ebx
	addl	%edi, %ebx
	movl	%ebx, -88(%rbp)
	movl	16(%r15), %esi
	movl	28(%r15), %edi
	sarl	%esi
	sarl	%cl, %edx
	subl	%edx, %edi
	addl	%esi, %edi
	movl	%edi, -84(%rbp)
	movq	_V4L2_SEL_TGT_CROP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -80(%rbp)
	movq	_V4L2_SUBDEV_FORMAT_ACTIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -76(%rbp)
	movl	8(%r13), %r12d
	leal	-128(%r12), %eax
	cmpl	$5, %eax
	ja	LBB0_8
## %bb.1:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	movq	%r13, -104(%rbp)                ## 8-byte Spill
	jmpq	*%rax
LBB0_9:
	leaq	L_.str.2(%rip), %rsi
	movl	$0, -48(%rbp)                   ## 4-byte Folded Spill
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	xorl	%eax, %eax
	movl	%r8d, %r13d
	callq	_dev_dbg
	movl	%r13d, %esi
	movq	_COMA_RGB@GOTPCREL(%rip), %rax
	movq	_COMA_BW@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r13d
	orl	(%rax), %r13d
	movq	_COMA_WORD_SWAP@GOTPCREL(%rip), %rax
	orl	(%rax), %r13d
	movq	_COMA_BYTE_SWAP@GOTPCREL(%rip), %rax
	orl	(%rax), %r13d
	jmp	LBB0_10
LBB0_8:
	leaq	L_.str.6(%rip), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r12d, %edx
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_28
LBB0_2:
	leaq	L_.str.1(%rip), %rsi
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	xorl	%eax, %eax
	movl	%r8d, %r13d
	callq	_dev_dbg
	movl	%r13d, %esi
	movq	_COMA_RGB@GOTPCREL(%rip), %rax
	movq	_COMA_BW@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r13d
	orl	(%rax), %r13d
	movq	_COMA_BYTE_SWAP@GOTPCREL(%rip), %rax
	orl	(%rax), %r13d
	movq	_COMA_WORD_SWAP@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_11:
	leaq	L_.str(%rip), %rsi
	movl	$0, -64(%rbp)                   ## 4-byte Folded Spill
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	xorl	%eax, %eax
	movl	%r8d, %r13d
	callq	_dev_dbg
	movl	%r13d, %esi
	movq	_COMA_RGB@GOTPCREL(%rip), %rax
	movq	_COMA_WORD_SWAP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r13d
	orl	(%rax), %r13d
	movq	_COMA_BYTE_SWAP@GOTPCREL(%rip), %rax
	orl	(%rax), %r13d
	movq	_COMA_BW@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	%r12d, (%r15)
	movq	_COML_ONE_CHANNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movq	_V4L2_COLORSPACE_JPEG@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_6:
	leaq	L_.str.4(%rip), %rsi
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	xorl	%eax, %eax
	movl	%r8d, %r13d
	callq	_dev_dbg
	movl	%r13d, %esi
	movq	_COMA_RGB@GOTPCREL(%rip), %rax
	movq	_COMA_BW@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r13d
	orl	(%rax), %r13d
	testl	%esi, %esi
	je	LBB0_7
LBB0_4:
	movq	_COMA_WORD_SWAP@GOTPCREL(%rip), %rax
	orl	(%rax), %r13d
	movq	_COMA_BYTE_SWAP@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	jmp	LBB0_10
LBB0_3:
	leaq	L_.str.3(%rip), %rsi
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	xorl	%eax, %eax
	movl	%r8d, %r13d
	callq	_dev_dbg
	movl	%r13d, %esi
	movq	_COMA_RGB@GOTPCREL(%rip), %rax
	movq	_COMA_BW@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r13d
	orl	(%rax), %r13d
	testl	%esi, %esi
	je	LBB0_4
LBB0_7:
	movq	_COMA_BYTE_SWAP@GOTPCREL(%rip), %rax
	movq	_COMA_WORD_SWAP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
LBB0_10:
	movl	%r12d, (%r15)
	movq	_COML_ONE_CHANNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	movq	_V4L2_COLORSPACE_JPEG@GOTPCREL(%rip), %rax
	movl	$0, -60(%rbp)                   ## 4-byte Folded Spill
	movl	$8000000, %ecx                  ## imm = 0x7A1200
	jmp	LBB0_14
LBB0_12:
	leaq	L_.str.5(%rip), %rsi
	movl	$0, -64(%rbp)                   ## 4-byte Folded Spill
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	xorl	%eax, %eax
	movl	%r8d, %r13d
	callq	_dev_dbg
	movl	%r13d, %esi
	movq	_COMA_BW@GOTPCREL(%rip), %rax
	movq	_COMA_BYTE_SWAP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r13d
	orl	(%rax), %r13d
	movq	_COMA_WORD_SWAP@GOTPCREL(%rip), %rax
	orl	(%rax), %r13d
	movq	_COMA_RAW_RGB@GOTPCREL(%rip), %rax
	movq	_COMA_RGB@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movl	%r12d, (%r15)
	movq	_COML_ONE_CHANNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movq	_V4L2_COLORSPACE_SRGB@GOTPCREL(%rip), %rax
LBB0_13:
	movl	$4000000, %ecx                  ## imm = 0x3D0900
LBB0_14:
	movb	-41(%rbp), %dl                  ## 1-byte Reload
	movb	%dl, %r14b
	movl	%ecx, 4(%r15)
	movl	(%rax), %eax
	movl	%eax, 32(%r15)
	testl	%esi, %esi
	je	LBB0_15
## %bb.16:
	leaq	L_.str.8(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	_COMA_QCIF@GOTPCREL(%rip), %rax
	orl	(%rax), %r13d
	jmp	LBB0_17
LBB0_15:
	leaq	L_.str.7(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	_COMA_QCIF@GOTPCREL(%rip), %rax
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	orl	(%rax), %ecx
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movl	4(%r15), %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	movl	%ecx, 4(%r15)
LBB0_17:
	movq	%rbx, %rdi
	movl	%r14d, 8(%r15)
	movq	_CLKRC_12MHz@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	$1334000, 12(%r15)              ## imm = 0x145AF0
	leaq	L_.str.9(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	%r15, %rdi
	addq	$36, %rdi
	movl	4(%r15), %edx
	movl	12(%r15), %esi
	callq	_to_clkrc
	movl	%eax, %r12d
	orl	%ebx, %r12d
	movslq	4(%r15), %r14
	movl	%r12d, %edi
	callq	_GET_CLKRC_DIV
	movq	%rax, %rcx
	orq	%r14, %rax
	shrq	$32, %rax
	je	LBB0_18
## %bb.19:
	movq	%r14, %rax
	xorl	%edx, %edx
	divq	%rcx
	movq	%rax, %rcx
	jmp	LBB0_20
LBB0_18:
	movl	%r14d, %eax
	xorl	%edx, %edx
	divl	%ecx
	movl	%eax, %ecx
LBB0_20:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	cmpq	$12000000, %rcx                 ## imm = 0xB71B00
	ja	LBB0_21
## %bb.22:
	movl	$12000000, %eax                 ## imm = 0xB71B00
	xorl	%edx, %edx
	divl	%ecx
	movl	%eax, %edx
	jmp	LBB0_23
LBB0_21:
	xorl	%edx, %edx
LBB0_23:
	leaq	L_.str.10(%rip), %rsi
	movq	%r14, %rdi
	xorl	%ecx, %ecx
	xorl	%eax, %eax
	callq	_dev_dbg
	leaq	-96(%rbp), %rdx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_ov6650_set_selection
	testl	%eax, %eax
	jne	LBB0_28
## %bb.24:
	movq	_REG_COMA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	movl	%r13d, %ecx
	callq	_ov6650_reg_rmw
	testl	%eax, %eax
	jne	LBB0_28
## %bb.25:
	movq	_REG_CLKRC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%r12d, %edx
	callq	_ov6650_reg_write
	testl	%eax, %eax
	jne	LBB0_28
## %bb.26:
	movq	_REG_COML@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	-64(%rbp), %edx                 ## 4-byte Reload
	movl	-60(%rbp), %ecx                 ## 4-byte Reload
	callq	_ov6650_reg_rmw
	testl	%eax, %eax
	jne	LBB0_28
## %bb.27:
	movl	32(%r15), %eax
	movq	-104(%rbp), %rdx                ## 8-byte Reload
	movl	%eax, 12(%rdx)
	movl	16(%r15), %eax
	movb	-41(%rbp), %cl                  ## 1-byte Reload
	sarl	%cl, %eax
	movl	%eax, (%rdx)
	movl	20(%r15), %eax
	sarl	%cl, %eax
	movl	%eax, 4(%rdx)
	xorl	%eax, %eax
LBB0_28:
	addq	$72, %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_9, LBB0_9-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
LJTI0_0:
	.long	L0_0_set_9
	.long	L0_0_set_2
	.long	L0_0_set_11
	.long	L0_0_set_6
	.long	L0_0_set_3
	.long	L0_0_set_12
	.end_data_region
                                        ## -- End function
	.comm	_V4L2_SEL_TGT_CROP,4,2          ## @V4L2_SEL_TGT_CROP
	.comm	_V4L2_SUBDEV_FORMAT_ACTIVE,4,2  ## @V4L2_SUBDEV_FORMAT_ACTIVE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pixel format GREY8_1X8\n"

	.comm	_COMA_RGB,4,2                   ## @COMA_RGB
	.comm	_COMA_WORD_SWAP,4,2             ## @COMA_WORD_SWAP
	.comm	_COMA_BYTE_SWAP,4,2             ## @COMA_BYTE_SWAP
	.comm	_COMA_BW,4,2                    ## @COMA_BW
L_.str.1:                               ## @.str.1
	.asciz	"pixel format YUYV8_2X8_LE\n"

L_.str.2:                               ## @.str.2
	.asciz	"pixel format YVYU8_2X8_LE (untested)\n"

L_.str.3:                               ## @.str.3
	.asciz	"pixel format YUYV8_2X8_BE\n"

L_.str.4:                               ## @.str.4
	.asciz	"pixel format YVYU8_2X8_BE (untested)\n"

L_.str.5:                               ## @.str.5
	.asciz	"pixel format SBGGR8_1X8 (untested)\n"

	.comm	_COMA_RAW_RGB,4,2               ## @COMA_RAW_RGB
L_.str.6:                               ## @.str.6
	.asciz	"Pixel format not handled: 0x%x\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_COML_ONE_CHANNEL,4,2           ## @COML_ONE_CHANNEL
	.comm	_V4L2_COLORSPACE_SRGB,4,2       ## @V4L2_COLORSPACE_SRGB
	.comm	_V4L2_COLORSPACE_JPEG,4,2       ## @V4L2_COLORSPACE_JPEG
L_.str.7:                               ## @.str.7
	.asciz	"max resolution: QCIF\n"

	.comm	_COMA_QCIF,4,2                  ## @COMA_QCIF
L_.str.8:                               ## @.str.8
	.asciz	"max resolution: CIF\n"

	.comm	_CLKRC_12MHz,4,2                ## @CLKRC_12MHz
L_.str.9:                               ## @.str.9
	.asciz	"using 12MHz input clock\n"

L_.str.10:                              ## @.str.10
	.asciz	"pixel clock divider: %ld.%ld\n"

	.comm	_REG_COMA,4,2                   ## @REG_COMA
	.comm	_REG_CLKRC,4,2                  ## @REG_CLKRC
	.comm	_REG_COML,4,2                   ## @REG_COML
	.no_dead_strip	_ov6650_s_fmt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ov6650_s_fmt
_ov6650_s_fmt:                          ; @ov6650_s_fmt
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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, x1
	mov	x22, x0
	bl	_v4l2_get_subdevdata
	mov	x21, x0
	bl	_to_ov6650
	mov	x20, x0
	ldp	w0, w1, [x19]
	add	x2, x20, #16
	bl	_is_unscaled_ok
	cmp	w0, #0
	cset	w8, ne
	cset	w25, eq
	ldr	d0, [x19]
	mov.s	w9, v0[1]
	dup.2s	v1, w8
	neg.2s	v1, v1
	sshl.2s	v1, v0, v1
	fmov	w8, s0
	lsl	w8, w8, w25
	lsl	w9, w9, w25
	stp	w8, w9, [sp, #24]
	ldp	d2, d0, [x20, #16]
	sshr.2s	v2, v2, #1
	rev64.2s	v2, v2
	rev64.2s	v1, v1
	sub.2s	v0, v0, v1
	add.2s	v0, v0, v2
	str	d0, [sp, #32]
Lloh0:
	adrp	x8, _V4L2_SEL_TGT_CROP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _V4L2_SEL_TGT_CROP@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _V4L2_SUBDEV_FORMAT_ACTIVE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _V4L2_SUBDEV_FORMAT_ACTIVE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	stp	w8, w9, [sp, #40]
	ldr	w27, [x19, #8]
	sub	w8, w27, #128
	cmp	w8, #5
	b.hi	LBB0_3
; %bb.1:
	mov	x23, x0
Lloh6:
	adrp	x9, lJTI0_0@PAGE
Lloh7:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
Lloh8:
	adrp	x1, l_.str.2@PAGE
Lloh9:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x21
	bl	_dev_dbg
	mov	w26, #0
Lloh10:
	adrp	x8, _COMA_RGB@GOTPAGE
Lloh11:
	ldr	x8, [x8, _COMA_RGB@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
Lloh13:
	adrp	x9, _COMA_BW@GOTPAGE
Lloh14:
	ldr	x9, [x9, _COMA_BW@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh16:
	adrp	x9, _COMA_WORD_SWAP@GOTPAGE
Lloh17:
	ldr	x9, [x9, _COMA_WORD_SWAP@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh19:
	adrp	x9, _COMA_BYTE_SWAP@GOTPAGE
Lloh20:
	ldr	x9, [x9, _COMA_BYTE_SWAP@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	orr	w24, w8, w9
	b	LBB0_11
LBB0_3:
Lloh22:
	adrp	x1, l_.str.6@PAGE
Lloh23:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x21
	mov	x2, x27
	bl	_dev_err
Lloh24:
	adrp	x8, _EINVAL@GOTPAGE
Lloh25:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_21
LBB0_4:
Lloh27:
	adrp	x1, l_.str.1@PAGE
Lloh28:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_dev_dbg
Lloh29:
	adrp	x8, _COMA_RGB@GOTPAGE
Lloh30:
	ldr	x8, [x8, _COMA_RGB@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
Lloh32:
	adrp	x9, _COMA_BW@GOTPAGE
Lloh33:
	ldr	x9, [x9, _COMA_BW@GOTPAGEOFF]
Lloh34:
	ldr	w9, [x9]
Lloh35:
	adrp	x10, _COMA_BYTE_SWAP@GOTPAGE
Lloh36:
	ldr	x10, [x10, _COMA_BYTE_SWAP@GOTPAGEOFF]
	orr	w8, w9, w8
Lloh37:
	ldr	w9, [x10]
	orr	w24, w8, w9
Lloh38:
	adrp	x8, _COMA_WORD_SWAP@GOTPAGE
Lloh39:
	ldr	x8, [x8, _COMA_WORD_SWAP@GOTPAGEOFF]
	b	LBB0_8
LBB0_5:
	mov	w28, #2304
	movk	w28, #61, lsl #16
Lloh40:
	adrp	x1, l_.str@PAGE
Lloh41:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_dev_dbg
	str	wzr, [sp, #20]                  ; 4-byte Folded Spill
Lloh42:
	adrp	x8, _COMA_RGB@GOTPAGE
Lloh43:
	ldr	x8, [x8, _COMA_RGB@GOTPAGEOFF]
Lloh44:
	ldr	w8, [x8]
Lloh45:
	adrp	x9, _COMA_WORD_SWAP@GOTPAGE
Lloh46:
	ldr	x9, [x9, _COMA_WORD_SWAP@GOTPAGEOFF]
Lloh47:
	ldr	w9, [x9]
Lloh48:
	adrp	x10, _COMA_BYTE_SWAP@GOTPAGE
Lloh49:
	ldr	x10, [x10, _COMA_BYTE_SWAP@GOTPAGEOFF]
	orr	w8, w9, w8
Lloh50:
	ldr	w9, [x10]
	orr	w24, w8, w9
Lloh51:
	adrp	x8, _COMA_BW@GOTPAGE
Lloh52:
	ldr	x8, [x8, _COMA_BW@GOTPAGEOFF]
Lloh53:
	ldr	w26, [x8]
	str	w27, [x20]
Lloh54:
	adrp	x8, _COML_ONE_CHANNEL@GOTPAGE
Lloh55:
	ldr	x8, [x8, _COML_ONE_CHANNEL@GOTPAGEOFF]
Lloh56:
	ldr	w8, [x8]
	str	w8, [sp, #16]                   ; 4-byte Folded Spill
Lloh57:
	adrp	x8, _V4L2_COLORSPACE_JPEG@GOTPAGE
Lloh58:
	ldr	x8, [x8, _V4L2_COLORSPACE_JPEG@GOTPAGEOFF]
	b	LBB0_13
LBB0_6:
Lloh59:
	adrp	x1, l_.str.4@PAGE
Lloh60:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x21
	bl	_dev_dbg
Lloh61:
	adrp	x8, _COMA_RGB@GOTPAGE
Lloh62:
	ldr	x8, [x8, _COMA_RGB@GOTPAGEOFF]
Lloh63:
	ldr	w8, [x8]
Lloh64:
	adrp	x9, _COMA_BW@GOTPAGE
Lloh65:
	ldr	x9, [x9, _COMA_BW@GOTPAGEOFF]
Lloh66:
	ldr	w9, [x9]
	orr	w24, w9, w8
	cbz	w23, LBB0_10
LBB0_7:
Lloh67:
	adrp	x8, _COMA_WORD_SWAP@GOTPAGE
Lloh68:
	ldr	x8, [x8, _COMA_WORD_SWAP@GOTPAGEOFF]
Lloh69:
	ldr	w8, [x8]
	orr	w24, w24, w8
Lloh70:
	adrp	x8, _COMA_BYTE_SWAP@GOTPAGE
Lloh71:
	ldr	x8, [x8, _COMA_BYTE_SWAP@GOTPAGEOFF]
LBB0_8:
	ldr	w26, [x8]
	b	LBB0_11
LBB0_9:
Lloh72:
	adrp	x1, l_.str.3@PAGE
Lloh73:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x21
	bl	_dev_dbg
Lloh74:
	adrp	x8, _COMA_RGB@GOTPAGE
Lloh75:
	ldr	x8, [x8, _COMA_RGB@GOTPAGEOFF]
Lloh76:
	ldr	w8, [x8]
Lloh77:
	adrp	x9, _COMA_BW@GOTPAGE
Lloh78:
	ldr	x9, [x9, _COMA_BW@GOTPAGEOFF]
Lloh79:
	ldr	w9, [x9]
	orr	w24, w9, w8
	cbz	w23, LBB0_7
LBB0_10:
Lloh80:
	adrp	x8, _COMA_BYTE_SWAP@GOTPAGE
Lloh81:
	ldr	x8, [x8, _COMA_BYTE_SWAP@GOTPAGEOFF]
Lloh82:
	ldr	w8, [x8]
Lloh83:
	adrp	x9, _COMA_WORD_SWAP@GOTPAGE
Lloh84:
	ldr	x9, [x9, _COMA_WORD_SWAP@GOTPAGEOFF]
Lloh85:
	ldr	w9, [x9]
	orr	w26, w9, w8
LBB0_11:
	str	wzr, [sp, #16]                  ; 4-byte Folded Spill
	str	w27, [x20]
Lloh86:
	adrp	x8, _COML_ONE_CHANNEL@GOTPAGE
Lloh87:
	ldr	x8, [x8, _COML_ONE_CHANNEL@GOTPAGEOFF]
Lloh88:
	ldr	w8, [x8]
	str	w8, [sp, #20]                   ; 4-byte Folded Spill
Lloh89:
	adrp	x8, _V4L2_COLORSPACE_JPEG@GOTPAGE
Lloh90:
	ldr	x8, [x8, _V4L2_COLORSPACE_JPEG@GOTPAGEOFF]
	mov	w28, #4608
	movk	w28, #122, lsl #16
	b	LBB0_13
LBB0_12:
	mov	w28, #2304
	movk	w28, #61, lsl #16
Lloh91:
	adrp	x1, l_.str.5@PAGE
Lloh92:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x21
	bl	_dev_dbg
	str	wzr, [sp, #20]                  ; 4-byte Folded Spill
Lloh93:
	adrp	x8, _COMA_BW@GOTPAGE
Lloh94:
	ldr	x8, [x8, _COMA_BW@GOTPAGEOFF]
Lloh95:
	ldr	w8, [x8]
Lloh96:
	adrp	x9, _COMA_BYTE_SWAP@GOTPAGE
Lloh97:
	ldr	x9, [x9, _COMA_BYTE_SWAP@GOTPAGEOFF]
Lloh98:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh99:
	adrp	x9, _COMA_WORD_SWAP@GOTPAGE
Lloh100:
	ldr	x9, [x9, _COMA_WORD_SWAP@GOTPAGEOFF]
Lloh101:
	ldr	w9, [x9]
Lloh102:
	adrp	x10, _COMA_RAW_RGB@GOTPAGE
Lloh103:
	ldr	x10, [x10, _COMA_RAW_RGB@GOTPAGEOFF]
	orr	w24, w8, w9
Lloh104:
	ldr	w8, [x10]
Lloh105:
	adrp	x9, _COMA_RGB@GOTPAGE
Lloh106:
	ldr	x9, [x9, _COMA_RGB@GOTPAGEOFF]
Lloh107:
	ldr	w9, [x9]
	orr	w26, w9, w8
	str	w27, [x20]
Lloh108:
	adrp	x8, _COML_ONE_CHANNEL@GOTPAGE
Lloh109:
	ldr	x8, [x8, _COML_ONE_CHANNEL@GOTPAGEOFF]
Lloh110:
	ldr	w8, [x8]
	str	w8, [sp, #16]                   ; 4-byte Folded Spill
Lloh111:
	adrp	x8, _V4L2_COLORSPACE_SRGB@GOTPAGE
Lloh112:
	ldr	x8, [x8, _V4L2_COLORSPACE_SRGB@GOTPAGEOFF]
LBB0_13:
	str	w28, [x20, #4]
	ldr	w8, [x8]
	str	w8, [x20, #32]
	cbz	w23, LBB0_15
; %bb.14:
Lloh113:
	adrp	x1, l_.str.8@PAGE
Lloh114:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x21
	bl	_dev_dbg
Lloh115:
	adrp	x8, _COMA_QCIF@GOTPAGE
Lloh116:
	ldr	x8, [x8, _COMA_QCIF@GOTPAGEOFF]
Lloh117:
	ldr	w8, [x8]
	orr	w24, w8, w24
	b	LBB0_16
LBB0_15:
Lloh118:
	adrp	x1, l_.str.7@PAGE
Lloh119:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x21
	bl	_dev_dbg
Lloh120:
	adrp	x8, _COMA_QCIF@GOTPAGE
Lloh121:
	ldr	x8, [x8, _COMA_QCIF@GOTPAGEOFF]
Lloh122:
	ldr	w8, [x8]
	orr	w26, w8, w26
	ldr	w8, [x20, #4]
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w8, w8, #1
	str	w8, [x20, #4]
LBB0_16:
Lloh123:
	adrp	x8, _CLKRC_12MHz@GOTPAGE
Lloh124:
	ldr	x8, [x8, _CLKRC_12MHz@GOTPAGEOFF]
Lloh125:
	ldr	w23, [x8]
	mov	w8, #23280
	movk	w8, #20, lsl #16
	stp	w25, w8, [x20, #8]
Lloh126:
	adrp	x1, l_.str.9@PAGE
Lloh127:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	x0, x21
	bl	_dev_dbg
	add	x0, x20, #36
	ldr	w1, [x20, #12]
	ldr	w2, [x20, #4]
	bl	_to_clkrc
	orr	w23, w0, w23
	ldrsw	x27, [x20, #4]
	mov	x0, x23
	bl	_GET_CLKRC_DIV
	udiv	x8, x27, x0
	mov	w9, #6912
	movk	w9, #183, lsl #16
	udiv	x8, x9, x8
	stp	x8, xzr, [sp]
Lloh128:
	adrp	x1, l_.str.10@PAGE
Lloh129:
	add	x1, x1, l_.str.10@PAGEOFF
	mov	x0, x21
	bl	_dev_dbg
	add	x2, sp, #24
	mov	x0, x22
	mov	x1, #0
	bl	_ov6650_set_selection
	cbnz	w0, LBB0_21
; %bb.17:
Lloh130:
	adrp	x8, _REG_COMA@GOTPAGE
Lloh131:
	ldr	x8, [x8, _REG_COMA@GOTPAGEOFF]
Lloh132:
	ldr	w1, [x8]
	mov	x0, x21
	mov	x2, x26
	mov	x3, x24
	bl	_ov6650_reg_rmw
	cbnz	w0, LBB0_21
; %bb.18:
Lloh133:
	adrp	x8, _REG_CLKRC@GOTPAGE
Lloh134:
	ldr	x8, [x8, _REG_CLKRC@GOTPAGEOFF]
Lloh135:
	ldr	w1, [x8]
	mov	x0, x21
	mov	x2, x23
	bl	_ov6650_reg_write
	cbnz	w0, LBB0_21
; %bb.19:
Lloh136:
	adrp	x8, _REG_COML@GOTPAGE
Lloh137:
	ldr	x8, [x8, _REG_COML@GOTPAGEOFF]
Lloh138:
	ldr	w1, [x8]
	mov	x0, x21
	ldp	w3, w2, [sp, #16]               ; 8-byte Folded Reload
	bl	_ov6650_reg_rmw
	cbnz	w0, LBB0_21
; %bb.20:
	ldr	w8, [x20, #32]
	str	w8, [x19, #12]
	ldr	d0, [x20, #16]
	dup.2s	v1, w25
	neg.2s	v1, v1
	sshl.2s	v0, v0, v1
	str	d0, [x19]
LBB0_21:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh64, Lloh65, Lloh66
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.loh AdrpAdd	Lloh59, Lloh60
	.loh AdrpLdrGot	Lloh70, Lloh71
	.loh AdrpLdrGotLdr	Lloh67, Lloh68, Lloh69
	.loh AdrpLdrGotLdr	Lloh77, Lloh78, Lloh79
	.loh AdrpLdrGotLdr	Lloh74, Lloh75, Lloh76
	.loh AdrpAdd	Lloh72, Lloh73
	.loh AdrpLdrGotLdr	Lloh83, Lloh84, Lloh85
	.loh AdrpLdrGotLdr	Lloh80, Lloh81, Lloh82
	.loh AdrpLdrGot	Lloh89, Lloh90
	.loh AdrpLdrGotLdr	Lloh86, Lloh87, Lloh88
	.loh AdrpLdrGot	Lloh111, Lloh112
	.loh AdrpLdrGotLdr	Lloh108, Lloh109, Lloh110
	.loh AdrpLdrGotLdr	Lloh105, Lloh106, Lloh107
	.loh AdrpLdrGotLdr	Lloh102, Lloh103, Lloh104
	.loh AdrpLdrGotLdr	Lloh99, Lloh100, Lloh101
	.loh AdrpLdrGotLdr	Lloh96, Lloh97, Lloh98
	.loh AdrpLdrGotLdr	Lloh93, Lloh94, Lloh95
	.loh AdrpAdd	Lloh91, Lloh92
	.loh AdrpLdrGotLdr	Lloh115, Lloh116, Lloh117
	.loh AdrpAdd	Lloh113, Lloh114
	.loh AdrpLdrGotLdr	Lloh120, Lloh121, Lloh122
	.loh AdrpAdd	Lloh118, Lloh119
	.loh AdrpAdd	Lloh128, Lloh129
	.loh AdrpAdd	Lloh126, Lloh127
	.loh AdrpLdrGotLdr	Lloh123, Lloh124, Lloh125
	.loh AdrpLdrGotLdr	Lloh130, Lloh131, Lloh132
	.loh AdrpLdrGotLdr	Lloh133, Lloh134, Lloh135
	.loh AdrpLdrGotLdr	Lloh136, Lloh137, Lloh138
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
	.byte	(LBB0_12-LBB0_2)>>2
                                        ; -- End function
	.comm	_V4L2_SEL_TGT_CROP,4,2          ; @V4L2_SEL_TGT_CROP
	.comm	_V4L2_SUBDEV_FORMAT_ACTIVE,4,2  ; @V4L2_SUBDEV_FORMAT_ACTIVE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pixel format GREY8_1X8\n"

	.comm	_COMA_RGB,4,2                   ; @COMA_RGB
	.comm	_COMA_WORD_SWAP,4,2             ; @COMA_WORD_SWAP
	.comm	_COMA_BYTE_SWAP,4,2             ; @COMA_BYTE_SWAP
	.comm	_COMA_BW,4,2                    ; @COMA_BW
l_.str.1:                               ; @.str.1
	.asciz	"pixel format YUYV8_2X8_LE\n"

l_.str.2:                               ; @.str.2
	.asciz	"pixel format YVYU8_2X8_LE (untested)\n"

l_.str.3:                               ; @.str.3
	.asciz	"pixel format YUYV8_2X8_BE\n"

l_.str.4:                               ; @.str.4
	.asciz	"pixel format YVYU8_2X8_BE (untested)\n"

l_.str.5:                               ; @.str.5
	.asciz	"pixel format SBGGR8_1X8 (untested)\n"

	.comm	_COMA_RAW_RGB,4,2               ; @COMA_RAW_RGB
l_.str.6:                               ; @.str.6
	.asciz	"Pixel format not handled: 0x%x\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_COML_ONE_CHANNEL,4,2           ; @COML_ONE_CHANNEL
	.comm	_V4L2_COLORSPACE_SRGB,4,2       ; @V4L2_COLORSPACE_SRGB
	.comm	_V4L2_COLORSPACE_JPEG,4,2       ; @V4L2_COLORSPACE_JPEG
l_.str.7:                               ; @.str.7
	.asciz	"max resolution: QCIF\n"

	.comm	_COMA_QCIF,4,2                  ; @COMA_QCIF
l_.str.8:                               ; @.str.8
	.asciz	"max resolution: CIF\n"

	.comm	_CLKRC_12MHz,4,2                ; @CLKRC_12MHz
l_.str.9:                               ; @.str.9
	.asciz	"using 12MHz input clock\n"

l_.str.10:                              ; @.str.10
	.asciz	"pixel clock divider: %ld.%ld\n"

	.comm	_REG_COMA,4,2                   ; @REG_COMA
	.comm	_REG_CLKRC,4,2                  ; @REG_CLKRC
	.comm	_REG_COML,4,2                   ; @REG_COML
	.no_dead_strip	_ov6650_s_fmt
.subsections_via_symbols
