	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function max14577_charger_probe
_max14577_charger_probe:                ## @max14577_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	(%rdi), %edi
	callq	_dev_get_drvdata
	movq	%rax, %r15
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	$24, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_platform_set_drvdata
	movq	%r14, 16(%rbx)
	movq	%r15, 8(%rbx)
	movq	%r14, %rdi
	callq	_max14577_charger_dt_init
	movl	%eax, 4(%rbx)
	movl	%eax, %edi
	callq	_IS_ERR_OR_NULL
	testq	%rax, %rax
	je	LBB0_3
## %bb.10:
	movl	4(%rbx), %edi
	addq	$8, %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
	jmp	LBB0_9
LBB0_3:
	movq	%rbx, %rdi
	callq	_max14577_charger_reg_init
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_9
## %bb.4:
	movq	_dev_attr_fast_charge_timer@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	callq	_device_create_file
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movl	%eax, %r15d
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	jmp	LBB0_9
LBB0_6:
	movq	%rbx, -32(%rbp)
	movq	_max14577_charger_desc@GOTPCREL(%rip), %rsi
	leaq	-32(%rbp), %rdx
	movq	%r14, %rdi
	callq	_power_supply_register
	movl	%eax, (%rbx)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movl	(%rbx), %edi
	callq	_PTR_ERR
	movl	%eax, %r15d
	movq	_dev_attr_fast_charge_timer@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	callq	_device_remove_file
	jmp	LBB0_9
LBB0_8:
	movq	_MAX14577_CHARGER_EOC_CURRENT_LIMIT_MIN@GOTPCREL(%rip), %rax
	movq	_MAX14577_CHARGER_EOC_CURRENT_LIMIT_STEP@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	leaq	(%rcx,%rcx,4), %rcx
	leaq	(%rcx,%rcx,2), %rcx
	addq	(%rax), %rcx
	movq	_MAX14577_CHARGER_EOC_CURRENT_LIMIT_MAX@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpq	(%rax), %rcx
	setne	%dil
	callq	_BUILD_BUG_ON
	xorl	%r15d, %r15d
LBB0_9:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_dev_attr_fast_charge_timer,4,2 ## @dev_attr_fast_charge_timer
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed: create sysfs entry\n"

	.comm	_max14577_charger_desc,4,2      ## @max14577_charger_desc
L_.str.1:                               ## @.str.1
	.asciz	"failed: power supply register\n"

	.comm	_MAX14577_CHARGER_EOC_CURRENT_LIMIT_MIN,8,3 ## @MAX14577_CHARGER_EOC_CURRENT_LIMIT_MIN
	.comm	_MAX14577_CHARGER_EOC_CURRENT_LIMIT_STEP,4,2 ## @MAX14577_CHARGER_EOC_CURRENT_LIMIT_STEP
	.comm	_MAX14577_CHARGER_EOC_CURRENT_LIMIT_MAX,8,3 ## @MAX14577_CHARGER_EOC_CURRENT_LIMIT_MAX
	.no_dead_strip	_max14577_charger_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function max14577_charger_probe
_max14577_charger_probe:                ; @max14577_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	x19, x0
	ldr	w0, [x0]
	bl	_dev_get_drvdata
	mov	x21, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #24
	bl	_devm_kzalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
	mov	x0, x19
	mov	x1, x20
	bl	_platform_set_drvdata
	stp	x21, x19, [x20, #8]
	mov	x0, x19
	bl	_max14577_charger_dt_init
	str	w0, [x20, #4]
	bl	_IS_ERR_OR_NULL
	cbz	x0, LBB0_4
; %bb.2:
	ldr	w0, [x20, #4]
	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:
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_10
LBB0_4:
	mov	x0, x20
	bl	_max14577_charger_reg_init
	mov	x21, x0
	cbnz	w0, LBB0_10
; %bb.5:
Lloh6:
	adrp	x1, _dev_attr_fast_charge_timer@GOTPAGE
Lloh7:
	ldr	x1, [x1, _dev_attr_fast_charge_timer@GOTPAGEOFF]
	mov	x0, x19
	bl	_device_create_file
	cbz	w0, LBB0_7
; %bb.6:
	mov	x21, x0
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_10
LBB0_7:
	str	x20, [sp, #8]
Lloh10:
	adrp	x1, _max14577_charger_desc@GOTPAGE
Lloh11:
	ldr	x1, [x1, _max14577_charger_desc@GOTPAGEOFF]
	add	x2, sp, #8
	mov	x0, x19
	bl	_power_supply_register
	str	w0, [x20]
	bl	_IS_ERR
	cbz	x0, LBB0_9
; %bb.8:
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	ldr	w0, [x20]
	bl	_PTR_ERR
	mov	x21, x0
Lloh14:
	adrp	x1, _dev_attr_fast_charge_timer@GOTPAGE
Lloh15:
	ldr	x1, [x1, _dev_attr_fast_charge_timer@GOTPAGEOFF]
	mov	x0, x19
	bl	_device_remove_file
	b	LBB0_10
LBB0_9:
Lloh16:
	adrp	x8, _MAX14577_CHARGER_EOC_CURRENT_LIMIT_MIN@GOTPAGE
Lloh17:
	ldr	x8, [x8, _MAX14577_CHARGER_EOC_CURRENT_LIMIT_MIN@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
Lloh19:
	adrp	x9, _MAX14577_CHARGER_EOC_CURRENT_LIMIT_STEP@GOTPAGE
Lloh20:
	ldr	x9, [x9, _MAX14577_CHARGER_EOC_CURRENT_LIMIT_STEP@GOTPAGEOFF]
Lloh21:
	ldrsw	x9, [x9]
	lsl	x10, x9, #4
	sub	x9, x10, x9
	add	x8, x8, x9
Lloh22:
	adrp	x9, _MAX14577_CHARGER_EOC_CURRENT_LIMIT_MAX@GOTPAGE
Lloh23:
	ldr	x9, [x9, _MAX14577_CHARGER_EOC_CURRENT_LIMIT_MAX@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, ne
	bl	_BUILD_BUG_ON
	mov	w21, #0
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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_dev_attr_fast_charge_timer,4,2 ; @dev_attr_fast_charge_timer
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed: create sysfs entry\n"

	.comm	_max14577_charger_desc,4,2      ; @max14577_charger_desc
l_.str.1:                               ; @.str.1
	.asciz	"failed: power supply register\n"

	.comm	_MAX14577_CHARGER_EOC_CURRENT_LIMIT_MIN,8,3 ; @MAX14577_CHARGER_EOC_CURRENT_LIMIT_MIN
	.comm	_MAX14577_CHARGER_EOC_CURRENT_LIMIT_STEP,4,2 ; @MAX14577_CHARGER_EOC_CURRENT_LIMIT_STEP
	.comm	_MAX14577_CHARGER_EOC_CURRENT_LIMIT_MAX,8,3 ; @MAX14577_CHARGER_EOC_CURRENT_LIMIT_MAX
	.no_dead_strip	_max14577_charger_probe
.subsections_via_symbols
