	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sprd_pmic_probe
_sprd_pmic_probe:                       ## @sprd_pmic_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
	callq	_of_device_get_match_data
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movq	%r14, %rdi
	movl	$88, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r13
	movq	_sprd_pmic_regmap@GOTPCREL(%rip), %rsi
	movq	_sprd_pmic_config@GOTPCREL(%rip), %rcx
	movq	%r14, %rdi
	movq	%r14, %rdx
	callq	_devm_regmap_init
	movl	%eax, 68(%r13)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movl	68(%r13), %edi
	callq	_PTR_ERR
	movl	%eax, %r15d
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_15
LBB0_1:
	leaq	L_.str(%rip), %rsi
	xorl	%r15d, %r15d
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
	jmp	LBB0_15
LBB0_6:
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_spi_set_drvdata
	movq	%r14, 80(%r13)
	movl	4(%r14), %eax
	movl	%eax, 64(%r13)
	movq	%r14, %rdi
	callq	_dev_name
	movl	%eax, 56(%r13)
	movq	8(%r15), %rax
	movq	_SPRD_PMIC_INT_MASK_STATUS@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	addq	%rax, %rcx
	movq	%rcx, 48(%r13)
	movq	_SPRD_PMIC_INT_EN@GOTPCREL(%rip), %rcx
	addq	(%rcx), %rax
	movq	%rax, 40(%r13)
	movq	$0, 32(%r13)
	movl	$1, 8(%r13)
	movl	(%r15), %esi
	movl	%esi, 12(%r13)
	movl	$1, 16(%r13)
	movl	(%rbx), %ecx
	movq	%r14, %rdi
	movl	$4, %edx
	callq	_devm_kcalloc
	movq	%rax, 72(%r13)
	testq	%rax, %rax
	je	LBB0_3
## %bb.7:
	movq	%rax, %rcx
	movq	%r13, %r12
	addq	$8, %r12
	movq	%rax, 24(%r13)
	movl	(%r15), %esi
	testl	%esi, %esi
	jle	LBB0_10
## %bb.8:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %eax
	cltd
	idivl	%esi
	movl	%edx, %edi
	movl	%eax, (%rcx,%rbx,8)
	callq	_BIT
	movq	72(%r13), %rcx
	movl	%eax, 4(%rcx,%rbx,8)
	incq	%rbx
	movslq	(%r15), %rsi
	cmpq	%rsi, %rbx
	jl	LBB0_9
LBB0_10:
	movl	64(%r13), %edx
	movl	68(%r13), %esi
	movq	_IRQF_ONESHOT@GOTPCREL(%rip), %rax
	movq	_IRQF_NO_SUSPEND@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	%r13, (%rsp)
	xorl	%r15d, %r15d
	movq	%r14, %rdi
	xorl	%r8d, %r8d
	movq	%r12, %r9
	callq	_devm_regmap_add_irq_chip
	testl	%eax, %eax
	je	LBB0_12
## %bb.11:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_14
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_15
LBB0_12:
	movq	_PLATFORM_DEVID_AUTO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_sprd_pmic_devs@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%ebx, %edi
	callq	_ARRAY_SIZE
	movl	%eax, %r12d
	movl	(%r13), %edi
	callq	_regmap_irq_get_domain
	movl	%eax, (%rsp)
	movq	%r14, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	%ebx, %edx
	movl	%r12d, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_devm_mfd_add_devices
	testl	%eax, %eax
	je	LBB0_15
## %bb.13:
	movl	%eax, %ebx
	leaq	L_.str.3(%rip), %rsi
LBB0_14:
	movq	%r14, %rdi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movl	%ebx, %r15d
LBB0_15:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No matching driver data found\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_sprd_pmic_regmap,4,2           ## @sprd_pmic_regmap
	.comm	_sprd_pmic_config,4,2           ## @sprd_pmic_config
L_.str.1:                               ## @.str.1
	.asciz	"Failed to allocate register map %d\n"

	.comm	_SPRD_PMIC_INT_MASK_STATUS,8,3  ## @SPRD_PMIC_INT_MASK_STATUS
	.comm	_SPRD_PMIC_INT_EN,8,3           ## @SPRD_PMIC_INT_EN
	.comm	_IRQF_ONESHOT,4,2               ## @IRQF_ONESHOT
	.comm	_IRQF_NO_SUSPEND,4,2            ## @IRQF_NO_SUSPEND
L_.str.2:                               ## @.str.2
	.asciz	"Failed to add PMIC irq chip %d\n"

	.comm	_PLATFORM_DEVID_AUTO,4,2        ## @PLATFORM_DEVID_AUTO
	.comm	_sprd_pmic_devs,4,2             ## @sprd_pmic_devs
L_.str.3:                               ## @.str.3
	.asciz	"Failed to register device %d\n"

	.no_dead_strip	_sprd_pmic_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sprd_pmic_probe
_sprd_pmic_probe:                       ; @sprd_pmic_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x0
	bl	_of_device_get_match_data
	cbz	x0, LBB0_4
; %bb.1:
	mov	x21, x0
Lloh0:
	adrp	x23, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x23, [x23, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w2, [x23]
	mov	x0, x19
	mov	w1, #88
	bl	_devm_kzalloc
	cbz	x0, LBB0_11
; %bb.2:
	mov	x20, x0
Lloh2:
	adrp	x1, _sprd_pmic_regmap@GOTPAGE
Lloh3:
	ldr	x1, [x1, _sprd_pmic_regmap@GOTPAGEOFF]
Lloh4:
	adrp	x3, _sprd_pmic_config@GOTPAGE
Lloh5:
	ldr	x3, [x3, _sprd_pmic_config@GOTPAGEOFF]
	mov	x0, x19
	mov	x2, x19
	bl	_devm_regmap_init
	str	w0, [x20, #68]
	bl	_IS_ERR
	cbz	x0, LBB0_5
; %bb.3:
	ldr	w0, [x20, #68]
	bl	_PTR_ERR
	mov	x20, x0
	str	x20, [sp]
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_13
LBB0_4:
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh10:
	adrp	x8, _EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_12
LBB0_5:
	mov	x0, x19
	mov	x1, x20
	bl	_spi_set_drvdata
	str	x19, [x20, #80]
	ldr	w8, [x19, #4]
	str	w8, [x20, #64]
	mov	x0, x19
	bl	_dev_name
	mov	w8, #1
	mov	x22, x20
	str	w8, [x22, #8]!
	str	w0, [x22, #48]
	ldr	x9, [x21, #8]
Lloh12:
	adrp	x10, _SPRD_PMIC_INT_MASK_STATUS@GOTPAGE
Lloh13:
	ldr	x10, [x10, _SPRD_PMIC_INT_MASK_STATUS@GOTPAGEOFF]
Lloh14:
	ldr	x10, [x10]
	add	x10, x10, x9
	str	x10, [x22, #40]
Lloh15:
	adrp	x10, _SPRD_PMIC_INT_EN@GOTPAGE
Lloh16:
	ldr	x10, [x10, _SPRD_PMIC_INT_EN@GOTPAGEOFF]
Lloh17:
	ldr	x10, [x10]
	add	x9, x10, x9
	stp	xzr, x9, [x22, #24]
	ldr	w1, [x21]
	stp	w1, w8, [x22, #4]
	ldr	w3, [x23]
	mov	x0, x19
	mov	w2, #4
	bl	_devm_kcalloc
	str	x0, [x22, #64]
	cbz	x0, LBB0_11
; %bb.6:
	str	x0, [x20, #24]
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.7:
	mov	x23, #0
	mov	x24, #0
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	sdiv	w9, w24, w8
	str	w9, [x0, x23]
	msub	w0, w9, w8, w24
	bl	_BIT
	mov	x8, x0
	ldr	x0, [x20, #72]
	add	x9, x0, x23
	str	w8, [x9, #4]
	add	x24, x24, #1
	ldrsw	x8, [x21]
	add	x23, x23, #8
	cmp	x24, x8
	b.lt	LBB0_8
LBB0_9:
Lloh18:
	adrp	x8, _IRQF_ONESHOT@GOTPAGE
Lloh19:
	ldr	x8, [x8, _IRQF_ONESHOT@GOTPAGEOFF]
	ldp	w2, w1, [x20, #64]
Lloh20:
	ldr	w8, [x8]
Lloh21:
	adrp	x9, _IRQF_NO_SUSPEND@GOTPAGE
Lloh22:
	ldr	x9, [x9, _IRQF_NO_SUSPEND@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	orr	w3, w9, w8
	mov	x0, x19
	mov	w4, #0
	mov	x5, x22
	mov	x6, x20
	bl	_devm_regmap_add_irq_chip
	cbz	w0, LBB0_14
; %bb.10:
	mov	x21, x0
	str	x21, [sp]
Lloh24:
	adrp	x1, l_.str.2@PAGE
Lloh25:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	mov	x20, x21
	b	LBB0_13
LBB0_11:
Lloh26:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_12:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_13:
	mov	x0, x20
	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
	add	sp, sp, #80
	ret
LBB0_14:
Lloh28:
	adrp	x8, _PLATFORM_DEVID_AUTO@GOTPAGE
Lloh29:
	ldr	x8, [x8, _PLATFORM_DEVID_AUTO@GOTPAGEOFF]
Lloh30:
	ldr	w21, [x8]
Lloh31:
	adrp	x8, _sprd_pmic_devs@GOTPAGE
Lloh32:
	ldr	x8, [x8, _sprd_pmic_devs@GOTPAGEOFF]
Lloh33:
	ldr	w22, [x8]
	mov	x0, x22
	bl	_ARRAY_SIZE
	mov	x23, x0
	ldr	w0, [x20]
	bl	_regmap_irq_get_domain
	mov	x6, x0
	mov	x0, x19
	mov	x1, x21
	mov	x2, x22
	mov	x3, x23
	mov	x4, #0
	mov	w5, #0
	bl	_devm_mfd_add_devices
	mov	x20, x0
	cbz	w0, LBB0_13
; %bb.15:
	str	x20, [sp]
Lloh34:
	adrp	x1, l_.str.3@PAGE
Lloh35:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_dev_err
                                        ; kill: def $w20 killed $w20 killed $x20 def $x20
	b	LBB0_13
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No matching driver data found\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_sprd_pmic_regmap,4,2           ; @sprd_pmic_regmap
	.comm	_sprd_pmic_config,4,2           ; @sprd_pmic_config
l_.str.1:                               ; @.str.1
	.asciz	"Failed to allocate register map %d\n"

	.comm	_SPRD_PMIC_INT_MASK_STATUS,8,3  ; @SPRD_PMIC_INT_MASK_STATUS
	.comm	_SPRD_PMIC_INT_EN,8,3           ; @SPRD_PMIC_INT_EN
	.comm	_IRQF_ONESHOT,4,2               ; @IRQF_ONESHOT
	.comm	_IRQF_NO_SUSPEND,4,2            ; @IRQF_NO_SUSPEND
l_.str.2:                               ; @.str.2
	.asciz	"Failed to add PMIC irq chip %d\n"

	.comm	_PLATFORM_DEVID_AUTO,4,2        ; @PLATFORM_DEVID_AUTO
	.comm	_sprd_pmic_devs,4,2             ; @sprd_pmic_devs
l_.str.3:                               ; @.str.3
	.asciz	"Failed to register device %d\n"

	.no_dead_strip	_sprd_pmic_probe
.subsections_via_symbols
