	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function csi2_link_setup
_csi2_link_setup:                       ## @csi2_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r15d
	movq	%rdx, %r12
	movq	%rsi, %rbx
	callq	_media_entity_to_v4l2_subdev
	movq	%rax, %rdi
	callq	_v4l2_get_subdevdata
	movq	%rax, %r14
	movl	(%rbx), %ebx
	movl	4(%r12), %edi
	callq	_is_media_entity_v4l2_subdev
	movl	%ebx, %ecx
	orl	$131072, %ecx                   ## imm = 0x20000
	testq	%rax, %rax
	cmovel	%ebx, %ecx
	cmpl	$131200, %ecx                   ## imm = 0x20080
	je	LBB0_9
## %bb.1:
	cmpl	$128, %ecx
	jne	LBB0_15
## %bb.2:
	movq	_MEDIA_LNK_FL_ENABLED@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_7
## %bb.3:
	movl	(%r14), %ecx
	movq	_CSI2_OUTPUT_MEMORY@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_9:
	movq	_MEDIA_LNK_FL_ENABLED@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_14
## %bb.10:
	movl	(%r14), %ecx
	movq	_CSI2_OUTPUT_CCDC@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %eax
	movl	%eax, %edx
	notl	%edx
	testl	%edx, %ecx
	je	LBB0_11
## %bb.5:
	movq	_EBUSY@GOTPCREL(%rip), %rcx
	jmp	LBB0_6
LBB0_15:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_6:
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_13
LBB0_11:
	orl	%ecx, %eax
	jmp	LBB0_12
LBB0_7:
	movq	_CSI2_OUTPUT_MEMORY@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_14:
	movq	_CSI2_OUTPUT_CCDC@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %eax
	notl	%eax
	andl	(%r14), %eax
LBB0_12:
	movl	%eax, (%r14)
	movq	_CSI2_OUTPUT_MEMORY@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	movl	(%rcx), %ecx
	andl	%eax, %ecx
	sete	%dl
	movl	%edx, 4(%r14)
	movq	_CSI2_OUTPUT_CCDC@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	andl	(%rcx), %eax
	setne	%dl
	movl	%edx, 8(%r14)
	xorl	%eax, %eax
LBB0_13:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MEDIA_LNK_FL_ENABLED,4,2       ## @MEDIA_LNK_FL_ENABLED
	.comm	_CSI2_OUTPUT_MEMORY,4,2         ## @CSI2_OUTPUT_MEMORY
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_CSI2_OUTPUT_CCDC,4,2           ## @CSI2_OUTPUT_CCDC
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_csi2_link_setup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function csi2_link_setup
_csi2_link_setup:                       ; @csi2_link_setup
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x20, x3
	mov	x21, x2
	mov	x22, x1
	bl	_media_entity_to_v4l2_subdev
	bl	_v4l2_get_subdevdata
	mov	x19, x0
	ldr	w22, [x22]
	ldr	w0, [x21, #4]
	bl	_is_media_entity_v4l2_subdev
	orr	w8, w22, #0x20000
	cmp	x0, #0
	csel	w8, w22, w8, eq
	sub	w9, w8, #32, lsl #12            ; =131072
	cmp	w9, #128
	b.eq	LBB0_4
; %bb.1:
	cmp	w8, #128
	b.ne	LBB0_8
; %bb.2:
Lloh0:
	adrp	x8, _MEDIA_LNK_FL_ENABLED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MEDIA_LNK_FL_ENABLED@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_11
; %bb.3:
	ldr	w8, [x19]
Lloh3:
	adrp	x9, _CSI2_OUTPUT_MEMORY@GOTPAGE
Lloh4:
	ldr	x9, [x9, _CSI2_OUTPUT_MEMORY@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:
Lloh5:
	adrp	x8, _MEDIA_LNK_FL_ENABLED@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MEDIA_LNK_FL_ENABLED@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_12
; %bb.5:
	ldr	w8, [x19]
Lloh8:
	adrp	x9, _CSI2_OUTPUT_CCDC@GOTPAGE
Lloh9:
	ldr	x9, [x9, _CSI2_OUTPUT_CCDC@GOTPAGEOFF]
LBB0_6:
	ldr	w9, [x9]
	bics	wzr, w8, w9
	b.eq	LBB0_10
; %bb.7:
Lloh10:
	adrp	x8, _EBUSY@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_15
LBB0_10:
	orr	w8, w9, w8
	b	LBB0_14
LBB0_11:
Lloh14:
	adrp	x8, _CSI2_OUTPUT_MEMORY@GOTPAGE
Lloh15:
	ldr	x8, [x8, _CSI2_OUTPUT_MEMORY@GOTPAGEOFF]
	b	LBB0_13
LBB0_12:
Lloh16:
	adrp	x8, _CSI2_OUTPUT_CCDC@GOTPAGE
Lloh17:
	ldr	x8, [x8, _CSI2_OUTPUT_CCDC@GOTPAGEOFF]
LBB0_13:
	ldr	w8, [x8]
	ldr	w9, [x19]
	bic	w8, w9, w8
LBB0_14:
	str	w8, [x19]
	mov	w0, #0
Lloh18:
	adrp	x9, _CSI2_OUTPUT_MEMORY@GOTPAGE
Lloh19:
	ldr	x9, [x9, _CSI2_OUTPUT_MEMORY@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	tst	w9, w8
Lloh21:
	adrp	x9, _CSI2_OUTPUT_CCDC@GOTPAGE
Lloh22:
	ldr	x9, [x9, _CSI2_OUTPUT_CCDC@GOTPAGEOFF]
	cset	w10, eq
Lloh23:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w8, ne
	stp	w10, w8, [x19, #4]
LBB0_15:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_MEDIA_LNK_FL_ENABLED,4,2       ; @MEDIA_LNK_FL_ENABLED
	.comm	_CSI2_OUTPUT_MEMORY,4,2         ; @CSI2_OUTPUT_MEMORY
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_CSI2_OUTPUT_CCDC,4,2           ; @CSI2_OUTPUT_CCDC
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_csi2_link_setup
.subsections_via_symbols
