	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function camss_probe
_camss_probe:                           ## @camss_probe
	.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, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movl	$112, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %r12
	leaq	104(%rax), %rdi
	xorl	%esi, %esi
	callq	_atomic_set
	movq	%r14, 48(%r12)
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_platform_set_drvdata
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
	callq	_of_device_is_compatible
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movl	$1, %eax
	movl	$2, %esi
	movq	_CAMSS_8x16@GOTPCREL(%rip), %rdx
	movl	$2, %ecx
	jmp	LBB0_7
LBB0_5:
	movl	(%r14), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_of_device_is_compatible
	testq	%rax, %rax
	je	LBB0_37
## %bb.6:
	movl	$2, %eax
	movl	$4, %ecx
	movl	$3, %esi
	movq	_CAMSS_8x96@GOTPCREL(%rip), %rdx
LBB0_7:
	movq	(%rdx), %rdx
	movq	%rdx, (%r12)
	movl	%esi, 8(%r12)
	movl	%ecx, 12(%r12)
	movl	%eax, 16(%r12)
	movl	(%rbx), %ecx
	movq	%r14, %rdi
	movl	$1, %edx
	callq	_devm_kcalloc
	movq	%rax, 96(%r12)
	testq	%rax, %rax
	je	LBB0_1
## %bb.8:
	movl	12(%r12), %esi
	movl	(%rbx), %ecx
	movq	%r14, %rdi
	movl	$1, %edx
	callq	_devm_kcalloc
	movq	%rax, 88(%r12)
	testq	%rax, %rax
	je	LBB0_1
## %bb.9:
	movl	16(%r12), %esi
	movl	(%rbx), %ecx
	movq	%r14, %rdi
	movl	$1, %edx
	callq	_devm_kcalloc
	movq	%rax, 80(%r12)
	testq	%rax, %rax
	je	LBB0_1
## %bb.10:
	leaq	24(%r12), %r15
	movq	%r15, %rdi
	callq	_v4l2_async_notifier_init
	movq	%r12, %rdi
	callq	_camss_of_parse_ports
	movl	%eax, %r13d
	testl	%eax, %eax
	js	LBB0_11
## %bb.12:
	movq	%r12, %rdi
	callq	_camss_init_subdevices
	testl	%eax, %eax
	js	LBB0_13
## %bb.14:
	movq	%r14, %rdi
	movl	$-1, %esi
	callq	_dma_set_mask_and_coherent
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_20
## %bb.15:
	movq	48(%r12), %rax
	leaq	56(%r12), %rbx
	movq	%rax, 72(%r12)
	movl	64(%r12), %edi
	leaq	L_.str.2(%rip), %rsi
	movl	$4, %edx
	callq	_strscpy
	movq	_camss_media_ops@GOTPCREL(%rip), %rax
	movq	%rax, 56(%r12)
	movq	%rbx, %rdi
	callq	_media_device_init
	movq	%r12, %rsi
	addq	$32, %rsi
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, 32(%r12)
	movq	48(%r12), %rdi
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	callq	_v4l2_device_register
	testl	%eax, %eax
	js	LBB0_16
## %bb.17:
	movq	%r12, %rdi
	callq	_camss_register_entities
	testl	%eax, %eax
	js	LBB0_18
## %bb.21:
	testl	%r13d, %r13d
	je	LBB0_25
## %bb.22:
	movq	_camss_subdev_notifier_ops@GOTPCREL(%rip), %rax
	movq	%rax, (%r15)
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_v4l2_async_notifier_register
	testl	%eax, %eax
	je	LBB0_29
## %bb.23:
	movl	%eax, %ebx
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_24
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_36:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_37:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_11:
	movl	%r13d, %ebx
	jmp	LBB0_36
LBB0_13:
	movl	%eax, %ebx
	jmp	LBB0_20
LBB0_16:
	movl	%eax, %ebx
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_dev_err
	jmp	LBB0_20
LBB0_18:
	movl	%eax, %ebx
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	jmp	LBB0_19
LBB0_25:
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	callq	_v4l2_device_register_subdev_nodes
	testl	%eax, %eax
	js	LBB0_26
## %bb.27:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_media_device_register
	testl	%eax, %eax
	js	LBB0_28
LBB0_29:
	movq	(%r12), %rax
	movq	_CAMSS_8x96@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_35
## %bb.30:
	movq	48(%r12), %rdi
	movq	_PM_DOMAIN_VFE0@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rsi
	callq	_dev_pm_domain_attach_by_id
	movq	40(%r12), %rcx
	movq	(%rbx), %rdx
	movq	%rax, (%rcx,%rdx,8)
	movq	40(%r12), %rax
	movq	(%rax,%rdx,8), %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_33
## %bb.31:
	movq	40(%r12), %rax
	movq	(%rbx), %rcx
	jmp	LBB0_32
LBB0_26:
	movl	%eax, %ebx
	leaq	L_.str.5(%rip), %rsi
	jmp	LBB0_24
LBB0_28:
	movl	%eax, %ebx
	leaq	L_.str.6(%rip), %rsi
LBB0_24:
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_dev_err
	movq	%r12, %rdi
	callq	_camss_unregister_entities
LBB0_19:
	movq	%r13, %rdi
	callq	_v4l2_device_unregister
LBB0_20:
	movq	%r15, %rdi
	callq	_v4l2_async_notifier_cleanup
	jmp	LBB0_36
LBB0_33:
	movq	48(%r12), %rdi
	movq	_PM_DOMAIN_VFE1@GOTPCREL(%rip), %r15
	movq	(%r15), %rsi
	callq	_dev_pm_domain_attach_by_id
	movq	40(%r12), %rcx
	movq	(%r15), %rdx
	movq	%rax, (%rcx,%rdx,8)
	movq	40(%r12), %rax
	movq	(%rax,%rdx,8), %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_35
## %bb.34:
	movq	40(%r12), %rax
	movq	(%rbx), %rcx
	movq	(%rax,%rcx,8), %rdi
	movl	$1, %esi
	callq	_dev_pm_domain_detach
	movq	40(%r12), %rax
	movq	(%r15), %rcx
LBB0_32:
	movq	(%rax,%rcx,8), %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_35:
	movq	%r14, %rdi
	callq	_pm_runtime_enable
	xorl	%ebx, %ebx
	jmp	LBB0_36
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"qcom,msm8916-camss"

	.comm	_CAMSS_8x16,8,3                 ## @CAMSS_8x16
L_.str.1:                               ## @.str.1
	.asciz	"qcom,msm8996-camss"

	.comm	_CAMSS_8x96,8,3                 ## @CAMSS_8x96
	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.2:                               ## @.str.2
	.asciz	"Qualcomm Camera Subsystem"

	.comm	_camss_media_ops,4,2            ## @camss_media_ops
L_.str.3:                               ## @.str.3
	.asciz	"Failed to register V4L2 device: %d\n"

	.comm	_camss_subdev_notifier_ops,4,2  ## @camss_subdev_notifier_ops
L_.str.4:                               ## @.str.4
	.asciz	"Failed to register async subdev nodes: %d\n"

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

L_.str.6:                               ## @.str.6
	.asciz	"Failed to register media device: %d\n"

	.comm	_PM_DOMAIN_VFE0,8,3             ## @PM_DOMAIN_VFE0
	.comm	_PM_DOMAIN_VFE1,8,3             ## @PM_DOMAIN_VFE1
	.no_dead_strip	_camss_probe
.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 camss_probe
lCPI0_0:
	.long	3                               ; 0x3
	.long	4                               ; 0x4
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_camss_probe:                           ; @camss_probe
	.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	x20, x0
Lloh0:
	adrp	x21, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x21, [x21, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	w0, #112
	bl	_kzalloc
	cbz	x0, LBB0_16
; %bb.1:
	mov	x19, x0
	add	x0, x0, #104
	mov	w1, #0
	bl	_atomic_set
	str	x20, [x19, #48]
	mov	x0, x20
	mov	x1, x19
	bl	_platform_set_drvdata
	ldr	w0, [x20]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_of_device_is_compatible
	cbz	x0, LBB0_3
; %bb.2:
	movi.2s	v0, #2
	mov	w8, #1
Lloh4:
	adrp	x9, _CAMSS_8x16@GOTPAGE
Lloh5:
	ldr	x9, [x9, _CAMSS_8x16@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:
	ldr	w0, [x20]
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_of_device_is_compatible
	cbz	x0, LBB0_19
; %bb.4:
Lloh8:
	adrp	x8, lCPI0_0@PAGE
Lloh9:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	mov	w8, #2
Lloh10:
	adrp	x9, _CAMSS_8x96@GOTPAGE
Lloh11:
	ldr	x9, [x9, _CAMSS_8x96@GOTPAGEOFF]
LBB0_5:
	ldr	x9, [x9]
	str	x9, [x19]
	str	d0, [x19, #8]
	str	w8, [x19, #16]
	ldr	w3, [x21]
	fmov	w1, s0
	mov	x0, x20
	mov	w2, #1
	bl	_devm_kcalloc
	str	x0, [x19, #96]
	cbz	x0, LBB0_16
; %bb.6:
	ldr	w1, [x19, #12]
	ldr	w3, [x21]
	mov	x0, x20
	mov	w2, #1
	bl	_devm_kcalloc
	str	x0, [x19, #88]
	cbz	x0, LBB0_16
; %bb.7:
	ldr	w1, [x19, #16]
	ldr	w3, [x21]
	mov	x0, x20
	mov	w2, #1
	bl	_devm_kcalloc
	str	x0, [x19, #80]
	cbz	x0, LBB0_16
; %bb.8:
	add	x21, x19, #24
	mov	x0, x21
	bl	_v4l2_async_notifier_init
	mov	x0, x19
	bl	_camss_of_parse_ports
	mov	x24, x0
	tbnz	w0, #31, LBB0_18
; %bb.9:
	mov	x0, x19
	bl	_camss_init_subdevices
	tbnz	w0, #31, LBB0_20
; %bb.10:
	mov	x0, x20
	mov	w1, #-1
	bl	_dma_set_mask_and_coherent
	mov	x23, x0
	cbnz	w0, LBB0_32
; %bb.11:
	ldr	x8, [x19, #48]
	str	x8, [x19, #72]
	ldr	w0, [x19, #64]
Lloh12:
	adrp	x1, l_.str.2@PAGE
Lloh13:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w2, #4
	bl	_strscpy
Lloh14:
	adrp	x8, _camss_media_ops@GOTPAGE
Lloh15:
	ldr	x8, [x8, _camss_media_ops@GOTPAGEOFF]
	mov	x25, x19
	str	x8, [x25, #56]!
	mov	x0, x25
	bl	_media_device_init
	mov	x22, x19
	str	x25, [x22, #32]!
	ldr	x0, [x19, #48]
	mov	x1, x22
	bl	_v4l2_device_register
	tbnz	w0, #31, LBB0_21
; %bb.12:
	mov	x0, x19
	bl	_camss_register_entities
	tbnz	w0, #31, LBB0_22
; %bb.13:
	cbz	w24, LBB0_23
; %bb.14:
Lloh16:
	adrp	x8, _camss_subdev_notifier_ops@GOTPAGE
Lloh17:
	ldr	x8, [x8, _camss_subdev_notifier_ops@GOTPAGEOFF]
	str	x8, [x21]
	mov	x0, x22
	mov	x1, x21
	bl	_v4l2_async_notifier_register
	cbz	w0, LBB0_25
; %bb.15:
	mov	x23, x0
Lloh18:
	adrp	x1, l_.str.4@PAGE
Lloh19:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_30
LBB0_16:
Lloh20:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_17:
	ldr	w8, [x8]
	neg	w24, w8
LBB0_18:
	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
LBB0_19:
Lloh22:
	adrp	x8, _EINVAL@GOTPAGE
Lloh23:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_17
LBB0_20:
	mov	x23, x0
	b	LBB0_32
LBB0_21:
	mov	x23, x0
Lloh24:
	adrp	x1, l_.str.3@PAGE
Lloh25:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	mov	x2, x23
	bl	_dev_err
	b	LBB0_32
LBB0_22:
	mov	x23, x0
	b	LBB0_31
LBB0_23:
	mov	x0, x22
	bl	_v4l2_device_register_subdev_nodes
	tbnz	w0, #31, LBB0_28
; %bb.24:
	mov	x0, x25
	bl	_media_device_register
	tbnz	w0, #31, LBB0_29
LBB0_25:
	ldr	x8, [x19]
Lloh26:
	adrp	x9, _CAMSS_8x96@GOTPAGE
Lloh27:
	ldr	x9, [x9, _CAMSS_8x96@GOTPAGEOFF]
Lloh28:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_36
; %bb.26:
	ldr	x0, [x19, #48]
Lloh29:
	adrp	x21, _PM_DOMAIN_VFE0@GOTPAGE
Lloh30:
	ldr	x21, [x21, _PM_DOMAIN_VFE0@GOTPAGEOFF]
	ldr	x1, [x21]
	bl	_dev_pm_domain_attach_by_id
	ldr	x8, [x19, #40]
	ldr	x9, [x21]
	lsl	x9, x9, #3
	str	x0, [x8, x9]
	ldr	x8, [x19, #40]
	ldr	x0, [x8, x9]
	bl	_IS_ERR
	cbz	x0, LBB0_33
; %bb.27:
	ldr	x8, [x19, #40]
	ldr	x9, [x21]
	b	LBB0_35
LBB0_28:
	mov	x23, x0
Lloh31:
	adrp	x1, l_.str.5@PAGE
Lloh32:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_30
LBB0_29:
	mov	x23, x0
Lloh33:
	adrp	x1, l_.str.6@PAGE
Lloh34:
	add	x1, x1, l_.str.6@PAGEOFF
LBB0_30:
	mov	x0, x20
	mov	x2, x23
	bl	_dev_err
	mov	x0, x19
	bl	_camss_unregister_entities
LBB0_31:
	mov	x0, x22
	bl	_v4l2_device_unregister
LBB0_32:
	mov	x0, x21
	bl	_v4l2_async_notifier_cleanup
	mov	x24, x23
	b	LBB0_18
LBB0_33:
	ldr	x0, [x19, #48]
Lloh35:
	adrp	x22, _PM_DOMAIN_VFE1@GOTPAGE
Lloh36:
	ldr	x22, [x22, _PM_DOMAIN_VFE1@GOTPAGEOFF]
	ldr	x1, [x22]
	bl	_dev_pm_domain_attach_by_id
	ldr	x8, [x19, #40]
	ldr	x9, [x22]
	lsl	x9, x9, #3
	str	x0, [x8, x9]
	ldr	x8, [x19, #40]
	ldr	x0, [x8, x9]
	bl	_IS_ERR
	cbz	x0, LBB0_36
; %bb.34:
	ldr	x8, [x19, #40]
	ldr	x9, [x21]
	ldr	x0, [x8, x9, lsl #3]
	mov	w1, #1
	bl	_dev_pm_domain_detach
	ldr	x8, [x19, #40]
	ldr	x9, [x22]
LBB0_35:
	ldr	x0, [x8, x9, lsl #3]
	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
	b	_PTR_ERR
LBB0_36:
	mov	x0, x20
	bl	_pm_runtime_enable
	mov	w24, #0
	b	LBB0_18
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdr	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"qcom,msm8916-camss"

	.comm	_CAMSS_8x16,8,3                 ; @CAMSS_8x16
l_.str.1:                               ; @.str.1
	.asciz	"qcom,msm8996-camss"

	.comm	_CAMSS_8x96,8,3                 ; @CAMSS_8x96
	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.2:                               ; @.str.2
	.asciz	"Qualcomm Camera Subsystem"

	.comm	_camss_media_ops,4,2            ; @camss_media_ops
l_.str.3:                               ; @.str.3
	.asciz	"Failed to register V4L2 device: %d\n"

	.comm	_camss_subdev_notifier_ops,4,2  ; @camss_subdev_notifier_ops
l_.str.4:                               ; @.str.4
	.asciz	"Failed to register async subdev nodes: %d\n"

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

l_.str.6:                               ; @.str.6
	.asciz	"Failed to register media device: %d\n"

	.comm	_PM_DOMAIN_VFE0,8,3             ; @PM_DOMAIN_VFE0
	.comm	_PM_DOMAIN_VFE1,8,3             ; @PM_DOMAIN_VFE1
	.no_dead_strip	_camss_probe
.subsections_via_symbols
