	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function csiphy_lanes_enable
_csiphy_lanes_enable:                   ## @csiphy_lanes_enable
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r13d
	movl	%edx, %eax
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	8(%rsi), %r14
	movl	(%r14), %edx
	movl	8(%rdi), %ebx
	movl	%eax, %edi
	movl	%ecx, %esi
	movl	%ebx, %ecx
	callq	_csiphy_settle_cnt_calc
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	_CAMSS_CSI_PHY_GLBL_T_INIT_CFG0@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r12), %rsi
	movl	$1, %edi
	callq	_writel_relaxed
	movq	_CAMSS_CSI_PHY_T_WAKEUP_CFG0@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r12), %rsi
	movl	$1, %edi
	callq	_writel_relaxed
	leal	1(%r13,%r13), %edi
	movq	_CAMSS_CSI_PHY_GLBL_PWR_CFG@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r12), %rsi
	callq	_writel_relaxed
	movl	(%r15), %edi
	shll	$4, %edi
	movq	_CAMSS_CSI_PHY_GLBL_RESET@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r12), %rsi
	callq	_writel_relaxed
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movl	(%r14), %eax
	testl	%eax, %eax
	js	LBB0_5
## %bb.1:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	addq	$16, %rcx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	$-1, %r14
	xorl	%r13d, %r13d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rax), %r15d
	movq	(%r12), %rbx
	movl	%r15d, %edi
	callq	_CAMSS_CSI_PHY_LNn_CFG2
	addq	%rax, %rbx
	movl	$16, %edi
	movq	%rbx, %rsi
	callq	_writel_relaxed
	movq	(%r12), %rbx
	movl	%r15d, %edi
	callq	_CAMSS_CSI_PHY_LNn_CFG3
	addq	%rax, %rbx
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	movq	%rbx, %rsi
	callq	_writel_relaxed
	movq	(%r12), %rbx
	movl	%r15d, %edi
	callq	_CAMSS_CSI_PHY_INTERRUPT_MASKn
	addq	%rax, %rbx
	movl	$63, %edi
	movq	%rbx, %rsi
	callq	_writel_relaxed
	movq	(%r12), %rbx
	movl	%r15d, %edi
	callq	_CAMSS_CSI_PHY_INTERRUPT_CLEARn
	addq	%rax, %rbx
	movl	$63, %edi
	movq	%rbx, %rsi
	callq	_writel_relaxed
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movslq	(%rax), %rax
	addq	$4, %r13
	cmpq	%rax, %r14
	jge	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	incq	%r14
	movl	%eax, %ecx
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	cmpq	%rcx, %r14
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	addq	%r13, %rax
	jmp	LBB0_4
LBB0_5:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CAMSS_CSI_PHY_GLBL_T_INIT_CFG0,8,3 ## @CAMSS_CSI_PHY_GLBL_T_INIT_CFG0
	.comm	_CAMSS_CSI_PHY_T_WAKEUP_CFG0,8,3 ## @CAMSS_CSI_PHY_T_WAKEUP_CFG0
	.comm	_CAMSS_CSI_PHY_GLBL_PWR_CFG,8,3 ## @CAMSS_CSI_PHY_GLBL_PWR_CFG
	.comm	_CAMSS_CSI_PHY_GLBL_RESET,8,3   ## @CAMSS_CSI_PHY_GLBL_RESET
	.no_dead_strip	_csiphy_lanes_enable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function csiphy_lanes_enable
_csiphy_lanes_enable:                   ; @csiphy_lanes_enable
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x4
	mov	x9, x3
	mov	x8, x2
	mov	x22, x1
	mov	x19, x0
	ldr	x24, [x1, #8]
	ldr	w2, [x24]
	ldr	w3, [x0, #8]
	mov	x0, x8
	mov	x1, x9
	bl	_csiphy_settle_cnt_calc
	mov	x20, x0
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _CAMSS_CSI_PHY_GLBL_T_INIT_CFG0@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CAMSS_CSI_PHY_GLBL_T_INIT_CFG0@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w23, #1
	mov	w0, #1
	bl	_writel_relaxed
	ldr	x8, [x19]
Lloh3:
	adrp	x9, _CAMSS_CSI_PHY_T_WAKEUP_CFG0@GOTPAGE
Lloh4:
	ldr	x9, [x9, _CAMSS_CSI_PHY_T_WAKEUP_CFG0@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w0, #1
	bl	_writel_relaxed
	bfi	w23, w21, #1, #31
	ldr	x8, [x19]
Lloh6:
	adrp	x9, _CAMSS_CSI_PHY_GLBL_PWR_CFG@GOTPAGE
Lloh7:
	ldr	x9, [x9, _CAMSS_CSI_PHY_GLBL_PWR_CFG@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	x0, x23
	bl	_writel_relaxed
	ldr	w8, [x22]
	lsl	w0, w8, #4
	ldr	x8, [x19]
Lloh9:
	adrp	x9, _CAMSS_CSI_PHY_GLBL_RESET@GOTPAGE
Lloh10:
	ldr	x9, [x9, _CAMSS_CSI_PHY_GLBL_RESET@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel_relaxed
	ldr	w8, [x24]
	tbnz	w8, #31, LBB0_5
; %bb.1:
	mov	x22, #0
	add	x23, x24, #16
	mov	x25, #-1
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w21, [x8]
	ldr	x26, [x19]
	mov	x0, x21
	bl	_CAMSS_CSI_PHY_LNn_CFG2
	add	x1, x0, x26
	mov	w0, #16
	bl	_writel_relaxed
	ldr	x26, [x19]
	mov	x0, x21
	bl	_CAMSS_CSI_PHY_LNn_CFG3
	add	x1, x0, x26
	mov	x0, x20
	bl	_writel_relaxed
	ldr	x26, [x19]
	mov	x0, x21
	bl	_CAMSS_CSI_PHY_INTERRUPT_MASKn
	add	x1, x0, x26
	mov	w0, #63
	bl	_writel_relaxed
	ldr	x26, [x19]
	mov	x0, x21
	bl	_CAMSS_CSI_PHY_INTERRUPT_CLEARn
	add	x1, x0, x26
	mov	w0, #63
	bl	_writel_relaxed
	ldrsw	x8, [x24]
	add	x22, x22, #4
	cmp	x25, x8
	b.ge	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	add	x25, x25, #1
	cmp	x25, w8, uxtw
	mov	x8, x23
	b.eq	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x24, #8]
	add	x8, x8, x22
	b	LBB0_2
LBB0_5:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_CAMSS_CSI_PHY_GLBL_T_INIT_CFG0,8,3 ; @CAMSS_CSI_PHY_GLBL_T_INIT_CFG0
	.comm	_CAMSS_CSI_PHY_T_WAKEUP_CFG0,8,3 ; @CAMSS_CSI_PHY_T_WAKEUP_CFG0
	.comm	_CAMSS_CSI_PHY_GLBL_PWR_CFG,8,3 ; @CAMSS_CSI_PHY_GLBL_PWR_CFG
	.comm	_CAMSS_CSI_PHY_GLBL_RESET,8,3   ; @CAMSS_CSI_PHY_GLBL_RESET
	.no_dead_strip	_csiphy_lanes_enable
.subsections_via_symbols
