	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __fimc_md_create_fimc_sink_links
___fimc_md_create_fimc_sink_links:      ## @__fimc_md_create_fimc_sink_links
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, -60(%rbp)                 ## 4-byte Spill
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	%rsi, %r15
	movq	%rdi, %r14
	movb	$1, %bl
	testq	%rdx, %rdx
	je	LBB0_3
## %bb.1:
	movq	%rdx, %rdi
	callq	_v4l2_get_subdev_hostdata
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	(%rax), %rax
	movq	_FIMC_BUS_TYPE_ISP_WRITEBACK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	setne	%bl
LBB0_3:
	movslq	-44(%rbp), %rax                 ## 4-byte Folded Reload
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	testb	%bl, %bl
	je	LBB0_14
## %bb.4:
	movq	_FIMC_MAX_DEVS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_14
## %bb.5:
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	leaq	(,%rcx,4), %rcx
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_7 Depth=1
	incq	%rbx
	movslq	%eax, %rcx
	cmpq	%rcx, %rbx
	jge	LBB0_14
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r14), %rcx
	movq	(%rcx,%rbx,8), %r13
	testq	%r13, %r13
	je	LBB0_6
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	16(%r13), %rcx
	cmpl	$0, (%rcx)
	je	LBB0_6
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	xorl	%r12d, %r12d
	movl	-60(%rbp), %eax                 ## 4-byte Reload
	btl	%ebx, %eax
	jae	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	_MEDIA_LNK_FL_ENABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
LBB0_11:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	_FIMC_SD_PAD_SINK_CAM@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movq	%r13, %rdx
	movl	%r12d, %r8d
	callq	_media_create_pad_link
	testl	%eax, %eax
	jne	LBB0_23
## %bb.12:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	%r15, %r14
	movq	_link_setup@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	8(%r13), %rdx
	movq	8(%r15), %rcx
	addq	-72(%rbp), %rcx                 ## 8-byte Folded Reload
	movq	%r13, %rdi
	movl	%r12d, %r8d
	callq	_media_entity_call
	testl	%eax, %eax
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	jne	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_7 Depth=1
	movl	(%r15), %edx
	xorl	%ecx, %ecx
	testl	%r12d, %r12d
	setne	%cl
	movl	(%r13), %r8d
	shll	$4, %ecx
	orl	$45, %ecx
	movq	%r14, %rdi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_v4l2_info
	movq	_FIMC_MAX_DEVS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_6
LBB0_14:
	movq	_FIMC_LITE_MAX_DEVS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_21
## %bb.15:
	shlq	$2, -56(%rbp)                   ## 8-byte Folded Spill
	xorl	%r12d, %r12d
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_17 Depth=1
	incq	%r12
	movslq	%eax, %rcx
	cmpq	%rcx, %r12
	jge	LBB0_21
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r14), %rcx
	movq	(%rcx,%r12,8), %rbx
	testq	%rbx, %rbx
	je	LBB0_16
## %bb.18:                              ##   in Loop: Header=BB0_17 Depth=1
	movq	_FLITE_SD_PAD_SINK@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movq	%rbx, %rdx
	xorl	%r8d, %r8d
	callq	_media_create_pad_link
	testl	%eax, %eax
	jne	LBB0_23
## %bb.19:                              ##   in Loop: Header=BB0_17 Depth=1
	movq	%r15, %r13
	movq	_link_setup@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	8(%rbx), %rdx
	movq	8(%r15), %rcx
	addq	-56(%rbp), %rcx                 ## 8-byte Folded Reload
	xorl	%r15d, %r15d
	movq	%rbx, %rdi
	xorl	%r8d, %r8d
	callq	_media_entity_call
	testl	%eax, %eax
	jne	LBB0_24
## %bb.20:                              ##   in Loop: Header=BB0_17 Depth=1
	movl	(%r13), %edx
	movsbl	(%rbx), %ecx
	movq	%r14, %rdi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_v4l2_info
	movq	_FIMC_LITE_MAX_DEVS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%r13, %r15
	jmp	LBB0_16
LBB0_21:
	xorl	%r15d, %r15d
	jmp	LBB0_24
LBB0_23:
	movl	%eax, %r15d
LBB0_24:
	movl	%r15d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FIMC_BUS_TYPE_ISP_WRITEBACK,8,3 ## @FIMC_BUS_TYPE_ISP_WRITEBACK
	.comm	_FIMC_MAX_DEVS,4,2              ## @FIMC_MAX_DEVS
	.comm	_MEDIA_LNK_FL_ENABLED,4,2       ## @MEDIA_LNK_FL_ENABLED
	.comm	_FIMC_SD_PAD_SINK_CAM,4,2       ## @FIMC_SD_PAD_SINK_CAM
	.comm	_link_setup,4,2                 ## @link_setup
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"created link [%s] %c> [%s]\n"

	.comm	_FIMC_LITE_MAX_DEVS,4,2         ## @FIMC_LITE_MAX_DEVS
	.comm	_FLITE_SD_PAD_SINK,4,2          ## @FLITE_SD_PAD_SINK
L_.str.1:                               ## @.str.1
	.asciz	"created link [%s] -> [%s]\n"

	.no_dead_strip	___fimc_md_create_fimc_sink_links
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __fimc_md_create_fimc_sink_links
___fimc_md_create_fimc_sink_links:      ; @__fimc_md_create_fimc_sink_links
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x22, x4
	mov	x19, x3
	mov	x20, x1
	mov	x21, x0
	cbz	x2, LBB0_3
; %bb.1:
	mov	x0, x2
	bl	_v4l2_get_subdev_hostdata
	cbz	x0, LBB0_3
; %bb.2:
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _FIMC_BUS_TYPE_ISP_WRITEBACK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _FIMC_BUS_TYPE_ISP_WRITEBACK@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w8, ne
	b	LBB0_4
LBB0_3:
	mov	w8, #1
LBB0_4:
Lloh3:
	adrp	x26, _link_setup@GOTPAGE
Lloh4:
	ldr	x26, [x26, _link_setup@GOTPAGEOFF]
	cbz	w8, LBB0_13
; %bb.5:
Lloh5:
	adrp	x27, _FIMC_MAX_DEVS@GOTPAGE
Lloh6:
	ldr	x27, [x27, _FIMC_MAX_DEVS@GOTPAGEOFF]
	ldr	w8, [x27]
	cmp	w8, #1
	b.lt	LBB0_13
; %bb.6:
	mov	x28, #0
	sxtw	x23, w19
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	x28, x28, #1
	cmp	x28, w8, sxtw
	b.ge	LBB0_13
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x21, #16]
	ldr	x24, [x9, x28, lsl #3]
	cbz	x24, LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x9, [x24, #16]
	ldr	w9, [x9]
	cbz	w9, LBB0_7
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
Lloh7:
	adrp	x8, _MEDIA_LNK_FL_ENABLED@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MEDIA_LNK_FL_ENABLED@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	lsr	w9, w22, w28
	sbfx	w9, w9, #0, #1
	and	w25, w9, w8
Lloh10:
	adrp	x8, _FIMC_SD_PAD_SINK_CAM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _FIMC_SD_PAD_SINK_CAM@GOTPAGEOFF]
Lloh12:
	ldr	w3, [x8]
	mov	x0, x20
	mov	x1, x19
	mov	x2, x24
	mov	x4, x25
	bl	_media_create_pad_link
	cbnz	w0, LBB0_21
; %bb.11:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	w1, [x26]
	ldr	x2, [x24, #8]
	ldr	x8, [x20, #8]
	add	x3, x8, x23, lsl #2
	mov	x0, x24
	mov	x4, x25
	bl	_media_entity_call
	cbnz	w0, LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	w2, [x20]
	ldr	w8, [x24]
	str	x8, [sp]
	cmp	w25, #0
	mov	w8, #61
	mov	w9, #45
	csel	w3, w9, w8, eq
	mov	x0, x21
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	add	x1, x1, l_.str@PAGEOFF
	bl	_v4l2_info
	ldr	w8, [x27]
	b	LBB0_7
LBB0_13:
Lloh15:
	adrp	x24, _FIMC_LITE_MAX_DEVS@GOTPAGE
Lloh16:
	ldr	x24, [x24, _FIMC_LITE_MAX_DEVS@GOTPAGEOFF]
	ldr	w8, [x24]
	cmp	w8, #1
	b.lt	LBB0_20
; %bb.14:
	mov	x25, #0
	mov	x9, x19
	sxtw	x27, w9
Lloh17:
	adrp	x28, _FLITE_SD_PAD_SINK@GOTPAGE
Lloh18:
	ldr	x28, [x28, _FLITE_SD_PAD_SINK@GOTPAGEOFF]
Lloh19:
	adrp	x22, l_.str.1@PAGE
Lloh20:
	add	x22, x22, l_.str.1@PAGEOFF
	b	LBB0_17
LBB0_15:                                ;   in Loop: Header=BB0_17 Depth=1
	ldr	w2, [x20]
	ldrsb	w3, [x23]
	mov	x0, x21
	mov	x1, x22
	bl	_v4l2_info
	ldr	w8, [x24]
LBB0_16:                                ;   in Loop: Header=BB0_17 Depth=1
	add	x25, x25, #1
	cmp	x25, w8, sxtw
	b.ge	LBB0_20
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x21, #8]
	ldr	x23, [x9, x25, lsl #3]
	cbz	x23, LBB0_16
; %bb.18:                               ;   in Loop: Header=BB0_17 Depth=1
	ldr	w3, [x28]
	mov	x0, x20
	mov	x1, x19
	mov	x2, x23
	mov	w4, #0
	bl	_media_create_pad_link
	cbnz	w0, LBB0_21
; %bb.19:                               ;   in Loop: Header=BB0_17 Depth=1
	ldr	w1, [x26]
	ldr	x2, [x23, #8]
	ldr	x8, [x20, #8]
	add	x3, x8, x27, lsl #2
	mov	x0, x23
	mov	w4, #0
	bl	_media_entity_call
	cbz	w0, LBB0_15
LBB0_20:
	mov	w0, #0
LBB0_21:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_FIMC_BUS_TYPE_ISP_WRITEBACK,8,3 ; @FIMC_BUS_TYPE_ISP_WRITEBACK
	.comm	_FIMC_MAX_DEVS,4,2              ; @FIMC_MAX_DEVS
	.comm	_MEDIA_LNK_FL_ENABLED,4,2       ; @MEDIA_LNK_FL_ENABLED
	.comm	_FIMC_SD_PAD_SINK_CAM,4,2       ; @FIMC_SD_PAD_SINK_CAM
	.comm	_link_setup,4,2                 ; @link_setup
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"created link [%s] %c> [%s]\n"

	.comm	_FIMC_LITE_MAX_DEVS,4,2         ; @FIMC_LITE_MAX_DEVS
	.comm	_FLITE_SD_PAD_SINK,4,2          ; @FLITE_SD_PAD_SINK
l_.str.1:                               ; @.str.1
	.asciz	"created link [%s] -> [%s]\n"

	.no_dead_strip	___fimc_md_create_fimc_sink_links
.subsections_via_symbols
