	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function csiphy_stream_on
_csiphy_stream_on:                      ## @csiphy_stream_on
	.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, %rbx
	movq	64(%rdi), %rdi
	callq	_csiphy_get_lane_mask
	movl	%eax, %r14d
	movl	44(%rbx), %edi
	movl	40(%rbx), %esi
	movq	32(%rbx), %rax
	movq	_MSM_CSIPHY_PAD_SINK@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %edx
	callq	_csiphy_get_bpp
	movl	%eax, %r15d
	leaq	24(%rbx), %rdi
	leaq	-44(%rbp), %rsi
	callq	_camss_get_pixel_clock
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	movq	16(%rbx), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
LBB0_2:
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	jmp	LBB0_10
LBB0_3:
	cmpl	$0, -44(%rbp)
	je	LBB0_4
## %bb.5:
	leaq	48(%rbx), %r12
	movl	8(%rbx), %edi
	callq	_readl_relaxed
	cmpq	$0, 56(%rbx)
	je	LBB0_8
## %bb.6:
	movl	%r14d, %ecx
	andl	$24, %ecx
	cmpl	$24, %ecx
	jne	LBB0_8
## %bb.7:
	andl	$-241, %eax
	movl	(%r12), %ecx
	shll	$4, %ecx
	orl	%ecx, %eax
	jmp	LBB0_9
LBB0_4:
	movq	16(%rbx), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_2
LBB0_8:
	andl	$-16, %eax
	orl	(%r12), %eax
LBB0_9:
	movl	8(%rbx), %esi
	movl	%eax, %edi
	callq	_writel_relaxed
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	callq	_wmb
	movq	(%rbx), %rax
	movl	-44(%rbp), %edx
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	%r15d, %ecx
	movl	%r14d, %r8d
	callq	*(%rax)
LBB0_10:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MSM_CSIPHY_PAD_SINK,8,3        ## @MSM_CSIPHY_PAD_SINK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Cannot get CSI2 transmitter's pixel clock\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"Got pixel clock == 0, cannot continue\n"

	.no_dead_strip	_csiphy_stream_on
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function csiphy_stream_on
_csiphy_stream_on:                      ; @csiphy_stream_on
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
	ldr	x0, [x0, #64]
	bl	_csiphy_get_lane_mask
	mov	x20, x0
	ldp	w1, w0, [x19, #40]
	ldr	x8, [x19, #32]
Lloh0:
	adrp	x9, _MSM_CSIPHY_PAD_SINK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MSM_CSIPHY_PAD_SINK@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldr	w2, [x8, x9, lsl #2]
	bl	_csiphy_get_bpp
	mov	x21, x0
	add	x0, x19, #24
	add	x1, sp, #12
	bl	_camss_get_pixel_clock
	cbz	w0, LBB0_3
; %bb.1:
	ldr	x8, [x19, #16]
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
LBB0_2:
	bl	_dev_err
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_10
LBB0_3:
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_7
; %bb.4:
	add	x22, x19, #48
	ldr	w0, [x19, #8]
	bl	_readl_relaxed
	ldr	x8, [x19, #56]
	cbz	x8, LBB0_8
; %bb.5:
	and	w8, w20, #0x18
	cmp	w8, #24
	b.ne	LBB0_8
; %bb.6:
	and	w8, w0, #0xffffff0f
	ldr	w9, [x22]
	orr	w0, w8, w9, lsl #4
	b	LBB0_9
LBB0_7:
	ldr	x8, [x19, #16]
	ldr	w0, [x8]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_2
LBB0_8:
	and	w8, w0, #0xfffffff0
	ldr	w9, [x22]
	orr	w0, w9, w8
LBB0_9:
	ldr	w1, [x19, #8]
	bl	_writel_relaxed
	bl	_wmb
	ldr	x8, [x19]
	ldr	x8, [x8]
	ldr	w2, [sp, #12]
	mov	x0, x19
	mov	x1, x22
	mov	x3, x21
	mov	x4, x20
	blr	x8
	mov	w0, #0
LBB0_10:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_MSM_CSIPHY_PAD_SINK,8,3        ; @MSM_CSIPHY_PAD_SINK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Cannot get CSI2 transmitter's pixel clock\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"Got pixel clock == 0, cannot continue\n"

	.no_dead_strip	_csiphy_stream_on
.subsections_via_symbols
