	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function csi2rx_start
_csi2rx_start:                          ## @csi2rx_start
	.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
	movq	$0, -48(%rbp)
	movl	24(%rdi), %edi
	callq	_clk_prepare_enable
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_20
## %bb.1:
	movq	%r12, %rdi
	callq	_csi2rx_reset
	movl	(%r12), %r14d
	testl	%r14d, %r14d
	je	LBB0_2
## %bb.12:
	shll	$8, %r14d
	xorl	%ebx, %ebx
	leaq	-48(%rbp), %r15
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rax
	movl	(%rax,%rbx,4), %esi
	movl	%ebx, %edi
	callq	_CSI2RX_STATIC_CFG_DLANE_MAP
	orl	%eax, %r14d
	movq	8(%r12), %rax
	movl	(%rax,%rbx,4), %edi
	movq	%r15, %rsi
	callq	_set_bit
	incq	%rbx
	movl	(%r12), %r13d
	cmpq	%r13, %rbx
	jb	LBB0_13
## %bb.3:
	cmpl	16(%r12), %r13d
	jb	LBB0_4
	jmp	LBB0_6
LBB0_2:
	xorl	%r14d, %r14d
	xorl	%r13d, %r13d
	cmpl	16(%r12), %r13d
	jae	LBB0_6
LBB0_4:
	leaq	-48(%rbp), %r15
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movl	$8, %esi
	callq	_find_first_zero_bit
	movl	%eax, %edi
	movq	%r15, %rsi
	callq	_set_bit
	leal	1(%r13), %ebx
	movl	%r13d, %edi
	movl	%ebx, %esi
	callq	_CSI2RX_STATIC_CFG_DLANE_MAP
	orl	%eax, %r14d
	movl	%ebx, %r13d
	cmpl	16(%r12), %ebx
	jb	LBB0_5
LBB0_6:
	movq	_CSI2RX_STATIC_CFG_REG@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	48(%r12), %rsi
	movl	%r14d, %edi
	callq	_writel
	movl	56(%r12), %edi
	movq	_video@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_s_stream@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$1, %ecx
	callq	_v4l2_subdev_call
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_19
## %bb.7:
	xorl	%r14d, %r14d
	cmpl	$0, 20(%r12)
	movl	$0, %r15d
	je	LBB0_11
## %bb.8:
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	32(%r12), %rax
	movl	(%rax,%r15,4), %edi
	callq	_clk_prepare_enable
	testl	%eax, %eax
	jne	LBB0_14
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	_CSI2RX_STREAM_CFG_FIFO_MODE_LARGE_BUF@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	48(%r12), %rbx
	movl	%r15d, %edi
	callq	_CSI2RX_STREAM_CFG_REG
	addq	%rax, %rbx
	movl	%r13d, %edi
	movq	%rbx, %rsi
	callq	_writel
	movq	_CSI2RX_STREAM_DATA_CFG_EN_VC_SELECT@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movl	%r15d, %edi
	callq	_CSI2RX_STREAM_DATA_CFG_VC_SELECT
	orl	%eax, %r13d
	movq	48(%r12), %rbx
	movl	%r15d, %edi
	callq	_CSI2RX_STREAM_DATA_CFG_REG
	addq	%rax, %rbx
	movl	%r13d, %edi
	movq	%rbx, %rsi
	callq	_writel
	movq	_CSI2RX_STREAM_CTRL_START@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	48(%r12), %rbx
	movl	%r15d, %edi
	callq	_CSI2RX_STREAM_CTRL_REG
	addq	%rax, %rbx
	movl	%r13d, %edi
	movq	%rbx, %rsi
	callq	_writel
	incq	%r15
	movl	20(%r12), %eax
	cmpq	%rax, %r15
	jb	LBB0_9
LBB0_11:
	movl	40(%r12), %edi
	callq	_clk_prepare_enable
	movl	%eax, %r13d
	testl	%eax, %eax
	je	LBB0_19
## %bb.15:
	testl	%r15d, %r15d
	jne	LBB0_16
	jmp	LBB0_18
LBB0_14:
	movl	%eax, %r13d
	testl	%r15d, %r15d
	je	LBB0_18
LBB0_16:
	movl	%r15d, %ebx
	.p2align	4, 0x90
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movq	32(%r12), %rax
	movl	-4(%rax,%rbx,4), %edi
	callq	_clk_disable_unprepare
	decq	%rbx
	jne	LBB0_17
LBB0_18:
	movl	%r13d, %r14d
LBB0_19:
	movl	24(%r12), %edi
	callq	_clk_disable_unprepare
LBB0_20:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CSI2RX_STATIC_CFG_REG,8,3      ## @CSI2RX_STATIC_CFG_REG
	.comm	_video,4,2                      ## @video
	.comm	_s_stream,4,2                   ## @s_stream
	.comm	_CSI2RX_STREAM_CFG_FIFO_MODE_LARGE_BUF,4,2 ## @CSI2RX_STREAM_CFG_FIFO_MODE_LARGE_BUF
	.comm	_CSI2RX_STREAM_DATA_CFG_EN_VC_SELECT,4,2 ## @CSI2RX_STREAM_DATA_CFG_EN_VC_SELECT
	.comm	_CSI2RX_STREAM_CTRL_START,4,2   ## @CSI2RX_STREAM_CTRL_START
	.no_dead_strip	_csi2rx_start
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function csi2rx_start
_csi2rx_start:                          ; @csi2rx_start
	.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
	str	xzr, [sp, #8]
	ldr	w0, [x0, #24]
	bl	_clk_prepare_enable
	mov	x21, x0
	cbnz	w0, LBB0_19
; %bb.1:
	mov	x0, x19
	bl	_csi2rx_reset
	ldr	w8, [x19]
	cbz	w8, LBB0_4
; %bb.2:
	mov	x22, #0
	lsl	w20, w8, #8
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	lsl	x21, x22, #2
	ldr	w1, [x8, x21]
	mov	x0, x22
	bl	_CSI2RX_STATIC_CFG_DLANE_MAP
	orr	w20, w0, w20
	ldr	x8, [x19, #8]
	ldr	w0, [x8, x21]
	add	x1, sp, #8
	bl	_set_bit
	add	x22, x22, #1
	ldr	w21, [x19]
	cmp	x22, x21
	b.lo	LBB0_3
	b	LBB0_5
LBB0_4:
	mov	w20, #0
	mov	w21, #0
LBB0_5:
	ldr	w8, [x19, #16]
	cmp	w21, w8
	b.hs	LBB0_7
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #8
	mov	w1, #8
	bl	_find_first_zero_bit
	add	x1, sp, #8
	bl	_set_bit
	add	w22, w21, #1
	mov	x0, x21
	mov	x1, x22
	bl	_CSI2RX_STATIC_CFG_DLANE_MAP
	orr	w20, w0, w20
	ldr	w8, [x19, #16]
	mov	x21, x22
	cmp	w22, w8
	b.lo	LBB0_6
LBB0_7:
	ldr	x8, [x19, #48]
Lloh0:
	adrp	x9, _CSI2RX_STATIC_CFG_REG@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CSI2RX_STATIC_CFG_REG@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	x0, x20
	bl	_writel
	ldr	w0, [x19, #56]
Lloh3:
	adrp	x8, _video@GOTPAGE
Lloh4:
	ldr	x8, [x8, _video@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _s_stream@GOTPAGE
Lloh7:
	ldr	x8, [x8, _s_stream@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	w3, #1
	bl	_v4l2_subdev_call
	mov	x21, x0
	cbnz	w0, LBB0_18
; %bb.8:
	ldr	w8, [x19, #20]
	cbz	w8, LBB0_12
; %bb.9:
	mov	x20, #0
Lloh9:
	adrp	x22, _CSI2RX_STREAM_CFG_FIFO_MODE_LARGE_BUF@GOTPAGE
Lloh10:
	ldr	x22, [x22, _CSI2RX_STREAM_CFG_FIFO_MODE_LARGE_BUF@GOTPAGEOFF]
Lloh11:
	adrp	x23, _CSI2RX_STREAM_DATA_CFG_EN_VC_SELECT@GOTPAGE
Lloh12:
	ldr	x23, [x23, _CSI2RX_STREAM_DATA_CFG_EN_VC_SELECT@GOTPAGEOFF]
Lloh13:
	adrp	x24, _CSI2RX_STREAM_CTRL_START@GOTPAGE
Lloh14:
	ldr	x24, [x24, _CSI2RX_STREAM_CTRL_START@GOTPAGEOFF]
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #32]
	ldr	w0, [x8, x20, lsl #2]
	bl	_clk_prepare_enable
	cbnz	w0, LBB0_15
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	w21, [x22]
	ldr	x25, [x19, #48]
	mov	x0, x20
	bl	_CSI2RX_STREAM_CFG_REG
	add	x1, x0, x25
	mov	x0, x21
	bl	_writel
	ldr	w21, [x23]
	mov	x0, x20
	bl	_CSI2RX_STREAM_DATA_CFG_VC_SELECT
	orr	w21, w0, w21
	ldr	x25, [x19, #48]
	mov	x0, x20
	bl	_CSI2RX_STREAM_DATA_CFG_REG
	add	x1, x0, x25
	mov	x0, x21
	bl	_writel
	ldr	w21, [x24]
	ldr	x25, [x19, #48]
	mov	x0, x20
	bl	_CSI2RX_STREAM_CTRL_REG
	add	x1, x0, x25
	mov	x0, x21
	bl	_writel
	add	x20, x20, #1
	ldr	w8, [x19, #20]
	cmp	x20, x8
	b.lo	LBB0_10
	b	LBB0_13
LBB0_12:
	mov	w20, #0
LBB0_13:
	ldr	w0, [x19, #40]
	bl	_clk_prepare_enable
	mov	x21, x0
	cbz	w0, LBB0_18
; %bb.14:
	cbnz	w20, LBB0_16
	b	LBB0_18
LBB0_15:
	mov	x21, x0
	cbz	w20, LBB0_18
LBB0_16:
	mov	w8, w20
	lsl	x8, x8, #2
	sub	x20, x8, #4
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #32]
	ldr	w0, [x8, x20]
	bl	_clk_disable_unprepare
	sub	x20, x20, #4
	cmn	x20, #4
	b.ne	LBB0_17
LBB0_18:
	ldr	w0, [x19, #24]
	bl	_clk_disable_unprepare
LBB0_19:
	mov	x0, x21
	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 AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_CSI2RX_STATIC_CFG_REG,8,3      ; @CSI2RX_STATIC_CFG_REG
	.comm	_video,4,2                      ; @video
	.comm	_s_stream,4,2                   ; @s_stream
	.comm	_CSI2RX_STREAM_CFG_FIFO_MODE_LARGE_BUF,4,2 ; @CSI2RX_STREAM_CFG_FIFO_MODE_LARGE_BUF
	.comm	_CSI2RX_STREAM_DATA_CFG_EN_VC_SELECT,4,2 ; @CSI2RX_STREAM_DATA_CFG_EN_VC_SELECT
	.comm	_CSI2RX_STREAM_CTRL_START,4,2   ; @CSI2RX_STREAM_CTRL_START
	.no_dead_strip	_csi2rx_start
.subsections_via_symbols
