	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ccdc_init_entities
_ccdc_init_entities:                    ## @ccdc_init_entities
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	leaq	48(%rdi), %r15
	movq	40(%rdi), %r12
	leaq	72(%rdi), %r14
	movq	_CCDC_INPUT_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rdi)
	movq	_ccdc_v4l2_ops@GOTPCREL(%rip), %rsi
	movq	%r15, %rdi
	callq	_v4l2_subdev_init
	movq	_ccdc_v4l2_internal_ops@GOTPCREL(%rip), %rax
	movq	%rax, 64(%rbx)
	movl	56(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	movl	$4, %edx
	callq	_strscpy
	movl	$65536, 48(%rbx)                ## imm = 0x10000
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_v4l2_set_subdevdata
	movq	_V4L2_SUBDEV_FL_HAS_EVENTS@GOTPCREL(%rip), %rax
	movq	_V4L2_SUBDEV_FL_HAS_DEVNODE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	orl	%ecx, 52(%rbx)
	movq	_MEDIA_PAD_FL_SINK@GOTPCREL(%rip), %rax
	movq	_MEDIA_PAD_FL_MUST_CONNECT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_CCDC_PAD_SINK@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%ecx, (%r12,%rax,4)
	movq	_MEDIA_PAD_FL_SOURCE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_CCDC_PAD_SOURCE_VP@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%eax, (%r12,%rcx,4)
	movq	_CCDC_PAD_SOURCE_OF@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%eax, (%r12,%rcx,4)
	movq	_ccdc_media_ops@GOTPCREL(%rip), %rax
	movq	%rax, 72(%rbx)
	movq	_CCDC_PADS_NUM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movq	%r12, %rdx
	callq	_media_entity_pads_init
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	xorl	%r12d, %r12d
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_ccdc_init_formats
	movq	_V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movq	_ccdc_video_ops@GOTPCREL(%rip), %rax
	movq	%rax, 16(%rbx)
	movq	%rbx, %rdi
	callq	_to_isp_device
	movl	%eax, 8(%rbx)
	movl	$16777216, %edi                 ## imm = 0x1000000
	callq	_PAGE_ALIGN
                                        ## kill: def $eax killed $eax def $rax
	leal	(%rax,%rax,2), %eax
	movl	%eax, (%rbx)
	movl	$32, 4(%rbx)
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_omap3isp_video_init
	testl	%eax, %eax
	jns	LBB0_4
## %bb.3:
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_media_entity_cleanup
	movl	%ebx, %r12d
	jmp	LBB0_4
LBB0_1:
	movl	%eax, %r12d
LBB0_4:
	movl	%r12d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CCDC_INPUT_NONE,4,2            ## @CCDC_INPUT_NONE
	.comm	_ccdc_v4l2_ops,4,2              ## @ccdc_v4l2_ops
	.comm	_ccdc_v4l2_internal_ops,4,2     ## @ccdc_v4l2_internal_ops
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"OMAP3 ISP CCDC"

	.comm	_V4L2_SUBDEV_FL_HAS_EVENTS,4,2  ## @V4L2_SUBDEV_FL_HAS_EVENTS
	.comm	_V4L2_SUBDEV_FL_HAS_DEVNODE,4,2 ## @V4L2_SUBDEV_FL_HAS_DEVNODE
	.comm	_MEDIA_PAD_FL_SINK,4,2          ## @MEDIA_PAD_FL_SINK
	.comm	_MEDIA_PAD_FL_MUST_CONNECT,4,2  ## @MEDIA_PAD_FL_MUST_CONNECT
	.comm	_CCDC_PAD_SINK,8,3              ## @CCDC_PAD_SINK
	.comm	_MEDIA_PAD_FL_SOURCE,8,3        ## @MEDIA_PAD_FL_SOURCE
	.comm	_CCDC_PAD_SOURCE_VP,8,3         ## @CCDC_PAD_SOURCE_VP
	.comm	_CCDC_PAD_SOURCE_OF,8,3         ## @CCDC_PAD_SOURCE_OF
	.comm	_ccdc_media_ops,4,2             ## @ccdc_media_ops
	.comm	_CCDC_PADS_NUM,4,2              ## @CCDC_PADS_NUM
	.comm	_V4L2_BUF_TYPE_VIDEO_CAPTURE,4,2 ## @V4L2_BUF_TYPE_VIDEO_CAPTURE
	.comm	_ccdc_video_ops,4,2             ## @ccdc_video_ops
L_.str.1:                               ## @.str.1
	.asciz	"CCDC"

	.no_dead_strip	_ccdc_init_entities
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ccdc_init_entities
_ccdc_init_entities:                    ; @ccdc_init_entities
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x19, x0
	add	x21, x0, #48
	ldr	x22, [x0, #40]
Lloh0:
	adrp	x8, _CCDC_INPUT_NONE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CCDC_INPUT_NONE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x0, #32]
Lloh3:
	adrp	x1, _ccdc_v4l2_ops@GOTPAGE
Lloh4:
	ldr	x1, [x1, _ccdc_v4l2_ops@GOTPAGEOFF]
	mov	x0, x21
	bl	_v4l2_subdev_init
Lloh5:
	adrp	x8, _ccdc_v4l2_internal_ops@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ccdc_v4l2_internal_ops@GOTPAGEOFF]
	str	x8, [x19, #64]
	ldr	w0, [x19, #56]
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	mov	w2, #4
	bl	_strscpy
	mov	w8, #65536
	str	w8, [x19, #48]
	mov	x0, x21
	mov	x1, x19
	bl	_v4l2_set_subdevdata
Lloh9:
	adrp	x8, _ccdc_media_ops@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ccdc_media_ops@GOTPAGEOFF]
	mov	x20, x19
	str	x8, [x20, #72]!
Lloh11:
	adrp	x8, _V4L2_SUBDEV_FL_HAS_EVENTS@GOTPAGE
Lloh12:
	ldr	x8, [x8, _V4L2_SUBDEV_FL_HAS_EVENTS@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	adrp	x9, _V4L2_SUBDEV_FL_HAS_DEVNODE@GOTPAGE
Lloh15:
	ldr	x9, [x9, _V4L2_SUBDEV_FL_HAS_DEVNODE@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldur	w9, [x20, #-20]
	orr	w8, w8, w9
	stur	w8, [x20, #-20]
Lloh17:
	adrp	x8, _MEDIA_PAD_FL_SINK@GOTPAGE
Lloh18:
	ldr	x8, [x8, _MEDIA_PAD_FL_SINK@GOTPAGEOFF]
Lloh19:
	adrp	x9, _MEDIA_PAD_FL_MUST_CONNECT@GOTPAGE
Lloh20:
	ldr	x9, [x9, _MEDIA_PAD_FL_MUST_CONNECT@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
Lloh22:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh23:
	adrp	x9, _CCDC_PAD_SINK@GOTPAGE
Lloh24:
	ldr	x9, [x9, _CCDC_PAD_SINK@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	str	w8, [x22, x9, lsl #2]
Lloh26:
	adrp	x8, _MEDIA_PAD_FL_SOURCE@GOTPAGE
Lloh27:
	ldr	x8, [x8, _MEDIA_PAD_FL_SOURCE@GOTPAGEOFF]
Lloh28:
	adrp	x9, _CCDC_PAD_SOURCE_VP@GOTPAGE
Lloh29:
	ldr	x9, [x9, _CCDC_PAD_SOURCE_VP@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
Lloh31:
	ldr	x9, [x9]
	str	w8, [x22, x9, lsl #2]
Lloh32:
	adrp	x9, _CCDC_PAD_SOURCE_OF@GOTPAGE
Lloh33:
	ldr	x9, [x9, _CCDC_PAD_SOURCE_OF@GOTPAGEOFF]
Lloh34:
	ldr	x9, [x9]
	str	w8, [x22, x9, lsl #2]
Lloh35:
	adrp	x8, _CCDC_PADS_NUM@GOTPAGE
Lloh36:
	ldr	x8, [x8, _CCDC_PADS_NUM@GOTPAGEOFF]
Lloh37:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, x22
	bl	_media_entity_pads_init
	tbnz	w0, #31, LBB0_3
; %bb.1:
	mov	x0, x21
	mov	x1, #0
	bl	_ccdc_init_formats
Lloh38:
	adrp	x8, _V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPAGE
Lloh39:
	ldr	x8, [x8, _V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPAGEOFF]
Lloh40:
	ldr	w8, [x8]
	str	w8, [x19, #24]
Lloh41:
	adrp	x8, _ccdc_video_ops@GOTPAGE
Lloh42:
	ldr	x8, [x8, _ccdc_video_ops@GOTPAGEOFF]
	str	x8, [x19, #16]
	mov	x0, x19
	bl	_to_isp_device
	str	w0, [x19, #8]
	mov	w0, #16777216
	bl	_PAGE_ALIGN
	add	w8, w0, w0, lsl #1
	mov	w9, #32
	stp	w8, w9, [x19]
Lloh43:
	adrp	x1, l_.str.1@PAGE
Lloh44:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_omap3isp_video_init
	tbnz	w0, #31, LBB0_4
; %bb.2:
	mov	w22, #0
	b	LBB0_5
LBB0_3:
	mov	x22, x0
	b	LBB0_5
LBB0_4:
	mov	x22, x0
	mov	x0, x20
	bl	_media_entity_cleanup
LBB0_5:
	mov	x0, x22
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh30
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh21
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpLdrGot	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.cfi_endproc
                                        ; -- End function
	.comm	_CCDC_INPUT_NONE,4,2            ; @CCDC_INPUT_NONE
	.comm	_ccdc_v4l2_ops,4,2              ; @ccdc_v4l2_ops
	.comm	_ccdc_v4l2_internal_ops,4,2     ; @ccdc_v4l2_internal_ops
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"OMAP3 ISP CCDC"

	.comm	_V4L2_SUBDEV_FL_HAS_EVENTS,4,2  ; @V4L2_SUBDEV_FL_HAS_EVENTS
	.comm	_V4L2_SUBDEV_FL_HAS_DEVNODE,4,2 ; @V4L2_SUBDEV_FL_HAS_DEVNODE
	.comm	_MEDIA_PAD_FL_SINK,4,2          ; @MEDIA_PAD_FL_SINK
	.comm	_MEDIA_PAD_FL_MUST_CONNECT,4,2  ; @MEDIA_PAD_FL_MUST_CONNECT
	.comm	_CCDC_PAD_SINK,8,3              ; @CCDC_PAD_SINK
	.comm	_MEDIA_PAD_FL_SOURCE,8,3        ; @MEDIA_PAD_FL_SOURCE
	.comm	_CCDC_PAD_SOURCE_VP,8,3         ; @CCDC_PAD_SOURCE_VP
	.comm	_CCDC_PAD_SOURCE_OF,8,3         ; @CCDC_PAD_SOURCE_OF
	.comm	_ccdc_media_ops,4,2             ; @ccdc_media_ops
	.comm	_CCDC_PADS_NUM,4,2              ; @CCDC_PADS_NUM
	.comm	_V4L2_BUF_TYPE_VIDEO_CAPTURE,4,2 ; @V4L2_BUF_TYPE_VIDEO_CAPTURE
	.comm	_ccdc_video_ops,4,2             ; @ccdc_video_ops
l_.str.1:                               ; @.str.1
	.asciz	"CCDC"

	.no_dead_strip	_ccdc_init_entities
.subsections_via_symbols
