	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mipid02_parse_rx_ep
_mipid02_parse_rx_ep:                   ## @mipid02_parse_rx_ep
	.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
	movq	%rdi, %r15
	movl	$0, -48(%rbp)
	movq	_V4L2_MBUS_CSI2_DPHY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)
	movq	32(%rdi), %r14
	movl	(%r14), %edi
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_of_graph_get_endpoint_by_regs
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_of_fwnode_handle
	leaq	-48(%rbp), %rsi
	movl	%eax, %edi
	callq	_v4l2_fwnode_endpoint_parse
	testl	%eax, %eax
	je	LBB0_5
## %bb.3:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_4
LBB0_1:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_12
LBB0_5:
	movl	-48(%rbp), %edx
	cmpl	$3, %edx
	jl	LBB0_7
## %bb.6:
	leaq	L_.str.2(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
LBB0_4:
	movq	%r12, %rdi
	callq	_of_node_put
LBB0_12:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	-48(%rbp), %rax
	movq	%rax, 20(%r15)
	movq	%r12, %rdi
	callq	_of_fwnode_handle
	movl	%eax, %edi
	callq	_fwnode_graph_get_remote_port_parent
	leaq	12(%r15), %r13
	movl	%eax, 12(%r15)
	movq	_V4L2_ASYNC_MATCH_FWNODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r15)
	movq	%r12, %rdi
	callq	_of_node_put
	movq	%r15, %rdi
	callq	_v4l2_async_notifier_init
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_v4l2_async_notifier_add_subdev
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	movl	%eax, %ebx
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movl	(%r13), %edi
	callq	_fwnode_handle_put
	jmp	LBB0_12
LBB0_9:
	movq	_mipid02_notifier_ops@GOTPCREL(%rip), %rax
	movq	%rax, (%r15)
	leaq	8(%r15), %rdi
	movq	%r15, %rsi
	callq	_v4l2_async_subdev_notifier_register
	testl	%eax, %eax
	je	LBB0_10
## %bb.11:
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_v4l2_async_notifier_cleanup
	jmp	LBB0_12
LBB0_10:
	xorl	%ebx, %ebx
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_MBUS_CSI2_DPHY,4,2        ## @V4L2_MBUS_CSI2_DPHY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unable to find port0 ep"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"Could not parse v4l2 endpoint %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"max supported data lanes is 2 / got %d"

	.comm	_V4L2_ASYNC_MATCH_FWNODE,4,2    ## @V4L2_ASYNC_MATCH_FWNODE
L_.str.3:                               ## @.str.3
	.asciz	"fail to register asd to notifier %d"

	.comm	_mipid02_notifier_ops,4,2       ## @mipid02_notifier_ops
	.no_dead_strip	_mipid02_parse_rx_ep
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mipid02_parse_rx_ep
_mipid02_parse_rx_ep:                   ; @mipid02_parse_rx_ep
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x0
Lloh0:
	adrp	x8, _V4L2_MBUS_CSI2_DPHY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _V4L2_MBUS_CSI2_DPHY@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	stp	wzr, w8, [sp, #8]
	ldr	x19, [x0, #32]
	ldr	w0, [x19]
	mov	w1, #0
	mov	w2, #0
	bl	_of_graph_get_endpoint_by_regs
	cbz	x0, LBB0_3
; %bb.1:
	mov	x21, x0
	bl	_of_fwnode_handle
	add	x1, sp, #8
	bl	_v4l2_fwnode_endpoint_parse
	cbz	w0, LBB0_4
; %bb.2:
	mov	x22, x0
	str	x22, [sp]
Lloh3:
	adrp	x1, l_.str.1@PAGE
Lloh4:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_6
LBB0_3:
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_7
LBB0_4:
	ldr	w8, [sp, #8]
	cmp	w8, #3
	b.lt	LBB0_8
; %bb.5:
	str	x8, [sp]
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_6:
	mov	x0, x21
	bl	_of_node_put
LBB0_7:
	mov	x0, x22
	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
	add	sp, sp, #64
	ret
LBB0_8:
	ldr	x8, [sp, #8]
	stur	x8, [x20, #20]
	mov	x0, x21
	bl	_of_fwnode_handle
	bl	_fwnode_graph_get_remote_port_parent
	mov	x22, x20
	str	w0, [x22, #12]!
Lloh15:
	adrp	x8, _V4L2_ASYNC_MATCH_FWNODE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _V4L2_ASYNC_MATCH_FWNODE@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	str	w8, [x20, #16]
	mov	x0, x21
	bl	_of_node_put
	mov	x0, x20
	bl	_v4l2_async_notifier_init
	mov	x0, x20
	mov	x1, x22
	bl	_v4l2_async_notifier_add_subdev
	cbz	w0, LBB0_10
; %bb.9:
	mov	x21, x0
	str	x21, [sp]
Lloh18:
	adrp	x1, l_.str.3@PAGE
Lloh19:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	ldr	w0, [x22]
	bl	_fwnode_handle_put
	mov	x22, x21
	b	LBB0_7
LBB0_10:
Lloh20:
	adrp	x8, _mipid02_notifier_ops@GOTPAGE
Lloh21:
	ldr	x8, [x8, _mipid02_notifier_ops@GOTPAGEOFF]
	mov	x0, x20
	str	x8, [x0], #8
	mov	x1, x20
	bl	_v4l2_async_subdev_notifier_register
	mov	x22, x0
	cbz	w0, LBB0_7
; %bb.11:
	mov	x0, x20
	bl	_v4l2_async_notifier_cleanup
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_MBUS_CSI2_DPHY,4,2        ; @V4L2_MBUS_CSI2_DPHY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unable to find port0 ep"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"Could not parse v4l2 endpoint %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"max supported data lanes is 2 / got %d"

	.comm	_V4L2_ASYNC_MATCH_FWNODE,4,2    ; @V4L2_ASYNC_MATCH_FWNODE
l_.str.3:                               ; @.str.3
	.asciz	"fail to register asd to notifier %d"

	.comm	_mipid02_notifier_ops,4,2       ; @mipid02_notifier_ops
	.no_dead_strip	_mipid02_parse_rx_ep
.subsections_via_symbols
