	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stpmic1_probe
_stpmic1_probe:                         ## @stpmic1_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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	(%rdi), %r15
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$24, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_i2c_set_clientdata
	movq	%r14, 16(%rbx)
	movq	_stpmic1_regmap_config@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_regmap_init_i2c
	movl	%eax, 12(%rbx)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_3
## %bb.11:
	movl	12(%rbx), %edi
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_10:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	_STPMIC1_MAIN_IRQ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_of_irq_get
	movq	%rax, (%rbx)
	testq	%rax, %rax
	js	LBB0_4
## %bb.5:
	movl	12(%rbx), %edi
	movq	_VERSION_SR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-28(%rbp), %rdx
	callq	_regmap_read
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movl	%eax, %r15d
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_10
LBB0_4:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_dev_err
	movl	(%rbx), %r15d
	jmp	LBB0_10
LBB0_7:
	movl	-28(%rbp), %edx
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_info
	movl	(%rbx), %edx
	movl	12(%rbx), %esi
	movq	_IRQF_ONESHOT@GOTPCREL(%rip), %rax
	movq	_IRQF_SHARED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	addq	$8, %rbx
	movq	%rbx, (%rsp)
	movq	_stpmic1_regmap_irq_chip@GOTPCREL(%rip), %r9
	movq	%r14, %rdi
	xorl	%r8d, %r8d
	callq	_devm_regmap_add_irq_chip
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	movl	%eax, %r15d
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_10
LBB0_9:
	movq	%r14, %rdi
	callq	_devm_of_platform_populate
	movl	%eax, %r15d
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_stpmic1_regmap_config,4,2      ## @stpmic1_regmap_config
	.comm	_STPMIC1_MAIN_IRQ,4,2           ## @STPMIC1_MAIN_IRQ
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to get main IRQ: %d\n"

	.comm	_VERSION_SR,4,2                 ## @VERSION_SR
L_.str.1:                               ## @.str.1
	.asciz	"Unable to read PMIC version\n"

L_.str.2:                               ## @.str.2
	.asciz	"PMIC Chip Version: 0x%x\n"

	.comm	_IRQF_ONESHOT,4,2               ## @IRQF_ONESHOT
	.comm	_IRQF_SHARED,4,2                ## @IRQF_SHARED
	.comm	_stpmic1_regmap_irq_chip,4,2    ## @stpmic1_regmap_irq_chip
L_.str.3:                               ## @.str.3
	.asciz	"IRQ Chip registration failed: %d\n"

	.no_dead_strip	_stpmic1_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stpmic1_probe
_stpmic1_probe:                         ; @stpmic1_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x0, x19
	mov	x1, x20
	bl	_i2c_set_clientdata
	str	x19, [x20, #16]
Lloh3:
	adrp	x1, _stpmic1_regmap_config@GOTPAGE
Lloh4:
	ldr	x1, [x1, _stpmic1_regmap_config@GOTPAGEOFF]
	mov	x0, x19
	bl	_devm_regmap_init_i2c
	str	w0, [x20, #12]
	bl	_IS_ERR
	cbz	x0, LBB0_4
; %bb.2:
	ldr	w0, [x20, #12]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_PTR_ERR
LBB0_3:
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_11
LBB0_4:
Lloh8:
	adrp	x8, _STPMIC1_MAIN_IRQ@GOTPAGE
Lloh9:
	ldr	x8, [x8, _STPMIC1_MAIN_IRQ@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_of_irq_get
	str	x0, [x20]
	tbnz	x0, #63, LBB0_7
; %bb.5:
	ldr	w0, [x20, #12]
Lloh11:
	adrp	x8, _VERSION_SR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _VERSION_SR@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_regmap_read
	cbz	w0, LBB0_8
; %bb.6:
	mov	x21, x0
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_10
LBB0_7:
	str	x0, [sp]
Lloh16:
	adrp	x1, l_.str@PAGE
Lloh17:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	ldr	w21, [x20]
	b	LBB0_11
LBB0_8:
	ldr	w2, [sp, #12]
Lloh18:
	adrp	x1, l_.str.2@PAGE
Lloh19:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_info
	ldr	w1, [x20, #12]
	ldr	w2, [x20]
Lloh20:
	adrp	x8, _IRQF_ONESHOT@GOTPAGE
Lloh21:
	ldr	x8, [x8, _IRQF_ONESHOT@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
Lloh23:
	adrp	x9, _IRQF_SHARED@GOTPAGE
Lloh24:
	ldr	x9, [x9, _IRQF_SHARED@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	orr	w3, w9, w8
	add	x6, x20, #8
Lloh26:
	adrp	x5, _stpmic1_regmap_irq_chip@GOTPAGE
Lloh27:
	ldr	x5, [x5, _stpmic1_regmap_irq_chip@GOTPAGEOFF]
	mov	x0, x19
	mov	w4, #0
	bl	_devm_regmap_add_irq_chip
	cbz	w0, LBB0_12
; %bb.9:
	mov	x21, x0
	str	x21, [sp]
Lloh28:
	adrp	x1, l_.str.3@PAGE
Lloh29:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_10:
	mov	x0, x19
	bl	_dev_err
LBB0_11:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_12:
	mov	x0, x19
	bl	_devm_of_platform_populate
	mov	x21, x0
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_stpmic1_regmap_config,4,2      ; @stpmic1_regmap_config
	.comm	_STPMIC1_MAIN_IRQ,4,2           ; @STPMIC1_MAIN_IRQ
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to get main IRQ: %d\n"

	.comm	_VERSION_SR,4,2                 ; @VERSION_SR
l_.str.1:                               ; @.str.1
	.asciz	"Unable to read PMIC version\n"

l_.str.2:                               ; @.str.2
	.asciz	"PMIC Chip Version: 0x%x\n"

	.comm	_IRQF_ONESHOT,4,2               ; @IRQF_ONESHOT
	.comm	_IRQF_SHARED,4,2                ; @IRQF_SHARED
	.comm	_stpmic1_regmap_irq_chip,4,2    ; @stpmic1_regmap_irq_chip
l_.str.3:                               ; @.str.3
	.asciz	"IRQ Chip registration failed: %d\n"

	.no_dead_strip	_stpmic1_probe
.subsections_via_symbols
