	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function max8925_power_probe
_max8925_power_probe:                   ## @max8925_power_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
	movl	(%rdi), %edi
	callq	_dev_get_drvdata
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_max8925_power_dt_init
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	$64, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.5:
	movq	%rax, %r14
	movq	%r15, 56(%rax)
	movl	4(%r15), %eax
	movl	%eax, 52(%r14)
	movl	(%r15), %eax
	movl	%eax, 48(%r14)
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_platform_set_drvdata
	movl	28(%r12), %eax
	movl	%eax, -44(%rbp)
	movl	24(%r12), %eax
	movl	%eax, -48(%rbp)
	movq	_ac_desc@GOTPCREL(%rip), %rsi
	leaq	-48(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_power_supply_register
	movq	%rax, (%r14)
	movq	%rax, %rdi
	callq	_IS_ERR
	movq	(%r14), %rdi
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	callq	_PTR_ERR
	movl	%eax, %r13d
	jmp	LBB0_12
LBB0_1:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_4:
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
LBB0_12:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	%rbx, (%rdi)
	movq	_usb_desc@GOTPCREL(%rip), %rsi
	leaq	-48(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_power_supply_register
	movq	%rax, 8(%r14)
	movq	%rax, %rdi
	callq	_IS_ERR
	movq	8(%r14), %rdi
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	callq	_PTR_ERR
	movl	%eax, %r13d
	jmp	LBB0_11
LBB0_9:
	movq	%rbx, (%rdi)
	movq	_battery_desc@GOTPCREL(%rip), %rsi
	xorl	%r13d, %r13d
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_power_supply_register
	movq	%rax, 40(%r14)
	movq	%rax, %rdi
	callq	_IS_ERR
	movq	40(%r14), %rdi
	testq	%rax, %rax
	je	LBB0_13
## %bb.10:
	callq	_PTR_ERR
	movl	%eax, %r13d
	movq	8(%r14), %rdi
	callq	_power_supply_unregister
LBB0_11:
	movq	(%r14), %rdi
	callq	_power_supply_unregister
	jmp	LBB0_12
LBB0_13:
	movq	%rbx, (%rdi)
	movl	20(%r12), %eax
	movl	%eax, 36(%r14)
	movl	16(%r12), %eax
	movl	%eax, 32(%r14)
	movups	(%r12), %xmm0
	movups	%xmm0, 16(%r14)
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_max8925_init_charger
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"platform data isn't assigned to power supply\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ac_desc,4,2                    ## @ac_desc
	.comm	_usb_desc,4,2                   ## @usb_desc
	.comm	_battery_desc,4,2               ## @battery_desc
	.no_dead_strip	_max8925_power_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function max8925_power_probe
_max8925_power_probe:                   ; @max8925_power_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
	ldr	w0, [x0]
	bl	_dev_get_drvdata
	mov	x21, x0
	mov	x0, x20
	bl	_max8925_power_dt_init
	cbz	x0, LBB0_4
; %bb.1:
	mov	x22, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x20
	mov	w1, #64
	bl	_devm_kzalloc
	cbz	x0, LBB0_5
; %bb.2:
	mov	x19, x0
	str	x21, [x0, #56]
	ldr	d0, [x21]
	str	d0, [x0, #48]
	mov	x0, x20
	mov	x1, x19
	bl	_platform_set_drvdata
	ldr	d0, [x22, #24]
	str	d0, [sp, #8]
Lloh3:
	adrp	x1, _ac_desc@GOTPAGE
Lloh4:
	ldr	x1, [x1, _ac_desc@GOTPAGEOFF]
	add	x2, sp, #8
	mov	x0, x20
	bl	_power_supply_register
	str	x0, [x19]
	bl	_IS_ERR
	mov	x8, x0
	ldr	x0, [x19]
	cbz	x8, LBB0_8
; %bb.3:
	bl	_PTR_ERR
	mov	x20, x0
	b	LBB0_7
LBB0_4:
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_err
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh9:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_7:
	mov	x0, x20
	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_8:
	str	x20, [x0]
Lloh11:
	adrp	x1, _usb_desc@GOTPAGE
Lloh12:
	ldr	x1, [x1, _usb_desc@GOTPAGEOFF]
	add	x2, sp, #8
	mov	x0, x20
	bl	_power_supply_register
	str	x0, [x19, #8]
	bl	_IS_ERR
	mov	x8, x0
	ldr	x0, [x19, #8]
	cbz	x8, LBB0_10
; %bb.9:
	bl	_PTR_ERR
	mov	x20, x0
	b	LBB0_12
LBB0_10:
	str	x20, [x0]
Lloh13:
	adrp	x1, _battery_desc@GOTPAGE
Lloh14:
	ldr	x1, [x1, _battery_desc@GOTPAGEOFF]
	mov	x0, x20
	mov	x2, #0
	bl	_power_supply_register
	str	x0, [x19, #40]
	bl	_IS_ERR
	mov	x8, x0
	ldr	x0, [x19, #40]
	cbz	x8, LBB0_13
; %bb.11:
	bl	_PTR_ERR
	mov	x20, x0
	ldr	x0, [x19, #8]
	bl	_power_supply_unregister
LBB0_12:
	ldr	x0, [x19]
	bl	_power_supply_unregister
	b	LBB0_7
LBB0_13:
	str	x20, [x0]
	ldr	d0, [x22, #16]
	str	d0, [x19, #32]
	ldr	q0, [x22]
	str	q0, [x19, #16]
	mov	x0, x21
	mov	x1, x19
	bl	_max8925_init_charger
	mov	w20, #0
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"platform data isn't assigned to power supply\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ac_desc,4,2                    ; @ac_desc
	.comm	_usb_desc,4,2                   ; @usb_desc
	.comm	_battery_desc,4,2               ; @battery_desc
	.no_dead_strip	_max8925_power_probe
.subsections_via_symbols
