	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function max17042_get_property
_max17042_get_property:                 ## @max17042_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movl	%esi, %ebx
	callq	_power_supply_get_drvdata
	cmpl	$0, 12(%rax)
	je	LBB0_1
## %bb.3:
	addl	$-128, %ebx
	cmpl	$23, %ebx
	ja	LBB0_54
## %bb.4:
	movq	%rax, %r15
	movq	16(%rax), %rdi
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rbx,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_28:
	movq	_MAX17042_OCVInternal@GOTPCREL(%rip), %rax
	jmp	LBB0_25
LBB0_1:
	movq	_EAGAIN@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_57
LBB0_24:
	movq	_MAX17042_VCELL@GOTPCREL(%rip), %rax
	jmp	LBB0_25
LBB0_19:
	movl	8(%r15), %eax
	movq	_MAXIM_DEVICE_TYPE_MAX17042@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_20
## %bb.21:
	movq	_MAX17042_V_empty@GOTPCREL(%rip), %rax
	jmp	LBB0_22
LBB0_16:
	movq	_MAX17042_MinMaxVolt@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-28(%rbp), %rdx
	callq	_regmap_read
	testl	%eax, %eax
	js	LBB0_57
## %bb.17:
	movzbl	-28(%rbp), %eax
	jmp	LBB0_18
LBB0_14:
	movq	_MAX17042_MinMaxVolt@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-28(%rbp), %rdx
	callq	_regmap_read
	testl	%eax, %eax
	js	LBB0_57
## %bb.15:
	movl	-28(%rbp), %eax
	sarl	$8, %eax
LBB0_18:
	imull	$20000, %eax, %eax              ## imm = 0x4E20
	movl	%eax, (%r14)
	jmp	LBB0_56
LBB0_27:
	movq	_MAX17042_AvgVCELL@GOTPCREL(%rip), %rax
LBB0_25:
	movl	(%rax), %esi
	leaq	-28(%rbp), %rdx
	callq	_regmap_read
	testl	%eax, %eax
	js	LBB0_57
## %bb.26:
	imull	$625, -28(%rbp), %eax           ## imm = 0x271
	leal	7(%rax), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	sarl	$3, %ecx
	movl	%ecx, (%r14)
	jmp	LBB0_56
LBB0_44:
	movq	(%r15), %rax
	movl	4(%rax), %eax
	movl	%eax, (%r14)
	jmp	LBB0_56
LBB0_45:
	movq	(%r15), %rax
	movl	8(%rax), %eax
	movl	%eax, (%r14)
	jmp	LBB0_56
LBB0_39:
	movq	_MAX17042_TALRT_Th@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-28(%rbp), %rdx
	callq	_regmap_read
	testl	%eax, %eax
	js	LBB0_57
## %bb.40:
	movzbl	-28(%rbp), %edi
	jmp	LBB0_41
LBB0_42:
	movq	_MAX17042_TALRT_Th@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-28(%rbp), %rdx
	callq	_regmap_read
	testl	%eax, %eax
	js	LBB0_57
## %bb.43:
	movl	-28(%rbp), %edi
	sarl	$8, %edi
LBB0_41:
	movl	$7, %esi
	callq	_sign_extend32
                                        ## kill: def $eax killed $eax def $rax
	addl	%eax, %eax
	leal	(%rax,%rax,4), %eax
	movl	%eax, (%r14)
	jmp	LBB0_56
LBB0_38:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_max17042_get_temperature
	jmp	LBB0_6
LBB0_10:
	movq	_POWER_SUPPLY_TECHNOLOGY_LION@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_5:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_max17042_get_status
	jmp	LBB0_6
LBB0_47:
	movq	_POWER_SUPPLY_SCOPE_SYSTEM@GOTPCREL(%rip), %rax
LBB0_11:
	movl	(%rax), %eax
	movl	%eax, (%r14)
	jmp	LBB0_56
LBB0_7:
	movq	_MAX17042_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-28(%rbp), %rdx
	callq	_regmap_read
	testl	%eax, %eax
	js	LBB0_57
## %bb.8:
	movq	_MAX17042_STATUS_BattAbsent@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, -28(%rbp)
	je	LBB0_55
## %bb.9:
	movl	$0, (%r14)
	jmp	LBB0_56
LBB0_46:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_max17042_get_battery_health
LBB0_6:
	testl	%eax, %eax
	jns	LBB0_56
	jmp	LBB0_57
LBB0_12:
	movq	_MAX17042_Cycles@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-28(%rbp), %rdx
	callq	_regmap_read
	testl	%eax, %eax
	js	LBB0_57
## %bb.13:
	movl	-28(%rbp), %eax
	movl	%eax, (%r14)
	jmp	LBB0_56
LBB0_48:
	movq	(%r15), %rax
	cmpl	$0, 12(%rax)
	je	LBB0_54
## %bb.49:
	movq	_MAX17042_Current@GOTPCREL(%rip), %rax
	jmp	LBB0_50
LBB0_52:
	movq	(%r15), %rax
	cmpl	$0, 12(%rax)
	je	LBB0_54
## %bb.53:
	movq	_MAX17042_AvgCurrent@GOTPCREL(%rip), %rax
LBB0_50:
	movl	(%rax), %esi
	leaq	-28(%rbp), %rdx
	callq	_regmap_read
	testl	%eax, %eax
	js	LBB0_57
## %bb.51:
	movl	-28(%rbp), %edi
	movl	$15, %esi
	callq	_sign_extend32
	movl	%eax, %ecx
	movl	%eax, (%r14)
	movq	(%r15), %rsi
	movl	$1562500, %eax                  ## imm = 0x17D784
	xorl	%edx, %edx
	idivl	(%rsi)
	imull	%ecx, %eax
	movl	%eax, (%r14)
	jmp	LBB0_56
LBB0_54:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_35:
	movq	_MAX17042_RepCap@GOTPCREL(%rip), %rax
	jmp	LBB0_32
LBB0_31:
	movq	_MAX17042_DesignCap@GOTPCREL(%rip), %rax
	jmp	LBB0_32
LBB0_34:
	movq	_MAX17042_FullCAP@GOTPCREL(%rip), %rax
LBB0_32:
	movl	(%rax), %esi
	leaq	-28(%rbp), %rdx
	callq	_regmap_read
	testl	%eax, %eax
	js	LBB0_57
## %bb.33:
	movslq	-28(%rbp), %rax
	imulq	$5000000, %rax, %rbx            ## imm = 0x4C4B40
	movq	(%r15), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_do_div
	movl	%ebx, (%r14)
	jmp	LBB0_56
LBB0_36:
	movq	_MAX17042_QH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-28(%rbp), %rdx
	callq	_regmap_read
	testl	%eax, %eax
	js	LBB0_57
## %bb.37:
	imull	$500, -28(%rbp), %eax           ## imm = 0x1F4
	movl	%eax, (%r14)
	jmp	LBB0_56
LBB0_29:
	movq	_MAX17042_RepSOC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-28(%rbp), %rdx
	callq	_regmap_read
	testl	%eax, %eax
	js	LBB0_57
## %bb.30:
	movl	-28(%rbp), %eax
	sarl	$8, %eax
	movl	%eax, (%r14)
	jmp	LBB0_56
LBB0_20:
	movq	_MAX17047_V_empty@GOTPCREL(%rip), %rax
LBB0_22:
	movl	(%rax), %esi
	leaq	-28(%rbp), %rdx
	callq	_regmap_read
	testl	%eax, %eax
	js	LBB0_57
## %bb.23:
	movl	-28(%rbp), %eax
	sarl	$7, %eax
	imull	$10000, %eax, %eax              ## imm = 0x2710
	movl	%eax, (%r14)
	jmp	LBB0_56
LBB0_55:
	movl	$1, (%r14)
LBB0_56:
	xorl	%eax, %eax
LBB0_57:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_28, LBB0_28-LJTI0_0
.set L0_0_set_24, LBB0_24-LJTI0_0
.set L0_0_set_19, LBB0_19-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_27, LBB0_27-LJTI0_0
.set L0_0_set_44, LBB0_44-LJTI0_0
.set L0_0_set_45, LBB0_45-LJTI0_0
.set L0_0_set_39, LBB0_39-LJTI0_0
.set L0_0_set_42, LBB0_42-LJTI0_0
.set L0_0_set_38, LBB0_38-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_47, LBB0_47-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_46, LBB0_46-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_48, LBB0_48-LJTI0_0
.set L0_0_set_52, LBB0_52-LJTI0_0
.set L0_0_set_35, LBB0_35-LJTI0_0
.set L0_0_set_31, LBB0_31-LJTI0_0
.set L0_0_set_34, LBB0_34-LJTI0_0
.set L0_0_set_36, LBB0_36-LJTI0_0
.set L0_0_set_29, LBB0_29-LJTI0_0
LJTI0_0:
	.long	L0_0_set_28
	.long	L0_0_set_24
	.long	L0_0_set_19
	.long	L0_0_set_16
	.long	L0_0_set_14
	.long	L0_0_set_27
	.long	L0_0_set_44
	.long	L0_0_set_45
	.long	L0_0_set_39
	.long	L0_0_set_42
	.long	L0_0_set_38
	.long	L0_0_set_10
	.long	L0_0_set_5
	.long	L0_0_set_47
	.long	L0_0_set_7
	.long	L0_0_set_46
	.long	L0_0_set_12
	.long	L0_0_set_48
	.long	L0_0_set_52
	.long	L0_0_set_35
	.long	L0_0_set_31
	.long	L0_0_set_34
	.long	L0_0_set_36
	.long	L0_0_set_29
	.end_data_region
                                        ## -- End function
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_MAX17042_STATUS,4,2            ## @MAX17042_STATUS
	.comm	_MAX17042_STATUS_BattAbsent,4,2 ## @MAX17042_STATUS_BattAbsent
	.comm	_POWER_SUPPLY_TECHNOLOGY_LION,4,2 ## @POWER_SUPPLY_TECHNOLOGY_LION
	.comm	_MAX17042_Cycles,4,2            ## @MAX17042_Cycles
	.comm	_MAX17042_MinMaxVolt,4,2        ## @MAX17042_MinMaxVolt
	.comm	_MAXIM_DEVICE_TYPE_MAX17042,4,2 ## @MAXIM_DEVICE_TYPE_MAX17042
	.comm	_MAX17042_V_empty,4,2           ## @MAX17042_V_empty
	.comm	_MAX17047_V_empty,4,2           ## @MAX17047_V_empty
	.comm	_MAX17042_VCELL,4,2             ## @MAX17042_VCELL
	.comm	_MAX17042_AvgVCELL,4,2          ## @MAX17042_AvgVCELL
	.comm	_MAX17042_OCVInternal,4,2       ## @MAX17042_OCVInternal
	.comm	_MAX17042_RepSOC,4,2            ## @MAX17042_RepSOC
	.comm	_MAX17042_DesignCap,4,2         ## @MAX17042_DesignCap
	.comm	_MAX17042_FullCAP,4,2           ## @MAX17042_FullCAP
	.comm	_MAX17042_RepCap,4,2            ## @MAX17042_RepCap
	.comm	_MAX17042_QH,4,2                ## @MAX17042_QH
	.comm	_MAX17042_TALRT_Th,4,2          ## @MAX17042_TALRT_Th
	.comm	_POWER_SUPPLY_SCOPE_SYSTEM,4,2  ## @POWER_SUPPLY_SCOPE_SYSTEM
	.comm	_MAX17042_Current,4,2           ## @MAX17042_Current
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_MAX17042_AvgCurrent,4,2        ## @MAX17042_AvgCurrent
	.no_dead_strip	_max17042_get_property
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function max17042_get_property
_max17042_get_property:                 ; @max17042_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	x21, x1
	bl	_power_supply_get_drvdata
	ldr	w8, [x0, #12]
	cbz	w8, LBB0_4
; %bb.1:
	sub	w8, w21, #128
	cmp	w8, #23
	b.hi	LBB0_40
; %bb.2:
	mov	x20, x0
	ldr	x0, [x0, #16]
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_3
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_3:
Lloh2:
	adrp	x8, _MAX17042_OCVInternal@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MAX17042_OCVInternal@GOTPAGEOFF]
	b	LBB0_15
LBB0_4:
Lloh4:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_53
LBB0_6:
Lloh6:
	adrp	x8, _MAX17042_VCELL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MAX17042_VCELL@GOTPAGEOFF]
	b	LBB0_15
LBB0_7:
	ldr	w8, [x20, #8]
Lloh8:
	adrp	x9, _MAXIM_DEVICE_TYPE_MAX17042@GOTPAGE
Lloh9:
	ldr	x9, [x9, _MAXIM_DEVICE_TYPE_MAX17042@GOTPAGEOFF]
Lloh10:
	adrp	x10, _MAX17042_V_empty@GOTPAGE
Lloh11:
	ldr	x10, [x10, _MAX17042_V_empty@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
Lloh13:
	adrp	x11, _MAX17047_V_empty@GOTPAGE
Lloh14:
	ldr	x11, [x11, _MAX17047_V_empty@GOTPAGEOFF]
	cmp	w8, w9
	csel	x8, x10, x11, eq
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_regmap_read
	tbnz	w0, #31, LBB0_53
; %bb.8:
	ldr	w8, [sp, #12]
	asr	w8, w8, #7
	mov	w9, #10000
	mul	w8, w8, w9
	b	LBB0_51
LBB0_9:
Lloh15:
	adrp	x8, _MAX17042_MinMaxVolt@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MAX17042_MinMaxVolt@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_regmap_read
	tbnz	w0, #31, LBB0_53
; %bb.10:
	ldrb	w8, [sp, #12]
	b	LBB0_13
LBB0_11:
Lloh18:
	adrp	x8, _MAX17042_MinMaxVolt@GOTPAGE
Lloh19:
	ldr	x8, [x8, _MAX17042_MinMaxVolt@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_regmap_read
	tbnz	w0, #31, LBB0_53
; %bb.12:
	ldr	w8, [sp, #12]
	asr	w8, w8, #8
LBB0_13:
	mov	w9, #20000
	mul	w8, w8, w9
	b	LBB0_51
LBB0_14:
Lloh21:
	adrp	x8, _MAX17042_AvgVCELL@GOTPAGE
Lloh22:
	ldr	x8, [x8, _MAX17042_AvgVCELL@GOTPAGEOFF]
LBB0_15:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_regmap_read
	tbnz	w0, #31, LBB0_53
; %bb.16:
	ldr	w8, [sp, #12]
	mov	w9, #625
	mul	w8, w8, w9
	add	w9, w8, #7
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w8, w8, #3
	b	LBB0_51
LBB0_17:
	ldr	x8, [x20]
	ldr	w8, [x8, #4]
	b	LBB0_51
LBB0_18:
	ldr	x8, [x20]
	ldr	w8, [x8, #8]
	b	LBB0_51
LBB0_19:
Lloh23:
	adrp	x8, _MAX17042_TALRT_Th@GOTPAGE
Lloh24:
	ldr	x8, [x8, _MAX17042_TALRT_Th@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_regmap_read
	tbnz	w0, #31, LBB0_53
; %bb.20:
	ldrb	w0, [sp, #12]
	b	LBB0_23
LBB0_21:
Lloh26:
	adrp	x8, _MAX17042_TALRT_Th@GOTPAGE
Lloh27:
	ldr	x8, [x8, _MAX17042_TALRT_Th@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_regmap_read
	tbnz	w0, #31, LBB0_53
; %bb.22:
	ldr	w8, [sp, #12]
	asr	w0, w8, #8
LBB0_23:
	mov	w1, #7
	bl	_sign_extend32
	add	w8, w0, w0, lsl #2
	lsl	w8, w8, #1
	b	LBB0_51
LBB0_24:
	mov	x0, x20
	mov	x1, x19
	bl	_max17042_get_temperature
	tbz	w0, #31, LBB0_52
	b	LBB0_53
LBB0_25:
Lloh29:
	adrp	x8, _POWER_SUPPLY_TECHNOLOGY_LION@GOTPAGE
Lloh30:
	ldr	x8, [x8, _POWER_SUPPLY_TECHNOLOGY_LION@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	b	LBB0_51
LBB0_26:
	mov	x0, x20
	mov	x1, x19
	bl	_max17042_get_status
	tbz	w0, #31, LBB0_52
	b	LBB0_53
LBB0_27:
Lloh32:
	adrp	x8, _POWER_SUPPLY_SCOPE_SYSTEM@GOTPAGE
Lloh33:
	ldr	x8, [x8, _POWER_SUPPLY_SCOPE_SYSTEM@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
	b	LBB0_51
LBB0_28:
Lloh35:
	adrp	x8, _MAX17042_STATUS@GOTPAGE
Lloh36:
	ldr	x8, [x8, _MAX17042_STATUS@GOTPAGEOFF]
Lloh37:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_regmap_read
	tbnz	w0, #31, LBB0_53
; %bb.29:
	ldr	w8, [sp, #12]
Lloh38:
	adrp	x9, _MAX17042_STATUS_BattAbsent@GOTPAGE
Lloh39:
	ldr	x9, [x9, _MAX17042_STATUS_BattAbsent@GOTPAGEOFF]
Lloh40:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_50
; %bb.30:
	str	wzr, [x19]
	b	LBB0_52
LBB0_31:
	mov	x0, x20
	mov	x1, x19
	bl	_max17042_get_battery_health
	tbz	w0, #31, LBB0_52
	b	LBB0_53
LBB0_32:
Lloh41:
	adrp	x8, _MAX17042_Cycles@GOTPAGE
Lloh42:
	ldr	x8, [x8, _MAX17042_Cycles@GOTPAGEOFF]
Lloh43:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_regmap_read
	tbnz	w0, #31, LBB0_53
; %bb.33:
	ldr	w8, [sp, #12]
	b	LBB0_51
LBB0_34:
	ldr	x8, [x20]
	ldr	w8, [x8, #12]
	cbz	w8, LBB0_40
; %bb.35:
Lloh44:
	adrp	x8, _MAX17042_Current@GOTPAGE
Lloh45:
	ldr	x8, [x8, _MAX17042_Current@GOTPAGEOFF]
	b	LBB0_38
LBB0_36:
	ldr	x8, [x20]
	ldr	w8, [x8, #12]
	cbz	w8, LBB0_40
; %bb.37:
Lloh46:
	adrp	x8, _MAX17042_AvgCurrent@GOTPAGE
Lloh47:
	ldr	x8, [x8, _MAX17042_AvgCurrent@GOTPAGEOFF]
LBB0_38:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_regmap_read
	tbnz	w0, #31, LBB0_53
; %bb.39:
	ldr	w0, [sp, #12]
	mov	w1, #15
	bl	_sign_extend32
	str	w0, [x19]
	ldr	x8, [x20]
	ldr	w8, [x8]
	mov	w9, #55172
	movk	w9, #23, lsl #16
	sdiv	w8, w9, w8
	mul	w8, w8, w0
	b	LBB0_51
LBB0_40:
Lloh48:
	adrp	x8, _EINVAL@GOTPAGE
Lloh49:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_5
LBB0_41:
Lloh50:
	adrp	x8, _MAX17042_RepCap@GOTPAGE
Lloh51:
	ldr	x8, [x8, _MAX17042_RepCap@GOTPAGEOFF]
	b	LBB0_44
LBB0_42:
Lloh52:
	adrp	x8, _MAX17042_DesignCap@GOTPAGE
Lloh53:
	ldr	x8, [x8, _MAX17042_DesignCap@GOTPAGEOFF]
	b	LBB0_44
LBB0_43:
Lloh54:
	adrp	x8, _MAX17042_FullCAP@GOTPAGE
Lloh55:
	ldr	x8, [x8, _MAX17042_FullCAP@GOTPAGEOFF]
LBB0_44:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_regmap_read
	tbnz	w0, #31, LBB0_53
; %bb.45:
	ldrsw	x8, [sp, #12]
	mov	w9, #19264
	movk	w9, #76, lsl #16
	mul	x21, x8, x9
	ldr	x8, [x20]
	ldr	w1, [x8]
	mov	x0, x21
	bl	_do_div
	str	w21, [x19]
	b	LBB0_52
LBB0_46:
Lloh56:
	adrp	x8, _MAX17042_QH@GOTPAGE
Lloh57:
	ldr	x8, [x8, _MAX17042_QH@GOTPAGEOFF]
Lloh58:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_regmap_read
	tbnz	w0, #31, LBB0_53
; %bb.47:
	ldr	w8, [sp, #12]
	mov	w9, #500
	mul	w8, w8, w9
	b	LBB0_51
LBB0_48:
Lloh59:
	adrp	x8, _MAX17042_RepSOC@GOTPAGE
Lloh60:
	ldr	x8, [x8, _MAX17042_RepSOC@GOTPAGEOFF]
Lloh61:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_regmap_read
	tbnz	w0, #31, LBB0_53
; %bb.49:
	ldr	w8, [sp, #12]
	asr	w8, w8, #8
	b	LBB0_51
LBB0_50:
	mov	w8, #1
LBB0_51:
	str	w8, [x19]
LBB0_52:
	mov	w0, #0
LBB0_53:
	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	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGot	Lloh44, Lloh45
	.loh AdrpLdrGot	Lloh46, Lloh47
	.loh AdrpLdrGot	Lloh48, Lloh49
	.loh AdrpLdrGot	Lloh50, Lloh51
	.loh AdrpLdrGot	Lloh52, Lloh53
	.loh AdrpLdrGot	Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_6-LBB0_3)>>2
	.byte	(LBB0_7-LBB0_3)>>2
	.byte	(LBB0_9-LBB0_3)>>2
	.byte	(LBB0_11-LBB0_3)>>2
	.byte	(LBB0_14-LBB0_3)>>2
	.byte	(LBB0_17-LBB0_3)>>2
	.byte	(LBB0_18-LBB0_3)>>2
	.byte	(LBB0_19-LBB0_3)>>2
	.byte	(LBB0_21-LBB0_3)>>2
	.byte	(LBB0_24-LBB0_3)>>2
	.byte	(LBB0_25-LBB0_3)>>2
	.byte	(LBB0_26-LBB0_3)>>2
	.byte	(LBB0_27-LBB0_3)>>2
	.byte	(LBB0_28-LBB0_3)>>2
	.byte	(LBB0_31-LBB0_3)>>2
	.byte	(LBB0_32-LBB0_3)>>2
	.byte	(LBB0_34-LBB0_3)>>2
	.byte	(LBB0_36-LBB0_3)>>2
	.byte	(LBB0_41-LBB0_3)>>2
	.byte	(LBB0_42-LBB0_3)>>2
	.byte	(LBB0_43-LBB0_3)>>2
	.byte	(LBB0_46-LBB0_3)>>2
	.byte	(LBB0_48-LBB0_3)>>2
                                        ; -- End function
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_MAX17042_STATUS,4,2            ; @MAX17042_STATUS
	.comm	_MAX17042_STATUS_BattAbsent,4,2 ; @MAX17042_STATUS_BattAbsent
	.comm	_POWER_SUPPLY_TECHNOLOGY_LION,4,2 ; @POWER_SUPPLY_TECHNOLOGY_LION
	.comm	_MAX17042_Cycles,4,2            ; @MAX17042_Cycles
	.comm	_MAX17042_MinMaxVolt,4,2        ; @MAX17042_MinMaxVolt
	.comm	_MAXIM_DEVICE_TYPE_MAX17042,4,2 ; @MAXIM_DEVICE_TYPE_MAX17042
	.comm	_MAX17042_V_empty,4,2           ; @MAX17042_V_empty
	.comm	_MAX17047_V_empty,4,2           ; @MAX17047_V_empty
	.comm	_MAX17042_VCELL,4,2             ; @MAX17042_VCELL
	.comm	_MAX17042_AvgVCELL,4,2          ; @MAX17042_AvgVCELL
	.comm	_MAX17042_OCVInternal,4,2       ; @MAX17042_OCVInternal
	.comm	_MAX17042_RepSOC,4,2            ; @MAX17042_RepSOC
	.comm	_MAX17042_DesignCap,4,2         ; @MAX17042_DesignCap
	.comm	_MAX17042_FullCAP,4,2           ; @MAX17042_FullCAP
	.comm	_MAX17042_RepCap,4,2            ; @MAX17042_RepCap
	.comm	_MAX17042_QH,4,2                ; @MAX17042_QH
	.comm	_MAX17042_TALRT_Th,4,2          ; @MAX17042_TALRT_Th
	.comm	_POWER_SUPPLY_SCOPE_SYSTEM,4,2  ; @POWER_SUPPLY_SCOPE_SYSTEM
	.comm	_MAX17042_Current,4,2           ; @MAX17042_Current
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_MAX17042_AvgCurrent,4,2        ; @MAX17042_AvgCurrent
	.no_dead_strip	_max17042_get_property
.subsections_via_symbols
