	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_msm_ispif_register_entities    ## -- Begin function msm_ispif_register_entities
	.p2align	4, 0x90
_msm_ispif_register_entities:           ## @msm_ispif_register_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	%rdi, %rbx
	callq	_to_device
	cmpl	$0, (%rbx)
	jle	LBB0_13
## %bb.1:
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	xorl	%r14d, %r14d
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rbx), %rbx
	leaq	(%rbx,%r12), %r13
	movq	32(%rbx,%r12), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	movq	_ispif_v4l2_ops@GOTPCREL(%rip), %rsi
	callq	_v4l2_subdev_init
	movq	_ispif_v4l2_internal_ops@GOTPCREL(%rip), %rax
	movq	%rax, 24(%rbx,%r12)
	movq	_V4L2_SUBDEV_FL_HAS_DEVNODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 20(%rbx,%r12)
	movl	16(%rbx,%r12), %r15d
	movl	%r15d, %edi
	callq	_ARRAY_SIZE
	movq	_MSM_ISPIF_NAME@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%r15d, %edi
	movl	%eax, %esi
	leaq	L_.str(%rip), %rdx
	movl	%r14d, %r8d
	callq	_snprintf
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rsi
	addq	%r12, %rsi
	movq	%r13, %rdi
	callq	_v4l2_set_subdevdata
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_ispif_init_formats
	testl	%eax, %eax
	js	LBB0_3
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_MEDIA_PAD_FL_SINK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_MSM_ISPIF_PAD_SINK@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movl	%eax, (%rdx,%rcx,4)
	movq	_MEDIA_PAD_FL_SOURCE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_MSM_ISPIF_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
	movl	%eax, 8(%rbx,%r12)
	movq	_ispif_media_ops@GOTPCREL(%rip), %rax
	movq	%rax, (%rbx,%r12)
	movq	_MSM_ISPIF_PADS_NUM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_media_entity_pads_init
	testl	%eax, %eax
	js	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	callq	_v4l2_device_register_subdev
	testl	%eax, %eax
	js	LBB0_8
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=1
	incq	%r14
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movslq	(%rbx), %rax
	addq	$40, %r12
	cmpq	%rax, %r14
	jl	LBB0_2
LBB0_13:
	xorl	%r15d, %r15d
	jmp	LBB0_14
LBB0_3:
	movl	%eax, %r15d
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_4
LBB0_6:
	movl	%eax, %r15d
	leaq	L_.str.2(%rip), %rsi
LBB0_4:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%r15d, %edx
	callq	_dev_err
	testl	%r14d, %r14d
	jne	LBB0_10
	jmp	LBB0_14
LBB0_8:
	movl	%eax, %r15d
	leaq	L_.str.3(%rip), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %edx
	callq	_dev_err
	movq	%r13, %rdi
	callq	_media_entity_cleanup
	testl	%r14d, %r14d
	je	LBB0_14
LBB0_10:
	addq	$-40, %r12
	incq	%r14
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r13), %rbx
	addq	%r12, %rbx
	movq	%rbx, %rdi
	callq	_v4l2_device_unregister_subdev
	movq	%rbx, %rdi
	callq	_media_entity_cleanup
	decq	%r14
	addq	$-40, %r12
	cmpq	$1, %r14
	ja	LBB0_11
LBB0_14:
	movl	%r15d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ispif_v4l2_ops,4,2             ## @ispif_v4l2_ops
	.comm	_ispif_v4l2_internal_ops,4,2    ## @ispif_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_ISPIF_NAME,8,3             ## @MSM_ISPIF_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_ISPIF_PAD_SINK,8,3         ## @MSM_ISPIF_PAD_SINK
	.comm	_MEDIA_PAD_FL_SOURCE,4,2        ## @MEDIA_PAD_FL_SOURCE
	.comm	_MSM_ISPIF_PAD_SRC,8,3          ## @MSM_ISPIF_PAD_SRC
	.comm	_MEDIA_ENT_F_IO_V4L,4,2         ## @MEDIA_ENT_F_IO_V4L
	.comm	_ispif_media_ops,4,2            ## @ispif_media_ops
	.comm	_MSM_ISPIF_PADS_NUM,4,2         ## @MSM_ISPIF_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_ispif_register_entities    ; -- Begin function msm_ispif_register_entities
	.p2align	2
_msm_ispif_register_entities:           ; @msm_ispif_register_entities
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x22, x1
	mov	x19, x0
	bl	_to_device
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.1:
	str	x0, [sp, #8]                    ; 8-byte Folded Spill
	mov	x20, #0
	mov	x21, #-40
Lloh0:
	adrp	x23, _MSM_ISPIF_PADS_NUM@GOTPAGE
Lloh1:
	ldr	x23, [x23, _MSM_ISPIF_PADS_NUM@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x24, [x19, #8]
	add	x28, x24, x21
	add	x26, x28, #40
	ldr	x27, [x28, #72]
	mov	x0, x26
Lloh2:
	adrp	x1, _ispif_v4l2_ops@GOTPAGE
Lloh3:
	ldr	x1, [x1, _ispif_v4l2_ops@GOTPAGEOFF]
	bl	_v4l2_subdev_init
Lloh4:
	adrp	x8, _ispif_v4l2_internal_ops@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ispif_v4l2_internal_ops@GOTPAGEOFF]
	str	x8, [x28, #64]
Lloh6:
	adrp	x8, _V4L2_SUBDEV_FL_HAS_DEVNODE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _V4L2_SUBDEV_FL_HAS_DEVNODE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ldp	w25, w9, [x28, #56]
	orr	w8, w9, w8
	str	w8, [x28, #60]
	mov	x0, x25
	bl	_ARRAY_SIZE
	mov	x1, x0
Lloh9:
	adrp	x8, _MSM_ISPIF_NAME@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MSM_ISPIF_NAME@GOTPAGEOFF]
Lloh11:
	ldr	x3, [x8]
	mov	x0, x25
Lloh12:
	adrp	x2, l_.str@PAGE
Lloh13:
	add	x2, x2, l_.str@PAGEOFF
	mov	x4, x20
	bl	_snprintf
	ldr	x8, [x19, #8]
	add	x8, x8, x21
	add	x1, x8, #40
	mov	x0, x26
	bl	_v4l2_set_subdevdata
	mov	x0, x26
	mov	x1, #0
	bl	_ispif_init_formats
	tbnz	w0, #31, LBB0_7
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
Lloh14:
	adrp	x8, _MEDIA_PAD_FL_SINK@GOTPAGE
Lloh15:
	ldr	x8, [x8, _MEDIA_PAD_FL_SINK@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
Lloh17:
	adrp	x9, _MSM_ISPIF_PAD_SINK@GOTPAGE
Lloh18:
	ldr	x9, [x9, _MSM_ISPIF_PAD_SINK@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	str	w8, [x27, x9, lsl #2]
Lloh20:
	adrp	x8, _MEDIA_PAD_FL_SOURCE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _MEDIA_PAD_FL_SOURCE@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
Lloh23:
	adrp	x9, _MSM_ISPIF_PAD_SRC@GOTPAGE
Lloh24:
	ldr	x9, [x9, _MSM_ISPIF_PAD_SRC@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	str	w8, [x27, x9, lsl #2]
Lloh26:
	adrp	x8, _MEDIA_ENT_F_IO_V4L@GOTPAGE
Lloh27:
	ldr	x8, [x8, _MEDIA_ENT_F_IO_V4L@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
Lloh29:
	adrp	x9, _ispif_media_ops@GOTPAGE
Lloh30:
	ldr	x9, [x9, _ispif_media_ops@GOTPAGEOFF]
	str	x9, [x28, #40]!
	str	w8, [x28, #8]
	ldr	w1, [x23]
	mov	x0, x28
	mov	x2, x27
	bl	_media_entity_pads_init
	tbnz	w0, #31, LBB0_8
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x22
	mov	x1, x26
	bl	_v4l2_device_register_subdev
	tbnz	w0, #31, LBB0_10
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x20, x20, #1
	ldrsw	x8, [x19]
	add	x21, x21, #40
	cmp	x20, x8
	b.lt	LBB0_2
LBB0_6:
	mov	w25, #0
	b	LBB0_13
LBB0_7:
	mov	x25, x0
Lloh31:
	adrp	x1, l_.str.1@PAGE
Lloh32:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_9
LBB0_8:
	mov	x25, x0
Lloh33:
	adrp	x1, l_.str.2@PAGE
Lloh34:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_9:
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
	mov	x2, x25
	bl	_dev_err
	cbnz	w20, LBB0_11
	b	LBB0_13
LBB0_10:
	mov	x25, x0
Lloh35:
	adrp	x1, l_.str.3@PAGE
Lloh36:
	add	x1, x1, l_.str.3@PAGEOFF
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
	mov	x2, x25
	bl	_dev_err
	add	x8, x24, x21
	add	x0, x8, #40
	bl	_media_entity_cleanup
	cbz	w20, LBB0_13
LBB0_11:
	add	x22, x20, #1
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	add	x20, x8, x21
	mov	x0, x20
	bl	_v4l2_device_unregister_subdev
	mov	x0, x20
	bl	_media_entity_cleanup
	sub	x22, x22, #1
	sub	x21, x21, #40
	cmp	x22, #1
	b.hi	LBB0_12
LBB0_13:
	mov	x0, x25
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh29, Lloh30
	.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 AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.comm	_ispif_v4l2_ops,4,2             ; @ispif_v4l2_ops
	.comm	_ispif_v4l2_internal_ops,4,2    ; @ispif_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_ISPIF_NAME,8,3             ; @MSM_ISPIF_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_ISPIF_PAD_SINK,8,3         ; @MSM_ISPIF_PAD_SINK
	.comm	_MEDIA_PAD_FL_SOURCE,4,2        ; @MEDIA_PAD_FL_SOURCE
	.comm	_MSM_ISPIF_PAD_SRC,8,3          ; @MSM_ISPIF_PAD_SRC
	.comm	_MEDIA_ENT_F_IO_V4L,4,2         ; @MEDIA_ENT_F_IO_V4L
	.comm	_ispif_media_ops,4,2            ; @ispif_media_ops
	.comm	_MSM_ISPIF_PADS_NUM,4,2         ; @MSM_ISPIF_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
