	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ssbi_probe
_ssbi_probe:                            ## @ssbi_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	(%rdi), %r15
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$24, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%rax, %r14
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_platform_get_resource
	movq	%r12, %rdi
	movq	%rax, %rsi
	callq	_devm_ioremap_resource
	movl	%eax, 20(%r14)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	movl	20(%r14), %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_4:
	xorl	%ebx, %ebx
LBB0_5:
	subl	(%rax), %ebx
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_platform_set_drvdata
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_of_get_property
	testq	%rax, %rax
	je	LBB0_11
## %bb.7:
	movq	%rax, %r15
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdi
	movq	%rax, %rdx
	callq	_dev_info
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_12
## %bb.8:
	leaq	L_.str.4(%rip), %rsi
	movq	%r15, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_13
## %bb.9:
	leaq	L_.str.5(%rip), %rsi
	movq	%r15, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_14
## %bb.10:
	leaq	L_.str.6(%rip), %rsi
	movq	%r12, %rdi
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_11:
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_12:
	movq	_MSM_SBI_CTRL_SSBI@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_13:
	movq	_MSM_SBI_CTRL_SSBI2@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_14:
	movq	_MSM_SBI_CTRL_PMIC_ARBITER@GOTPCREL(%rip), %rax
LBB0_15:
	movq	(%rax), %rax
	movq	%rax, (%r14)
	movq	_MSM_SBI_CTRL_PMIC_ARBITER@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movq	_ssbi_write_bytes@GOTPCREL(%rip), %rax
	cmoveq	_ssbi_pa_write_bytes@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_ssbi_read_bytes@GOTPCREL(%rip), %rcx
	cmoveq	_ssbi_pa_read_bytes@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 16(%r14)
	movl	%eax, 12(%r14)
	addq	$8, %r14
	movq	%r14, %rdi
	callq	_spin_lock_init
	movq	%r12, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_devm_of_platform_populate      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"qcom,controller-type"

L_.str.1:                               ## @.str.1
	.asciz	"Missing qcom,controller-type property\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.2:                               ## @.str.2
	.asciz	"SSBI controller type: '%s'\n"

L_.str.3:                               ## @.str.3
	.asciz	"ssbi"

	.comm	_MSM_SBI_CTRL_SSBI,8,3          ## @MSM_SBI_CTRL_SSBI
L_.str.4:                               ## @.str.4
	.asciz	"ssbi2"

	.comm	_MSM_SBI_CTRL_SSBI2,8,3         ## @MSM_SBI_CTRL_SSBI2
L_.str.5:                               ## @.str.5
	.asciz	"pmic-arbiter"

	.comm	_MSM_SBI_CTRL_PMIC_ARBITER,8,3  ## @MSM_SBI_CTRL_PMIC_ARBITER
L_.str.6:                               ## @.str.6
	.asciz	"Unknown qcom,controller-type\n"

	.comm	_ssbi_pa_read_bytes,4,2         ## @ssbi_pa_read_bytes
	.comm	_ssbi_pa_write_bytes,4,2        ## @ssbi_pa_write_bytes
	.comm	_ssbi_read_bytes,4,2            ## @ssbi_read_bytes
	.comm	_ssbi_write_bytes,4,2           ## @ssbi_write_bytes
	.no_dead_strip	_ssbi_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ssbi_probe
_ssbi_probe:                            ; @ssbi_probe
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	ldr	x21, [x0]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #24
	bl	_devm_kzalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
Lloh3:
	adrp	x8, _IORESOURCE_MEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IORESOURCE_MEM@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_platform_get_resource
	mov	x1, x0
	mov	x0, x19
	bl	_devm_ioremap_resource
	str	w0, [x20, #20]
	bl	_IS_ERR
	cbz	x0, LBB0_4
; %bb.2:
	ldr	w0, [x20, #20]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_PTR_ERR
LBB0_3:
Lloh6:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_11
LBB0_4:
	mov	x0, x19
	mov	x1, x20
	bl	_platform_set_drvdata
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	mov	x2, #0
	bl	_of_get_property
	cbz	x0, LBB0_9
; %bb.5:
	mov	x21, x0
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	bl	_dev_info
Lloh12:
	adrp	x1, l_.str.3@PAGE
Lloh13:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x21
	bl	_strcmp
	cbz	x0, LBB0_12
; %bb.6:
Lloh14:
	adrp	x1, l_.str.4@PAGE
Lloh15:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x21
	bl	_strcmp
	cbz	x0, LBB0_13
; %bb.7:
Lloh16:
	adrp	x1, l_.str.5@PAGE
Lloh17:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x21
	bl	_strcmp
	cbz	x0, LBB0_14
; %bb.8:
Lloh18:
	adrp	x1, l_.str.6@PAGE
Lloh19:
	add	x1, x1, l_.str.6@PAGEOFF
	b	LBB0_10
LBB0_9:
Lloh20:
	adrp	x1, l_.str.1@PAGE
Lloh21:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_10:
	mov	x0, x19
	bl	_dev_err
Lloh22:
	adrp	x8, _EINVAL@GOTPAGE
Lloh23:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_11:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_12:
Lloh24:
	adrp	x8, _MSM_SBI_CTRL_SSBI@GOTPAGE
Lloh25:
	ldr	x8, [x8, _MSM_SBI_CTRL_SSBI@GOTPAGEOFF]
	b	LBB0_15
LBB0_13:
Lloh26:
	adrp	x8, _MSM_SBI_CTRL_SSBI2@GOTPAGE
Lloh27:
	ldr	x8, [x8, _MSM_SBI_CTRL_SSBI2@GOTPAGEOFF]
	b	LBB0_15
LBB0_14:
Lloh28:
	adrp	x8, _MSM_SBI_CTRL_PMIC_ARBITER@GOTPAGE
Lloh29:
	ldr	x8, [x8, _MSM_SBI_CTRL_PMIC_ARBITER@GOTPAGEOFF]
LBB0_15:
Lloh30:
	adrp	x9, _MSM_SBI_CTRL_PMIC_ARBITER@GOTPAGE
Lloh31:
	ldr	x9, [x9, _MSM_SBI_CTRL_PMIC_ARBITER@GOTPAGEOFF]
	ldr	x8, [x8]
	str	x8, [x20]
Lloh32:
	ldr	x9, [x9]
Lloh33:
	adrp	x10, _ssbi_pa_write_bytes@GOTPAGE
Lloh34:
	ldr	x10, [x10, _ssbi_pa_write_bytes@GOTPAGEOFF]
Lloh35:
	adrp	x11, _ssbi_write_bytes@GOTPAGE
Lloh36:
	ldr	x11, [x11, _ssbi_write_bytes@GOTPAGEOFF]
	cmp	x8, x9
	csel	x8, x10, x11, eq
Lloh37:
	adrp	x9, _ssbi_pa_read_bytes@GOTPAGE
Lloh38:
	ldr	x9, [x9, _ssbi_pa_read_bytes@GOTPAGEOFF]
Lloh39:
	adrp	x10, _ssbi_read_bytes@GOTPAGE
Lloh40:
	ldr	x10, [x10, _ssbi_read_bytes@GOTPAGEOFF]
	ldr	w8, [x8]
	csel	x9, x9, x10, eq
	ldr	w9, [x9]
	stp	w8, w9, [x20, #12]
	add	x0, x20, #8
	bl	_spin_lock_init
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_devm_of_platform_populate
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"qcom,controller-type"

l_.str.1:                               ; @.str.1
	.asciz	"Missing qcom,controller-type property\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.2:                               ; @.str.2
	.asciz	"SSBI controller type: '%s'\n"

l_.str.3:                               ; @.str.3
	.asciz	"ssbi"

	.comm	_MSM_SBI_CTRL_SSBI,8,3          ; @MSM_SBI_CTRL_SSBI
l_.str.4:                               ; @.str.4
	.asciz	"ssbi2"

	.comm	_MSM_SBI_CTRL_SSBI2,8,3         ; @MSM_SBI_CTRL_SSBI2
l_.str.5:                               ; @.str.5
	.asciz	"pmic-arbiter"

	.comm	_MSM_SBI_CTRL_PMIC_ARBITER,8,3  ; @MSM_SBI_CTRL_PMIC_ARBITER
l_.str.6:                               ; @.str.6
	.asciz	"Unknown qcom,controller-type\n"

	.comm	_ssbi_pa_read_bytes,4,2         ; @ssbi_pa_read_bytes
	.comm	_ssbi_pa_write_bytes,4,2        ; @ssbi_pa_write_bytes
	.comm	_ssbi_read_bytes,4,2            ; @ssbi_read_bytes
	.comm	_ssbi_write_bytes,4,2           ; @ssbi_write_bytes
	.no_dead_strip	_ssbi_probe
.subsections_via_symbols
