	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fimc_link_setup
_fimc_link_setup:                       ## @fimc_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r13d
	movq	%rdx, %rbx
	movq	%rsi, %r12
	callq	_media_entity_to_v4l2_subdev
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_v4l2_get_subdevdata
	movq	%rax, %r14
	movq	(%rbx), %rdi
	callq	_is_media_entity_v4l2_subdev
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	xorl	%edi, %edi
	testq	%r14, %r14
	sete	%dil
	callq	_WARN_ON
	xorl	%r13d, %r13d
	testq	%rax, %rax
	jne	LBB0_11
## %bb.4:
	movq	(%r12), %rax
	movl	(%rax), %esi
	movq	(%rbx), %rax
	movl	(%rax), %edx
	movq	(%r14), %r8
	leaq	L_.str(%rip), %rdi
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %ecx
	callq	_dbg
	movq	_MEDIA_LNK_FL_ENABLED@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_5
## %bb.6:
	cmpq	$0, (%r14)
	je	LBB0_8
## %bb.7:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
LBB0_11:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	$0, (%r14)
	jmp	LBB0_11
LBB0_8:
	movq	(%r15), %rax
	movq	%rax, (%r14)
	cmpq	$0, 32(%r14)
	jne	LBB0_11
## %bb.9:
	cmpq	$0, 24(%r14)
	jne	LBB0_11
## %bb.10:
	movq	%r14, %rdi
	addq	$16, %rdi
	callq	_fimc_find_remote_sensor
	testq	%rax, %rax
	je	LBB0_11
## %bb.12:
	movq	8(%r14), %rdi
	movl	8(%rax), %esi
	xorl	%edx, %edx
	movl	$1, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_v4l2_ctrl_add_handler          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s --> %s, flags: 0x%x. input: 0x%x"

	.comm	_MEDIA_LNK_FL_ENABLED,4,2       ## @MEDIA_LNK_FL_ENABLED
	.comm	_EBUSY,4,2                      ## @EBUSY
	.no_dead_strip	_fimc_link_setup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fimc_link_setup
_fimc_link_setup:                       ; @fimc_link_setup
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x3
	mov	x22, x2
	mov	x23, x1
	bl	_media_entity_to_v4l2_subdev
	mov	x20, x0
	bl	_v4l2_get_subdevdata
	mov	x19, x0
	ldr	x0, [x22]
	bl	_is_media_entity_v4l2_subdev
	cbz	w0, LBB0_3
; %bb.1:
	cmp	x19, #0
	cset	w0, eq
	bl	_WARN_ON
	cbz	x0, LBB0_6
LBB0_2:
	mov	w0, #0
	b	LBB0_5
LBB0_3:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_6:
	ldr	x8, [x23]
	ldr	w1, [x8]
	ldr	x8, [x22]
	ldr	w2, [x8]
	ldr	x4, [x19]
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	mov	x3, x21
	bl	_dbg
Lloh4:
	adrp	x8, _MEDIA_LNK_FL_ENABLED@GOTPAGE
Lloh5:
	ldr	x8, [x8, _MEDIA_LNK_FL_ENABLED@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_9
; %bb.7:
	ldr	x8, [x19]
	cbz	x8, LBB0_10
; %bb.8:
Lloh7:
	adrp	x8, _EBUSY@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_4
LBB0_9:
	mov	w0, #0
	str	xzr, [x19]
	b	LBB0_5
LBB0_10:
	ldr	x8, [x20]
	str	x8, [x19]
	ldr	x8, [x19, #32]
	cbnz	x8, LBB0_2
; %bb.11:
	ldr	x8, [x19, #24]
	cbnz	x8, LBB0_2
; %bb.12:
	add	x0, x19, #16
	bl	_fimc_find_remote_sensor
	cbz	x0, LBB0_5
; %bb.13:
	ldr	x8, [x19, #8]
	ldr	w1, [x0, #8]
	mov	x0, x8
	mov	x2, #0
	mov	w3, #1
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_v4l2_ctrl_add_handler
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s --> %s, flags: 0x%x. input: 0x%x"

	.comm	_MEDIA_LNK_FL_ENABLED,4,2       ; @MEDIA_LNK_FL_ENABLED
	.comm	_EBUSY,4,2                      ; @EBUSY
	.no_dead_strip	_fimc_link_setup
.subsections_via_symbols
