	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lp8788_is_charger_detected
_lp8788_is_charger_detected:            ## @lp8788_is_charger_detected
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$16, %rsp
	movl	(%rdi), %edi
	movq	_LP8788_CHG_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-4(%rbp), %rdx
	callq	_lp8788_read_byte
	movq	_LP8788_CHG_INPUT_STATE_M@GOTPCREL(%rip), %rax
	movl	-4(%rbp), %ecx
	andl	(%rax), %ecx
	movq	_LP8788_SYSTEM_SUPPLY@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ecx
	sete	%al
	movq	_LP8788_FULL_FUNCTION@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	sete	%cl
	orb	%al, %cl
	movzbl	%cl, %eax
	addq	$16, %rsp
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LP8788_CHG_STATUS,4,2          ## @LP8788_CHG_STATUS
	.comm	_LP8788_CHG_INPUT_STATE_M,4,2   ## @LP8788_CHG_INPUT_STATE_M
	.comm	_LP8788_SYSTEM_SUPPLY,4,2       ## @LP8788_SYSTEM_SUPPLY
	.comm	_LP8788_FULL_FUNCTION,4,2       ## @LP8788_FULL_FUNCTION
	.no_dead_strip	_lp8788_is_charger_detected
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lp8788_is_charger_detected
_lp8788_is_charger_detected:            ; @lp8788_is_charger_detected
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	ldr	w0, [x0]
Lloh0:
	adrp	x8, _LP8788_CHG_STATUS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LP8788_CHG_STATUS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	sub	x2, x29, #4
	bl	_lp8788_read_byte
Lloh3:
	adrp	x8, _LP8788_CHG_INPUT_STATE_M@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LP8788_CHG_INPUT_STATE_M@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldur	w9, [x29, #-4]
	and	w8, w9, w8
Lloh6:
	adrp	x9, _LP8788_SYSTEM_SUPPLY@GOTPAGE
Lloh7:
	ldr	x9, [x9, _LP8788_SYSTEM_SUPPLY@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	cmp	w8, w9
Lloh9:
	adrp	x9, _LP8788_FULL_FUNCTION@GOTPAGE
Lloh10:
	ldr	x9, [x9, _LP8788_FULL_FUNCTION@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	ccmp	w8, w9, #4, ne
	cset	w0, eq
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_LP8788_CHG_STATUS,4,2          ; @LP8788_CHG_STATUS
	.comm	_LP8788_CHG_INPUT_STATE_M,4,2   ; @LP8788_CHG_INPUT_STATE_M
	.comm	_LP8788_SYSTEM_SUPPLY,4,2       ; @LP8788_SYSTEM_SUPPLY
	.comm	_LP8788_FULL_FUNCTION,4,2       ; @LP8788_FULL_FUNCTION
	.no_dead_strip	_lp8788_is_charger_detected
.subsections_via_symbols
