	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function csi2_init_entities
_csi2_init_entities:                    ## @csi2_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
	movq	80(%rdi), %r15
	leaq	8(%rdi), %r14
	movq	_csi2_ops@GOTPCREL(%rip), %rsi
	callq	_v4l2_subdev_init
	movq	_csi2_internal_ops@GOTPCREL(%rip), %rax
	movq	%rax, 24(%rbx)
	movl	20(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	movl	$4, %edx
	callq	_strscpy
	movl	$65536, (%rbx)                  ## imm = 0x10000
	movq	%rbx, %rdi
	movq	%rbx, %rsi
	callq	_v4l2_set_subdevdata
	movq	_V4L2_SUBDEV_FL_HAS_DEVNODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 16(%rbx)
	movq	_MEDIA_PAD_FL_SOURCE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_CSI2_PAD_SOURCE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%eax, (%r15,%rcx,4)
	movq	_MEDIA_PAD_FL_SINK@GOTPCREL(%rip), %rax
	movq	_MEDIA_PAD_FL_MUST_CONNECT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_CSI2_PAD_SINK@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%ecx, (%r15,%rax,4)
	movq	_csi2_media_ops@GOTPCREL(%rip), %rax
	movq	%rax, 8(%rbx)
	movq	_CSI2_PADS_NUM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movq	%r15, %rdx
	callq	_media_entity_pads_init
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	xorl	%r15d, %r15d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_csi2_init_formats
	movq	_V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leaq	32(%rbx), %r12
	movl	%eax, 64(%rbx)
	movq	_csi2_ispvideo_ops@GOTPCREL(%rip), %rax
	movq	%rax, 56(%rbx)
	movabsq	$4294967328, %rax               ## imm = 0x100000020
	movq	%rax, 32(%rbx)
	movl	$131040, 40(%rbx)               ## imm = 0x1FFE0
	movl	72(%rbx), %eax
	movl	%eax, 48(%rbx)
	movl	$16777216, %edi                 ## imm = 0x1000000
	callq	_PAGE_ALIGN
                                        ## kill: def $eax killed $eax def $rax
	leal	(%rax,%rax,2), %eax
	movl	%eax, 44(%rbx)
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %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, %r15d
	jmp	LBB0_4
LBB0_1:
	movl	%eax, %r15d
LBB0_4:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_csi2_ops,4,2                   ## @csi2_ops
	.comm	_csi2_internal_ops,4,2          ## @csi2_internal_ops
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"OMAP3 ISP CSI2a"

	.comm	_V4L2_SUBDEV_FL_HAS_DEVNODE,4,2 ## @V4L2_SUBDEV_FL_HAS_DEVNODE
	.comm	_MEDIA_PAD_FL_SOURCE,4,2        ## @MEDIA_PAD_FL_SOURCE
	.comm	_CSI2_PAD_SOURCE,8,3            ## @CSI2_PAD_SOURCE
	.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	_CSI2_PAD_SINK,8,3              ## @CSI2_PAD_SINK
	.comm	_csi2_media_ops,4,2             ## @csi2_media_ops
	.comm	_CSI2_PADS_NUM,4,2              ## @CSI2_PADS_NUM
	.comm	_V4L2_BUF_TYPE_VIDEO_CAPTURE,4,2 ## @V4L2_BUF_TYPE_VIDEO_CAPTURE
	.comm	_csi2_ispvideo_ops,4,2          ## @csi2_ispvideo_ops
L_.str.1:                               ## @.str.1
	.asciz	"CSI2a"

	.no_dead_strip	_csi2_init_entities
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function csi2_init_entities
lCPI0_0:
	.long	32                              ; 0x20
	.long	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_csi2_init_entities:                    ; @csi2_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
	ldr	x21, [x0, #80]
Lloh0:
	adrp	x1, _csi2_ops@GOTPAGE
Lloh1:
	ldr	x1, [x1, _csi2_ops@GOTPAGEOFF]
	bl	_v4l2_subdev_init
Lloh2:
	adrp	x8, _csi2_internal_ops@GOTPAGE
Lloh3:
	ldr	x8, [x8, _csi2_internal_ops@GOTPAGEOFF]
	str	x8, [x19, #24]
	ldr	w0, [x19, #20]
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	mov	w2, #4
	bl	_strscpy
	mov	w8, #65536
	str	w8, [x19]
	mov	x0, x19
	mov	x1, x19
	bl	_v4l2_set_subdevdata
Lloh6:
	adrp	x8, _csi2_media_ops@GOTPAGE
Lloh7:
	ldr	x8, [x8, _csi2_media_ops@GOTPAGEOFF]
	mov	x20, x19
	str	x8, [x20, #8]!
Lloh8:
	adrp	x8, _V4L2_SUBDEV_FL_HAS_DEVNODE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _V4L2_SUBDEV_FL_HAS_DEVNODE@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	ldr	w9, [x20, #8]
	orr	w8, w9, w8
	str	w8, [x20, #8]
Lloh11:
	adrp	x8, _MEDIA_PAD_FL_SOURCE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MEDIA_PAD_FL_SOURCE@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	adrp	x9, _CSI2_PAD_SOURCE@GOTPAGE
Lloh15:
	ldr	x9, [x9, _CSI2_PAD_SOURCE@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	str	w8, [x21, x9, lsl #2]
Lloh17:
	adrp	x8, _MEDIA_PAD_FL_SINK@GOTPAGE
Lloh18:
	ldr	x8, [x8, _MEDIA_PAD_FL_SINK@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
Lloh20:
	adrp	x9, _MEDIA_PAD_FL_MUST_CONNECT@GOTPAGE
Lloh21:
	ldr	x9, [x9, _MEDIA_PAD_FL_MUST_CONNECT@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh23:
	adrp	x9, _CSI2_PAD_SINK@GOTPAGE
Lloh24:
	ldr	x9, [x9, _CSI2_PAD_SINK@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	str	w8, [x21, x9, lsl #2]
Lloh26:
	adrp	x8, _CSI2_PADS_NUM@GOTPAGE
Lloh27:
	ldr	x8, [x8, _CSI2_PADS_NUM@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, x21
	bl	_media_entity_pads_init
	tbnz	w0, #31, LBB0_3
; %bb.1:
	mov	x0, x19
	mov	x1, #0
	bl	_csi2_init_formats
Lloh29:
	adrp	x8, _V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPAGE
Lloh30:
	ldr	x8, [x8, _V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
Lloh32:
	adrp	x9, lCPI0_0@PAGE
Lloh33:
	ldr	d0, [x9, lCPI0_0@PAGEOFF]
	str	d0, [x19, #32]!
Lloh34:
	adrp	x9, _csi2_ispvideo_ops@GOTPAGE
Lloh35:
	ldr	x9, [x9, _csi2_ispvideo_ops@GOTPAGEOFF]
	str	w8, [x19, #32]
	str	x9, [x19, #24]
	mov	w8, #131040
	str	w8, [x19, #8]
	ldr	w8, [x19, #40]
	str	w8, [x19, #16]
	mov	w0, #16777216
	bl	_PAGE_ALIGN
	add	w8, w0, w0, lsl #1
	str	w8, [x19, #12]
Lloh36:
	adrp	x1, l_.str.1@PAGE
Lloh37:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_omap3isp_video_init
	tbnz	w0, #31, LBB0_4
; %bb.2:
	mov	w21, #0
	b	LBB0_5
LBB0_3:
	mov	x21, x0
	b	LBB0_5
LBB0_4:
	mov	x21, x0
	mov	x0, x20
	bl	_media_entity_cleanup
LBB0_5:
	mov	x0, x21
	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	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpAdrp	Lloh32, Lloh34
	.loh AdrpLdr	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_csi2_ops,4,2                   ; @csi2_ops
	.comm	_csi2_internal_ops,4,2          ; @csi2_internal_ops
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"OMAP3 ISP CSI2a"

	.comm	_V4L2_SUBDEV_FL_HAS_DEVNODE,4,2 ; @V4L2_SUBDEV_FL_HAS_DEVNODE
	.comm	_MEDIA_PAD_FL_SOURCE,4,2        ; @MEDIA_PAD_FL_SOURCE
	.comm	_CSI2_PAD_SOURCE,8,3            ; @CSI2_PAD_SOURCE
	.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	_CSI2_PAD_SINK,8,3              ; @CSI2_PAD_SINK
	.comm	_csi2_media_ops,4,2             ; @csi2_media_ops
	.comm	_CSI2_PADS_NUM,4,2              ; @CSI2_PADS_NUM
	.comm	_V4L2_BUF_TYPE_VIDEO_CAPTURE,4,2 ; @V4L2_BUF_TYPE_VIDEO_CAPTURE
	.comm	_csi2_ispvideo_ops,4,2          ; @csi2_ispvideo_ops
l_.str.1:                               ; @.str.1
	.asciz	"CSI2a"

	.no_dead_strip	_csi2_init_entities
.subsections_via_symbols
