	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fimc_md_parse_port_node
_fimc_md_parse_port_node:               ## @fimc_md_parse_port_node
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movq	%rdi, %r14
	movq	8(%rdi), %r15
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -80(%rbp)
	xorl	%r13d, %r13d
	movq	%rsi, %rdi
	xorl	%esi, %esi
	callq	_of_get_next_child
	testq	%rax, %rax
	je	LBB0_22
## %bb.1:
	movq	%rax, %r12
	movl	%ebx, -52(%rbp)                 ## 4-byte Spill
	movq	%rax, %rdi
	callq	_of_fwnode_handle
	leaq	-80(%rbp), %rsi
	movl	%eax, %edi
	callq	_v4l2_fwnode_endpoint_parse
	testl	%eax, %eax
	je	LBB0_3
LBB0_2:
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_of_node_put
	movl	%ebx, %r13d
	jmp	LBB0_22
LBB0_3:
	xorl	%edi, %edi
	cmpl	$0, -72(%rbp)
	sete	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	jne	LBB0_5
## %bb.4:
	movq	_FIMC_MAX_SENSORS@GOTPCREL(%rip), %rax
	cmpl	%ecx, (%rax)
	jbe	LBB0_5
## %bb.6:
	movl	%ecx, %ecx
	movl	-72(%rbp), %eax
	notl	%eax
	andl	$1, %eax
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	leaq	(%rcx,%rcx,2), %rcx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movl	%eax, 8(%r15,%rcx,8)
	movq	%r12, %rdi
	callq	_of_graph_get_remote_port_parent
	movq	%rax, %rbx
	movq	%r12, %rdi
	callq	_of_node_put
	testq	%rbx, %rbx
	je	LBB0_7
## %bb.8:
	movl	-72(%rbp), %edi
	callq	_fimc_input_is_parallel
	testq	%rax, %rax
	je	LBB0_13
## %bb.9:
	movq	-80(%rbp), %rax
	movq	_V4L2_MBUS_PARALLEL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.11:
	movq	_FIMC_BUS_TYPE_ITU_601@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_7:
	addq	$20, %r14
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movq	%r12, %rdx
	callq	_v4l2_info
	jmp	LBB0_22
LBB0_13:
	movl	-72(%rbp), %edi
	callq	_fimc_input_is_mipi_csi
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:
	movq	_FIMC_BUS_TYPE_MIPI_CSI2@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, 12(%r15,%rcx,8)
	jmp	LBB0_16
LBB0_10:
	movq	_FIMC_BUS_TYPE_ITU_656@GOTPCREL(%rip), %rax
LBB0_12:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rax), %eax
	movl	%eax, 12(%r15,%rcx,8)
	movl	-68(%rbp), %eax
	movl	%eax, 20(%r15,%rcx,8)
LBB0_16:
	movq	%rbx, %r12
	movq	%rbx, %rdi
	callq	_of_get_parent
	movq	%rax, %rbx
	leaq	L_.str.2(%rip), %rsi
	movq	%rax, %rdi
	callq	_of_node_name_eq
	testq	%rax, %rax
	je	LBB0_17
## %bb.18:
	movq	_FIMC_BUS_TYPE_ISP_WRITEBACK@GOTPCREL(%rip), %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	jmp	LBB0_19
LBB0_17:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%r15,%rcx,8), %rax
	addq	$12, %rax
LBB0_19:
	movl	(%rax), %eax
	movl	%eax, 16(%r15,%rcx,8)
	movq	%rbx, %rdi
	callq	_of_node_put
	movq	8(%r14), %rdi
	callq	_ARRAY_SIZE
	xorl	%edi, %edi
	cmpl	-52(%rbp), %eax                 ## 4-byte Folded Reload
	setbe	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_20
LBB0_5:
	movq	%r12, %rdi
	callq	_of_node_put
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
LBB0_22:
	movl	%r13d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	movq	_V4L2_ASYNC_MATCH_FWNODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	8(%r14), %rcx
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
	shlq	$3, %rdx
	leaq	(%rdx,%rdx,2), %rbx
	movl	%eax, 4(%rcx,%rbx)
	movq	%r12, %rdi
	callq	_of_fwnode_handle
	movq	8(%r14), %rcx
	leaq	(%rcx,%rbx), %rsi
	movl	%eax, (%rcx,%rbx)
	leaq	16(%r14), %rdi
	callq	_v4l2_async_notifier_add_subdev
	testl	%eax, %eax
	jne	LBB0_2
## %bb.21:
	incl	(%r14)
	jmp	LBB0_22
LBB0_15:
	leaq	20(%r14), %rdi
	movl	-72(%rbp), %edx
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rcx
	callq	_v4l2_err
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_FIMC_MAX_SENSORS,4,2           ## @FIMC_MAX_SENSORS
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Remote device at %pOF not found\n"

	.comm	_V4L2_MBUS_PARALLEL,8,3         ## @V4L2_MBUS_PARALLEL
	.comm	_FIMC_BUS_TYPE_ITU_601,4,2      ## @FIMC_BUS_TYPE_ITU_601
	.comm	_FIMC_BUS_TYPE_ITU_656,4,2      ## @FIMC_BUS_TYPE_ITU_656
	.comm	_FIMC_BUS_TYPE_MIPI_CSI2,4,2    ## @FIMC_BUS_TYPE_MIPI_CSI2
L_.str.1:                               ## @.str.1
	.asciz	"Wrong port id (%u) at node %pOF\n"

L_.str.2:                               ## @.str.2
	.asciz	"i2c-isp"

	.comm	_FIMC_BUS_TYPE_ISP_WRITEBACK,4,2 ## @FIMC_BUS_TYPE_ISP_WRITEBACK
	.comm	_V4L2_ASYNC_MATCH_FWNODE,4,2    ## @V4L2_ASYNC_MATCH_FWNODE
	.no_dead_strip	_fimc_md_parse_port_node
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fimc_md_parse_port_node
_fimc_md_parse_port_node:               ; @fimc_md_parse_port_node
	.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	x20, x2
	mov	x19, x0
	ldr	x24, [x0, #8]
	stp	xzr, xzr, [sp]
	mov	x0, x1
	mov	x1, #0
	bl	_of_get_next_child
	cbz	x0, LBB0_3
; %bb.1:
	mov	x22, x0
	bl	_of_fwnode_handle
	mov	x1, sp
	bl	_v4l2_fwnode_endpoint_parse
	cbz	w0, LBB0_4
; %bb.2:
	mov	x23, x0
	mov	x0, x22
	bl	_of_node_put
	b	LBB0_16
LBB0_3:
	mov	w23, #0
	b	LBB0_16
LBB0_4:
	ldr	w8, [sp, #8]
	cmp	w8, #0
	cset	w0, eq
	bl	_WARN_ON
Lloh0:
	adrp	x8, _FIMC_MAX_SENSORS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FIMC_MAX_SENSORS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	x0, #0
	ccmp	w8, w20, #0, eq
	b.hi	LBB0_6
; %bb.5:
	mov	x0, x22
	b	LBB0_15
LBB0_6:
	mov	w23, w20
	ldr	w8, [sp, #8]
	mvn	w8, w8
	and	w8, w8, #0x1
	mov	w9, #24
	madd	x9, x23, x9, x24
	str	w8, [x9, #8]
	mov	x0, x22
	bl	_of_graph_get_remote_port_parent
	mov	x21, x0
	mov	x0, x22
	bl	_of_node_put
	cbz	x21, LBB0_9
; %bb.7:
	ldr	w0, [sp, #8]
	bl	_fimc_input_is_parallel
	cbz	x0, LBB0_10
; %bb.8:
	ldr	x8, [sp]
Lloh3:
	adrp	x9, _V4L2_MBUS_PARALLEL@GOTPAGE
Lloh4:
	ldr	x9, [x9, _V4L2_MBUS_PARALLEL@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
Lloh6:
	adrp	x10, _FIMC_BUS_TYPE_ITU_601@GOTPAGE
Lloh7:
	ldr	x10, [x10, _FIMC_BUS_TYPE_ITU_601@GOTPAGEOFF]
Lloh8:
	adrp	x11, _FIMC_BUS_TYPE_ITU_656@GOTPAGE
Lloh9:
	ldr	x11, [x11, _FIMC_BUS_TYPE_ITU_656@GOTPAGEOFF]
	cmp	x8, x9
	csel	x8, x10, x11, eq
	ldr	w8, [x8]
	mov	w9, #24
	madd	x9, x23, x9, x24
	str	w8, [x9, #12]
	ldr	w8, [sp, #12]
	str	w8, [x9, #20]
	b	LBB0_13
LBB0_9:
	add	x0, x19, #20
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x22
	bl	_v4l2_info
	mov	w23, #0
	b	LBB0_16
LBB0_10:
	ldr	w0, [sp, #8]
	bl	_fimc_input_is_mipi_csi
	cbz	x0, LBB0_12
; %bb.11:
Lloh12:
	adrp	x8, _FIMC_BUS_TYPE_MIPI_CSI2@GOTPAGE
Lloh13:
	ldr	x8, [x8, _FIMC_BUS_TYPE_MIPI_CSI2@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	mov	w9, #24
	madd	x9, x23, x9, x24
	str	w8, [x9, #12]
	b	LBB0_13
LBB0_12:
	add	x0, x19, #20
	ldr	w2, [sp, #8]
Lloh15:
	adrp	x1, l_.str.1@PAGE
Lloh16:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x3, x21
	bl	_v4l2_err
LBB0_13:
	mov	x0, x21
	bl	_of_get_parent
	mov	x22, x0
Lloh17:
	adrp	x1, l_.str.2@PAGE
Lloh18:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_of_node_name_eq
	mov	w8, #24
	madd	x8, x23, x8, x24
	add	x9, x8, #12
Lloh19:
	adrp	x10, _FIMC_BUS_TYPE_ISP_WRITEBACK@GOTPAGE
Lloh20:
	ldr	x10, [x10, _FIMC_BUS_TYPE_ISP_WRITEBACK@GOTPAGEOFF]
	cmp	x0, #0
	csel	x9, x9, x10, eq
	ldr	w9, [x9]
	str	w9, [x8, #16]
	mov	x0, x22
	bl	_of_node_put
	ldr	x0, [x19, #8]
	bl	_ARRAY_SIZE
	cmp	w0, w20
	cset	w0, ls
	bl	_WARN_ON
	cbz	x0, LBB0_17
; %bb.14:
	mov	x0, x21
LBB0_15:
	bl	_of_node_put
Lloh21:
	adrp	x8, _EINVAL@GOTPAGE
Lloh22:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_16:
	mov	x0, x23
	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_17:
Lloh24:
	adrp	x8, _V4L2_ASYNC_MATCH_FWNODE@GOTPAGE
Lloh25:
	ldr	x8, [x8, _V4L2_ASYNC_MATCH_FWNODE@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	ldr	x9, [x19, #8]
	add	x10, x23, x23, lsl #1
	lsl	x20, x10, #3
	add	x9, x9, x20
	str	w8, [x9, #4]
	mov	x0, x21
	bl	_of_fwnode_handle
	ldr	x8, [x19, #8]
	add	x1, x8, x20
	str	w0, [x1]
	add	x0, x19, #16
	bl	_v4l2_async_notifier_add_subdev
	mov	x23, x0
	cbz	w0, LBB0_19
; %bb.18:
	mov	x0, x21
	bl	_of_node_put
	b	LBB0_16
LBB0_19:
	ldr	w8, [x19]
	add	w8, w8, #1
	str	w8, [x19]
	b	LBB0_16
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_FIMC_MAX_SENSORS,4,2           ; @FIMC_MAX_SENSORS
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Remote device at %pOF not found\n"

	.comm	_V4L2_MBUS_PARALLEL,8,3         ; @V4L2_MBUS_PARALLEL
	.comm	_FIMC_BUS_TYPE_ITU_601,4,2      ; @FIMC_BUS_TYPE_ITU_601
	.comm	_FIMC_BUS_TYPE_ITU_656,4,2      ; @FIMC_BUS_TYPE_ITU_656
	.comm	_FIMC_BUS_TYPE_MIPI_CSI2,4,2    ; @FIMC_BUS_TYPE_MIPI_CSI2
l_.str.1:                               ; @.str.1
	.asciz	"Wrong port id (%u) at node %pOF\n"

l_.str.2:                               ; @.str.2
	.asciz	"i2c-isp"

	.comm	_FIMC_BUS_TYPE_ISP_WRITEBACK,4,2 ; @FIMC_BUS_TYPE_ISP_WRITEBACK
	.comm	_V4L2_ASYNC_MATCH_FWNODE,4,2    ; @V4L2_ASYNC_MATCH_FWNODE
	.no_dead_strip	_fimc_md_parse_port_node
.subsections_via_symbols
