	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rt5033_battery_get_watt_prop
_rt5033_battery_get_watt_prop:          ## @rt5033_battery_get_watt_prop
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %ebx
	callq	_i2c_get_clientdata
	addl	$-128, %ebx
	cmpl	$3, %ebx
	jae	LBB0_1
## %bb.2:
	movq	%rax, %r14
	movslq	%ebx, %rax
	leaq	l_switch.table.rt5033_battery_get_watt_prop(%rip), %rcx
	movq	(%rcx,%rax,8), %rcx
	leaq	l_switch.table.rt5033_battery_get_watt_prop.1(%rip), %rdx
	movq	(%rdx,%rax,8), %rax
	movl	(%rax), %ebx
	movl	(%rcx), %esi
	movl	(%r14), %edi
	leaq	-24(%rbp), %rdx
	callq	_regmap_read
	movl	(%r14), %edi
	leaq	-20(%rbp), %rdx
	movl	%ebx, %esi
	callq	_regmap_read
	movl	-24(%rbp), %eax
	shll	$4, %eax
	movl	-20(%rbp), %ecx
	sarl	$4, %ecx
	addl	%eax, %ecx
	imull	$1250, %ecx, %eax               ## imm = 0x4E2
	cltq
	imulq	$274877907, %rax, %rax          ## imm = 0x10624DD3
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$38, %rax
	addl	%ecx, %eax
	jmp	LBB0_3
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_3:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RT5033_FUEL_REG_VBAT_H,4,2     ## @RT5033_FUEL_REG_VBAT_H
	.comm	_RT5033_FUEL_REG_VBAT_L,4,2     ## @RT5033_FUEL_REG_VBAT_L
	.comm	_RT5033_FUEL_REG_AVG_VOLT_H,4,2 ## @RT5033_FUEL_REG_AVG_VOLT_H
	.comm	_RT5033_FUEL_REG_AVG_VOLT_L,4,2 ## @RT5033_FUEL_REG_AVG_VOLT_L
	.comm	_RT5033_FUEL_REG_OCV_H,4,2      ## @RT5033_FUEL_REG_OCV_H
	.comm	_RT5033_FUEL_REG_OCV_L,4,2      ## @RT5033_FUEL_REG_OCV_L
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_rt5033_battery_get_watt_prop
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.rt5033_battery_get_watt_prop
l_switch.table.rt5033_battery_get_watt_prop:
	.quad	_RT5033_FUEL_REG_OCV_H
	.quad	_RT5033_FUEL_REG_VBAT_H
	.quad	_RT5033_FUEL_REG_AVG_VOLT_H

	.p2align	3                               ## @switch.table.rt5033_battery_get_watt_prop.1
l_switch.table.rt5033_battery_get_watt_prop.1:
	.quad	_RT5033_FUEL_REG_OCV_L
	.quad	_RT5033_FUEL_REG_VBAT_L
	.quad	_RT5033_FUEL_REG_AVG_VOLT_L

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rt5033_battery_get_watt_prop
_rt5033_battery_get_watt_prop:          ; @rt5033_battery_get_watt_prop
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	bl	_i2c_get_clientdata
	sub	w8, w20, #128
	cmp	w8, #3
	b.hs	LBB0_2
; %bb.1:
	mov	x19, x0
	sbfiz	x8, x8, #3, #32
Lloh0:
	adrp	x9, l_switch.table.rt5033_battery_get_watt_prop@PAGE
Lloh1:
	add	x9, x9, l_switch.table.rt5033_battery_get_watt_prop@PAGEOFF
	ldr	x9, [x9, x8]
Lloh2:
	adrp	x10, l_switch.table.rt5033_battery_get_watt_prop.1@PAGE
Lloh3:
	add	x10, x10, l_switch.table.rt5033_battery_get_watt_prop.1@PAGEOFF
	ldr	x8, [x10, x8]
	ldr	w20, [x8]
	ldr	w1, [x9]
	ldr	w0, [x0]
	add	x2, sp, #12
	bl	_regmap_read
	ldr	w0, [x19]
	add	x2, sp, #8
	mov	x1, x20
	bl	_regmap_read
	ldp	w9, w8, [sp, #8]
	asr	w9, w9, #4
	add	w8, w9, w8, lsl #4
	mov	w9, #1250
	mul	w8, w8, w9
	mov	w9, #19923
	movk	w9, #4194, lsl #16
	smull	x8, w8, w9
	lsr	x9, x8, #63
	asr	x8, x8, #38
	add	w0, w8, w9
	b	LBB0_3
LBB0_2:
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_RT5033_FUEL_REG_VBAT_H,4,2     ; @RT5033_FUEL_REG_VBAT_H
	.comm	_RT5033_FUEL_REG_VBAT_L,4,2     ; @RT5033_FUEL_REG_VBAT_L
	.comm	_RT5033_FUEL_REG_AVG_VOLT_H,4,2 ; @RT5033_FUEL_REG_AVG_VOLT_H
	.comm	_RT5033_FUEL_REG_AVG_VOLT_L,4,2 ; @RT5033_FUEL_REG_AVG_VOLT_L
	.comm	_RT5033_FUEL_REG_OCV_H,4,2      ; @RT5033_FUEL_REG_OCV_H
	.comm	_RT5033_FUEL_REG_OCV_L,4,2      ; @RT5033_FUEL_REG_OCV_L
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_rt5033_battery_get_watt_prop
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.rt5033_battery_get_watt_prop
l_switch.table.rt5033_battery_get_watt_prop:
	.quad	_RT5033_FUEL_REG_OCV_H
	.quad	_RT5033_FUEL_REG_VBAT_H
	.quad	_RT5033_FUEL_REG_AVG_VOLT_H

	.p2align	3                               ; @switch.table.rt5033_battery_get_watt_prop.1
l_switch.table.rt5033_battery_get_watt_prop.1:
	.quad	_RT5033_FUEL_REG_OCV_L
	.quad	_RT5033_FUEL_REG_VBAT_L
	.quad	_RT5033_FUEL_REG_AVG_VOLT_L

.subsections_via_symbols
