	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lp8727_battery_get_property
_lp8727_battery_get_property:           ## @lp8727_battery_get_property
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movl	%esi, %ebx
	movq	%rdi, %r13
	movl	8(%rdi), %edi
	callq	_dev_get_drvdata
	xorl	%r15d, %r15d
	addl	$-128, %ebx
	cmpl	$5, %ebx
	ja	LBB0_22
## %bb.1:
	movq	%rax, %r12
	movq	8(%rax), %rax
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rbx,4), %rdx
	addq	%rcx, %rdx
	jmpq	*%rdx
LBB0_2:
	testq	%rax, %rax
	je	LBB0_16
## %bb.3:
	movq	16(%rax), %rcx
	testq	%rcx, %rcx
	jne	LBB0_15
	jmp	LBB0_22
LBB0_4:
	testq	%rax, %rax
	je	LBB0_16
## %bb.5:
	movq	(%rax), %rcx
	testq	%rcx, %rcx
	jne	LBB0_15
	jmp	LBB0_22
LBB0_6:
	movq	(%r13), %rax
	movl	(%rax), %edi
	movl	(%r12), %esi
	callq	_lp8727_is_charger_attached
	testl	%eax, %eax
	je	LBB0_18
## %bb.7:
	movq	_LP8727_STATUS1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rdx
	movq	%r12, %rdi
	callq	_lp8727_read_byte
	movq	_LP8727_CHGSTAT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	-44(%rbp), %eax
	movq	_LP8727_STAT_EOC@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_19
## %bb.8:
	movq	_POWER_SUPPLY_STATUS_FULL@GOTPCREL(%rip), %rax
	jmp	LBB0_20
LBB0_9:
	testq	%rax, %rax
	je	LBB0_16
## %bb.10:
	movq	24(%rax), %rcx
	testq	%rcx, %rcx
	jne	LBB0_15
	jmp	LBB0_22
LBB0_11:
	movq	_LP8727_STATUS2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rdx
	movq	%r12, %rdi
	callq	_lp8727_read_byte
	movq	_LP8727_TEMP_STAT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	andl	-44(%rbp), %edi
	movq	_LP8727_TEMP_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	sarl	%cl, %edi
	callq	_lp8727_is_high_temperature
	testl	%eax, %eax
	jne	LBB0_17
## %bb.12:
	movq	_POWER_SUPPLY_HEALTH_GOOD@GOTPCREL(%rip), %rax
	jmp	LBB0_20
LBB0_13:
	testq	%rax, %rax
	je	LBB0_16
## %bb.14:
	movq	8(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_22
LBB0_15:
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	*%rcx
	jmp	LBB0_21
LBB0_16:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_22
LBB0_17:
	movq	_POWER_SUPPLY_HEALTH_OVERHEAT@GOTPCREL(%rip), %rax
	jmp	LBB0_20
LBB0_18:
	movq	_POWER_SUPPLY_STATUS_DISCHARGING@GOTPCREL(%rip), %rax
	jmp	LBB0_20
LBB0_19:
	movq	_POWER_SUPPLY_STATUS_CHARGING@GOTPCREL(%rip), %rax
LBB0_20:
	movl	(%rax), %eax
LBB0_21:
	movl	%eax, (%r14)
LBB0_22:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_4
	.long	L0_0_set_6
	.long	L0_0_set_9
	.long	L0_0_set_11
	.long	L0_0_set_13
	.end_data_region
                                        ## -- End function
	.comm	_POWER_SUPPLY_STATUS_DISCHARGING,4,2 ## @POWER_SUPPLY_STATUS_DISCHARGING
	.comm	_LP8727_STATUS1,4,2             ## @LP8727_STATUS1
	.comm	_LP8727_CHGSTAT,4,2             ## @LP8727_CHGSTAT
	.comm	_LP8727_STAT_EOC,4,2            ## @LP8727_STAT_EOC
	.comm	_POWER_SUPPLY_STATUS_FULL,4,2   ## @POWER_SUPPLY_STATUS_FULL
	.comm	_POWER_SUPPLY_STATUS_CHARGING,4,2 ## @POWER_SUPPLY_STATUS_CHARGING
	.comm	_LP8727_STATUS2,4,2             ## @LP8727_STATUS2
	.comm	_LP8727_TEMP_STAT,4,2           ## @LP8727_TEMP_STAT
	.comm	_LP8727_TEMP_SHIFT,4,2          ## @LP8727_TEMP_SHIFT
	.comm	_POWER_SUPPLY_HEALTH_OVERHEAT,4,2 ## @POWER_SUPPLY_HEALTH_OVERHEAT
	.comm	_POWER_SUPPLY_HEALTH_GOOD,4,2   ## @POWER_SUPPLY_HEALTH_GOOD
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_lp8727_battery_get_property
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lp8727_battery_get_property
_lp8727_battery_get_property:           ; @lp8727_battery_get_property
	.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, x2
	mov	x22, x1
	mov	x21, x0
	ldr	w0, [x0, #8]
	bl	_dev_get_drvdata
	sub	w9, w22, #128
	cmp	w9, #5
	b.hi	LBB0_4
; %bb.1:
	mov	x20, x0
	ldr	x8, [x0, #8]
Lloh0:
	adrp	x10, lJTI0_0@PAGE
Lloh1:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_2
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_2:
	cbz	x8, LBB0_15
; %bb.3:
	ldr	x8, [x8, #16]
	cbnz	x8, LBB0_7
LBB0_4:
	mov	w0, #0
	b	LBB0_18
LBB0_5:
	cbz	x8, LBB0_15
; %bb.6:
	ldr	x8, [x8]
	cbz	x8, LBB0_4
LBB0_7:
	blr	x8
	mov	x8, x0
	mov	w0, #0
	b	LBB0_17
LBB0_8:
	ldr	x8, [x21]
	ldr	w0, [x8]
	ldr	w1, [x20]
	bl	_lp8727_is_charger_attached
	cbz	w0, LBB0_16
; %bb.9:
Lloh2:
	adrp	x8, _LP8727_STATUS1@GOTPAGE
Lloh3:
	ldr	x8, [x8, _LP8727_STATUS1@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	x0, x20
	bl	_lp8727_read_byte
	mov	w0, #0
	ldr	w8, [sp, #12]
Lloh5:
	adrp	x9, _LP8727_CHGSTAT@GOTPAGE
Lloh6:
	ldr	x9, [x9, _LP8727_CHGSTAT@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	and	w8, w9, w8
Lloh8:
	adrp	x9, _LP8727_STAT_EOC@GOTPAGE
Lloh9:
	ldr	x9, [x9, _LP8727_STAT_EOC@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
Lloh11:
	adrp	x10, _POWER_SUPPLY_STATUS_FULL@GOTPAGE
Lloh12:
	ldr	x10, [x10, _POWER_SUPPLY_STATUS_FULL@GOTPAGEOFF]
Lloh13:
	adrp	x11, _POWER_SUPPLY_STATUS_CHARGING@GOTPAGE
Lloh14:
	ldr	x11, [x11, _POWER_SUPPLY_STATUS_CHARGING@GOTPAGEOFF]
	cmp	w8, w9
	csel	x8, x10, x11, eq
	ldr	w8, [x8]
	b	LBB0_17
LBB0_10:
	cbz	x8, LBB0_15
; %bb.11:
	ldr	x8, [x8, #24]
	cbnz	x8, LBB0_7
	b	LBB0_4
LBB0_12:
Lloh15:
	adrp	x8, _LP8727_STATUS2@GOTPAGE
Lloh16:
	ldr	x8, [x8, _LP8727_STATUS2@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	x0, x20
	bl	_lp8727_read_byte
	ldr	w8, [sp, #12]
Lloh18:
	adrp	x9, _LP8727_TEMP_STAT@GOTPAGE
Lloh19:
	ldr	x9, [x9, _LP8727_TEMP_STAT@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	and	w8, w9, w8
Lloh21:
	adrp	x9, _LP8727_TEMP_SHIFT@GOTPAGE
Lloh22:
	ldr	x9, [x9, _LP8727_TEMP_SHIFT@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	asr	w0, w8, w9
	bl	_lp8727_is_high_temperature
	mov	x8, x0
	mov	w0, #0
Lloh24:
	adrp	x9, _POWER_SUPPLY_HEALTH_OVERHEAT@GOTPAGE
Lloh25:
	ldr	x9, [x9, _POWER_SUPPLY_HEALTH_OVERHEAT@GOTPAGEOFF]
Lloh26:
	adrp	x10, _POWER_SUPPLY_HEALTH_GOOD@GOTPAGE
Lloh27:
	ldr	x10, [x10, _POWER_SUPPLY_HEALTH_GOOD@GOTPAGEOFF]
	cmp	w8, #0
	csel	x8, x10, x9, eq
	ldr	w8, [x8]
	b	LBB0_17
LBB0_13:
	cbz	x8, LBB0_15
; %bb.14:
	ldr	x8, [x8, #8]
	cbnz	x8, LBB0_7
	b	LBB0_4
LBB0_15:
Lloh28:
	adrp	x8, _EINVAL@GOTPAGE
Lloh29:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_18
LBB0_16:
Lloh31:
	adrp	x8, _POWER_SUPPLY_STATUS_DISCHARGING@GOTPAGE
Lloh32:
	ldr	x8, [x8, _POWER_SUPPLY_STATUS_DISCHARGING@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
LBB0_17:
	str	w8, [x19]
LBB0_18:
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
	.byte	(LBB0_10-LBB0_2)>>2
	.byte	(LBB0_12-LBB0_2)>>2
	.byte	(LBB0_13-LBB0_2)>>2
                                        ; -- End function
	.comm	_POWER_SUPPLY_STATUS_DISCHARGING,4,2 ; @POWER_SUPPLY_STATUS_DISCHARGING
	.comm	_LP8727_STATUS1,4,2             ; @LP8727_STATUS1
	.comm	_LP8727_CHGSTAT,4,2             ; @LP8727_CHGSTAT
	.comm	_LP8727_STAT_EOC,4,2            ; @LP8727_STAT_EOC
	.comm	_POWER_SUPPLY_STATUS_FULL,4,2   ; @POWER_SUPPLY_STATUS_FULL
	.comm	_POWER_SUPPLY_STATUS_CHARGING,4,2 ; @POWER_SUPPLY_STATUS_CHARGING
	.comm	_LP8727_STATUS2,4,2             ; @LP8727_STATUS2
	.comm	_LP8727_TEMP_STAT,4,2           ; @LP8727_TEMP_STAT
	.comm	_LP8727_TEMP_SHIFT,4,2          ; @LP8727_TEMP_SHIFT
	.comm	_POWER_SUPPLY_HEALTH_OVERHEAT,4,2 ; @POWER_SUPPLY_HEALTH_OVERHEAT
	.comm	_POWER_SUPPLY_HEALTH_GOOD,4,2   ; @POWER_SUPPLY_HEALTH_GOOD
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_lp8727_battery_get_property
.subsections_via_symbols
