	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pm8xxx_probe
_pm8xxx_probe:                          ## @pm8xxx_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_of_device_get_match_data
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_platform_get_irq
	movl	%eax, %r14d
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	movl	4(%rbx), %edx
	movq	_ssbi_regmap_config@GOTPCREL(%rip), %rcx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_devm_regmap_init
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_5
## %bb.18:
	movq	%r13, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_12:
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_17
LBB0_3:
	movl	%r14d, %r12d
	jmp	LBB0_17
LBB0_5:
	movq	_REG_HWREV@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rdx
	movq	%r13, %rdi
	callq	_regmap_read
	testl	%eax, %eax
	je	LBB0_8
## %bb.6:
	movl	%eax, %r12d
	movq	_REG_HWREV@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_7
LBB0_8:
	movl	-44(%rbp), %esi
	leaq	L_.str.2(%rip), %rdi
	callq	_pr_info
	movq	_REG_HWREV_2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rdx
	movq	%r13, %rdi
	callq	_regmap_read
	testl	%eax, %eax
	je	LBB0_10
## %bb.9:
	movl	%eax, %r12d
	movq	_REG_HWREV_2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %rdi
LBB0_7:
	movl	%r12d, %edx
	callq	_pr_err
LBB0_17:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movl	-44(%rbp), %esi
	leaq	L_.str.4(%rip), %rdi
	callq	_pr_info
	movq	_config@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	8(%r15), %rdx
	callq	_struct_size
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_11
## %bb.13:
	movq	%rax, %r12
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_platform_set_drvdata
	movq	%r13, 32(%r12)
	movq	8(%r15), %rdi
	movl	$8, %esi
	callq	_DIV_ROUND_UP
	movq	%rax, 16(%r12)
	movq	%rax, %rdi
	movl	$8, %esi
	callq	_DIV_ROUND_UP
	movq	%rax, 24(%r12)
	movq	%r15, 8(%r12)
	movq	%r12, %rdi
	addq	$4, %rdi
	callq	_spin_lock_init
	movl	(%rbx), %edi
	movq	8(%r15), %rsi
	movq	_pm8xxx_irq_domain_ops@GOTPCREL(%rip), %rdx
	movq	%r12, %rcx
	callq	_irq_domain_add_linear
	movl	%eax, (%r12)
	testl	%eax, %eax
	je	LBB0_14
## %bb.15:
	movq	(%r15), %rsi
	movl	%r14d, %edi
	movq	%r12, %r15
	movq	%r12, %rdx
	callq	_irq_set_chained_handler_and_data
	movl	%r14d, %edi
	movl	$1, %esi
	callq	_irq_set_irq_wake
	movl	(%rbx), %edi
	xorl	%r12d, %r12d
	xorl	%esi, %esi
	xorl	%edx, %edx
	movq	%rbx, %rcx
	callq	_of_platform_populate
	testl	%eax, %eax
	je	LBB0_17
## %bb.16:
	movl	%eax, %ebx
	movl	%r14d, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_irq_set_chained_handler_and_data
	movl	(%r15), %edi
	callq	_irq_domain_remove
	movl	%ebx, %r12d
	jmp	LBB0_17
LBB0_11:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_14:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_12
	.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	_ssbi_regmap_config,4,2         ## @ssbi_regmap_config
	.comm	_REG_HWREV,4,2                  ## @REG_HWREV
L_.str.1:                               ## @.str.1
	.asciz	"Failed to read hw rev reg %d:rc=%d\n"

L_.str.2:                               ## @.str.2
	.asciz	"PMIC revision 1: %02X\n"

	.comm	_REG_HWREV_2,4,2                ## @REG_HWREV_2
L_.str.3:                               ## @.str.3
	.asciz	"Failed to read hw rev 2 reg %d:rc=%d\n"

L_.str.4:                               ## @.str.4
	.asciz	"PMIC revision 2: %02X\n"

	.comm	_BITS_PER_BYTE,4,2              ## @BITS_PER_BYTE
	.comm	_config,4,2                     ## @config
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_pm8xxx_irq_domain_ops,4,2      ## @pm8xxx_irq_domain_ops
	.comm	_ENODEV,4,2                     ## @ENODEV
	.no_dead_strip	_pm8xxx_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pm8xxx_probe
_pm8xxx_probe:                          ; @pm8xxx_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	x20, x0
	bl	_of_device_get_match_data
	cbz	x0, LBB0_4
; %bb.1:
	mov	x21, x0
	mov	x0, x20
	mov	w1, #0
	bl	_platform_get_irq
	mov	x19, x0
	tbnz	w0, #31, LBB0_11
; %bb.2:
	ldr	w2, [x20, #4]
Lloh0:
	adrp	x3, _ssbi_regmap_config@GOTPAGE
Lloh1:
	ldr	x3, [x3, _ssbi_regmap_config@GOTPAGEOFF]
	mov	x0, x20
	mov	x1, #0
	bl	_devm_regmap_init
	mov	x23, x0
	bl	_IS_ERR
	cbz	x0, LBB0_6
; %bb.3:
	mov	x0, x23
	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
	b	_PTR_ERR
LBB0_4:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_err
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	neg	w19, w8
	b	LBB0_11
LBB0_6:
Lloh6:
	adrp	x24, _REG_HWREV@GOTPAGE
Lloh7:
	ldr	x24, [x24, _REG_HWREV@GOTPAGEOFF]
	ldr	w1, [x24]
	add	x2, sp, #12
	mov	x0, x23
	bl	_regmap_read
	cbz	w0, LBB0_8
; %bb.7:
	mov	x22, x0
	ldr	w1, [x24]
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_10
LBB0_8:
	ldr	w1, [sp, #12]
Lloh10:
	adrp	x0, l_.str.2@PAGE
Lloh11:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_pr_info
Lloh12:
	adrp	x24, _REG_HWREV_2@GOTPAGE
Lloh13:
	ldr	x24, [x24, _REG_HWREV_2@GOTPAGEOFF]
	ldr	w1, [x24]
	add	x2, sp, #12
	mov	x0, x23
	bl	_regmap_read
	cbz	w0, LBB0_12
; %bb.9:
	mov	x22, x0
	ldr	w1, [x24]
Lloh14:
	adrp	x0, l_.str.3@PAGE
Lloh15:
	add	x0, x0, l_.str.3@PAGEOFF
LBB0_10:
	mov	x2, x22
	bl	_pr_err
	mov	x19, x22
LBB0_11:
	mov	x0, x19
	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_12:
	ldr	w1, [sp, #12]
Lloh16:
	adrp	x0, l_.str.4@PAGE
Lloh17:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_pr_info
Lloh18:
	adrp	x8, _config@GOTPAGE
Lloh19:
	ldr	x8, [x8, _config@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	ldr	x2, [x21, #8]
	bl	_struct_size
	mov	x1, x0
Lloh21:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh22:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh23:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_devm_kzalloc
	cbz	x0, LBB0_16
; %bb.13:
	mov	x22, x0
	mov	x0, x20
	mov	x1, x22
	bl	_platform_set_drvdata
	str	x23, [x22, #32]
	ldr	x0, [x21, #8]
	mov	w1, #8
	bl	_DIV_ROUND_UP
	str	x0, [x22, #16]
	mov	w1, #8
	bl	_DIV_ROUND_UP
	str	x0, [x22, #24]
	str	x21, [x22, #8]
	add	x0, x22, #4
	bl	_spin_lock_init
	ldr	w0, [x20]
	ldr	x1, [x21, #8]
Lloh24:
	adrp	x2, _pm8xxx_irq_domain_ops@GOTPAGE
Lloh25:
	ldr	x2, [x2, _pm8xxx_irq_domain_ops@GOTPAGEOFF]
	mov	x3, x22
	bl	_irq_domain_add_linear
	str	w0, [x22]
	cbz	w0, LBB0_17
; %bb.14:
	ldr	x1, [x21]
	mov	x0, x19
	mov	x2, x22
	bl	_irq_set_chained_handler_and_data
	mov	x0, x19
	mov	w1, #1
	bl	_irq_set_irq_wake
	ldr	w0, [x20]
	mov	x1, #0
	mov	x2, #0
	mov	x3, x20
	bl	_of_platform_populate
	cbz	w0, LBB0_18
; %bb.15:
	mov	x20, x0
	mov	x0, x19
	mov	x1, #0
	mov	x2, #0
	bl	_irq_set_chained_handler_and_data
	ldr	w0, [x22]
	bl	_irq_domain_remove
	mov	x19, x20
	b	LBB0_11
LBB0_16:
Lloh26:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_5
LBB0_17:
Lloh28:
	adrp	x8, _ENODEV@GOTPAGE
Lloh29:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_5
LBB0_18:
	mov	w19, #0
	b	LBB0_11
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh28, Lloh29
	.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	_ssbi_regmap_config,4,2         ; @ssbi_regmap_config
	.comm	_REG_HWREV,4,2                  ; @REG_HWREV
l_.str.1:                               ; @.str.1
	.asciz	"Failed to read hw rev reg %d:rc=%d\n"

l_.str.2:                               ; @.str.2
	.asciz	"PMIC revision 1: %02X\n"

	.comm	_REG_HWREV_2,4,2                ; @REG_HWREV_2
l_.str.3:                               ; @.str.3
	.asciz	"Failed to read hw rev 2 reg %d:rc=%d\n"

l_.str.4:                               ; @.str.4
	.asciz	"PMIC revision 2: %02X\n"

	.comm	_BITS_PER_BYTE,4,2              ; @BITS_PER_BYTE
	.comm	_config,4,2                     ; @config
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_pm8xxx_irq_domain_ops,4,2      ; @pm8xxx_irq_domain_ops
	.comm	_ENODEV,4,2                     ; @ENODEV
	.no_dead_strip	_pm8xxx_probe
.subsections_via_symbols
