	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function max14577_init_fast_charge
_max14577_init_fast_charge:             ## @max14577_init_fast_charge
	.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
	movl	%esi, %r15d
	movq	%rdi, %r14
	movq	_maxim_charger_currents@GOTPCREL(%rip), %rax
	movq	(%rdi), %rcx
	movq	(%rcx), %rdi
	shlq	$2, %rdi
	addq	(%rax), %rdi
	leaq	-28(%rbp), %rcx
	movl	%esi, %edx
	callq	_maxim_charger_calc_reg_current
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %ebx
	movl	8(%r14), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %edx
	callq	_dev_err
	jmp	LBB0_3
LBB0_2:
	movq	(%r14), %rax
	movl	8(%rax), %edi
	movq	_MAX14577_CHG_REG_CHG_CTRL4@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_CHGCTRL4_MBCICHWRCL_MASK@GOTPCREL(%rip), %rax
	movq	_CHGCTRL4_MBCICHWRCH_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movl	-28(%rbp), %ecx
	callq	_max14577_update_reg
	movl	%eax, %ebx
LBB0_3:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_maxim_charger_currents,8,3     ## @maxim_charger_currents
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Wrong value for fast charge: %u\n"

	.comm	_MAX14577_CHG_REG_CHG_CTRL4,4,2 ## @MAX14577_CHG_REG_CHG_CTRL4
	.comm	_CHGCTRL4_MBCICHWRCL_MASK,4,2   ## @CHGCTRL4_MBCICHWRCL_MASK
	.comm	_CHGCTRL4_MBCICHWRCH_MASK,4,2   ## @CHGCTRL4_MBCICHWRCH_MASK
	.no_dead_strip	_max14577_init_fast_charge
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function max14577_init_fast_charge
_max14577_init_fast_charge:             ; @max14577_init_fast_charge
	.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, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _maxim_charger_currents@GOTPAGE
Lloh1:
	ldr	x8, [x8, _maxim_charger_currents@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x9, [x0]
	ldr	x9, [x9]
	add	x0, x8, x9, lsl #2
	add	x3, sp, #12
	mov	x2, x1
	bl	_maxim_charger_calc_reg_current
	cbz	w0, LBB0_2
; %bb.1:
	mov	x21, x0
	ldr	w0, [x20, #8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	bl	_dev_err
	b	LBB0_3
LBB0_2:
	ldr	x8, [x20]
	ldr	w0, [x8, #8]
Lloh5:
	adrp	x8, _MAX14577_CHG_REG_CHG_CTRL4@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MAX14577_CHG_REG_CHG_CTRL4@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x8, _CHGCTRL4_MBCICHWRCL_MASK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _CHGCTRL4_MBCICHWRCL_MASK@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _CHGCTRL4_MBCICHWRCH_MASK@GOTPAGE
Lloh12:
	ldr	x9, [x9, _CHGCTRL4_MBCICHWRCH_MASK@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w2, w9, w8
	ldr	w3, [sp, #12]
	bl	_max14577_update_reg
	mov	x21, x0
LBB0_3:
	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 AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_maxim_charger_currents,8,3     ; @maxim_charger_currents
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Wrong value for fast charge: %u\n"

	.comm	_MAX14577_CHG_REG_CHG_CTRL4,4,2 ; @MAX14577_CHG_REG_CHG_CTRL4
	.comm	_CHGCTRL4_MBCICHWRCL_MASK,4,2   ; @CHGCTRL4_MBCICHWRCL_MASK
	.comm	_CHGCTRL4_MBCICHWRCH_MASK,4,2   ; @CHGCTRL4_MBCICHWRCH_MASK
	.no_dead_strip	_max14577_init_fast_charge
.subsections_via_symbols
