	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_msm_csid_register_entity       ## -- Begin function msm_csid_register_entity
	.p2align	4, 0x90
_msm_csid_register_entity:              ## @msm_csid_register_entity
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r13
	leaq	8(%rdi), %r12
	movq	64(%rdi), %rax
	movq	72(%rdi), %rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	(%rax), %r14
	movq	_csid_v4l2_ops@GOTPCREL(%rip), %rsi
	movq	%r12, %rdi
	callq	_v4l2_subdev_init
	movq	_csid_v4l2_internal_ops@GOTPCREL(%rip), %rax
	movq	%rax, 48(%r13)
	movq	_V4L2_SUBDEV_FL_HAS_DEVNODE@GOTPCREL(%rip), %rax
	movq	_V4L2_SUBDEV_FL_HAS_EVENTS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	orl	%ecx, 8(%r13)
	movl	40(%r13), %ebx
	movl	%ebx, %edi
	callq	_ARRAY_SIZE
	movq	_MSM_CSID_NAME@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	60(%r13), %r8d
	leaq	L_.str(%rip), %rdx
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_snprintf
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_v4l2_set_subdevdata
	movq	%r13, %rdi
	movl	$1, %esi
	callq	_v4l2_ctrl_handler_init
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movq	_V4L2_CID_TEST_PATTERN@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_csid_test_pattern_menu@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_ARRAY_SIZE
                                        ## kill: def $eax killed $eax def $rax
	leal	-1(%rax), %ecx
	movl	(%r15), %eax
	movl	%eax, (%rsp)
	movq	_csid_ctrl_ops@GOTPCREL(%rip), %rsi
	movq	%r13, %rdi
	movl	%ebx, %edx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_v4l2_ctrl_new_std_menu_items
	movl	%eax, 56(%r13)
	movl	(%r13), %edx
	testl	%edx, %edx
	je	LBB0_4
## %bb.3:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movl	(%r13), %r15d
	jmp	LBB0_11
LBB0_1:
	movl	%eax, %r15d
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_dev_err
	jmp	LBB0_12
LBB0_4:
	movq	%r13, 32(%r13)
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_csid_init_formats
	testl	%eax, %eax
	js	LBB0_5
## %bb.7:
	movq	_MEDIA_PAD_FL_SINK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_MSM_CSID_PAD_SINK@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movl	%eax, (%rdx,%rcx,4)
	movq	_MEDIA_PAD_FL_SOURCE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_MSM_CSID_PAD_SRC@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%eax, (%rdx,%rcx,4)
	movq	_MEDIA_ENT_F_IO_V4L@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leaq	16(%r13), %rbx
	movl	%eax, 24(%r13)
	movq	_csid_media_ops@GOTPCREL(%rip), %rax
	movq	%rax, 16(%r13)
	movq	_MSM_CSID_PADS_NUM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_media_entity_pads_init
	testl	%eax, %eax
	js	LBB0_8
## %bb.9:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	callq	_v4l2_device_register_subdev
	xorl	%r15d, %r15d
	testl	%eax, %eax
	jns	LBB0_12
## %bb.10:
	movl	%eax, %r12d
	leaq	L_.str.5(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_dev_err
	movq	%rbx, %rdi
	callq	_media_entity_cleanup
	movl	%r12d, %r15d
	jmp	LBB0_11
LBB0_5:
	movl	%eax, %r15d
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_6
LBB0_8:
	movl	%eax, %r15d
	leaq	L_.str.4(%rip), %rsi
LBB0_6:
	movq	%r14, %rdi
	movl	%r15d, %edx
	callq	_dev_err
LBB0_11:
	movq	%r13, %rdi
	callq	_v4l2_ctrl_handler_free
LBB0_12:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_csid_v4l2_ops,4,2              ## @csid_v4l2_ops
	.comm	_csid_v4l2_internal_ops,4,2     ## @csid_v4l2_internal_ops
	.comm	_V4L2_SUBDEV_FL_HAS_DEVNODE,4,2 ## @V4L2_SUBDEV_FL_HAS_DEVNODE
	.comm	_V4L2_SUBDEV_FL_HAS_EVENTS,4,2  ## @V4L2_SUBDEV_FL_HAS_EVENTS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s%d"

	.comm	_MSM_CSID_NAME,8,3              ## @MSM_CSID_NAME
L_.str.1:                               ## @.str.1
	.asciz	"Failed to init ctrl handler: %d\n"

	.comm	_csid_ctrl_ops,4,2              ## @csid_ctrl_ops
	.comm	_V4L2_CID_TEST_PATTERN,4,2      ## @V4L2_CID_TEST_PATTERN
	.comm	_csid_test_pattern_menu,4,2     ## @csid_test_pattern_menu
L_.str.2:                               ## @.str.2
	.asciz	"Failed to init ctrl: %d\n"

L_.str.3:                               ## @.str.3
	.asciz	"Failed to init format: %d\n"

	.comm	_MEDIA_PAD_FL_SINK,4,2          ## @MEDIA_PAD_FL_SINK
	.comm	_MSM_CSID_PAD_SINK,8,3          ## @MSM_CSID_PAD_SINK
	.comm	_MEDIA_PAD_FL_SOURCE,4,2        ## @MEDIA_PAD_FL_SOURCE
	.comm	_MSM_CSID_PAD_SRC,8,3           ## @MSM_CSID_PAD_SRC
	.comm	_MEDIA_ENT_F_IO_V4L,4,2         ## @MEDIA_ENT_F_IO_V4L
	.comm	_csid_media_ops,4,2             ## @csid_media_ops
	.comm	_MSM_CSID_PADS_NUM,4,2          ## @MSM_CSID_PADS_NUM
L_.str.4:                               ## @.str.4
	.asciz	"Failed to init media entity: %d\n"

L_.str.5:                               ## @.str.5
	.asciz	"Failed to register subdev: %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_msm_csid_register_entity       ; -- Begin function msm_csid_register_entity
	.p2align	2
_msm_csid_register_entity:              ; @msm_csid_register_entity
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x21, x1
	mov	x19, x0
	add	x22, x0, #8
	ldp	x8, x23, [x0, #64]
	ldr	x20, [x8]
Lloh0:
	adrp	x1, _csid_v4l2_ops@GOTPAGE
Lloh1:
	ldr	x1, [x1, _csid_v4l2_ops@GOTPAGEOFF]
	mov	x0, x22
	bl	_v4l2_subdev_init
Lloh2:
	adrp	x8, _csid_v4l2_internal_ops@GOTPAGE
Lloh3:
	ldr	x8, [x8, _csid_v4l2_internal_ops@GOTPAGEOFF]
	str	x8, [x19, #48]
Lloh4:
	adrp	x8, _V4L2_SUBDEV_FL_HAS_DEVNODE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _V4L2_SUBDEV_FL_HAS_DEVNODE@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
Lloh7:
	adrp	x9, _V4L2_SUBDEV_FL_HAS_EVENTS@GOTPAGE
Lloh8:
	ldr	x9, [x9, _V4L2_SUBDEV_FL_HAS_EVENTS@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	w9, [x19, #8]
	orr	w8, w8, w9
	str	w8, [x19, #8]
	ldr	w24, [x19, #40]
	mov	x0, x24
	bl	_ARRAY_SIZE
	mov	x1, x0
Lloh10:
	adrp	x8, _MSM_CSID_NAME@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MSM_CSID_NAME@GOTPAGEOFF]
Lloh12:
	ldr	x3, [x8]
	ldr	w4, [x19, #60]
Lloh13:
	adrp	x2, l_.str@PAGE
Lloh14:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x24
	bl	_snprintf
	mov	x0, x22
	mov	x1, x19
	bl	_v4l2_set_subdevdata
	mov	x0, x19
	mov	w1, #1
	bl	_v4l2_ctrl_handler_init
	tbnz	w0, #31, LBB0_3
; %bb.1:
Lloh15:
	adrp	x8, _V4L2_CID_TEST_PATTERN@GOTPAGE
Lloh16:
	ldr	x8, [x8, _V4L2_CID_TEST_PATTERN@GOTPAGEOFF]
Lloh17:
	ldr	w24, [x8]
Lloh18:
	adrp	x25, _csid_test_pattern_menu@GOTPAGE
Lloh19:
	ldr	x25, [x25, _csid_test_pattern_menu@GOTPAGEOFF]
	ldr	w0, [x25]
	bl	_ARRAY_SIZE
	sub	w3, w0, #1
	ldr	w6, [x25]
Lloh20:
	adrp	x1, _csid_ctrl_ops@GOTPAGE
Lloh21:
	ldr	x1, [x1, _csid_ctrl_ops@GOTPAGEOFF]
	mov	x0, x19
	mov	x2, x24
	mov	w4, #0
	mov	w5, #0
	bl	_v4l2_ctrl_new_std_menu_items
	str	w0, [x19, #56]
	ldr	w2, [x19]
	cbz	w2, LBB0_4
; %bb.2:
Lloh22:
	adrp	x1, l_.str.2@PAGE
Lloh23:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	ldr	w24, [x19]
	b	LBB0_12
LBB0_3:
	mov	x24, x0
Lloh24:
	adrp	x1, l_.str.1@PAGE
Lloh25:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x2, x24
	bl	_dev_err
	b	LBB0_13
LBB0_4:
	str	x19, [x19, #32]
	mov	x0, x22
	mov	x1, #0
	bl	_csid_init_formats
	tbnz	w0, #31, LBB0_8
; %bb.5:
Lloh26:
	adrp	x8, _MEDIA_PAD_FL_SINK@GOTPAGE
Lloh27:
	ldr	x8, [x8, _MEDIA_PAD_FL_SINK@GOTPAGEOFF]
Lloh28:
	adrp	x9, _MSM_CSID_PAD_SINK@GOTPAGE
Lloh29:
	ldr	x9, [x9, _MSM_CSID_PAD_SINK@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
Lloh31:
	ldr	x9, [x9]
	str	w8, [x23, x9, lsl #2]
Lloh32:
	adrp	x8, _MEDIA_PAD_FL_SOURCE@GOTPAGE
Lloh33:
	ldr	x8, [x8, _MEDIA_PAD_FL_SOURCE@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
Lloh35:
	adrp	x9, _MSM_CSID_PAD_SRC@GOTPAGE
Lloh36:
	ldr	x9, [x9, _MSM_CSID_PAD_SRC@GOTPAGEOFF]
Lloh37:
	ldr	x9, [x9]
	str	w8, [x23, x9, lsl #2]
Lloh38:
	adrp	x8, _MEDIA_ENT_F_IO_V4L@GOTPAGE
Lloh39:
	ldr	x8, [x8, _MEDIA_ENT_F_IO_V4L@GOTPAGEOFF]
Lloh40:
	ldr	w8, [x8]
Lloh41:
	adrp	x9, _csid_media_ops@GOTPAGE
Lloh42:
	ldr	x9, [x9, _csid_media_ops@GOTPAGEOFF]
	mov	x25, x19
	str	x9, [x25, #16]!
	str	w8, [x25, #8]
Lloh43:
	adrp	x8, _MSM_CSID_PADS_NUM@GOTPAGE
Lloh44:
	ldr	x8, [x8, _MSM_CSID_PADS_NUM@GOTPAGEOFF]
Lloh45:
	ldr	w1, [x8]
	mov	x0, x25
	mov	x2, x23
	bl	_media_entity_pads_init
	tbnz	w0, #31, LBB0_9
; %bb.6:
	mov	x0, x21
	mov	x1, x22
	bl	_v4l2_device_register_subdev
	tbnz	w0, #31, LBB0_11
; %bb.7:
	mov	w24, #0
	b	LBB0_13
LBB0_8:
	mov	x24, x0
Lloh46:
	adrp	x1, l_.str.3@PAGE
Lloh47:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_10
LBB0_9:
	mov	x24, x0
Lloh48:
	adrp	x1, l_.str.4@PAGE
Lloh49:
	add	x1, x1, l_.str.4@PAGEOFF
LBB0_10:
	mov	x0, x20
	mov	x2, x24
	bl	_dev_err
	b	LBB0_12
LBB0_11:
	mov	x24, x0
Lloh50:
	adrp	x1, l_.str.5@PAGE
Lloh51:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x20
	mov	x2, x24
	bl	_dev_err
	mov	x0, x25
	bl	_media_entity_cleanup
LBB0_12:
	mov	x0, x19
	bl	_v4l2_ctrl_handler_free
LBB0_13:
	mov	x0, x24
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGot	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh30
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpAdd	Lloh48, Lloh49
	.loh AdrpAdd	Lloh50, Lloh51
	.cfi_endproc
                                        ; -- End function
	.comm	_csid_v4l2_ops,4,2              ; @csid_v4l2_ops
	.comm	_csid_v4l2_internal_ops,4,2     ; @csid_v4l2_internal_ops
	.comm	_V4L2_SUBDEV_FL_HAS_DEVNODE,4,2 ; @V4L2_SUBDEV_FL_HAS_DEVNODE
	.comm	_V4L2_SUBDEV_FL_HAS_EVENTS,4,2  ; @V4L2_SUBDEV_FL_HAS_EVENTS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s%d"

	.comm	_MSM_CSID_NAME,8,3              ; @MSM_CSID_NAME
l_.str.1:                               ; @.str.1
	.asciz	"Failed to init ctrl handler: %d\n"

	.comm	_csid_ctrl_ops,4,2              ; @csid_ctrl_ops
	.comm	_V4L2_CID_TEST_PATTERN,4,2      ; @V4L2_CID_TEST_PATTERN
	.comm	_csid_test_pattern_menu,4,2     ; @csid_test_pattern_menu
l_.str.2:                               ; @.str.2
	.asciz	"Failed to init ctrl: %d\n"

l_.str.3:                               ; @.str.3
	.asciz	"Failed to init format: %d\n"

	.comm	_MEDIA_PAD_FL_SINK,4,2          ; @MEDIA_PAD_FL_SINK
	.comm	_MSM_CSID_PAD_SINK,8,3          ; @MSM_CSID_PAD_SINK
	.comm	_MEDIA_PAD_FL_SOURCE,4,2        ; @MEDIA_PAD_FL_SOURCE
	.comm	_MSM_CSID_PAD_SRC,8,3           ; @MSM_CSID_PAD_SRC
	.comm	_MEDIA_ENT_F_IO_V4L,4,2         ; @MEDIA_ENT_F_IO_V4L
	.comm	_csid_media_ops,4,2             ; @csid_media_ops
	.comm	_MSM_CSID_PADS_NUM,4,2          ; @MSM_CSID_PADS_NUM
l_.str.4:                               ; @.str.4
	.asciz	"Failed to init media entity: %d\n"

l_.str.5:                               ; @.str.5
	.asciz	"Failed to register subdev: %d\n"

.subsections_via_symbols
