	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sun6i_csi_setup_bus
_sun6i_csi_setup_bus:                   ## @sun6i_csi_setup_bus
	.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	%rdi, %r12
	movq	8(%rdi), %rcx
	movq	_V4L2_FIELD_INTERLACED@GOTPCREL(%rip), %rdx
	movq	_V4L2_FIELD_INTERLACED_TB@GOTPCREL(%rip), %rsi
	movq	_V4L2_FIELD_INTERLACED_BT@GOTPCREL(%rip), %rdi
	movq	_CSI_IF_CFG_SRC_TYPE_INTERLACED@GOTPCREL(%rip), %rax
	movq	%rax, %rbx
	cmpq	(%rdi), %rcx
	je	LBB0_2
## %bb.1:
	movq	_CSI_IF_CFG_SRC_TYPE_PROGRESSED@GOTPCREL(%rip), %rbx
LBB0_2:
	cmpq	(%rsi), %rcx
	cmoveq	%rax, %rbx
	cmpq	(%rdx), %rcx
	movb	20(%r12), %r15b
	movl	(%r12), %edi
	movq	_CSI_IF_CFG_REG@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	cmoveq	%rax, %rbx
	leaq	-36(%rbp), %rdx
	callq	_regmap_read
	movq	_CSI_IF_CFG_CSI_IF_MASK@GOTPCREL(%rip), %rcx
	movq	_CSI_IF_CFG_MIPI_IF_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_CSI_IF_CFG_IF_DATA_WIDTH_MASK@GOTPCREL(%rip), %rdx
	movq	_CSI_IF_CFG_CLK_POL_MASK@GOTPCREL(%rip), %rsi
	movq	_CSI_IF_CFG_VREF_POL_MASK@GOTPCREL(%rip), %rdi
	movq	_CSI_IF_CFG_HREF_POL_MASK@GOTPCREL(%rip), %r8
	movq	_CSI_IF_CFG_FIELD_MASK@GOTPCREL(%rip), %r9
	orl	(%rcx), %eax
	orl	(%rdx), %eax
	orl	(%rsi), %eax
	orl	(%rdi), %eax
	orl	(%r8), %eax
	orl	(%r9), %eax
	movq	_CSI_IF_CFG_SRC_TYPE_MASK@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	notl	%eax
	andl	-36(%rbp), %eax
	orl	(%rbx), %eax
	movl	%eax, -36(%rbp)
	movl	16(%r12), %ecx
	cmpl	$129, %ecx
	je	LBB0_16
## %bb.3:
	cmpl	$128, %ecx
	jne	LBB0_22
## %bb.4:
	movq	_CSI_IF_CFG_MIPI_IF_CSI@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	24(%r12), %ecx
	cmpb	$16, %r15b
	jne	LBB0_5
## %bb.6:
	movq	_CSI_IF_CFG_CSI_IF_YUV422_16BIT@GOTPCREL(%rip), %rdx
	jmp	LBB0_7
LBB0_16:
	movq	_CSI_IF_CFG_MIPI_IF_CSI@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	24(%r12), %ecx
	cmpb	$16, %r15b
	jne	LBB0_17
## %bb.18:
	movq	_CSI_IF_CFG_CSI_IF_BT1120@GOTPCREL(%rip), %rdx
	jmp	LBB0_19
LBB0_22:
	movl	4(%r12), %edi
	movzbl	%cl, %edx
	leaq	L_.str(%rip), %rsi
	callq	_dev_warn
	jmp	LBB0_23
LBB0_5:
	movq	_CSI_IF_CFG_CSI_IF_YUV422_INTLV@GOTPCREL(%rip), %rdx
LBB0_7:
	orl	(%rdx), %eax
	movl	%eax, -36(%rbp)
	movq	_V4L2_MBUS_FIELD_EVEN_LOW@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_9
## %bb.8:
	movq	_CSI_IF_CFG_FIELD_POSITIVE@GOTPCREL(%rip), %rdx
	orl	(%rdx), %eax
	movl	%eax, -36(%rbp)
LBB0_9:
	movq	_V4L2_MBUS_VSYNC_ACTIVE_LOW@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_11
## %bb.10:
	movq	_CSI_IF_CFG_VREF_POL_POSITIVE@GOTPCREL(%rip), %rdx
	orl	(%rdx), %eax
	movl	%eax, -36(%rbp)
LBB0_11:
	movq	_V4L2_MBUS_HSYNC_ACTIVE_LOW@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_13
## %bb.12:
	movq	_CSI_IF_CFG_HREF_POL_POSITIVE@GOTPCREL(%rip), %rdx
	orl	(%rdx), %eax
	movl	%eax, -36(%rbp)
LBB0_13:
	movq	_V4L2_MBUS_PCLK_SAMPLE_RISING@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_23
LBB0_15:
	movq	_CSI_IF_CFG_CLK_POL_FALLING_EDGE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, -36(%rbp)
LBB0_23:
	leal	-8(%r15), %eax
	cmpb	$8, %al
	ja	LBB0_29
## %bb.24:
	movzbl	%al, %eax
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_25:
	movq	_CSI_IF_CFG_IF_DATA_WIDTH_8BIT@GOTPCREL(%rip), %rax
	jmp	LBB0_26
LBB0_29:
	movl	4(%r12), %edi
	movzbl	%r15b, %edx
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_warn
	jmp	LBB0_30
LBB0_27:
	movq	_CSI_IF_CFG_IF_DATA_WIDTH_10BIT@GOTPCREL(%rip), %rax
	jmp	LBB0_26
LBB0_28:
	movq	_CSI_IF_CFG_IF_DATA_WIDTH_12BIT@GOTPCREL(%rip), %rax
LBB0_26:
	movl	(%rax), %eax
	orl	%eax, -36(%rbp)
LBB0_30:
	movl	(%r12), %edi
	movl	(%r14), %esi
	movl	-36(%rbp), %edx
	callq	_regmap_write
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	movq	_CSI_IF_CFG_CSI_IF_BT656@GOTPCREL(%rip), %rdx
LBB0_19:
	orl	(%rdx), %eax
	movl	%eax, -36(%rbp)
	movq	_V4L2_MBUS_FIELD_EVEN_LOW@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_21
## %bb.20:
	movq	_CSI_IF_CFG_FIELD_POSITIVE@GOTPCREL(%rip), %rdx
	orl	(%rdx), %eax
	movl	%eax, -36(%rbp)
LBB0_21:
	movq	_V4L2_MBUS_PCLK_SAMPLE_FALLING@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	jne	LBB0_15
	jmp	LBB0_23
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_25, LBB0_25-LJTI0_0
.set L0_0_set_29, LBB0_29-LJTI0_0
.set L0_0_set_27, LBB0_27-LJTI0_0
.set L0_0_set_28, LBB0_28-LJTI0_0
.set L0_0_set_30, LBB0_30-LJTI0_0
LJTI0_0:
	.long	L0_0_set_25
	.long	L0_0_set_29
	.long	L0_0_set_27
	.long	L0_0_set_29
	.long	L0_0_set_28
	.long	L0_0_set_29
	.long	L0_0_set_29
	.long	L0_0_set_29
	.long	L0_0_set_30
	.end_data_region
                                        ## -- End function
	.comm	_V4L2_FIELD_INTERLACED,8,3      ## @V4L2_FIELD_INTERLACED
	.comm	_V4L2_FIELD_INTERLACED_TB,8,3   ## @V4L2_FIELD_INTERLACED_TB
	.comm	_V4L2_FIELD_INTERLACED_BT,8,3   ## @V4L2_FIELD_INTERLACED_BT
	.comm	_CSI_IF_CFG_REG,4,2             ## @CSI_IF_CFG_REG
	.comm	_CSI_IF_CFG_CSI_IF_MASK,4,2     ## @CSI_IF_CFG_CSI_IF_MASK
	.comm	_CSI_IF_CFG_MIPI_IF_MASK,4,2    ## @CSI_IF_CFG_MIPI_IF_MASK
	.comm	_CSI_IF_CFG_IF_DATA_WIDTH_MASK,4,2 ## @CSI_IF_CFG_IF_DATA_WIDTH_MASK
	.comm	_CSI_IF_CFG_CLK_POL_MASK,4,2    ## @CSI_IF_CFG_CLK_POL_MASK
	.comm	_CSI_IF_CFG_VREF_POL_MASK,4,2   ## @CSI_IF_CFG_VREF_POL_MASK
	.comm	_CSI_IF_CFG_HREF_POL_MASK,4,2   ## @CSI_IF_CFG_HREF_POL_MASK
	.comm	_CSI_IF_CFG_FIELD_MASK,4,2      ## @CSI_IF_CFG_FIELD_MASK
	.comm	_CSI_IF_CFG_SRC_TYPE_MASK,4,2   ## @CSI_IF_CFG_SRC_TYPE_MASK
	.comm	_CSI_IF_CFG_SRC_TYPE_INTERLACED,4,2 ## @CSI_IF_CFG_SRC_TYPE_INTERLACED
	.comm	_CSI_IF_CFG_SRC_TYPE_PROGRESSED,4,2 ## @CSI_IF_CFG_SRC_TYPE_PROGRESSED
	.comm	_CSI_IF_CFG_MIPI_IF_CSI,4,2     ## @CSI_IF_CFG_MIPI_IF_CSI
	.comm	_CSI_IF_CFG_CSI_IF_YUV422_16BIT,4,2 ## @CSI_IF_CFG_CSI_IF_YUV422_16BIT
	.comm	_CSI_IF_CFG_CSI_IF_YUV422_INTLV,4,2 ## @CSI_IF_CFG_CSI_IF_YUV422_INTLV
	.comm	_V4L2_MBUS_FIELD_EVEN_LOW,4,2   ## @V4L2_MBUS_FIELD_EVEN_LOW
	.comm	_CSI_IF_CFG_FIELD_POSITIVE,4,2  ## @CSI_IF_CFG_FIELD_POSITIVE
	.comm	_V4L2_MBUS_VSYNC_ACTIVE_LOW,4,2 ## @V4L2_MBUS_VSYNC_ACTIVE_LOW
	.comm	_CSI_IF_CFG_VREF_POL_POSITIVE,4,2 ## @CSI_IF_CFG_VREF_POL_POSITIVE
	.comm	_V4L2_MBUS_HSYNC_ACTIVE_LOW,4,2 ## @V4L2_MBUS_HSYNC_ACTIVE_LOW
	.comm	_CSI_IF_CFG_HREF_POL_POSITIVE,4,2 ## @CSI_IF_CFG_HREF_POL_POSITIVE
	.comm	_V4L2_MBUS_PCLK_SAMPLE_RISING,4,2 ## @V4L2_MBUS_PCLK_SAMPLE_RISING
	.comm	_CSI_IF_CFG_CLK_POL_FALLING_EDGE,4,2 ## @CSI_IF_CFG_CLK_POL_FALLING_EDGE
	.comm	_CSI_IF_CFG_CSI_IF_BT1120,4,2   ## @CSI_IF_CFG_CSI_IF_BT1120
	.comm	_CSI_IF_CFG_CSI_IF_BT656,4,2    ## @CSI_IF_CFG_CSI_IF_BT656
	.comm	_V4L2_MBUS_PCLK_SAMPLE_FALLING,4,2 ## @V4L2_MBUS_PCLK_SAMPLE_FALLING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unsupported bus type: %d\n"

	.comm	_CSI_IF_CFG_IF_DATA_WIDTH_8BIT,4,2 ## @CSI_IF_CFG_IF_DATA_WIDTH_8BIT
	.comm	_CSI_IF_CFG_IF_DATA_WIDTH_10BIT,4,2 ## @CSI_IF_CFG_IF_DATA_WIDTH_10BIT
	.comm	_CSI_IF_CFG_IF_DATA_WIDTH_12BIT,4,2 ## @CSI_IF_CFG_IF_DATA_WIDTH_12BIT
L_.str.1:                               ## @.str.1
	.asciz	"Unsupported bus width: %u\n"

	.no_dead_strip	_sun6i_csi_setup_bus
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sun6i_csi_setup_bus
_sun6i_csi_setup_bus:                   ; @sun6i_csi_setup_bus
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x19, x0
	ldr	x22, [x0, #8]
Lloh0:
	adrp	x8, _V4L2_FIELD_INTERLACED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _V4L2_FIELD_INTERLACED@GOTPAGEOFF]
Lloh2:
	ldr	x23, [x8]
Lloh3:
	adrp	x8, _V4L2_FIELD_INTERLACED_TB@GOTPAGE
Lloh4:
	ldr	x8, [x8, _V4L2_FIELD_INTERLACED_TB@GOTPAGEOFF]
Lloh5:
	ldr	x24, [x8]
Lloh6:
	adrp	x8, _V4L2_FIELD_INTERLACED_BT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _V4L2_FIELD_INTERLACED_BT@GOTPAGEOFF]
Lloh8:
	ldr	x25, [x8]
	ldrb	w20, [x0, #20]
	ldr	w0, [x0]
Lloh9:
	adrp	x21, _CSI_IF_CFG_REG@GOTPAGE
Lloh10:
	ldr	x21, [x21, _CSI_IF_CFG_REG@GOTPAGEOFF]
	ldr	w1, [x21]
	add	x2, sp, #12
	bl	_regmap_read
	cmp	x22, x25
	ccmp	x22, x24, #4, ne
Lloh11:
	adrp	x8, _CSI_IF_CFG_CSI_IF_MASK@GOTPAGE
Lloh12:
	ldr	x8, [x8, _CSI_IF_CFG_CSI_IF_MASK@GOTPAGEOFF]
	ccmp	x22, x23, #4, ne
Lloh13:
	ldr	w8, [x8]
Lloh14:
	adrp	x9, _CSI_IF_CFG_MIPI_IF_MASK@GOTPAGE
Lloh15:
	ldr	x9, [x9, _CSI_IF_CFG_MIPI_IF_MASK@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh17:
	adrp	x9, _CSI_IF_CFG_IF_DATA_WIDTH_MASK@GOTPAGE
Lloh18:
	ldr	x9, [x9, _CSI_IF_CFG_IF_DATA_WIDTH_MASK@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh20:
	adrp	x9, _CSI_IF_CFG_CLK_POL_MASK@GOTPAGE
Lloh21:
	ldr	x9, [x9, _CSI_IF_CFG_CLK_POL_MASK@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh23:
	adrp	x9, _CSI_IF_CFG_VREF_POL_MASK@GOTPAGE
Lloh24:
	ldr	x9, [x9, _CSI_IF_CFG_VREF_POL_MASK@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh26:
	adrp	x9, _CSI_IF_CFG_HREF_POL_MASK@GOTPAGE
Lloh27:
	ldr	x9, [x9, _CSI_IF_CFG_HREF_POL_MASK@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh29:
	adrp	x9, _CSI_IF_CFG_FIELD_MASK@GOTPAGE
Lloh30:
	ldr	x9, [x9, _CSI_IF_CFG_FIELD_MASK@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh32:
	adrp	x9, _CSI_IF_CFG_SRC_TYPE_MASK@GOTPAGE
Lloh33:
	ldr	x9, [x9, _CSI_IF_CFG_SRC_TYPE_MASK@GOTPAGEOFF]
Lloh34:
	ldr	w9, [x9]
	orr	w8, w8, w9
	ldr	w9, [sp, #12]
	bic	w8, w9, w8
Lloh35:
	adrp	x9, _CSI_IF_CFG_SRC_TYPE_PROGRESSED@GOTPAGE
Lloh36:
	ldr	x9, [x9, _CSI_IF_CFG_SRC_TYPE_PROGRESSED@GOTPAGEOFF]
Lloh37:
	adrp	x10, _CSI_IF_CFG_SRC_TYPE_INTERLACED@GOTPAGE
Lloh38:
	ldr	x10, [x10, _CSI_IF_CFG_SRC_TYPE_INTERLACED@GOTPAGEOFF]
	csel	x9, x9, x10, ne
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [sp, #12]
	ldr	w9, [x19, #16]
	cmp	w9, #129
	b.eq	LBB0_9
; %bb.1:
	cmp	w9, #128
	b.ne	LBB0_14
; %bb.2:
Lloh39:
	adrp	x9, _CSI_IF_CFG_MIPI_IF_CSI@GOTPAGE
Lloh40:
	ldr	x9, [x9, _CSI_IF_CFG_MIPI_IF_CSI@GOTPAGEOFF]
Lloh41:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh42:
	adrp	x10, _CSI_IF_CFG_CSI_IF_YUV422_16BIT@GOTPAGE
Lloh43:
	ldr	x10, [x10, _CSI_IF_CFG_CSI_IF_YUV422_16BIT@GOTPAGEOFF]
	ldr	w9, [x19, #24]
Lloh44:
	adrp	x11, _CSI_IF_CFG_CSI_IF_YUV422_INTLV@GOTPAGE
Lloh45:
	ldr	x11, [x11, _CSI_IF_CFG_CSI_IF_YUV422_INTLV@GOTPAGEOFF]
	cmp	w20, #16
	csel	x10, x10, x11, eq
	ldr	w10, [x10]
	orr	w8, w10, w8
	str	w8, [sp, #12]
Lloh46:
	adrp	x10, _V4L2_MBUS_FIELD_EVEN_LOW@GOTPAGE
Lloh47:
	ldr	x10, [x10, _V4L2_MBUS_FIELD_EVEN_LOW@GOTPAGEOFF]
Lloh48:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_4
; %bb.3:
Lloh49:
	adrp	x10, _CSI_IF_CFG_FIELD_POSITIVE@GOTPAGE
Lloh50:
	ldr	x10, [x10, _CSI_IF_CFG_FIELD_POSITIVE@GOTPAGEOFF]
Lloh51:
	ldr	w10, [x10]
	orr	w8, w10, w8
	str	w8, [sp, #12]
LBB0_4:
Lloh52:
	adrp	x10, _V4L2_MBUS_VSYNC_ACTIVE_LOW@GOTPAGE
Lloh53:
	ldr	x10, [x10, _V4L2_MBUS_VSYNC_ACTIVE_LOW@GOTPAGEOFF]
Lloh54:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_6
; %bb.5:
Lloh55:
	adrp	x10, _CSI_IF_CFG_VREF_POL_POSITIVE@GOTPAGE
Lloh56:
	ldr	x10, [x10, _CSI_IF_CFG_VREF_POL_POSITIVE@GOTPAGEOFF]
Lloh57:
	ldr	w10, [x10]
	orr	w8, w8, w10
	str	w8, [sp, #12]
LBB0_6:
Lloh58:
	adrp	x10, _V4L2_MBUS_HSYNC_ACTIVE_LOW@GOTPAGE
Lloh59:
	ldr	x10, [x10, _V4L2_MBUS_HSYNC_ACTIVE_LOW@GOTPAGEOFF]
Lloh60:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_8
; %bb.7:
Lloh61:
	adrp	x10, _CSI_IF_CFG_HREF_POL_POSITIVE@GOTPAGE
Lloh62:
	ldr	x10, [x10, _CSI_IF_CFG_HREF_POL_POSITIVE@GOTPAGEOFF]
Lloh63:
	ldr	w10, [x10]
	orr	w8, w8, w10
	str	w8, [sp, #12]
LBB0_8:
Lloh64:
	adrp	x10, _V4L2_MBUS_PCLK_SAMPLE_RISING@GOTPAGE
Lloh65:
	ldr	x10, [x10, _V4L2_MBUS_PCLK_SAMPLE_RISING@GOTPAGEOFF]
	b	LBB0_12
LBB0_9:
Lloh66:
	adrp	x9, _CSI_IF_CFG_MIPI_IF_CSI@GOTPAGE
Lloh67:
	ldr	x9, [x9, _CSI_IF_CFG_MIPI_IF_CSI@GOTPAGEOFF]
Lloh68:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh69:
	adrp	x10, _CSI_IF_CFG_CSI_IF_BT1120@GOTPAGE
Lloh70:
	ldr	x10, [x10, _CSI_IF_CFG_CSI_IF_BT1120@GOTPAGEOFF]
	ldr	w9, [x19, #24]
Lloh71:
	adrp	x11, _CSI_IF_CFG_CSI_IF_BT656@GOTPAGE
Lloh72:
	ldr	x11, [x11, _CSI_IF_CFG_CSI_IF_BT656@GOTPAGEOFF]
	cmp	w20, #16
	csel	x10, x10, x11, eq
	ldr	w10, [x10]
	orr	w8, w10, w8
	str	w8, [sp, #12]
Lloh73:
	adrp	x10, _V4L2_MBUS_FIELD_EVEN_LOW@GOTPAGE
Lloh74:
	ldr	x10, [x10, _V4L2_MBUS_FIELD_EVEN_LOW@GOTPAGEOFF]
Lloh75:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_11
; %bb.10:
Lloh76:
	adrp	x10, _CSI_IF_CFG_FIELD_POSITIVE@GOTPAGE
Lloh77:
	ldr	x10, [x10, _CSI_IF_CFG_FIELD_POSITIVE@GOTPAGEOFF]
Lloh78:
	ldr	w10, [x10]
	orr	w8, w10, w8
	str	w8, [sp, #12]
LBB0_11:
Lloh79:
	adrp	x10, _V4L2_MBUS_PCLK_SAMPLE_FALLING@GOTPAGE
Lloh80:
	ldr	x10, [x10, _V4L2_MBUS_PCLK_SAMPLE_FALLING@GOTPAGEOFF]
LBB0_12:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_15
; %bb.13:
Lloh81:
	adrp	x9, _CSI_IF_CFG_CLK_POL_FALLING_EDGE@GOTPAGE
Lloh82:
	ldr	x9, [x9, _CSI_IF_CFG_CLK_POL_FALLING_EDGE@GOTPAGEOFF]
Lloh83:
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	w8, [sp, #12]
	b	LBB0_15
LBB0_14:
	ldr	w0, [x19, #4]
	and	w2, w9, #0xff
Lloh84:
	adrp	x1, l_.str@PAGE
Lloh85:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_warn
LBB0_15:
	sub	w8, w20, #8
	cmp	w8, #8
	b.hi	LBB0_18
; %bb.16:
Lloh86:
	adrp	x9, lJTI0_0@PAGE
Lloh87:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_17
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_17:
Lloh88:
	adrp	x8, _CSI_IF_CFG_IF_DATA_WIDTH_8BIT@GOTPAGE
Lloh89:
	ldr	x8, [x8, _CSI_IF_CFG_IF_DATA_WIDTH_8BIT@GOTPAGEOFF]
	b	LBB0_21
LBB0_18:
	ldr	w0, [x19, #4]
Lloh90:
	adrp	x1, l_.str.1@PAGE
Lloh91:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x20
	bl	_dev_warn
	b	LBB0_22
LBB0_19:
Lloh92:
	adrp	x8, _CSI_IF_CFG_IF_DATA_WIDTH_10BIT@GOTPAGE
Lloh93:
	ldr	x8, [x8, _CSI_IF_CFG_IF_DATA_WIDTH_10BIT@GOTPAGEOFF]
	b	LBB0_21
LBB0_20:
Lloh94:
	adrp	x8, _CSI_IF_CFG_IF_DATA_WIDTH_12BIT@GOTPAGE
Lloh95:
	ldr	x8, [x8, _CSI_IF_CFG_IF_DATA_WIDTH_12BIT@GOTPAGEOFF]
LBB0_21:
	ldr	w8, [x8]
	ldr	w9, [sp, #12]
	orr	w8, w9, w8
	str	w8, [sp, #12]
LBB0_22:
	ldr	w0, [x19]
	ldr	w1, [x21]
	ldr	w2, [sp, #12]
	bl	_regmap_write
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGot	Lloh44, Lloh45
	.loh AdrpLdrGot	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.loh AdrpLdrGot	Lloh64, Lloh65
	.loh AdrpLdrGotLdr	Lloh73, Lloh74, Lloh75
	.loh AdrpLdrGot	Lloh71, Lloh72
	.loh AdrpLdrGot	Lloh69, Lloh70
	.loh AdrpLdrGotLdr	Lloh66, Lloh67, Lloh68
	.loh AdrpLdrGotLdr	Lloh76, Lloh77, Lloh78
	.loh AdrpLdrGot	Lloh79, Lloh80
	.loh AdrpLdrGotLdr	Lloh81, Lloh82, Lloh83
	.loh AdrpAdd	Lloh84, Lloh85
	.loh AdrpAdd	Lloh86, Lloh87
	.loh AdrpLdrGot	Lloh88, Lloh89
	.loh AdrpAdd	Lloh90, Lloh91
	.loh AdrpLdrGot	Lloh92, Lloh93
	.loh AdrpLdrGot	Lloh94, Lloh95
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_17-LBB0_17)>>2
	.byte	(LBB0_18-LBB0_17)>>2
	.byte	(LBB0_19-LBB0_17)>>2
	.byte	(LBB0_18-LBB0_17)>>2
	.byte	(LBB0_20-LBB0_17)>>2
	.byte	(LBB0_18-LBB0_17)>>2
	.byte	(LBB0_18-LBB0_17)>>2
	.byte	(LBB0_18-LBB0_17)>>2
	.byte	(LBB0_22-LBB0_17)>>2
                                        ; -- End function
	.comm	_V4L2_FIELD_INTERLACED,8,3      ; @V4L2_FIELD_INTERLACED
	.comm	_V4L2_FIELD_INTERLACED_TB,8,3   ; @V4L2_FIELD_INTERLACED_TB
	.comm	_V4L2_FIELD_INTERLACED_BT,8,3   ; @V4L2_FIELD_INTERLACED_BT
	.comm	_CSI_IF_CFG_REG,4,2             ; @CSI_IF_CFG_REG
	.comm	_CSI_IF_CFG_CSI_IF_MASK,4,2     ; @CSI_IF_CFG_CSI_IF_MASK
	.comm	_CSI_IF_CFG_MIPI_IF_MASK,4,2    ; @CSI_IF_CFG_MIPI_IF_MASK
	.comm	_CSI_IF_CFG_IF_DATA_WIDTH_MASK,4,2 ; @CSI_IF_CFG_IF_DATA_WIDTH_MASK
	.comm	_CSI_IF_CFG_CLK_POL_MASK,4,2    ; @CSI_IF_CFG_CLK_POL_MASK
	.comm	_CSI_IF_CFG_VREF_POL_MASK,4,2   ; @CSI_IF_CFG_VREF_POL_MASK
	.comm	_CSI_IF_CFG_HREF_POL_MASK,4,2   ; @CSI_IF_CFG_HREF_POL_MASK
	.comm	_CSI_IF_CFG_FIELD_MASK,4,2      ; @CSI_IF_CFG_FIELD_MASK
	.comm	_CSI_IF_CFG_SRC_TYPE_MASK,4,2   ; @CSI_IF_CFG_SRC_TYPE_MASK
	.comm	_CSI_IF_CFG_SRC_TYPE_INTERLACED,4,2 ; @CSI_IF_CFG_SRC_TYPE_INTERLACED
	.comm	_CSI_IF_CFG_SRC_TYPE_PROGRESSED,4,2 ; @CSI_IF_CFG_SRC_TYPE_PROGRESSED
	.comm	_CSI_IF_CFG_MIPI_IF_CSI,4,2     ; @CSI_IF_CFG_MIPI_IF_CSI
	.comm	_CSI_IF_CFG_CSI_IF_YUV422_16BIT,4,2 ; @CSI_IF_CFG_CSI_IF_YUV422_16BIT
	.comm	_CSI_IF_CFG_CSI_IF_YUV422_INTLV,4,2 ; @CSI_IF_CFG_CSI_IF_YUV422_INTLV
	.comm	_V4L2_MBUS_FIELD_EVEN_LOW,4,2   ; @V4L2_MBUS_FIELD_EVEN_LOW
	.comm	_CSI_IF_CFG_FIELD_POSITIVE,4,2  ; @CSI_IF_CFG_FIELD_POSITIVE
	.comm	_V4L2_MBUS_VSYNC_ACTIVE_LOW,4,2 ; @V4L2_MBUS_VSYNC_ACTIVE_LOW
	.comm	_CSI_IF_CFG_VREF_POL_POSITIVE,4,2 ; @CSI_IF_CFG_VREF_POL_POSITIVE
	.comm	_V4L2_MBUS_HSYNC_ACTIVE_LOW,4,2 ; @V4L2_MBUS_HSYNC_ACTIVE_LOW
	.comm	_CSI_IF_CFG_HREF_POL_POSITIVE,4,2 ; @CSI_IF_CFG_HREF_POL_POSITIVE
	.comm	_V4L2_MBUS_PCLK_SAMPLE_RISING,4,2 ; @V4L2_MBUS_PCLK_SAMPLE_RISING
	.comm	_CSI_IF_CFG_CLK_POL_FALLING_EDGE,4,2 ; @CSI_IF_CFG_CLK_POL_FALLING_EDGE
	.comm	_CSI_IF_CFG_CSI_IF_BT1120,4,2   ; @CSI_IF_CFG_CSI_IF_BT1120
	.comm	_CSI_IF_CFG_CSI_IF_BT656,4,2    ; @CSI_IF_CFG_CSI_IF_BT656
	.comm	_V4L2_MBUS_PCLK_SAMPLE_FALLING,4,2 ; @V4L2_MBUS_PCLK_SAMPLE_FALLING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unsupported bus type: %d\n"

	.comm	_CSI_IF_CFG_IF_DATA_WIDTH_8BIT,4,2 ; @CSI_IF_CFG_IF_DATA_WIDTH_8BIT
	.comm	_CSI_IF_CFG_IF_DATA_WIDTH_10BIT,4,2 ; @CSI_IF_CFG_IF_DATA_WIDTH_10BIT
	.comm	_CSI_IF_CFG_IF_DATA_WIDTH_12BIT,4,2 ; @CSI_IF_CFG_IF_DATA_WIDTH_12BIT
l_.str.1:                               ; @.str.1
	.asciz	"Unsupported bus width: %u\n"

	.no_dead_strip	_sun6i_csi_setup_bus
.subsections_via_symbols
