	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function max1721x_battery_get_property
_max1721x_battery_get_property:         ## @max1721x_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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movl	%esi, %ebx
	callq	_to_device_info
	movl	$0, -36(%rbp)
	addl	$-128, %ebx
	cmpl	$12, %ebx
	ja	LBB0_3
## %bb.1:
	movq	%rax, %r12
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rbx,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_2:
	movl	4(%r12), %edi
	movq	_MAX172XX_REG_BATT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-36(%rbp), %rdx
	callq	_regmap_read
	movl	%eax, %r15d
	movl	-36(%rbp), %edi
	callq	_max172xx_voltage_to_ps
	jmp	LBB0_21
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_22
LBB0_4:
	movl	4(%r12), %edi
	movq	_MAX172XX_REG_TTF@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_5:
	movl	4(%r12), %edi
	movq	_MAX172XX_REG_TTE@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %esi
	leaq	-36(%rbp), %rdx
	callq	_regmap_read
	movl	%eax, %r15d
	movl	-36(%rbp), %edi
	callq	_max172xx_time_to_ps
	movl	%eax, (%r14)
	jmp	LBB0_22
LBB0_7:
	movl	4(%r12), %edi
	movq	_MAX172XX_REG_TEMP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-36(%rbp), %rdx
	callq	_regmap_read
	movl	%eax, %r15d
	movl	-36(%rbp), %edi
	callq	_max172xx_temperature_to_ps
	jmp	LBB0_21
LBB0_8:
	movl	4(%r12), %edi
	movq	_MAX1721X_REG_SER_HEX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-36(%rbp), %rdx
	callq	_regmap_read
	movl	%eax, %r15d
	movl	(%r12), %eax
	jmp	LBB0_21
LBB0_9:
	movl	4(%r12), %edi
	movq	_MAX172XX_REG_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-36(%rbp), %rdx
	callq	_regmap_read
	xorl	%r15d, %r15d
	movl	$0, %ecx
	testl	%eax, %eax
	jne	LBB0_11
## %bb.10:
	movq	_MAX172XX_BAT_PRESENT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%ecx, %ecx
	testl	%eax, -36(%rbp)
	sete	%cl
LBB0_11:
	movl	%ecx, (%r14)
	jmp	LBB0_22
LBB0_12:
	movl	4(%r12), %edi
	movq	_MAX1721X_REG_DEV_STR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-36(%rbp), %rdx
	callq	_regmap_read
	movl	%eax, %r15d
	movl	12(%r12), %eax
	jmp	LBB0_21
LBB0_13:
	movl	4(%r12), %edi
	movq	_MAX1721X_REG_MFG_STR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-36(%rbp), %rdx
	callq	_regmap_read
	movl	%eax, %r15d
	movl	8(%r12), %eax
	jmp	LBB0_21
LBB0_14:
	movl	4(%r12), %edi
	movq	_MAX172XX_REG_CURRENT@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_15:
	movl	4(%r12), %edi
	movq	_MAX172XX_REG_AVGCURRENT@GOTPCREL(%rip), %rax
LBB0_16:
	movl	(%rax), %esi
	leaq	-36(%rbp), %rdx
	callq	_regmap_read
	movl	%eax, %r15d
	movl	-36(%rbp), %edi
	callq	_max172xx_current_to_voltage
	cltd
	idivl	16(%r12)
	jmp	LBB0_21
LBB0_17:
	movl	4(%r12), %edi
	movq	_MAX172XX_REG_DESIGNCAP@GOTPCREL(%rip), %rax
	jmp	LBB0_19
LBB0_18:
	movl	4(%r12), %edi
	movq	_MAX172XX_REG_REPCAP@GOTPCREL(%rip), %rax
LBB0_19:
	movl	(%rax), %esi
	leaq	-36(%rbp), %rdx
	callq	_regmap_read
	movl	%eax, %r15d
	movl	-36(%rbp), %edi
	callq	_max172xx_capacity_to_ps
	movl	%eax, (%r14)
	jmp	LBB0_22
LBB0_20:
	movl	4(%r12), %edi
	movq	_MAX172XX_REG_REPSOC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-36(%rbp), %rdx
	callq	_regmap_read
	movl	%eax, %r15d
	movl	-36(%rbp), %edi
	callq	_max172xx_percent_to_ps
LBB0_21:
	movl	%eax, (%r14)
LBB0_22:
	movl	%r15d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	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_5, LBB0_5-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_9, LBB0_9-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_15, LBB0_15-LJTI0_0
.set L0_0_set_17, LBB0_17-LJTI0_0
.set L0_0_set_18, LBB0_18-LJTI0_0
.set L0_0_set_20, LBB0_20-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_4
	.long	L0_0_set_5
	.long	L0_0_set_7
	.long	L0_0_set_8
	.long	L0_0_set_9
	.long	L0_0_set_12
	.long	L0_0_set_13
	.long	L0_0_set_14
	.long	L0_0_set_15
	.long	L0_0_set_17
	.long	L0_0_set_18
	.long	L0_0_set_20
	.end_data_region
                                        ## -- End function
	.comm	_MAX172XX_REG_STATUS,4,2        ## @MAX172XX_REG_STATUS
	.comm	_MAX172XX_BAT_PRESENT,4,2       ## @MAX172XX_BAT_PRESENT
	.comm	_MAX172XX_REG_REPSOC,4,2        ## @MAX172XX_REG_REPSOC
	.comm	_MAX172XX_REG_BATT,4,2          ## @MAX172XX_REG_BATT
	.comm	_MAX172XX_REG_DESIGNCAP,4,2     ## @MAX172XX_REG_DESIGNCAP
	.comm	_MAX172XX_REG_REPCAP,4,2        ## @MAX172XX_REG_REPCAP
	.comm	_MAX172XX_REG_TTE,4,2           ## @MAX172XX_REG_TTE
	.comm	_MAX172XX_REG_TTF,4,2           ## @MAX172XX_REG_TTF
	.comm	_MAX172XX_REG_TEMP,4,2          ## @MAX172XX_REG_TEMP
	.comm	_MAX172XX_REG_CURRENT,4,2       ## @MAX172XX_REG_CURRENT
	.comm	_MAX172XX_REG_AVGCURRENT,4,2    ## @MAX172XX_REG_AVGCURRENT
	.comm	_MAX1721X_REG_DEV_STR,4,2       ## @MAX1721X_REG_DEV_STR
	.comm	_MAX1721X_REG_MFG_STR,4,2       ## @MAX1721X_REG_MFG_STR
	.comm	_MAX1721X_REG_SER_HEX,4,2       ## @MAX1721X_REG_SER_HEX
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_max1721x_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 max1721x_battery_get_property
_max1721x_battery_get_property:         ; @max1721x_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	x20, x1
	bl	_to_device_info
	str	wzr, [sp, #12]
	sub	w8, w20, #128
	cmp	w8, #12
	b.hi	LBB0_3
; %bb.1:
	mov	x21, x0
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:
	ldr	w0, [x21, #4]
Lloh2:
	adrp	x8, _MAX172XX_REG_BATT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MAX172XX_REG_BATT@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_regmap_read
	mov	x20, x0
	ldr	w0, [sp, #12]
	bl	_max172xx_voltage_to_ps
	str	w0, [x19]
	b	LBB0_23
LBB0_3:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_23
LBB0_4:
	ldr	w0, [x21, #4]
Lloh8:
	adrp	x8, _MAX172XX_REG_TTF@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MAX172XX_REG_TTF@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
	ldr	w0, [x21, #4]
Lloh10:
	adrp	x8, _MAX172XX_REG_TTE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MAX172XX_REG_TTE@GOTPAGEOFF]
LBB0_6:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_regmap_read
	mov	x20, x0
	ldr	w0, [sp, #12]
	bl	_max172xx_time_to_ps
	str	w0, [x19]
	b	LBB0_23
LBB0_7:
	ldr	w0, [x21, #4]
Lloh12:
	adrp	x8, _MAX172XX_REG_TEMP@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MAX172XX_REG_TEMP@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_regmap_read
	mov	x20, x0
	ldr	w0, [sp, #12]
	bl	_max172xx_temperature_to_ps
	str	w0, [x19]
	b	LBB0_23
LBB0_8:
	ldr	w0, [x21, #4]
Lloh15:
	adrp	x8, _MAX1721X_REG_SER_HEX@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MAX1721X_REG_SER_HEX@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_regmap_read
	mov	x20, x0
	ldr	w8, [x21]
	b	LBB0_22
LBB0_9:
	ldr	w0, [x21, #4]
Lloh18:
	adrp	x8, _MAX172XX_REG_STATUS@GOTPAGE
Lloh19:
	ldr	x8, [x8, _MAX172XX_REG_STATUS@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_regmap_read
	cbz	w0, LBB0_20
; %bb.10:
	mov	w8, #0
	b	LBB0_21
LBB0_11:
	ldr	w0, [x21, #4]
Lloh21:
	adrp	x8, _MAX1721X_REG_DEV_STR@GOTPAGE
Lloh22:
	ldr	x8, [x8, _MAX1721X_REG_DEV_STR@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_regmap_read
	mov	x20, x0
	ldr	w8, [x21, #12]
	b	LBB0_22
LBB0_12:
	ldr	w0, [x21, #4]
Lloh24:
	adrp	x8, _MAX1721X_REG_MFG_STR@GOTPAGE
Lloh25:
	ldr	x8, [x8, _MAX1721X_REG_MFG_STR@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_regmap_read
	mov	x20, x0
	ldr	w8, [x21, #8]
	b	LBB0_22
LBB0_13:
	ldr	w0, [x21, #4]
Lloh27:
	adrp	x8, _MAX172XX_REG_CURRENT@GOTPAGE
Lloh28:
	ldr	x8, [x8, _MAX172XX_REG_CURRENT@GOTPAGEOFF]
	b	LBB0_15
LBB0_14:
	ldr	w0, [x21, #4]
Lloh29:
	adrp	x8, _MAX172XX_REG_AVGCURRENT@GOTPAGE
Lloh30:
	ldr	x8, [x8, _MAX172XX_REG_AVGCURRENT@GOTPAGEOFF]
LBB0_15:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_regmap_read
	mov	x20, x0
	ldr	w0, [sp, #12]
	bl	_max172xx_current_to_voltage
	ldr	w8, [x21, #16]
	sdiv	w8, w0, w8
	b	LBB0_22
LBB0_16:
	ldr	w0, [x21, #4]
Lloh31:
	adrp	x8, _MAX172XX_REG_DESIGNCAP@GOTPAGE
Lloh32:
	ldr	x8, [x8, _MAX172XX_REG_DESIGNCAP@GOTPAGEOFF]
	b	LBB0_18
LBB0_17:
	ldr	w0, [x21, #4]
Lloh33:
	adrp	x8, _MAX172XX_REG_REPCAP@GOTPAGE
Lloh34:
	ldr	x8, [x8, _MAX172XX_REG_REPCAP@GOTPAGEOFF]
LBB0_18:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_regmap_read
	mov	x20, x0
	ldr	w0, [sp, #12]
	bl	_max172xx_capacity_to_ps
	str	w0, [x19]
	b	LBB0_23
LBB0_19:
	ldr	w0, [x21, #4]
Lloh35:
	adrp	x8, _MAX172XX_REG_REPSOC@GOTPAGE
Lloh36:
	ldr	x8, [x8, _MAX172XX_REG_REPSOC@GOTPAGEOFF]
Lloh37:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_regmap_read
	mov	x20, x0
	ldr	w0, [sp, #12]
	bl	_max172xx_percent_to_ps
	str	w0, [x19]
	b	LBB0_23
LBB0_20:
	ldr	w8, [sp, #12]
Lloh38:
	adrp	x9, _MAX172XX_BAT_PRESENT@GOTPAGE
Lloh39:
	ldr	x9, [x9, _MAX172XX_BAT_PRESENT@GOTPAGEOFF]
Lloh40:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w8, eq
LBB0_21:
	mov	w20, #0
LBB0_22:
	str	w8, [x19]
LBB0_23:
	mov	x0, x20
	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 AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
	.byte	(LBB0_9-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_16-LBB0_2)>>2
	.byte	(LBB0_17-LBB0_2)>>2
	.byte	(LBB0_19-LBB0_2)>>2
                                        ; -- End function
	.comm	_MAX172XX_REG_STATUS,4,2        ; @MAX172XX_REG_STATUS
	.comm	_MAX172XX_BAT_PRESENT,4,2       ; @MAX172XX_BAT_PRESENT
	.comm	_MAX172XX_REG_REPSOC,4,2        ; @MAX172XX_REG_REPSOC
	.comm	_MAX172XX_REG_BATT,4,2          ; @MAX172XX_REG_BATT
	.comm	_MAX172XX_REG_DESIGNCAP,4,2     ; @MAX172XX_REG_DESIGNCAP
	.comm	_MAX172XX_REG_REPCAP,4,2        ; @MAX172XX_REG_REPCAP
	.comm	_MAX172XX_REG_TTE,4,2           ; @MAX172XX_REG_TTE
	.comm	_MAX172XX_REG_TTF,4,2           ; @MAX172XX_REG_TTF
	.comm	_MAX172XX_REG_TEMP,4,2          ; @MAX172XX_REG_TEMP
	.comm	_MAX172XX_REG_CURRENT,4,2       ; @MAX172XX_REG_CURRENT
	.comm	_MAX172XX_REG_AVGCURRENT,4,2    ; @MAX172XX_REG_AVGCURRENT
	.comm	_MAX1721X_REG_DEV_STR,4,2       ; @MAX1721X_REG_DEV_STR
	.comm	_MAX1721X_REG_MFG_STR,4,2       ; @MAX1721X_REG_MFG_STR
	.comm	_MAX1721X_REG_SER_HEX,4,2       ; @MAX1721X_REG_SER_HEX
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_max1721x_battery_get_property
.subsections_via_symbols
