	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_msm_csiphy_register_entity     ## -- Begin function msm_csiphy_register_entity
	.p2align	4, 0x90
_msm_csiphy_register_entity:            ## @msm_csiphy_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
	pushq	%rax
	.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, %rbx
	leaq	24(%rdi), %r13
	movq	8(%rdi), %rax
	movq	16(%rdi), %r12
	movq	(%rax), %r14
	movq	_csiphy_v4l2_ops@GOTPCREL(%rip), %rsi
	movq	%r13, %rdi
	callq	_v4l2_subdev_init
	movq	_csiphy_v4l2_internal_ops@GOTPCREL(%rip), %rax
	movq	%rax, 48(%rbx)
	movq	_V4L2_SUBDEV_FL_HAS_DEVNODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 44(%rbx)
	movl	40(%rbx), %r15d
	movl	%r15d, %edi
	callq	_ARRAY_SIZE
	movq	_MSM_CSIPHY_NAME@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rbx), %r8d
	leaq	L_.str(%rip), %rdx
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_snprintf
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_v4l2_set_subdevdata
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_csiphy_init_formats
	testl	%eax, %eax
	js	LBB0_1
## %bb.3:
	movq	_MEDIA_PAD_FL_SINK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_MSM_CSIPHY_PAD_SINK@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%eax, (%r12,%rcx,4)
	movq	_MEDIA_PAD_FL_SOURCE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_MSM_CSIPHY_PAD_SRC@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%eax, (%r12,%rcx,4)
	movq	_MEDIA_ENT_F_IO_V4L@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rbx)
	movq	_csiphy_media_ops@GOTPCREL(%rip), %rax
	movq	%rax, 24(%rbx)
	movq	_MSM_CSIPHY_PADS_NUM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movq	%r12, %rdx
	callq	_media_entity_pads_init
	testl	%eax, %eax
	js	LBB0_4
## %bb.5:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	callq	_v4l2_device_register_subdev
	movl	%eax, %r15d
	testl	%eax, %eax
	jns	LBB0_7
## %bb.6:
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	movl	%r15d, %edx
	callq	_dev_err
	movq	%r13, %rdi
	callq	_media_entity_cleanup
	jmp	LBB0_7
LBB0_1:
	movl	%eax, %r15d
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_2
LBB0_4:
	movl	%eax, %r15d
	leaq	L_.str.2(%rip), %rsi
LBB0_2:
	movq	%r14, %rdi
	movl	%r15d, %edx
	callq	_dev_err
LBB0_7:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_csiphy_v4l2_ops,4,2            ## @csiphy_v4l2_ops
	.comm	_csiphy_v4l2_internal_ops,4,2   ## @csiphy_v4l2_internal_ops
	.comm	_V4L2_SUBDEV_FL_HAS_DEVNODE,4,2 ## @V4L2_SUBDEV_FL_HAS_DEVNODE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s%d"

	.comm	_MSM_CSIPHY_NAME,8,3            ## @MSM_CSIPHY_NAME
L_.str.1:                               ## @.str.1
	.asciz	"Failed to init format: %d\n"

	.comm	_MEDIA_PAD_FL_SINK,4,2          ## @MEDIA_PAD_FL_SINK
	.comm	_MSM_CSIPHY_PAD_SINK,8,3        ## @MSM_CSIPHY_PAD_SINK
	.comm	_MEDIA_PAD_FL_SOURCE,4,2        ## @MEDIA_PAD_FL_SOURCE
	.comm	_MSM_CSIPHY_PAD_SRC,8,3         ## @MSM_CSIPHY_PAD_SRC
	.comm	_MEDIA_ENT_F_IO_V4L,4,2         ## @MEDIA_ENT_F_IO_V4L
	.comm	_csiphy_media_ops,4,2           ## @csiphy_media_ops
	.comm	_MSM_CSIPHY_PADS_NUM,4,2        ## @MSM_CSIPHY_PADS_NUM
L_.str.2:                               ## @.str.2
	.asciz	"Failed to init media entity: %d\n"

L_.str.3:                               ## @.str.3
	.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_csiphy_register_entity     ; -- Begin function msm_csiphy_register_entity
	.p2align	2
_msm_csiphy_register_entity:            ; @msm_csiphy_register_entity
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x21, x1
	mov	x23, x0
	add	x19, x0, #24
	ldp	x8, x22, [x0, #8]
	ldr	x20, [x8]
Lloh0:
	adrp	x1, _csiphy_v4l2_ops@GOTPAGE
Lloh1:
	ldr	x1, [x1, _csiphy_v4l2_ops@GOTPAGEOFF]
	mov	x0, x19
	bl	_v4l2_subdev_init
Lloh2:
	adrp	x8, _csiphy_v4l2_internal_ops@GOTPAGE
Lloh3:
	ldr	x8, [x8, _csiphy_v4l2_internal_ops@GOTPAGEOFF]
Lloh4:
	adrp	x9, _V4L2_SUBDEV_FL_HAS_DEVNODE@GOTPAGE
Lloh5:
	ldr	x9, [x9, _V4L2_SUBDEV_FL_HAS_DEVNODE@GOTPAGEOFF]
	str	x8, [x23, #48]
Lloh6:
	ldr	w8, [x9]
	ldp	w24, w9, [x23, #40]
	orr	w8, w9, w8
	str	w8, [x23, #44]
	mov	x0, x24
	bl	_ARRAY_SIZE
	mov	x1, x0
Lloh7:
	adrp	x8, _MSM_CSIPHY_NAME@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MSM_CSIPHY_NAME@GOTPAGEOFF]
Lloh9:
	ldr	x3, [x8]
	ldr	w4, [x23]
Lloh10:
	adrp	x2, l_.str@PAGE
Lloh11:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x24
	bl	_snprintf
	mov	x0, x19
	mov	x1, x23
	bl	_v4l2_set_subdevdata
	mov	x0, x19
	mov	x1, #0
	bl	_csiphy_init_formats
	tbnz	w0, #31, LBB0_4
; %bb.1:
Lloh12:
	adrp	x8, _MEDIA_PAD_FL_SINK@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MEDIA_PAD_FL_SINK@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _MSM_CSIPHY_PAD_SINK@GOTPAGE
Lloh16:
	ldr	x9, [x9, _MSM_CSIPHY_PAD_SINK@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	str	w8, [x22, x9, lsl #2]
Lloh18:
	adrp	x8, _MEDIA_PAD_FL_SOURCE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _MEDIA_PAD_FL_SOURCE@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
Lloh21:
	adrp	x9, _MSM_CSIPHY_PAD_SRC@GOTPAGE
Lloh22:
	ldr	x9, [x9, _MSM_CSIPHY_PAD_SRC@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	str	w8, [x22, x9, lsl #2]
Lloh24:
	adrp	x8, _MEDIA_ENT_F_IO_V4L@GOTPAGE
Lloh25:
	ldr	x8, [x8, _MEDIA_ENT_F_IO_V4L@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	str	w8, [x23, #32]
Lloh27:
	adrp	x8, _csiphy_media_ops@GOTPAGE
Lloh28:
	ldr	x8, [x8, _csiphy_media_ops@GOTPAGEOFF]
	str	x8, [x23, #24]
Lloh29:
	adrp	x8, _MSM_CSIPHY_PADS_NUM@GOTPAGE
Lloh30:
	ldr	x8, [x8, _MSM_CSIPHY_PADS_NUM@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x22
	bl	_media_entity_pads_init
	tbnz	w0, #31, LBB0_5
; %bb.2:
	mov	x0, x21
	mov	x1, x19
	bl	_v4l2_device_register_subdev
	mov	x24, x0
	tbz	w0, #31, LBB0_7
; %bb.3:
Lloh32:
	adrp	x1, l_.str.3@PAGE
Lloh33:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	mov	x2, x24
	bl	_dev_err
	mov	x0, x19
	bl	_media_entity_cleanup
	b	LBB0_7
LBB0_4:
	mov	x24, x0
Lloh34:
	adrp	x1, l_.str.1@PAGE
Lloh35:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_6
LBB0_5:
	mov	x24, x0
Lloh36:
	adrp	x1, l_.str.2@PAGE
Lloh37:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_6:
	mov	x0, x20
	mov	x2, x24
	bl	_dev_err
LBB0_7:
	mov	x0, x24
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.comm	_csiphy_v4l2_ops,4,2            ; @csiphy_v4l2_ops
	.comm	_csiphy_v4l2_internal_ops,4,2   ; @csiphy_v4l2_internal_ops
	.comm	_V4L2_SUBDEV_FL_HAS_DEVNODE,4,2 ; @V4L2_SUBDEV_FL_HAS_DEVNODE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s%d"

	.comm	_MSM_CSIPHY_NAME,8,3            ; @MSM_CSIPHY_NAME
l_.str.1:                               ; @.str.1
	.asciz	"Failed to init format: %d\n"

	.comm	_MEDIA_PAD_FL_SINK,4,2          ; @MEDIA_PAD_FL_SINK
	.comm	_MSM_CSIPHY_PAD_SINK,8,3        ; @MSM_CSIPHY_PAD_SINK
	.comm	_MEDIA_PAD_FL_SOURCE,4,2        ; @MEDIA_PAD_FL_SOURCE
	.comm	_MSM_CSIPHY_PAD_SRC,8,3         ; @MSM_CSIPHY_PAD_SRC
	.comm	_MEDIA_ENT_F_IO_V4L,4,2         ; @MEDIA_ENT_F_IO_V4L
	.comm	_csiphy_media_ops,4,2           ; @csiphy_media_ops
	.comm	_MSM_CSIPHY_PADS_NUM,4,2        ; @MSM_CSIPHY_PADS_NUM
l_.str.2:                               ; @.str.2
	.asciz	"Failed to init media entity: %d\n"

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

.subsections_via_symbols
