	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lp8788_show_eoc_level
_lp8788_show_eoc_level:                 ## @lp8788_show_eoc_level
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdx, %rbx
	callq	_dev_get_drvdata
	movl	(%rax), %edi
	movq	_LP8788_CHG_EOC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-12(%rbp), %rdx
	callq	_lp8788_read_byte
	movl	-12(%rbp), %eax
	movq	_LP8788_CHG_EOC_MODE_M@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	andl	%eax, %edx
	movq	_LP8788_CHG_EOC_LEVEL_M@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movq	_LP8788_CHG_EOC_LEVEL_S@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %eax
	movl	%eax, -12(%rbp)
	testl	%edx, %edx
	leaq	_lp8788_show_eoc_level.relative_level(%rip), %rcx
	leaq	_lp8788_show_eoc_level.abs_level(%rip), %rdx
	cmoveq	%rcx, %rdx
	cltq
	movq	(%rdx,%rax,8), %rcx
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.8(%rip), %rdx
	movq	%rbx, %rdi
	callq	_scnprintf
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__DATA,__const
	.p2align	4                               ## @lp8788_show_eoc_level.abs_level
_lp8788_show_eoc_level.abs_level:
	.quad	L_.str
	.quad	L_.str.1
	.quad	L_.str.2
	.quad	L_.str.3

	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"25mA"

L_.str.1:                               ## @.str.1
	.asciz	"49mA"

L_.str.2:                               ## @.str.2
	.asciz	"75mA"

L_.str.3:                               ## @.str.3
	.asciz	"98mA"

	.section	__DATA,__const
	.p2align	4                               ## @lp8788_show_eoc_level.relative_level
_lp8788_show_eoc_level.relative_level:
	.quad	L_.str.4
	.quad	L_.str.5
	.quad	L_.str.6
	.quad	L_.str.7

	.section	__TEXT,__cstring,cstring_literals
L_.str.4:                               ## @.str.4
	.asciz	"5%"

L_.str.5:                               ## @.str.5
	.asciz	"10%"

L_.str.6:                               ## @.str.6
	.asciz	"15%"

L_.str.7:                               ## @.str.7
	.asciz	"20%"

	.comm	_LP8788_CHG_EOC,4,2             ## @LP8788_CHG_EOC
	.comm	_LP8788_CHG_EOC_MODE_M,4,2      ## @LP8788_CHG_EOC_MODE_M
	.comm	_LP8788_CHG_EOC_LEVEL_M,4,2     ## @LP8788_CHG_EOC_LEVEL_M
	.comm	_LP8788_CHG_EOC_LEVEL_S,4,2     ## @LP8788_CHG_EOC_LEVEL_S
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
L_.str.8:                               ## @.str.8
	.asciz	"End Of Charge Level: %s\n"

	.no_dead_strip	_lp8788_show_eoc_level
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lp8788_show_eoc_level
_lp8788_show_eoc_level:                 ; @lp8788_show_eoc_level
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x2
	bl	_dev_get_drvdata
	ldr	w0, [x0]
Lloh0:
	adrp	x8, _LP8788_CHG_EOC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LP8788_CHG_EOC@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_lp8788_read_byte
	ldr	w8, [sp, #12]
Lloh3:
	adrp	x9, _LP8788_CHG_EOC_MODE_M@GOTPAGE
Lloh4:
	ldr	x9, [x9, _LP8788_CHG_EOC_MODE_M@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x10, _LP8788_CHG_EOC_LEVEL_M@GOTPAGE
Lloh7:
	ldr	x10, [x10, _LP8788_CHG_EOC_LEVEL_M@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	and	w10, w10, w8
Lloh9:
	adrp	x11, _LP8788_CHG_EOC_LEVEL_S@GOTPAGE
Lloh10:
	ldr	x11, [x11, _LP8788_CHG_EOC_LEVEL_S@GOTPAGEOFF]
Lloh11:
	ldr	w11, [x11]
	asr	w10, w10, w11
	str	w10, [sp, #12]
Lloh12:
	adrp	x11, _lp8788_show_eoc_level.abs_level@PAGE
Lloh13:
	add	x11, x11, _lp8788_show_eoc_level.abs_level@PAGEOFF
Lloh14:
	adrp	x12, _lp8788_show_eoc_level.relative_level@PAGE
Lloh15:
	add	x12, x12, _lp8788_show_eoc_level.relative_level@PAGEOFF
	tst	w9, w8
	csel	x8, x12, x11, eq
	ldr	x3, [x8, w10, sxtw #3]
Lloh16:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
Lloh19:
	adrp	x2, l_.str.8@PAGE
Lloh20:
	add	x2, x2, l_.str.8@PAGEOFF
	mov	x0, x19
	bl	_scnprintf
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.section	__DATA,__const
	.p2align	3                               ; @lp8788_show_eoc_level.abs_level
_lp8788_show_eoc_level.abs_level:
	.quad	l_.str
	.quad	l_.str.1
	.quad	l_.str.2
	.quad	l_.str.3

	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"25mA"

l_.str.1:                               ; @.str.1
	.asciz	"49mA"

l_.str.2:                               ; @.str.2
	.asciz	"75mA"

l_.str.3:                               ; @.str.3
	.asciz	"98mA"

	.section	__DATA,__const
	.p2align	3                               ; @lp8788_show_eoc_level.relative_level
_lp8788_show_eoc_level.relative_level:
	.quad	l_.str.4
	.quad	l_.str.5
	.quad	l_.str.6
	.quad	l_.str.7

	.section	__TEXT,__cstring,cstring_literals
l_.str.4:                               ; @.str.4
	.asciz	"5%"

l_.str.5:                               ; @.str.5
	.asciz	"10%"

l_.str.6:                               ; @.str.6
	.asciz	"15%"

l_.str.7:                               ; @.str.7
	.asciz	"20%"

	.comm	_LP8788_CHG_EOC,4,2             ; @LP8788_CHG_EOC
	.comm	_LP8788_CHG_EOC_MODE_M,4,2      ; @LP8788_CHG_EOC_MODE_M
	.comm	_LP8788_CHG_EOC_LEVEL_M,4,2     ; @LP8788_CHG_EOC_LEVEL_M
	.comm	_LP8788_CHG_EOC_LEVEL_S,4,2     ; @LP8788_CHG_EOC_LEVEL_S
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
l_.str.8:                               ; @.str.8
	.asciz	"End Of Charge Level: %s\n"

	.no_dead_strip	_lp8788_show_eoc_level
.subsections_via_symbols
