	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vpif_capture_get_pdata
_vpif_capture_get_pdata:                ## @vpif_capture_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, %r15
	movq	_vpif_obj@GOTPCREL(%rip), %rdi
	callq	_v4l2_async_notifier_init
	movq	16(%r15), %rax
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	%rax, (%r15)
LBB0_3:
	movq	_CONFIG_OF@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_IS_ENABLED
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	cmpq	$0, (%r15)
	je	LBB0_5
## %bb.6:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	movq	%r15, %rdi
	movl	$48, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_26
## %bb.7:
	movq	%rax, %rbx
	movq	_VPIF_CAPTURE_NUM_CHANNELS@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movl	(%r14), %ecx
	movq	%r15, %rdi
	movl	$4, %edx
	callq	_devm_kcalloc
	movq	%rax, 40(%rbx)
	xorl	%ecx, %ecx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_26
## %bb.8:
	cmpl	$0, (%r13)
	je	LBB0_9
## %bb.10:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movl	$4, %r14d
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movl	$0, -64(%rbp)
	movq	$0, -72(%rbp)
	movq	(%r15), %rdi
	movq	%rbx, %rsi
	callq	_of_graph_get_next_endpoint
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_23
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	%rbx, %rdi
	callq	_of_graph_get_remote_port_parent
	testq	%rax, %rax
	je	LBB0_13
## %bb.14:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	%rax, %r12
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%r13, %rcx
	movq	32(%rax), %r13
	movq	40(%rax), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movl	(%rcx), %esi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	movl	$12, %edx
	callq	_devm_kcalloc
	movq	%rax, -8(%r13,%r14,4)
	testq	%rax, %rax
	je	LBB0_25
## %bb.15:                              ##   in Loop: Header=BB0_11 Depth=1
	incl	(%r13,%r14,4)
	movq	_V4L2_INPUT_TYPE_CAMERA@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, (%rax,%r14,2)
	movq	_V4L2_STD_ALL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -4(%rax,%r14,2)
	movq	_V4L2_IN_CAP_STD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -8(%rax,%r14,2)
	movq	%rbx, %rdi
	callq	_of_fwnode_handle
	movl	%eax, %edi
	leaq	-72(%rbp), %rsi
	callq	_v4l2_fwnode_endpoint_parse
	testl	%eax, %eax
	jne	LBB0_16
## %bb.17:                              ##   in Loop: Header=BB0_11 Depth=1
	movl	-68(%rbp), %ecx
	movq	%r15, %rdi
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_dev_dbg
	movl	-72(%rbp), %eax
	movq	_V4L2_MBUS_HSYNC_ACTIVE_HIGH@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_11 Depth=1
	movl	$1, -16(%r13,%r14,4)
LBB0_19:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	movq	_V4L2_MBUS_VSYNC_ACTIVE_HIGH@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_21
## %bb.20:                              ##   in Loop: Header=BB0_11 Depth=1
	movl	$1, -12(%r13,%r14,4)
LBB0_21:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	%r15, %rdi
	leaq	L_.str.3(%rip), %rsi
	movq	%r12, %rdx
	xorl	%eax, %eax
	callq	_dev_dbg
	movl	(%r12), %eax
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx,%rbx,4)
	movq	%r12, %rdi
	callq	_of_fwnode_handle
	movq	_vpif_obj@GOTPCREL(%rip), %rdi
	movl	%eax, %esi
	movl	$4, %edx
	callq	_v4l2_async_notifier_add_fwnode_subdev
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	24(%rcx), %rcx
	movl	%eax, (%rcx,%rbx,4)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	jne	LBB0_25
## %bb.22:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	%r12, %rdi
	callq	_of_node_put
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	incq	%rdx
	movq	_VPIF_CAPTURE_NUM_CHANNELS@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	addq	$6, %r14
	movq	%rdx, %rcx
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	cmpq	%rax, %rdx
	jb	LBB0_11
	jmp	LBB0_23
LBB0_5:
	movq	8(%r15), %rbx
	jmp	LBB0_27
LBB0_9:
	xorl	%edi, %edi
	jmp	LBB0_24
LBB0_25:
	movq	%r12, %rdi
	callq	_of_node_put
	movq	%rbx, %rdi
	callq	_of_node_put
	movq	_vpif_obj@GOTPCREL(%rip), %rdi
	callq	_v4l2_async_notifier_cleanup
LBB0_26:
	xorl	%ebx, %ebx
	jmp	LBB0_27
LBB0_13:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_dev_dbg
	jmp	LBB0_23
LBB0_16:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_err
	movq	%r12, %rdi
	callq	_of_node_put
LBB0_23:
	movq	%rbx, %rdi
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
LBB0_24:
	callq	_of_node_put
	movq	(%rbx), %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%ecx, (%rax)
	movl	%ecx, 8(%rbx)
	leaq	L_.str.4(%rip), %rax
	movq	%rax, 16(%rbx)
LBB0_27:
	movq	%rbx, %rax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_vpif_obj,4,2                   ## @vpif_obj
	.comm	_CONFIG_OF,4,2                  ## @CONFIG_OF
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_VPIF_CAPTURE_NUM_CHANNELS,4,2  ## @VPIF_CAPTURE_NUM_CHANNELS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Remote device at %pOF not found\n"

	.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.1:                               ## @.str.1
	.asciz	"Could not parse the endpoint\n"

L_.str.2:                               ## @.str.2
	.asciz	"Endpoint %pOF, bus_width = %d\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.3:                               ## @.str.3
	.asciz	"Remote device %pOF found\n"

L_.str.4:                               ## @.str.4
	.asciz	"DA850/OMAP-L138 Video Capture"

	.no_dead_strip	_vpif_capture_get_pdata
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vpif_capture_get_pdata
_vpif_capture_get_pdata:                ; @vpif_capture_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	x20, x0
Lloh0:
	adrp	x0, _vpif_obj@GOTPAGE
Lloh1:
	ldr	x0, [x0, _vpif_obj@GOTPAGEOFF]
	bl	_v4l2_async_notifier_init
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_3
; %bb.1:
	ldr	x8, [x8]
	cbz	x8, LBB0_3
; %bb.2:
	str	x8, [x20]
LBB0_3:
Lloh2:
	adrp	x8, _CONFIG_OF@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CONFIG_OF@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_IS_ENABLED
	cbz	w0, LBB0_19
; %bb.4:
	ldr	x8, [x20]
	cbz	x8, LBB0_19
; %bb.5:
Lloh5:
	adrp	x21, _GFP_KERNEL@GOTPAGE
Lloh6:
	ldr	x21, [x21, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w2, [x21]
	mov	x0, x20
	mov	w1, #48
	bl	_devm_kzalloc
	mov	x19, x0
	cbz	x0, LBB0_20
; %bb.6:
Lloh7:
	adrp	x28, _VPIF_CAPTURE_NUM_CHANNELS@GOTPAGE
Lloh8:
	ldr	x28, [x28, _VPIF_CAPTURE_NUM_CHANNELS@GOTPAGEOFF]
	ldr	w1, [x28]
	ldr	w3, [x21]
	mov	x0, x20
	mov	w2, #4
	bl	_devm_kcalloc
	str	x0, [x19, #40]
	cbz	x0, LBB0_23
; %bb.7:
	ldr	w8, [x28]
	cbz	w8, LBB0_21
; %bb.8:
	mov	x22, #0
	mov	x23, #0
	mov	x26, #0
	mov	x21, #0
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	str	wzr, [sp, #24]
	str	xzr, [sp, #16]
	ldr	x0, [x20]
	mov	x1, x21
	bl	_of_graph_get_next_endpoint
	mov	x21, x0
	cbz	x0, LBB0_26
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x21
	bl	_of_graph_get_remote_port_parent
	cbz	x0, LBB0_24
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x25, x0
	ldp	x27, x24, [x19, #32]
	ldr	w1, [x28]
Lloh9:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh11:
	ldr	w3, [x8]
	mov	x0, x20
	mov	w2, #12
	bl	_devm_kcalloc
	add	x8, x27, x23
	str	x0, [x8, #8]
	cbz	x0, LBB0_22
; %bb.12:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w9, [x8, #16]
	add	w9, w9, #1
	str	w9, [x8, #16]
Lloh12:
	adrp	x8, _V4L2_INPUT_TYPE_CAMERA@GOTPAGE
Lloh13:
	ldr	x8, [x8, _V4L2_INPUT_TYPE_CAMERA@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	add	x9, x0, x22
	str	w8, [x9, #8]
Lloh15:
	adrp	x8, _V4L2_STD_ALL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _V4L2_STD_ALL@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	str	w8, [x9, #4]
Lloh18:
	adrp	x8, _V4L2_IN_CAP_STD@GOTPAGE
Lloh19:
	ldr	x8, [x8, _V4L2_IN_CAP_STD@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	str	w8, [x9]
	mov	x0, x21
	bl	_of_fwnode_handle
	add	x1, sp, #16
	bl	_v4l2_fwnode_endpoint_parse
	cbnz	w0, LBB0_25
; %bb.13:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w8, [sp, #20]
	str	x8, [sp]
	mov	x0, x20
Lloh21:
	adrp	x1, l_.str.2@PAGE
Lloh22:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x21
	bl	_dev_dbg
	ldr	w8, [sp, #16]
Lloh23:
	adrp	x9, _V4L2_MBUS_HSYNC_ACTIVE_HIGH@GOTPAGE
Lloh24:
	ldr	x9, [x9, _V4L2_MBUS_HSYNC_ACTIVE_HIGH@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	w9, #1
	str	w9, [x27, x23]
LBB0_15:                                ;   in Loop: Header=BB0_9 Depth=1
Lloh26:
	adrp	x9, _V4L2_MBUS_VSYNC_ACTIVE_HIGH@GOTPAGE
Lloh27:
	ldr	x9, [x9, _V4L2_MBUS_VSYNC_ACTIVE_HIGH@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_9 Depth=1
	add	x8, x27, x23
	mov	w9, #1
	str	w9, [x8, #4]
LBB0_17:                                ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x20
Lloh29:
	adrp	x1, l_.str.3@PAGE
Lloh30:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x2, x25
	bl	_dev_dbg
	ldr	w8, [x25]
	lsl	x27, x26, #2
	str	w8, [x24, x27]
	mov	x0, x25
	bl	_of_fwnode_handle
	mov	x1, x0
Lloh31:
	adrp	x0, _vpif_obj@GOTPAGE
Lloh32:
	ldr	x0, [x0, _vpif_obj@GOTPAGEOFF]
	mov	w2, #4
	bl	_v4l2_async_notifier_add_fwnode_subdev
	ldr	x8, [x19, #24]
	str	w0, [x8, x27]
	bl	_IS_ERR
	cbnz	x0, LBB0_22
; %bb.18:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x25
	bl	_of_node_put
	add	x26, x26, #1
	ldr	w8, [x28]
	add	x23, x23, #24
	add	x22, x22, #12
	cmp	x26, x8
	b.lo	LBB0_9
	b	LBB0_26
LBB0_19:
	ldr	x19, [x20, #8]
LBB0_20:
	mov	x0, x19
	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_21:
	mov	w26, #0
	mov	x21, #0
	b	LBB0_26
LBB0_22:
	mov	x0, x25
	bl	_of_node_put
	mov	x0, x21
	bl	_of_node_put
Lloh33:
	adrp	x0, _vpif_obj@GOTPAGE
Lloh34:
	ldr	x0, [x0, _vpif_obj@GOTPAGEOFF]
	bl	_v4l2_async_notifier_cleanup
LBB0_23:
	mov	x19, #0
	b	LBB0_20
LBB0_24:
Lloh35:
	adrp	x1, l_.str@PAGE
Lloh36:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, x21
	bl	_dev_dbg
	b	LBB0_26
LBB0_25:
Lloh37:
	adrp	x1, l_.str.1@PAGE
Lloh38:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	mov	x0, x25
	bl	_of_node_put
LBB0_26:
	mov	x0, x21
	bl	_of_node_put
	ldr	x8, [x19]
	str	w26, [x8]
	str	w26, [x19, #8]
Lloh39:
	adrp	x8, l_.str.4@PAGE
Lloh40:
	add	x8, x8, l_.str.4@PAGEOFF
	str	x8, [x19, #16]
	b	LBB0_20
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpAdd	Lloh39, Lloh40
	.cfi_endproc
                                        ; -- End function
	.comm	_vpif_obj,4,2                   ; @vpif_obj
	.comm	_CONFIG_OF,4,2                  ; @CONFIG_OF
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_VPIF_CAPTURE_NUM_CHANNELS,4,2  ; @VPIF_CAPTURE_NUM_CHANNELS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Remote device at %pOF not found\n"

	.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.1:                               ; @.str.1
	.asciz	"Could not parse the endpoint\n"

l_.str.2:                               ; @.str.2
	.asciz	"Endpoint %pOF, bus_width = %d\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.3:                               ; @.str.3
	.asciz	"Remote device %pOF found\n"

l_.str.4:                               ; @.str.4
	.asciz	"DA850/OMAP-L138 Video Capture"

	.no_dead_strip	_vpif_capture_get_pdata
.subsections_via_symbols
