	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function csi2_lane_config
_csi2_lane_config:                      ## @csi2_lane_config
	.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, %r14
	movl	(%rdi), %edi
	movl	4(%r14), %ebx
	callq	_CAL_CSI2_COMPLEXIO_CFG
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_reg_read
	movl	%eax, -44(%rbp)
	movq	_CAL_CSI2_COMPLEXIO_CFG_CLOCK_POSITION_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_CAL_CSI2_COMPLEXIO_CFG_CLOCK_POL_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	32(%r14), %rsi
	incq	%rsi
	leaq	-44(%rbp), %r12
	movq	%r12, %rdi
	movl	%r15d, %edx
	callq	_set_field
	movq	16(%r14), %rax
	movq	(%rax), %rsi
	movq	%r12, %rdi
	movl	%r13d, %edx
	callq	_set_field
	cmpl	$0, 8(%r14)
	jle	LBB0_3
## %bb.1:
	xorl	%ebx, %ebx
	leaq	-44(%rbp), %r12
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	shll	$4, %r15d
	shll	$4, %r13d
	movq	24(%r14), %rax
	movq	(%rax,%rbx,8), %rsi
	incq	%rsi
	movq	%r12, %rdi
	movl	%r15d, %edx
	callq	_set_field
	movq	16(%r14), %rax
	movq	8(%rax,%rbx,8), %rsi
	incq	%rbx
	movq	%r12, %rdi
	movl	%r13d, %edx
	callq	_set_field
	movslq	8(%r14), %rax
	cmpq	%rax, %rbx
	jl	LBB0_2
LBB0_3:
	movl	(%r14), %edi
	movl	4(%r14), %ebx
	callq	_CAL_CSI2_COMPLEXIO_CFG
	movl	-44(%rbp), %edx
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_reg_write
	movl	(%r14), %ecx
	movl	-44(%rbp), %r8d
	leaq	L_.str(%rip), %rdx
	movl	$3, %edi
	movq	%r14, %rsi
	callq	_ctx_dbg
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CAL_CSI2_COMPLEXIO_CFG_CLOCK_POSITION_MASK,4,2 ## @CAL_CSI2_COMPLEXIO_CFG_CLOCK_POSITION_MASK
	.comm	_CAL_CSI2_COMPLEXIO_CFG_CLOCK_POL_MASK,4,2 ## @CAL_CSI2_COMPLEXIO_CFG_CLOCK_POL_MASK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"CAL_CSI2_COMPLEXIO_CFG(%d) = 0x%08x\n"

	.no_dead_strip	_csi2_lane_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function csi2_lane_config
_csi2_lane_config:                      ; @csi2_lane_config
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x0
	ldp	w0, w20, [x0]
	bl	_CAL_CSI2_COMPLEXIO_CFG
	mov	x1, x0
	mov	x0, x20
	bl	_reg_read
	str	w0, [sp, #12]
Lloh0:
	adrp	x8, _CAL_CSI2_COMPLEXIO_CFG_CLOCK_POSITION_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CAL_CSI2_COMPLEXIO_CFG_CLOCK_POSITION_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
Lloh3:
	adrp	x8, _CAL_CSI2_COMPLEXIO_CFG_CLOCK_POL_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CAL_CSI2_COMPLEXIO_CFG_CLOCK_POL_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w21, [x8]
	ldr	x8, [x19, #32]
	add	x1, x8, #1
	add	x0, sp, #12
	mov	x2, x20
	bl	_set_field
	ldr	x8, [x19, #16]
	ldr	x1, [x8]
	add	x0, sp, #12
	mov	x2, x21
	bl	_set_field
	ldr	w8, [x19, #8]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x22, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	lsl	w20, w20, #4
	lsl	w21, w21, #4
	ldr	x8, [x19, #24]
	lsl	x23, x22, #3
	ldr	x8, [x8, x23]
	add	x1, x8, #1
	add	x0, sp, #12
	mov	x2, x20
	bl	_set_field
	ldr	x8, [x19, #16]
	add	x22, x22, #1
	add	x8, x8, x23
	ldr	x1, [x8, #8]
	add	x0, sp, #12
	mov	x2, x21
	bl	_set_field
	ldrsw	x8, [x19, #8]
	cmp	x22, x8
	b.lt	LBB0_2
LBB0_3:
	ldp	w0, w20, [x19]
	bl	_CAL_CSI2_COMPLEXIO_CFG
	mov	x1, x0
	ldr	w2, [sp, #12]
	mov	x0, x20
	bl	_reg_write
	ldr	w3, [x19]
	ldr	w4, [sp, #12]
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	mov	w0, #3
	mov	x1, x19
	bl	_ctx_dbg
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_CAL_CSI2_COMPLEXIO_CFG_CLOCK_POSITION_MASK,4,2 ; @CAL_CSI2_COMPLEXIO_CFG_CLOCK_POSITION_MASK
	.comm	_CAL_CSI2_COMPLEXIO_CFG_CLOCK_POL_MASK,4,2 ; @CAL_CSI2_COMPLEXIO_CFG_CLOCK_POL_MASK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"CAL_CSI2_COMPLEXIO_CFG(%d) = 0x%08x\n"

	.no_dead_strip	_csi2_lane_config
.subsections_via_symbols
