	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function vpfe_get_pdata
LCPI0_0:
	.space	16
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_vpfe_get_pdata:                        ## @vpfe_get_pdata
	.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
	movq	%rdi, %rbx
	movq	8(%rdi), %r12
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_dev_dbg
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_v4l2_async_notifier_init
	movq	_CONFIG_OF@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_IS_ENABLED
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	cmpl	$0, (%r12)
	je	LBB0_2
## %bb.3:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movl	$16, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_20
## %bb.4:
	movq	%rax, %r13
	movl	$0, -56(%rbp)
	movq	$0, -64(%rbp)
	movl	(%r12), %edi
	xorl	%r15d, %r15d
	xorl	%esi, %esi
	callq	_of_graph_get_next_endpoint
	testq	%rax, %rax
	je	LBB0_23
## %bb.5:
	movq	%rax, %r14
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	movq	%r13, -80(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r13), %rbx
	movl	%r15d, %eax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	leaq	(%rax,%rax,2), %r12
	shlq	$4, %r12
	leaq	(%rbx,%r12), %r13
	movq	$0, 40(%rbx,%r12)
	movq	32(%rbx,%r12), %rax
	movl	%r15d, (%rax)
	movl	16(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	$4, %edx
	callq	_strscpy
	movq	_V4L2_INPUT_TYPE_CAMERA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	32(%rbx,%r12), %rcx
	movl	%eax, 12(%rcx)
	movq	_V4L2_STD_ALL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rcx)
	movq	_V4L2_IN_CAP_STD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rcx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rbx,%r12)
	movq	%r14, %rdi
	leaq	L_.str.2(%rip), %rsi
	movq	%r13, %rdx
	callq	_of_property_read_u32
	cmpl	$5, (%rbx,%r12)
	jb	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	_VPFE_RAW_BAYER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r13)
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	%r14, %rdi
	callq	_of_fwnode_handle
	movl	%eax, %edi
	leaq	-64(%rbp), %rsi
	callq	_v4l2_fwnode_endpoint_parse
	testl	%eax, %eax
	jne	LBB0_9
## %bb.11:                              ##   in Loop: Header=BB0_6 Depth=1
	movl	-64(%rbp), %eax
	movl	%eax, 4(%rbx,%r12)
	addl	$-17, %eax
	cmpl	$-10, %eax
	jbe	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_6 Depth=1
	movl	-60(%rbp), %eax
	movq	_V4L2_MBUS_HSYNC_ACTIVE_HIGH@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_6 Depth=1
	movl	$1, 8(%rbx,%r12)
LBB0_15:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	_V4L2_MBUS_VSYNC_ACTIVE_HIGH@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	movq	-80(%rbp), %r13                 ## 8-byte Reload
	je	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_6 Depth=1
	movl	$1, 12(%rbx,%r12)
LBB0_17:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	%r14, %rdi
	callq	_of_graph_get_remote_port_parent
	testq	%rax, %rax
	je	LBB0_18
## %bb.21:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_of_fwnode_handle
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %esi
	movl	$4, %edx
	callq	_v4l2_async_notifier_add_fwnode_subdev
	movq	(%r13), %rcx
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
	movl	%eax, (%rcx,%rdx,4)
	movq	%rbx, %rdi
	movq	%rdx, %rbx
	callq	_of_node_put
	movq	(%r13), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_IS_ERR
	testq	%rax, %rax
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	jne	LBB0_19
## %bb.22:                              ##   in Loop: Header=BB0_6 Depth=1
	incl	%ebx
	movl	$0, -56(%rbp)
	movq	$0, -64(%rbp)
	movl	(%r12), %edi
	movq	%r14, %rsi
	callq	_of_graph_get_next_endpoint
	movq	%rax, %r14
	movl	%ebx, %r15d
	testq	%rax, %rax
	jne	LBB0_6
LBB0_23:
	xorl	%edi, %edi
	callq	_of_node_put
	jmp	LBB0_24
LBB0_2:
	movq	8(%r12), %r13
	jmp	LBB0_24
LBB0_9:
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_10
LBB0_12:
	leaq	L_.str.4(%rip), %rsi
LBB0_10:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_19
LBB0_18:
	leaq	L_.str.5(%rip), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_dev_err
LBB0_19:
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_v4l2_async_notifier_cleanup
	movq	%r14, %rdi
	callq	_of_node_put
LBB0_20:
	xorl	%r13d, %r13d
LBB0_24:
	movq	%r13, %rax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"vpfe_get_pdata\n"

	.comm	_CONFIG_OF,4,2                  ## @CONFIG_OF
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
L_.str.1:                               ## @.str.1
	.asciz	"Camera"

	.comm	_V4L2_INPUT_TYPE_CAMERA,4,2     ## @V4L2_INPUT_TYPE_CAMERA
	.comm	_V4L2_STD_ALL,4,2               ## @V4L2_STD_ALL
	.comm	_V4L2_IN_CAP_STD,4,2            ## @V4L2_IN_CAP_STD
L_.str.2:                               ## @.str.2
	.asciz	"ti,am437x-vpfe-interface"

	.comm	_VPFE_RAW_BAYER,4,2             ## @VPFE_RAW_BAYER
L_.str.3:                               ## @.str.3
	.asciz	"Could not parse the endpoint\n"

L_.str.4:                               ## @.str.4
	.asciz	"Invalid bus width.\n"

	.comm	_V4L2_MBUS_HSYNC_ACTIVE_HIGH,4,2 ## @V4L2_MBUS_HSYNC_ACTIVE_HIGH
	.comm	_V4L2_MBUS_VSYNC_ACTIVE_HIGH,4,2 ## @V4L2_MBUS_VSYNC_ACTIVE_HIGH
L_.str.5:                               ## @.str.5
	.asciz	"Remote device at %pOF not found\n"

	.no_dead_strip	_vpfe_get_pdata
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vpfe_get_pdata
_vpfe_get_pdata:                        ; @vpfe_get_pdata
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x19, x0
	ldr	x20, [x0, #8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_dbg
	mov	x0, x19
	bl	_v4l2_async_notifier_init
Lloh2:
	adrp	x8, _CONFIG_OF@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CONFIG_OF@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_IS_ENABLED
	cbz	w0, LBB0_17
; %bb.1:
	ldr	w8, [x20]
	cbz	w8, LBB0_17
; %bb.2:
Lloh5:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	x0, x20
	mov	w1, #16
	bl	_devm_kzalloc
	mov	x21, x0
	cbz	x0, LBB0_18
; %bb.3:
	str	wzr, [sp, #24]
	str	xzr, [sp, #16]
	ldr	w0, [x20]
	mov	x1, #0
	bl	_of_graph_get_next_endpoint
	cbz	x0, LBB0_16
; %bb.4:
	mov	x22, x0
	mov	w27, #0
	mov	w23, #48
	mov	w26, #1
Lloh8:
	adrp	x24, l_.str.2@PAGE
Lloh9:
	add	x24, x24, l_.str.2@PAGEOFF
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x28, [x21, #8]
	umaddl	x25, w27, w23, x28
	str	xzr, [x25, #40]
	ldr	x8, [x25, #32]
	str	w27, [x8]
	ldr	w0, [x8, #16]
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w2, #4
	bl	_strscpy
Lloh12:
	adrp	x8, _V4L2_INPUT_TYPE_CAMERA@GOTPAGE
Lloh13:
	ldr	x8, [x8, _V4L2_INPUT_TYPE_CAMERA@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	ldr	x9, [x25, #32]
	str	w8, [x9, #12]
Lloh15:
	adrp	x8, _V4L2_STD_ALL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _V4L2_STD_ALL@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
Lloh18:
	adrp	x10, _V4L2_IN_CAP_STD@GOTPAGE
Lloh19:
	ldr	x10, [x10, _V4L2_IN_CAP_STD@GOTPAGEOFF]
Lloh20:
	ldr	w10, [x10]
	stp	w10, w8, [x9, #4]
	stp	xzr, xzr, [x25, #16]
	mov	x0, x22
	mov	x1, x24
	mov	x2, x25
	bl	_of_property_read_u32
	ldr	w8, [x25]
	cmp	w8, #5
	b.lo	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
Lloh21:
	adrp	x8, _VPFE_RAW_BAYER@GOTPAGE
Lloh22:
	ldr	x8, [x8, _VPFE_RAW_BAYER@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	str	w8, [x25]
LBB0_7:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x22
	bl	_of_fwnode_handle
	add	x1, sp, #16
	bl	_v4l2_fwnode_endpoint_parse
	cbnz	w0, LBB0_19
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w27, w27
	ldr	w8, [sp, #16]
	madd	x9, x27, x23, x28
	str	w8, [x9, #4]
	sub	w8, w8, #17
	cmn	w8, #10
	b.ls	LBB0_20
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [sp, #20]
Lloh24:
	adrp	x9, _V4L2_MBUS_HSYNC_ACTIVE_HIGH@GOTPAGE
Lloh25:
	ldr	x9, [x9, _V4L2_MBUS_HSYNC_ACTIVE_HIGH@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	madd	x9, x27, x23, x28
	str	w26, [x9, #8]
LBB0_11:                                ;   in Loop: Header=BB0_5 Depth=1
Lloh27:
	adrp	x9, _V4L2_MBUS_VSYNC_ACTIVE_HIGH@GOTPAGE
Lloh28:
	ldr	x9, [x9, _V4L2_MBUS_VSYNC_ACTIVE_HIGH@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_5 Depth=1
	madd	x8, x27, x23, x28
	str	w26, [x8, #12]
LBB0_13:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x22
	bl	_of_graph_get_remote_port_parent
	cbz	x0, LBB0_21
; %bb.14:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x25, x0
	bl	_of_fwnode_handle
	mov	x1, x0
	mov	x0, x19
	mov	w2, #4
	bl	_v4l2_async_notifier_add_fwnode_subdev
	ldr	x8, [x21]
	lsl	x28, x27, #2
	str	w0, [x8, x28]
	mov	x0, x25
	bl	_of_node_put
	ldr	x8, [x21]
	ldr	w0, [x8, x28]
	bl	_IS_ERR
	cbnz	x0, LBB0_23
; %bb.15:                               ;   in Loop: Header=BB0_5 Depth=1
	add	w27, w27, #1
	str	wzr, [sp, #24]
	str	xzr, [sp, #16]
	ldr	w0, [x20]
	mov	x1, x22
	bl	_of_graph_get_next_endpoint
	mov	x22, x0
	cbnz	x0, LBB0_5
LBB0_16:
	mov	x0, #0
	bl	_of_node_put
	b	LBB0_18
LBB0_17:
	ldr	x21, [x20, #8]
LBB0_18:
	mov	x0, x21
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_19:
Lloh30:
	adrp	x1, l_.str.3@PAGE
Lloh31:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_22
LBB0_20:
Lloh32:
	adrp	x1, l_.str.4@PAGE
Lloh33:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_22
LBB0_21:
	str	x22, [sp]
Lloh34:
	adrp	x1, l_.str.5@PAGE
Lloh35:
	add	x1, x1, l_.str.5@PAGEOFF
LBB0_22:
	mov	x0, x20
	bl	_dev_err
LBB0_23:
	mov	x0, x19
	bl	_v4l2_async_notifier_cleanup
	mov	x0, x22
	bl	_of_node_put
	mov	x21, #0
	b	LBB0_18
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vpfe_get_pdata\n"

	.comm	_CONFIG_OF,4,2                  ; @CONFIG_OF
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
l_.str.1:                               ; @.str.1
	.asciz	"Camera"

	.comm	_V4L2_INPUT_TYPE_CAMERA,4,2     ; @V4L2_INPUT_TYPE_CAMERA
	.comm	_V4L2_STD_ALL,4,2               ; @V4L2_STD_ALL
	.comm	_V4L2_IN_CAP_STD,4,2            ; @V4L2_IN_CAP_STD
l_.str.2:                               ; @.str.2
	.asciz	"ti,am437x-vpfe-interface"

	.comm	_VPFE_RAW_BAYER,4,2             ; @VPFE_RAW_BAYER
l_.str.3:                               ; @.str.3
	.asciz	"Could not parse the endpoint\n"

l_.str.4:                               ; @.str.4
	.asciz	"Invalid bus width.\n"

	.comm	_V4L2_MBUS_HSYNC_ACTIVE_HIGH,4,2 ; @V4L2_MBUS_HSYNC_ACTIVE_HIGH
	.comm	_V4L2_MBUS_VSYNC_ACTIVE_HIGH,4,2 ; @V4L2_MBUS_VSYNC_ACTIVE_HIGH
l_.str.5:                               ; @.str.5
	.asciz	"Remote device at %pOF not found\n"

	.no_dead_strip	_vpfe_get_pdata
.subsections_via_symbols
