	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function csid_link_setup
_csid_link_setup:                       ## @csid_link_setup
	.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	%ecx, %r12d
	movq	%rdx, %rbx
	movq	%rsi, %r13
	movq	%rdi, %r14
	movq	_MEDIA_LNK_FL_ENABLED@GOTPCREL(%rip), %r15
	testl	%ecx, (%r15)
	je	LBB0_3
## %bb.1:
	movq	%r13, %rdi
	callq	_media_entity_remote_pad
	testq	%rax, %rax
	jne	LBB0_6
LBB0_3:
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	_MEDIA_PAD_FL_SINK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%ebx, %ebx
	testl	%eax, (%r13)
	je	LBB0_8
## %bb.4:
	testl	%r12d, (%r15)
	je	LBB0_8
## %bb.5:
	movl	$0, -48(%rbp)
	movq	%r14, %rdi
	callq	_media_entity_to_v4l2_subdev
	movq	%rax, %rdi
	callq	_v4l2_get_subdevdata
	movq	%rax, %r14
	movq	16(%rax), %rax
	cmpq	$0, (%rax)
	je	LBB0_9
LBB0_6:
	movq	_EBUSY@GOTPCREL(%rip), %rax
LBB0_7:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_8:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rdi
	callq	_media_entity_to_v4l2_subdev
	movq	%rax, %rdi
	callq	_v4l2_get_subdevdata
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_11
## %bb.10:
	movl	8(%rax), %eax
	movl	%eax, 12(%r14)
	movl	(%rdi), %eax
	movl	%eax, 8(%r14)
	callq	_csid_get_lane_assign
	movl	%eax, 4(%r14)
	movq	_MSM_CSID_PAD_SRC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)
	movq	_V4L2_SUBDEV_FORMAT_ACTIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)
	xorl	%ebx, %ebx
	leaq	-56(%rbp), %rdx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_csid_set_format
	jmp	LBB0_8
LBB0_11:
	movq	_EPERM@GOTPCREL(%rip), %rax
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_MEDIA_LNK_FL_ENABLED,4,2       ## @MEDIA_LNK_FL_ENABLED
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_MEDIA_PAD_FL_SINK,4,2          ## @MEDIA_PAD_FL_SINK
	.comm	_EPERM,4,2                      ## @EPERM
	.comm	_MSM_CSID_PAD_SRC,4,2           ## @MSM_CSID_PAD_SRC
	.comm	_V4L2_SUBDEV_FORMAT_ACTIVE,4,2  ## @V4L2_SUBDEV_FORMAT_ACTIVE
	.no_dead_strip	_csid_link_setup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function csid_link_setup
_csid_link_setup:                       ; @csid_link_setup
	.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	x21, x3
	mov	x20, x2
	mov	x22, x1
	mov	x19, x0
Lloh0:
	adrp	x23, _MEDIA_LNK_FL_ENABLED@GOTPAGE
Lloh1:
	ldr	x23, [x23, _MEDIA_LNK_FL_ENABLED@GOTPAGEOFF]
	ldr	w8, [x23]
	tst	w8, w3
	b.eq	LBB0_2
; %bb.1:
	mov	x0, x22
	bl	_media_entity_remote_pad
	cbnz	x0, LBB0_5
LBB0_2:
	ldr	w8, [x22]
Lloh2:
	adrp	x9, _MEDIA_PAD_FL_SINK@GOTPAGE
Lloh3:
	ldr	x9, [x9, _MEDIA_PAD_FL_SINK@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_9
; %bb.3:
	ldr	w8, [x23]
	tst	w8, w21
	b.eq	LBB0_9
; %bb.4:
	str	wzr, [sp, #8]
	mov	x0, x19
	bl	_media_entity_to_v4l2_subdev
	bl	_v4l2_get_subdevdata
	ldr	x8, [x0, #16]
	ldr	x8, [x8]
	cbz	x8, LBB0_7
LBB0_5:
Lloh5:
	adrp	x8, _EBUSY@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_10
LBB0_7:
	mov	x19, x0
	ldr	x0, [x20, #8]
	bl	_media_entity_to_v4l2_subdev
	bl	_v4l2_get_subdevdata
	mov	x8, x0
	ldr	x0, [x0]
	cbz	x0, LBB0_11
; %bb.8:
	ldr	w8, [x8, #8]
	ldr	w9, [x0]
	stp	w9, w8, [x19, #8]
	bl	_csid_get_lane_assign
	str	w0, [x19, #4]
Lloh7:
	adrp	x8, _MSM_CSID_PAD_SRC@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MSM_CSID_PAD_SRC@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
Lloh10:
	adrp	x9, _V4L2_SUBDEV_FORMAT_ACTIVE@GOTPAGE
Lloh11:
	ldr	x9, [x9, _V4L2_SUBDEV_FORMAT_ACTIVE@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	stp	w9, w8, [sp]
	mov	x2, sp
	mov	x0, x19
	mov	x1, #0
	bl	_csid_set_format
LBB0_9:
	mov	w0, #0
LBB0_10:
	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
LBB0_11:
Lloh13:
	adrp	x8, _EPERM@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
	b	LBB0_6
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_MEDIA_LNK_FL_ENABLED,4,2       ; @MEDIA_LNK_FL_ENABLED
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_MEDIA_PAD_FL_SINK,4,2          ; @MEDIA_PAD_FL_SINK
	.comm	_EPERM,4,2                      ; @EPERM
	.comm	_MSM_CSID_PAD_SRC,4,2           ; @MSM_CSID_PAD_SRC
	.comm	_V4L2_SUBDEV_FORMAT_ACTIVE,4,2  ; @V4L2_SUBDEV_FORMAT_ACTIVE
	.no_dead_strip	_csid_link_setup
.subsections_via_symbols
