	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function camss_init_subdevices
_camss_init_subdevices:                 ## @camss_init_subdevices
	.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	%rdi, %r15
	movq	(%rdi), %rax
	movq	_CAMSS_8x16@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	_vfe_res_8x16@GOTPCREL(%rip), %rcx
	movq	_ispif_res_8x16@GOTPCREL(%rip), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	_csid_res_8x16@GOTPCREL(%rip), %rdx
	movq	_csiphy_res_8x16@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_2:
	movq	_CAMSS_8x96@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_24
## %bb.3:
	movq	_vfe_res_8x96@GOTPCREL(%rip), %rcx
	movq	_ispif_res_8x96@GOTPCREL(%rip), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	_csid_res_8x96@GOTPCREL(%rip), %rdx
	movq	_csiphy_res_8x96@GOTPCREL(%rip), %rax
LBB0_4:
	movq	(%rcx), %rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	(%rdx), %rcx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	cmpl	$0, 8(%r15)
	je	LBB0_9
## %bb.5:
	movq	(%rax), %r13
	xorl	%r14d, %r14d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	48(%r15), %rsi
	addq	%r14, %rsi
	leaq	(%r14,%r13), %rdx
	movq	%r15, %rdi
	movl	%ebx, %ecx
	callq	_msm_csiphy_subdev_init
	testl	%eax, %eax
	js	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	incq	%rbx
	movl	8(%r15), %eax
	addq	$4, %r14
	cmpq	%rax, %rbx
	jb	LBB0_6
LBB0_9:
	cmpl	$0, 12(%r15)
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	je	LBB0_16
## %bb.10:
	xorl	%ebx, %ebx
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	40(%r15), %rsi
	addq	%rbx, %rsi
	leaq	(%rbx,%r13), %rdx
	movq	%r15, %rdi
	movl	%r14d, %ecx
	callq	_msm_csid_subdev_init
	testl	%eax, %eax
	js	LBB0_12
## %bb.15:                              ##   in Loop: Header=BB0_11 Depth=1
	incq	%r14
	movl	12(%r15), %eax
	addq	$4, %rbx
	cmpq	%rax, %r14
	jb	LBB0_11
LBB0_16:
	leaq	32(%r15), %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_msm_ispif_subdev_init
	testl	%eax, %eax
	js	LBB0_25
## %bb.17:
	cmpl	$0, 16(%r15)
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	je	LBB0_22
## %bb.18:
	xorl	%ebx, %ebx
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	movq	24(%r15), %rsi
	addq	%rbx, %rsi
	leaq	(%rbx,%r13), %rdx
	movq	%r15, %rdi
	movl	%r14d, %ecx
	callq	_msm_vfe_subdev_init
	testl	%eax, %eax
	js	LBB0_20
## %bb.21:                              ##   in Loop: Header=BB0_19 Depth=1
	incq	%r14
	movl	16(%r15), %eax
	addq	$4, %rbx
	cmpq	%rax, %r14
	jb	LBB0_19
LBB0_22:
	xorl	%r12d, %r12d
	jmp	LBB0_23
LBB0_24:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_23
LBB0_7:
	movl	%eax, %r12d
	movl	20(%r15), %edi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	jmp	LBB0_14
LBB0_12:
	movl	%eax, %r12d
	movl	20(%r15), %edi
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_13
LBB0_25:
	movl	%eax, %r12d
	movl	20(%r15), %edi
	leaq	L_.str.2(%rip), %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_23
LBB0_20:
	movl	%eax, %r12d
	movl	20(%r15), %edi
	leaq	L_.str.3(%rip), %rsi
LBB0_13:
	movl	%r14d, %edx
LBB0_14:
	movl	%r12d, %ecx
	xorl	%eax, %eax
	callq	_dev_err
LBB0_23:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CAMSS_8x16,8,3                 ## @CAMSS_8x16
	.comm	_csiphy_res_8x16,8,3            ## @csiphy_res_8x16
	.comm	_csid_res_8x16,8,3              ## @csid_res_8x16
	.comm	_ispif_res_8x16,4,2             ## @ispif_res_8x16
	.comm	_vfe_res_8x16,8,3               ## @vfe_res_8x16
	.comm	_CAMSS_8x96,8,3                 ## @CAMSS_8x96
	.comm	_csiphy_res_8x96,8,3            ## @csiphy_res_8x96
	.comm	_csid_res_8x96,8,3              ## @csid_res_8x96
	.comm	_ispif_res_8x96,4,2             ## @ispif_res_8x96
	.comm	_vfe_res_8x96,8,3               ## @vfe_res_8x96
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to init csiphy%d sub-device: %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"Failed to init csid%d sub-device: %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"Failed to init ispif sub-device: %d\n"

L_.str.3:                               ## @.str.3
	.asciz	"Fail to init vfe%d sub-device: %d\n"

	.no_dead_strip	_camss_init_subdevices
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function camss_init_subdevices
_camss_init_subdevices:                 ; @camss_init_subdevices
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _CAMSS_8x16@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CAMSS_8x16@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _vfe_res_8x16@GOTPAGE
Lloh4:
	ldr	x8, [x8, _vfe_res_8x16@GOTPAGEOFF]
Lloh5:
	adrp	x20, _ispif_res_8x16@GOTPAGE
Lloh6:
	ldr	x20, [x20, _ispif_res_8x16@GOTPAGEOFF]
Lloh7:
	adrp	x10, _csid_res_8x16@GOTPAGE
Lloh8:
	ldr	x10, [x10, _csid_res_8x16@GOTPAGEOFF]
Lloh9:
	adrp	x9, _csiphy_res_8x16@GOTPAGE
Lloh10:
	ldr	x9, [x9, _csiphy_res_8x16@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:
Lloh11:
	adrp	x9, _CAMSS_8x96@GOTPAGE
Lloh12:
	ldr	x9, [x9, _CAMSS_8x96@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_18
; %bb.3:
Lloh14:
	adrp	x8, _vfe_res_8x96@GOTPAGE
Lloh15:
	ldr	x8, [x8, _vfe_res_8x96@GOTPAGEOFF]
Lloh16:
	adrp	x20, _ispif_res_8x96@GOTPAGE
Lloh17:
	ldr	x20, [x20, _ispif_res_8x96@GOTPAGEOFF]
Lloh18:
	adrp	x10, _csid_res_8x96@GOTPAGE
Lloh19:
	ldr	x10, [x10, _csid_res_8x96@GOTPAGEOFF]
Lloh20:
	adrp	x9, _csiphy_res_8x96@GOTPAGE
Lloh21:
	ldr	x9, [x9, _csiphy_res_8x96@GOTPAGEOFF]
LBB0_4:
	ldr	x23, [x8]
	ldr	x24, [x10]
	ldr	w8, [x19, #8]
	cbz	w8, LBB0_8
; %bb.5:
	mov	x25, #0
	mov	x22, #0
	ldr	x26, [x9]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #48]
	add	x1, x8, x25
	add	x2, x26, x25
	mov	x0, x19
	mov	x3, x22
	bl	_msm_csiphy_subdev_init
	tbnz	w0, #31, LBB0_19
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x22, x22, #1
	ldr	w8, [x19, #8]
	add	x25, x25, #4
	cmp	x22, x8
	b.lo	LBB0_6
LBB0_8:
	ldr	w8, [x19, #12]
	cbz	w8, LBB0_12
; %bb.9:
	mov	x25, #0
	mov	x21, #0
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #40]
	add	x1, x8, x25
	add	x2, x24, x25
	mov	x0, x19
	mov	x3, x21
	bl	_msm_csid_subdev_init
	tbnz	w0, #31, LBB0_20
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	add	x21, x21, #1
	ldr	w8, [x19, #12]
	add	x25, x25, #4
	cmp	x21, x8
	b.lo	LBB0_10
LBB0_12:
	add	x0, x19, #32
	mov	x1, x20
	bl	_msm_ispif_subdev_init
	tbnz	w0, #31, LBB0_21
; %bb.13:
	ldr	w8, [x19, #16]
	cbz	w8, LBB0_17
; %bb.14:
	mov	x22, #0
	mov	x20, #0
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #24]
	add	x1, x8, x22
	add	x2, x23, x22
	mov	x0, x19
	mov	x3, x20
	bl	_msm_vfe_subdev_init
	tbnz	w0, #31, LBB0_22
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=1
	add	x20, x20, #1
	ldr	w8, [x19, #16]
	add	x22, x22, #4
	cmp	x20, x8
	b.lo	LBB0_15
LBB0_17:
	mov	w21, #0
	b	LBB0_23
LBB0_18:
Lloh22:
	adrp	x8, _EINVAL@GOTPAGE
Lloh23:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_23
LBB0_19:
	mov	x21, x0
	ldr	w0, [x19, #20]
	str	x21, [sp]
Lloh25:
	adrp	x1, l_.str@PAGE
Lloh26:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x22
	bl	_dev_err
	b	LBB0_23
LBB0_20:
	mov	x22, x0
	ldr	w0, [x19, #20]
	str	x22, [sp]
Lloh27:
	adrp	x1, l_.str.1@PAGE
Lloh28:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x21
	bl	_dev_err
	mov	x21, x22
	b	LBB0_23
LBB0_21:
	mov	x21, x0
	ldr	w0, [x19, #20]
Lloh29:
	adrp	x1, l_.str.2@PAGE
Lloh30:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x21
	bl	_dev_err
	b	LBB0_23
LBB0_22:
	mov	x21, x0
	ldr	w0, [x19, #20]
	str	x21, [sp]
Lloh31:
	adrp	x1, l_.str.3@PAGE
Lloh32:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x2, x20
	bl	_dev_err
                                        ; kill: def $w21 killed $w21 killed $x21 def $x21
LBB0_23:
	mov	x0, x21
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_CAMSS_8x16,8,3                 ; @CAMSS_8x16
	.comm	_csiphy_res_8x16,8,3            ; @csiphy_res_8x16
	.comm	_csid_res_8x16,8,3              ; @csid_res_8x16
	.comm	_ispif_res_8x16,4,2             ; @ispif_res_8x16
	.comm	_vfe_res_8x16,8,3               ; @vfe_res_8x16
	.comm	_CAMSS_8x96,8,3                 ; @CAMSS_8x96
	.comm	_csiphy_res_8x96,8,3            ; @csiphy_res_8x96
	.comm	_csid_res_8x96,8,3              ; @csid_res_8x96
	.comm	_ispif_res_8x96,4,2             ; @ispif_res_8x96
	.comm	_vfe_res_8x96,8,3               ; @vfe_res_8x96
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to init csiphy%d sub-device: %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"Failed to init csid%d sub-device: %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"Failed to init ispif sub-device: %d\n"

l_.str.3:                               ; @.str.3
	.asciz	"Fail to init vfe%d sub-device: %d\n"

	.no_dead_strip	_camss_init_subdevices
.subsections_via_symbols
