	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lp8727_is_charger_attached
_lp8727_is_charger_attached:            ## @lp8727_is_charger_attached
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movq	_LP8727_ID_TA@GOTPCREL(%rip), %rax
	cmpl	%r14d, (%rax)
	setle	%cl
	movq	_LP8727_ID_USB_CHG@GOTPCREL(%rip), %rax
	cmpl	%r14d, (%rax)
	setge	%al
	andb	%cl, %al
	jmp	LBB0_5
LBB0_1:
	movq	_LP8727_ID_TA@GOTPCREL(%rip), %rax
	cmpl	%r14d, (%rax)
	sete	%cl
	movq	_LP8727_ID_DEDICATED_CHG@GOTPCREL(%rip), %rax
	cmpl	%r14d, (%rax)
	sete	%al
	orb	%cl, %al
	jmp	LBB0_5
LBB0_3:
	movq	_LP8727_ID_USB_CHG@GOTPCREL(%rip), %rax
	cmpl	%r14d, (%rax)
	sete	%al
LBB0_5:
	movzbl	%al, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ac"

	.comm	_LP8727_ID_TA,4,2               ## @LP8727_ID_TA
	.comm	_LP8727_ID_DEDICATED_CHG,4,2    ## @LP8727_ID_DEDICATED_CHG
L_.str.1:                               ## @.str.1
	.asciz	"usb"

	.comm	_LP8727_ID_USB_CHG,4,2          ## @LP8727_ID_USB_CHG
	.no_dead_strip	_lp8727_is_charger_attached
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lp8727_is_charger_attached
_lp8727_is_charger_attached:            ; @lp8727_is_charger_attached
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strcmp
	cbz	w0, LBB0_3
; %bb.1:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_strcmp
	cbz	w0, LBB0_4
; %bb.2:
Lloh4:
	adrp	x8, _LP8727_ID_TA@GOTPAGE
Lloh5:
	ldr	x8, [x8, _LP8727_ID_TA@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	cmp	w8, w19
Lloh7:
	adrp	x8, _LP8727_ID_USB_CHG@GOTPAGE
Lloh8:
	ldr	x8, [x8, _LP8727_ID_USB_CHG@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	ccmp	w8, w19, #8, le
	cset	w0, ge
	b	LBB0_6
LBB0_3:
Lloh10:
	adrp	x8, _LP8727_ID_TA@GOTPAGE
Lloh11:
	ldr	x8, [x8, _LP8727_ID_TA@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	cmp	w8, w19
Lloh13:
	adrp	x8, _LP8727_ID_DEDICATED_CHG@GOTPAGE
Lloh14:
	ldr	x8, [x8, _LP8727_ID_DEDICATED_CHG@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	ccmp	w8, w19, #4, ne
	b	LBB0_5
LBB0_4:
Lloh16:
	adrp	x8, _LP8727_ID_USB_CHG@GOTPAGE
Lloh17:
	ldr	x8, [x8, _LP8727_ID_USB_CHG@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	cmp	w8, w19
LBB0_5:
	cset	w0, eq
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ac"

	.comm	_LP8727_ID_TA,4,2               ; @LP8727_ID_TA
	.comm	_LP8727_ID_DEDICATED_CHG,4,2    ; @LP8727_ID_DEDICATED_CHG
l_.str.1:                               ; @.str.1
	.asciz	"usb"

	.comm	_LP8727_ID_USB_CHG,4,2          ; @LP8727_ID_USB_CHG
	.no_dead_strip	_lp8727_is_charger_attached
.subsections_via_symbols
