	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ab8500_fg_get_property
_ab8500_fg_get_property:                ## @ab8500_fg_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	$10, %ebx
	ja	LBB0_5
## %bb.1:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rbx,4), %rdx
	addq	%rcx, %rdx
	jmpq	*%rdx
LBB0_2:
	cmpl	$0, 40(%rax)
	je	LBB0_4
## %bb.3:
	movq	_BATT_OVV_VALUE@GOTPCREL(%rip), %rax
LBB0_4:
	imull	$1000, (%rax), %eax             ## imm = 0x3E8
	jmp	LBB0_27
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_29
LBB0_6:
	cmpl	$0, 36(%rax)
	je	LBB0_8
## %bb.7:
	movq	48(%rax), %rcx
	cmpl	$0, (%rcx)
	je	LBB0_22
LBB0_8:
	movl	20(%rax), %esi
	jmp	LBB0_24
LBB0_9:
	movl	12(%rax), %esi
	jmp	LBB0_24
LBB0_10:
	imull	$1000, 4(%rax), %eax            ## imm = 0x3E8
	jmp	LBB0_27
LBB0_11:
	imull	$1000, 8(%rax), %eax            ## imm = 0x3E8
	jmp	LBB0_27
LBB0_12:
	cmpl	$0, 36(%rax)
	je	LBB0_14
## %bb.13:
	movq	48(%rax), %rcx
	cmpl	$0, (%rcx)
	je	LBB0_25
LBB0_14:
	movl	20(%rax), %eax
	jmp	LBB0_27
LBB0_15:
	movl	12(%rax), %eax
	jmp	LBB0_27
LBB0_16:
	cmpl	$0, 36(%rax)
	je	LBB0_18
## %bb.17:
	movq	48(%rax), %rcx
	cmpl	$0, (%rcx)
	je	LBB0_30
LBB0_18:
	movl	28(%rax), %eax
	jmp	LBB0_27
LBB0_19:
	cmpl	$0, 36(%rax)
	je	LBB0_21
## %bb.20:
	movq	48(%rax), %rcx
	cmpl	$0, (%rcx)
	je	LBB0_32
LBB0_21:
	movl	24(%rax), %eax
	jmp	LBB0_27
LBB0_22:
	cmpl	$0, 32(%rax)
	je	LBB0_8
LBB0_23:
	movl	16(%rax), %esi
LBB0_24:
	movq	%rax, %rdi
	callq	_ab8500_fg_convert_mah_to_uwh
	movl	%eax, (%r14)
	jmp	LBB0_28
LBB0_25:
	cmpl	$0, 32(%rax)
	je	LBB0_14
LBB0_26:
	movl	16(%rax), %eax
LBB0_27:
	movl	%eax, (%r14)
LBB0_28:
	xorl	%eax, %eax
LBB0_29:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_30:
	cmpl	$0, 32(%rax)
	je	LBB0_18
## %bb.31:
	movq	_POWER_SUPPLY_CAPACITY_LEVEL_UNKNOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_27
LBB0_32:
	cmpl	$0, 32(%rax)
	je	LBB0_21
## %bb.33:
	movl	$100, (%r14)
	jmp	LBB0_28
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_23, LBB0_23-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_26, LBB0_26-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_19, LBB0_19-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_6
	.long	L0_0_set_9
	.long	L0_0_set_23
	.long	L0_0_set_10
	.long	L0_0_set_11
	.long	L0_0_set_12
	.long	L0_0_set_15
	.long	L0_0_set_26
	.long	L0_0_set_16
	.long	L0_0_set_19
	.end_data_region
                                        ## -- End function
	.comm	_BATT_OVV_VALUE,4,2             ## @BATT_OVV_VALUE
	.comm	_POWER_SUPPLY_CAPACITY_LEVEL_UNKNOWN,4,2 ## @POWER_SUPPLY_CAPACITY_LEVEL_UNKNOWN
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_ab8500_fg_get_property
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ab8500_fg_get_property
_ab8500_fg_get_property:                ; @ab8500_fg_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	w9, w20, #128
	cmp	w9, #10
	b.hi	LBB0_4
; %bb.1:
	mov	x8, x0
Lloh0:
	adrp	x10, lJTI0_0@PAGE
Lloh1:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_2
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_2:
	ldr	w9, [x8, #40]
	cbz	w9, LBB0_21
; %bb.3:
	mov	w0, #0
Lloh2:
	adrp	x8, _BATT_OVV_VALUE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _BATT_OVV_VALUE@GOTPAGEOFF]
	b	LBB0_22
LBB0_4:
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_30
LBB0_5:
	ldr	w9, [x8, #36]
	cbz	w9, LBB0_7
; %bb.6:
	ldr	x9, [x8, #48]
	ldr	w9, [x9]
	cbz	w9, LBB0_24
LBB0_7:
	ldr	w1, [x8, #20]
	b	LBB0_26
LBB0_8:
	ldr	w1, [x8, #12]
	b	LBB0_26
LBB0_9:
	mov	w0, #0
	ldr	w8, [x8, #4]
	b	LBB0_23
LBB0_10:
	mov	w0, #0
	ldr	w8, [x8, #8]
	b	LBB0_23
LBB0_11:
	ldr	w9, [x8, #36]
	cbz	w9, LBB0_13
; %bb.12:
	ldr	x9, [x8, #48]
	ldr	w9, [x9]
	cbz	w9, LBB0_27
LBB0_13:
	mov	w0, #0
	ldr	w8, [x8, #20]
	b	LBB0_29
LBB0_14:
	mov	w0, #0
	ldr	w8, [x8, #12]
	b	LBB0_29
LBB0_15:
	ldr	w9, [x8, #36]
	cbz	w9, LBB0_17
; %bb.16:
	ldr	x9, [x8, #48]
	ldr	w9, [x9]
	cbz	w9, LBB0_31
LBB0_17:
	mov	w0, #0
	ldr	w8, [x8, #28]
	b	LBB0_29
LBB0_18:
	ldr	w9, [x8, #36]
	cbz	w9, LBB0_20
; %bb.19:
	ldr	x9, [x8, #48]
	ldr	w9, [x9]
	cbz	w9, LBB0_33
LBB0_20:
	mov	w0, #0
	ldr	w8, [x8, #24]
	b	LBB0_29
LBB0_21:
	mov	w0, #0
LBB0_22:
	ldr	w8, [x8]
LBB0_23:
	mov	w9, #1000
	mul	w8, w8, w9
	b	LBB0_29
LBB0_24:
	ldr	w9, [x8, #32]
	cbz	w9, LBB0_7
LBB0_25:
	ldr	w1, [x8, #16]
LBB0_26:
	mov	x0, x8
	bl	_ab8500_fg_convert_mah_to_uwh
	mov	x8, x0
	mov	w0, #0
	str	w8, [x19]
	b	LBB0_30
LBB0_27:
	ldr	w9, [x8, #32]
	cbz	w9, LBB0_13
LBB0_28:
	mov	w0, #0
	ldr	w8, [x8, #16]
LBB0_29:
	str	w8, [x19]
LBB0_30:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_31:
	ldr	w9, [x8, #32]
	cbz	w9, LBB0_17
; %bb.32:
	mov	w0, #0
Lloh7:
	adrp	x8, _POWER_SUPPLY_CAPACITY_LEVEL_UNKNOWN@GOTPAGE
Lloh8:
	ldr	x8, [x8, _POWER_SUPPLY_CAPACITY_LEVEL_UNKNOWN@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	b	LBB0_29
LBB0_33:
	ldr	w9, [x8, #32]
	cbz	w9, LBB0_20
; %bb.34:
	mov	w0, #0
	mov	w8, #100
	b	LBB0_29
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
	.byte	(LBB0_25-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
	.byte	(LBB0_10-LBB0_2)>>2
	.byte	(LBB0_11-LBB0_2)>>2
	.byte	(LBB0_14-LBB0_2)>>2
	.byte	(LBB0_28-LBB0_2)>>2
	.byte	(LBB0_15-LBB0_2)>>2
	.byte	(LBB0_18-LBB0_2)>>2
                                        ; -- End function
	.comm	_BATT_OVV_VALUE,4,2             ; @BATT_OVV_VALUE
	.comm	_POWER_SUPPLY_CAPACITY_LEVEL_UNKNOWN,4,2 ; @POWER_SUPPLY_CAPACITY_LEVEL_UNKNOWN
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_ab8500_fg_get_property
.subsections_via_symbols
