	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function goldfish_battery_get_property
_goldfish_battery_get_property:         ## @goldfish_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	%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	$11, %ebx
	ja	LBB0_16
## %bb.1:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rbx,4), %rdx
	addq	%rcx, %rdx
	jmpq	*%rdx
LBB0_9:
	movq	_BATTERY_VOLTAGE@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
LBB0_10:
	movq	_BATTERY_TEMP@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
LBB0_6:
	movq	_POWER_SUPPLY_TECHNOLOGY_LION@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	jmp	LBB0_7
LBB0_2:
	movq	_BATTERY_STATUS@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
LBB0_5:
	movq	_BATTERY_PRESENT@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
LBB0_4:
	movq	_BATTERY_HEALTH@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
LBB0_15:
	movq	_BATTERY_CYCLE_COUNT@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
LBB0_12:
	movq	_BATTERY_CURRENT_NOW@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
LBB0_13:
	movq	_BATTERY_CURRENT_AVG@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
LBB0_14:
	movq	_BATTERY_CHARGE_FULL_UAH@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
LBB0_11:
	movq	_BATTERY_CHARGE_COUNTER@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
LBB0_8:
	movq	_BATTERY_CAPACITY@GOTPCREL(%rip), %rcx
LBB0_3:
	movl	(%rcx), %esi
	movq	%rax, %rdi
	callq	_GOLDFISH_BATTERY_READ
LBB0_7:
	movq	%rax, (%r14)
	xorl	%eax, %eax
LBB0_17:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_16:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_17
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
LJTI0_0:
	.long	L0_0_set_9
	.long	L0_0_set_10
	.long	L0_0_set_6
	.long	L0_0_set_2
	.long	L0_0_set_5
	.long	L0_0_set_4
	.long	L0_0_set_15
	.long	L0_0_set_12
	.long	L0_0_set_13
	.long	L0_0_set_14
	.long	L0_0_set_11
	.long	L0_0_set_8
	.end_data_region
                                        ## -- End function
	.comm	_BATTERY_STATUS,4,2             ## @BATTERY_STATUS
	.comm	_BATTERY_HEALTH,4,2             ## @BATTERY_HEALTH
	.comm	_BATTERY_PRESENT,4,2            ## @BATTERY_PRESENT
	.comm	_POWER_SUPPLY_TECHNOLOGY_LION,8,3 ## @POWER_SUPPLY_TECHNOLOGY_LION
	.comm	_BATTERY_CAPACITY,4,2           ## @BATTERY_CAPACITY
	.comm	_BATTERY_VOLTAGE,4,2            ## @BATTERY_VOLTAGE
	.comm	_BATTERY_TEMP,4,2               ## @BATTERY_TEMP
	.comm	_BATTERY_CHARGE_COUNTER,4,2     ## @BATTERY_CHARGE_COUNTER
	.comm	_BATTERY_CURRENT_NOW,4,2        ## @BATTERY_CURRENT_NOW
	.comm	_BATTERY_CURRENT_AVG,4,2        ## @BATTERY_CURRENT_AVG
	.comm	_BATTERY_CHARGE_FULL_UAH,4,2    ## @BATTERY_CHARGE_FULL_UAH
	.comm	_BATTERY_CYCLE_COUNT,4,2        ## @BATTERY_CYCLE_COUNT
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_goldfish_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 goldfish_battery_get_property
_goldfish_battery_get_property:         ; @goldfish_battery_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, #11
	b.hi	LBB0_17
; %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, _BATTERY_VOLTAGE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _BATTERY_VOLTAGE@GOTPAGEOFF]
	b	LBB0_14
LBB0_3:
Lloh4:
	adrp	x8, _BATTERY_TEMP@GOTPAGE
Lloh5:
	ldr	x8, [x8, _BATTERY_TEMP@GOTPAGEOFF]
	b	LBB0_14
LBB0_4:
	mov	w0, #0
Lloh6:
	adrp	x8, _POWER_SUPPLY_TECHNOLOGY_LION@GOTPAGE
Lloh7:
	ldr	x8, [x8, _POWER_SUPPLY_TECHNOLOGY_LION@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	b	LBB0_15
LBB0_5:
Lloh9:
	adrp	x8, _BATTERY_STATUS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _BATTERY_STATUS@GOTPAGEOFF]
	b	LBB0_14
LBB0_6:
Lloh11:
	adrp	x8, _BATTERY_PRESENT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _BATTERY_PRESENT@GOTPAGEOFF]
	b	LBB0_14
LBB0_7:
Lloh13:
	adrp	x8, _BATTERY_HEALTH@GOTPAGE
Lloh14:
	ldr	x8, [x8, _BATTERY_HEALTH@GOTPAGEOFF]
	b	LBB0_14
LBB0_8:
Lloh15:
	adrp	x8, _BATTERY_CYCLE_COUNT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _BATTERY_CYCLE_COUNT@GOTPAGEOFF]
	b	LBB0_14
LBB0_9:
Lloh17:
	adrp	x8, _BATTERY_CURRENT_NOW@GOTPAGE
Lloh18:
	ldr	x8, [x8, _BATTERY_CURRENT_NOW@GOTPAGEOFF]
	b	LBB0_14
LBB0_10:
Lloh19:
	adrp	x8, _BATTERY_CURRENT_AVG@GOTPAGE
Lloh20:
	ldr	x8, [x8, _BATTERY_CURRENT_AVG@GOTPAGEOFF]
	b	LBB0_14
LBB0_11:
Lloh21:
	adrp	x8, _BATTERY_CHARGE_FULL_UAH@GOTPAGE
Lloh22:
	ldr	x8, [x8, _BATTERY_CHARGE_FULL_UAH@GOTPAGEOFF]
	b	LBB0_14
LBB0_12:
Lloh23:
	adrp	x8, _BATTERY_CHARGE_COUNTER@GOTPAGE
Lloh24:
	ldr	x8, [x8, _BATTERY_CHARGE_COUNTER@GOTPAGEOFF]
	b	LBB0_14
LBB0_13:
Lloh25:
	adrp	x8, _BATTERY_CAPACITY@GOTPAGE
Lloh26:
	ldr	x8, [x8, _BATTERY_CAPACITY@GOTPAGEOFF]
LBB0_14:
	ldr	w1, [x8]
	bl	_GOLDFISH_BATTERY_READ
	mov	x8, x0
	mov	w0, #0
LBB0_15:
	str	x8, [x19]
LBB0_16:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_17:
Lloh27:
	adrp	x8, _EINVAL@GOTPAGE
Lloh28:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_16
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, 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
                                        ; -- End function
	.comm	_BATTERY_STATUS,4,2             ; @BATTERY_STATUS
	.comm	_BATTERY_HEALTH,4,2             ; @BATTERY_HEALTH
	.comm	_BATTERY_PRESENT,4,2            ; @BATTERY_PRESENT
	.comm	_POWER_SUPPLY_TECHNOLOGY_LION,8,3 ; @POWER_SUPPLY_TECHNOLOGY_LION
	.comm	_BATTERY_CAPACITY,4,2           ; @BATTERY_CAPACITY
	.comm	_BATTERY_VOLTAGE,4,2            ; @BATTERY_VOLTAGE
	.comm	_BATTERY_TEMP,4,2               ; @BATTERY_TEMP
	.comm	_BATTERY_CHARGE_COUNTER,4,2     ; @BATTERY_CHARGE_COUNTER
	.comm	_BATTERY_CURRENT_NOW,4,2        ; @BATTERY_CURRENT_NOW
	.comm	_BATTERY_CURRENT_AVG,4,2        ; @BATTERY_CURRENT_AVG
	.comm	_BATTERY_CHARGE_FULL_UAH,4,2    ; @BATTERY_CHARGE_FULL_UAH
	.comm	_BATTERY_CYCLE_COUNT,4,2        ; @BATTERY_CYCLE_COUNT
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_goldfish_battery_get_property
.subsections_via_symbols
