	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bat_get_property
_bat_get_property:                      ## @bat_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdx, %r14
	movl	%esi, %ebx
	callq	_power_supply_get_drvdata
	addl	$-128, %ebx
	cmpl	$19, %ebx
	ja	LBB0_26
## %bb.1:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rbx,4), %rdx
	addq	%rcx, %rdx
	jmpq	*%rdx
LBB0_8:
	movq	_BAT_VOLTAGE_NOW@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_6:
	movq	_BAT_VOLTAGE_DESIGN@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_20:
	movq	_BAT_TEMP_AVG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ec_read_s8
                                        ## kill: def $eax killed $eax def $rax
	addl	%eax, %eax
	leal	(%rax,%rax,4), %eax
	jmp	LBB0_25
LBB0_19:
	movq	_BAT_TEMP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ec_read_u8
	movl	$222, %ecx
	subl	%eax, %ecx
	imull	$1000, %ecx, %eax               ## imm = 0x3E8
	sarl	$8, %eax
	jmp	LBB0_25
LBB0_5:
	xorl	%eax, %eax
	callq	_bat_technology
	jmp	LBB0_25
LBB0_2:
	xorl	%eax, %eax
	callq	_bat_status
	jmp	LBB0_25
LBB0_4:
	xorl	%eax, %eax
	callq	_bat_is_present
	jmp	LBB0_25
LBB0_12:
	movq	_BAT_POWER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ec_read_u8
	imull	$1000000, %eax, %eax            ## imm = 0xF4240
	jmp	LBB0_25
LBB0_21:
	movl	8(%rax), %eax
	jmp	LBB0_25
LBB0_22:
	movl	4(%rax), %eax
	jmp	LBB0_25
LBB0_3:
	xorl	%eax, %eax
	callq	_bat_health
	jmp	LBB0_25
LBB0_9:
	movq	_BAT_CURRENT_NOW@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_11:
	movq	_BAT_CURRENT_AVG@GOTPCREL(%rip), %rax
LBB0_10:
	movl	(%rax), %edi
	callq	_ec_read_s16
	imull	$1000, %eax, %eax               ## imm = 0x3E8
	jmp	LBB0_25
LBB0_14:
	movq	_BAT_CHARGE_NOW@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_13:
	movq	_BAT_CHARGE_DESIGN@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %edi
	callq	_ec_read_u16
	imull	$1000, %eax, %eax               ## imm = 0x3E8
	jmp	LBB0_25
LBB0_23:
	movq	_BAT_CHARGE_LIMIT_MAX@GOTPCREL(%rip), %rax
LBB0_24:
	movl	(%rax), %eax
	jmp	LBB0_25
LBB0_15:
	movq	_BAT_CHARGE_LIMIT@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_18:
	xorl	%eax, %eax
	callq	_bat_capacity_level
	jmp	LBB0_25
LBB0_17:
	movq	_BAT_CAPACITY@GOTPCREL(%rip), %rax
LBB0_16:
	movl	(%rax), %edi
	callq	_ec_read_u8
LBB0_25:
	movl	%eax, (%r14)
LBB0_26:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_20, LBB0_20-LJTI0_0
.set L0_0_set_19, LBB0_19-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_24, LBB0_24-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_21, LBB0_21-LJTI0_0
.set L0_0_set_22, LBB0_22-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_23, LBB0_23-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_18, LBB0_18-LJTI0_0
.set L0_0_set_17, LBB0_17-LJTI0_0
LJTI0_0:
	.long	L0_0_set_8
	.long	L0_0_set_6
	.long	L0_0_set_20
	.long	L0_0_set_19
	.long	L0_0_set_5
	.long	L0_0_set_2
	.long	L0_0_set_24
	.long	L0_0_set_4
	.long	L0_0_set_12
	.long	L0_0_set_21
	.long	L0_0_set_22
	.long	L0_0_set_3
	.long	L0_0_set_9
	.long	L0_0_set_11
	.long	L0_0_set_14
	.long	L0_0_set_13
	.long	L0_0_set_23
	.long	L0_0_set_15
	.long	L0_0_set_18
	.long	L0_0_set_17
	.end_data_region
                                        ## -- End function
	.comm	_BAT_VOLTAGE_DESIGN,4,2         ## @BAT_VOLTAGE_DESIGN
	.comm	_BAT_VOLTAGE_NOW,4,2            ## @BAT_VOLTAGE_NOW
	.comm	_BAT_CURRENT_NOW,4,2            ## @BAT_CURRENT_NOW
	.comm	_BAT_CURRENT_AVG,4,2            ## @BAT_CURRENT_AVG
	.comm	_BAT_POWER,4,2                  ## @BAT_POWER
	.comm	_BAT_CHARGE_DESIGN,4,2          ## @BAT_CHARGE_DESIGN
	.comm	_BAT_CHARGE_NOW,4,2             ## @BAT_CHARGE_NOW
	.comm	_BAT_CHARGE_LIMIT,4,2           ## @BAT_CHARGE_LIMIT
	.comm	_BAT_CHARGE_LIMIT_MAX,4,2       ## @BAT_CHARGE_LIMIT_MAX
	.comm	_BAT_CAPACITY,4,2               ## @BAT_CAPACITY
	.comm	_BAT_TEMP,4,2                   ## @BAT_TEMP
	.comm	_BAT_TEMP_AVG,4,2               ## @BAT_TEMP_AVG
	.no_dead_strip	_bat_get_property
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bat_get_property
_bat_get_property:                      ; @bat_get_property
	.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, x2
	mov	x20, x1
	bl	_power_supply_get_drvdata
	sub	w8, w20, #128
	cmp	w8, #19
	b.hi	LBB0_27
; %bb.1:
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
Lloh2:
	adrp	x8, _BAT_VOLTAGE_NOW@GOTPAGE
Lloh3:
	ldr	x8, [x8, _BAT_VOLTAGE_NOW@GOTPAGEOFF]
	b	LBB0_19
LBB0_3:
Lloh4:
	adrp	x8, _BAT_VOLTAGE_DESIGN@GOTPAGE
Lloh5:
	ldr	x8, [x8, _BAT_VOLTAGE_DESIGN@GOTPAGEOFF]
	b	LBB0_19
LBB0_4:
Lloh6:
	adrp	x8, _BAT_TEMP_AVG@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BAT_TEMP_AVG@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_ec_read_s8
	add	w8, w0, w0, lsl #2
	lsl	w0, w8, #1
	b	LBB0_26
LBB0_5:
Lloh9:
	adrp	x8, _BAT_TEMP@GOTPAGE
Lloh10:
	ldr	x8, [x8, _BAT_TEMP@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_ec_read_u8
	mov	w8, #222
	sub	w8, w8, w0
	mov	w9, #1000
	mul	w8, w8, w9
	asr	w0, w8, #8
	b	LBB0_26
LBB0_6:
	bl	_bat_technology
	b	LBB0_26
LBB0_7:
	bl	_bat_status
	b	LBB0_26
LBB0_8:
	ldr	w0, [x0]
	b	LBB0_26
LBB0_9:
	bl	_bat_is_present
	b	LBB0_26
LBB0_10:
Lloh12:
	adrp	x8, _BAT_POWER@GOTPAGE
Lloh13:
	ldr	x8, [x8, _BAT_POWER@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	bl	_ec_read_u8
	mov	w8, #16960
	movk	w8, #15, lsl #16
	mul	w0, w0, w8
	b	LBB0_26
LBB0_11:
	ldr	w0, [x0, #8]
	b	LBB0_26
LBB0_12:
	ldr	w0, [x0, #4]
	b	LBB0_26
LBB0_13:
	bl	_bat_health
	b	LBB0_26
LBB0_14:
Lloh15:
	adrp	x8, _BAT_CURRENT_NOW@GOTPAGE
Lloh16:
	ldr	x8, [x8, _BAT_CURRENT_NOW@GOTPAGEOFF]
	b	LBB0_16
LBB0_15:
Lloh17:
	adrp	x8, _BAT_CURRENT_AVG@GOTPAGE
Lloh18:
	ldr	x8, [x8, _BAT_CURRENT_AVG@GOTPAGEOFF]
LBB0_16:
	ldr	w0, [x8]
	bl	_ec_read_s16
	b	LBB0_20
LBB0_17:
Lloh19:
	adrp	x8, _BAT_CHARGE_NOW@GOTPAGE
Lloh20:
	ldr	x8, [x8, _BAT_CHARGE_NOW@GOTPAGEOFF]
	b	LBB0_19
LBB0_18:
Lloh21:
	adrp	x8, _BAT_CHARGE_DESIGN@GOTPAGE
Lloh22:
	ldr	x8, [x8, _BAT_CHARGE_DESIGN@GOTPAGEOFF]
LBB0_19:
	ldr	w0, [x8]
	bl	_ec_read_u16
LBB0_20:
	mov	w8, #1000
	mul	w0, w0, w8
	b	LBB0_26
LBB0_21:
Lloh23:
	adrp	x8, _BAT_CHARGE_LIMIT_MAX@GOTPAGE
Lloh24:
	ldr	x8, [x8, _BAT_CHARGE_LIMIT_MAX@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
	b	LBB0_26
LBB0_22:
Lloh26:
	adrp	x8, _BAT_CHARGE_LIMIT@GOTPAGE
Lloh27:
	ldr	x8, [x8, _BAT_CHARGE_LIMIT@GOTPAGEOFF]
	b	LBB0_25
LBB0_23:
	bl	_bat_capacity_level
	b	LBB0_26
LBB0_24:
Lloh28:
	adrp	x8, _BAT_CAPACITY@GOTPAGE
Lloh29:
	ldr	x8, [x8, _BAT_CAPACITY@GOTPAGEOFF]
LBB0_25:
	ldr	w0, [x8]
	bl	_ec_read_u8
LBB0_26:
	str	w0, [x19]
LBB0_27:
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh28, Lloh29
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
	.byte	(LBB0_10-LBB0_2)>>2
	.byte	(LBB0_11-LBB0_2)>>2
	.byte	(LBB0_12-LBB0_2)>>2
	.byte	(LBB0_13-LBB0_2)>>2
	.byte	(LBB0_14-LBB0_2)>>2
	.byte	(LBB0_15-LBB0_2)>>2
	.byte	(LBB0_17-LBB0_2)>>2
	.byte	(LBB0_18-LBB0_2)>>2
	.byte	(LBB0_21-LBB0_2)>>2
	.byte	(LBB0_22-LBB0_2)>>2
	.byte	(LBB0_23-LBB0_2)>>2
	.byte	(LBB0_24-LBB0_2)>>2
                                        ; -- End function
	.comm	_BAT_VOLTAGE_DESIGN,4,2         ; @BAT_VOLTAGE_DESIGN
	.comm	_BAT_VOLTAGE_NOW,4,2            ; @BAT_VOLTAGE_NOW
	.comm	_BAT_CURRENT_NOW,4,2            ; @BAT_CURRENT_NOW
	.comm	_BAT_CURRENT_AVG,4,2            ; @BAT_CURRENT_AVG
	.comm	_BAT_POWER,4,2                  ; @BAT_POWER
	.comm	_BAT_CHARGE_DESIGN,4,2          ; @BAT_CHARGE_DESIGN
	.comm	_BAT_CHARGE_NOW,4,2             ; @BAT_CHARGE_NOW
	.comm	_BAT_CHARGE_LIMIT,4,2           ; @BAT_CHARGE_LIMIT
	.comm	_BAT_CHARGE_LIMIT_MAX,4,2       ; @BAT_CHARGE_LIMIT_MAX
	.comm	_BAT_CAPACITY,4,2               ; @BAT_CAPACITY
	.comm	_BAT_TEMP,4,2                   ; @BAT_TEMP
	.comm	_BAT_TEMP_AVG,4,2               ; @BAT_TEMP_AVG
	.no_dead_strip	_bat_get_property
.subsections_via_symbols
