	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lp8788_show_eoc_time
_lp8788_show_eoc_time:                  ## @lp8788_show_eoc_time
	.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	-16(%rbp), %rdx
	callq	_lp8788_read_byte
	movq	_LP8788_CHG_EOC_TIME_M@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	andq	-16(%rbp), %rax
	movq	_LP8788_CHG_EOC_TIME_S@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shrq	%cl, %rax
	movq	%rax, -16(%rbp)
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	_reltable.lp8788_show_eoc_time(%rip), %rdx
	movslq	(%rdx,%rax,4), %rcx
	addq	%rdx, %rcx
	leaq	L_.str.8(%rip), %rdx
	movq	%rbx, %rdi
	callq	_scnprintf
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	2                               ## @reltable.lp8788_show_eoc_time
_reltable.lp8788_show_eoc_time:
	.long	L_.str-_reltable.lp8788_show_eoc_time
	.long	L_.str.1-_reltable.lp8788_show_eoc_time
	.long	L_.str.2-_reltable.lp8788_show_eoc_time
	.long	L_.str.3-_reltable.lp8788_show_eoc_time
	.long	L_.str.4-_reltable.lp8788_show_eoc_time
	.long	L_.str.5-_reltable.lp8788_show_eoc_time
	.long	L_.str.6-_reltable.lp8788_show_eoc_time
	.long	L_.str.7-_reltable.lp8788_show_eoc_time

	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"400ms"

L_.str.1:                               ## @.str.1
	.asciz	"5min"

L_.str.2:                               ## @.str.2
	.asciz	"10min"

L_.str.3:                               ## @.str.3
	.asciz	"15min"

L_.str.4:                               ## @.str.4
	.asciz	"20min"

L_.str.5:                               ## @.str.5
	.asciz	"25min"

L_.str.6:                               ## @.str.6
	.asciz	"30min"

L_.str.7:                               ## @.str.7
	.asciz	"No timeout"

	.comm	_LP8788_CHG_EOC,4,2             ## @LP8788_CHG_EOC
	.comm	_LP8788_CHG_EOC_TIME_M,8,3      ## @LP8788_CHG_EOC_TIME_M
	.comm	_LP8788_CHG_EOC_TIME_S,8,3      ## @LP8788_CHG_EOC_TIME_S
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
L_.str.8:                               ## @.str.8
	.asciz	"End Of Charge Time: %s\n"

	.no_dead_strip	_lp8788_show_eoc_time
.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_time
_lp8788_show_eoc_time:                  ; @lp8788_show_eoc_time
	.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, #8
	bl	_lp8788_read_byte
	ldr	x8, [sp, #8]
Lloh3:
	adrp	x9, _LP8788_CHG_EOC_TIME_M@GOTPAGE
Lloh4:
	ldr	x9, [x9, _LP8788_CHG_EOC_TIME_M@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	and	x8, x9, x8
Lloh6:
	adrp	x9, _LP8788_CHG_EOC_TIME_S@GOTPAGE
Lloh7:
	ldr	x9, [x9, _LP8788_CHG_EOC_TIME_S@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	lsr	x8, x8, x9
Lloh9:
	adrp	x9, _PAGE_SIZE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _PAGE_SIZE@GOTPAGEOFF]
	str	x8, [sp, #8]
Lloh11:
	ldr	w1, [x9]
Lloh12:
	adrp	x9, _lp8788_show_eoc_time.stime@PAGE
Lloh13:
	add	x9, x9, _lp8788_show_eoc_time.stime@PAGEOFF
	ldr	x3, [x9, x8, lsl #3]
Lloh14:
	adrp	x2, l_.str.8@PAGE
Lloh15:
	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	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_time.stime
_lp8788_show_eoc_time.stime:
	.quad	l_.str
	.quad	l_.str.1
	.quad	l_.str.2
	.quad	l_.str.3
	.quad	l_.str.4
	.quad	l_.str.5
	.quad	l_.str.6
	.quad	l_.str.7

	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"400ms"

l_.str.1:                               ; @.str.1
	.asciz	"5min"

l_.str.2:                               ; @.str.2
	.asciz	"10min"

l_.str.3:                               ; @.str.3
	.asciz	"15min"

l_.str.4:                               ; @.str.4
	.asciz	"20min"

l_.str.5:                               ; @.str.5
	.asciz	"25min"

l_.str.6:                               ; @.str.6
	.asciz	"30min"

l_.str.7:                               ; @.str.7
	.asciz	"No timeout"

	.comm	_LP8788_CHG_EOC,4,2             ; @LP8788_CHG_EOC
	.comm	_LP8788_CHG_EOC_TIME_M,8,3      ; @LP8788_CHG_EOC_TIME_M
	.comm	_LP8788_CHG_EOC_TIME_S,8,3      ; @LP8788_CHG_EOC_TIME_S
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
l_.str.8:                               ; @.str.8
	.asciz	"End Of Charge Time: %s\n"

	.no_dead_strip	_lp8788_show_eoc_time
.subsections_via_symbols
