	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function act8945a_charger_probe
_act8945a_charger_probe:                ## @act8945a_charger_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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	$0, -40(%rbp)
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$48, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	%rax, %r14
	movl	4(%r15), %edi
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	callq	_dev_get_regmap
	movl	%eax, 40(%r14)
	testl	%eax, %eax
	je	LBB0_8
## %bb.2:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_act8945a_charger_config
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_10
## %bb.3:
	movl	(%r15), %edi
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	callq	_of_irq_get
	movl	%eax, %r12d
	testl	%eax, %eax
	jle	LBB0_11
## %bb.4:
	movq	_act8945a_status_changed@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_IRQF_TRIGGER_FALLING@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str.2(%rip), %r8
	movq	%r15, %rdi
	movl	%r12d, %esi
	movq	%r14, %r9
	callq	_devm_request_irq
	testl	%eax, %eax
	je	LBB0_12
## %bb.5:
	movl	%eax, %ebx
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_err
	jmp	LBB0_10
LBB0_6:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_7:
	xorl	%ebx, %ebx
	jmp	LBB0_9
LBB0_8:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_9:
	subl	(%rax), %ebx
LBB0_10:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_err
	movq	_ENXIO@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	testl	%r12d, %r12d
	cmovnel	%r12d, %ebx
	jmp	LBB0_10
LBB0_12:
	leaq	L_.str.4(%rip), %rax
	movq	%rax, 16(%r14)
	movq	_act8945a_charger_get_property@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%r14)
	movq	_act8945a_charger_props@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%edi, 32(%r14)
	callq	_ARRAY_SIZE
	movl	%eax, 28(%r14)
	leaq	24(%r14), %rsi
	movq	%r14, %rdi
	callq	_act8945a_set_supply_type
	testl	%eax, %eax
	je	LBB0_14
## %bb.13:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_14:
	leaq	16(%r14), %rsi
	movl	(%r15), %eax
	movl	%eax, -40(%rbp)
	movq	%r14, -48(%rbp)
	leaq	-48(%rbp), %rdx
	movq	%r15, %rdi
	callq	_devm_power_supply_register
	movl	%eax, 8(%r14)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:
	leaq	L_.str.5(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_err
	movl	8(%r14), %edi
	callq	_PTR_ERR
	movl	%eax, %ebx
	jmp	LBB0_10
LBB0_16:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_platform_set_drvdata
	movq	%r14, %rdi
	addq	$4, %rdi
	movq	_act8945a_work@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_WORK
	movq	%r14, %rdi
	callq	_act8945a_enable_interrupt
	testl	%eax, %eax
	je	LBB0_18
## %bb.17:
	movq	_EIO@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_18:
	movl	$1, (%r14)
	xorl	%ebx, %ebx
	jmp	LBB0_10
	.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	"Parent did not provide regmap\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"failed to find IRQ number\n"

	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_act8945a_status_changed,4,2    ## @act8945a_status_changed
	.comm	_IRQF_TRIGGER_FALLING,4,2       ## @IRQF_TRIGGER_FALLING
L_.str.2:                               ## @.str.2
	.asciz	"act8945a_interrupt"

L_.str.3:                               ## @.str.3
	.asciz	"failed to request nIRQ pin IRQ\n"

L_.str.4:                               ## @.str.4
	.asciz	"act8945a-charger"

	.comm	_act8945a_charger_get_property,4,2 ## @act8945a_charger_get_property
	.comm	_act8945a_charger_props,4,2     ## @act8945a_charger_props
L_.str.5:                               ## @.str.5
	.asciz	"failed to register power supply\n"

	.comm	_act8945a_work,4,2              ## @act8945a_work
	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_act8945a_charger_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function act8945a_charger_probe
_act8945a_charger_probe:                ; @act8945a_charger_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	x20, x0
	str	xzr, [sp, #8]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #48
	bl	_devm_kzalloc
	cbz	x0, LBB0_6
; %bb.1:
	mov	x19, x0
	ldr	w0, [x20, #4]
	mov	x1, #0
	bl	_dev_get_regmap
	str	w0, [x19, #40]
	cbz	w0, LBB0_7
; %bb.2:
	mov	x0, x20
	mov	x1, x19
	bl	_act8945a_charger_config
	mov	x21, x0
	cbnz	w0, LBB0_10
; %bb.3:
	ldr	w0, [x20]
	mov	w1, #0
	bl	_of_irq_get
	mov	x21, x0
	cmp	w0, #0
	b.le	LBB0_11
; %bb.4:
Lloh3:
	adrp	x8, _act8945a_status_changed@GOTPAGE
Lloh4:
	ldr	x8, [x8, _act8945a_status_changed@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
Lloh6:
	adrp	x8, _IRQF_TRIGGER_FALLING@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IRQF_TRIGGER_FALLING@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
Lloh9:
	adrp	x4, l_.str.2@PAGE
Lloh10:
	add	x4, x4, l_.str.2@PAGEOFF
	mov	x0, x20
	mov	x1, x21
	mov	x5, x19
	bl	_devm_request_irq
	cbz	w0, LBB0_12
; %bb.5:
	mov	x21, x0
Lloh11:
	adrp	x1, l_.str.3@PAGE
Lloh12:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	b	LBB0_10
LBB0_6:
Lloh13:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_9
LBB0_7:
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_err
LBB0_8:
Lloh17:
	adrp	x8, _EINVAL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_10:
	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_11:
Lloh19:
	adrp	x1, l_.str.1@PAGE
Lloh20:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_dev_err
Lloh21:
	adrp	x8, _ENXIO@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	cmp	w21, #0
	csneg	w21, w21, w8, ne
	b	LBB0_10
LBB0_12:
Lloh24:
	adrp	x8, l_.str.4@PAGE
Lloh25:
	add	x8, x8, l_.str.4@PAGEOFF
	mov	x21, x19
	str	x8, [x21, #16]!
Lloh26:
	adrp	x8, _act8945a_charger_get_property@GOTPAGE
Lloh27:
	ldr	x8, [x8, _act8945a_charger_get_property@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
Lloh29:
	adrp	x9, _act8945a_charger_props@GOTPAGE
Lloh30:
	ldr	x9, [x9, _act8945a_charger_props@GOTPAGEOFF]
Lloh31:
	ldr	w0, [x9]
	stp	w0, w8, [x19, #32]
	bl	_ARRAY_SIZE
	str	w0, [x19, #28]
	add	x1, x19, #24
	mov	x0, x19
	bl	_act8945a_set_supply_type
	cbnz	w0, LBB0_8
; %bb.13:
	ldr	w8, [x20]
	str	w8, [sp, #8]
	str	x19, [sp]
	mov	x2, sp
	mov	x0, x20
	mov	x1, x21
	bl	_devm_power_supply_register
	str	w0, [x19, #8]
	bl	_IS_ERR
	cbz	x0, LBB0_15
; %bb.14:
Lloh32:
	adrp	x1, l_.str.5@PAGE
Lloh33:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	ldr	w0, [x19, #8]
	bl	_PTR_ERR
	mov	x21, x0
	b	LBB0_10
LBB0_15:
	mov	x0, x20
	mov	x1, x19
	bl	_platform_set_drvdata
	add	x0, x19, #4
Lloh34:
	adrp	x8, _act8945a_work@GOTPAGE
Lloh35:
	ldr	x8, [x8, _act8945a_work@GOTPAGEOFF]
Lloh36:
	ldr	w1, [x8]
	bl	_INIT_WORK
	mov	x0, x19
	bl	_act8945a_enable_interrupt
	cbz	w0, LBB0_17
; %bb.16:
Lloh37:
	adrp	x8, _EIO@GOTPAGE
Lloh38:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_9
LBB0_17:
	mov	w21, #0
	mov	w8, #1
	str	w8, [x19]
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh37, Lloh38
	.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	"Parent did not provide regmap\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"failed to find IRQ number\n"

	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_act8945a_status_changed,4,2    ; @act8945a_status_changed
	.comm	_IRQF_TRIGGER_FALLING,4,2       ; @IRQF_TRIGGER_FALLING
l_.str.2:                               ; @.str.2
	.asciz	"act8945a_interrupt"

l_.str.3:                               ; @.str.3
	.asciz	"failed to request nIRQ pin IRQ\n"

l_.str.4:                               ; @.str.4
	.asciz	"act8945a-charger"

	.comm	_act8945a_charger_get_property,4,2 ; @act8945a_charger_get_property
	.comm	_act8945a_charger_props,4,2     ; @act8945a_charger_props
l_.str.5:                               ; @.str.5
	.asciz	"failed to register power supply\n"

	.comm	_act8945a_work,4,2              ; @act8945a_work
	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_act8945a_charger_probe
.subsections_via_symbols
