	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fuel_gauge_thread_handler
_fuel_gauge_thread_handler:             ## @fuel_gauge_thread_handler
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rsi, %rbx
	movq	_AXP288_FG_INTR_NUM@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	testl	%ecx, %ecx
	jle	LBB0_4
## %bb.1:
	movq	(%rbx), %rdx
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%edi, (%rdx,%rax,4)
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%rax
	cmpq	%rax, %rcx
	jne	LBB0_2
LBB0_4:
	movq	16(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_warn
	movq	_IRQ_NONE@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_5:
	addl	$-128, %eax
	cmpl	$5, %eax
	ja	LBB0_13
## %bb.6:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_11:
	movq	16(%rbx), %rdi
	leaq	L_.str.5(%rip), %rsi
	callq	_dev_info
	jmp	LBB0_14
LBB0_12:
	movq	16(%rbx), %rdi
	leaq	L_.str.6(%rip), %rsi
	callq	_dev_info
	jmp	LBB0_14
LBB0_8:
	movq	16(%rbx), %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_dev_info
	jmp	LBB0_14
LBB0_10:
	movq	16(%rbx), %rdi
	leaq	L_.str.4(%rip), %rsi
	callq	_dev_info
	jmp	LBB0_14
LBB0_7:
	movq	16(%rbx), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_info
	jmp	LBB0_14
LBB0_9:
	movq	16(%rbx), %rdi
	leaq	L_.str.3(%rip), %rsi
	callq	_dev_info
	jmp	LBB0_14
LBB0_13:
	movq	16(%rbx), %rdi
	leaq	L_.str.7(%rip), %rsi
	callq	_dev_warn
LBB0_14:
	movl	8(%rbx), %edi
	callq	_power_supply_changed
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
LBB0_15:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
LJTI0_0:
	.long	L0_0_set_11
	.long	L0_0_set_12
	.long	L0_0_set_8
	.long	L0_0_set_10
	.long	L0_0_set_7
	.long	L0_0_set_9
	.end_data_region
                                        ## -- End function
	.comm	_AXP288_FG_INTR_NUM,4,2         ## @AXP288_FG_INTR_NUM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"spurious interrupt!!\n"

	.comm	_IRQ_NONE,4,2                   ## @IRQ_NONE
L_.str.1:                               ## @.str.1
	.asciz	"Quit Battery under temperature in work mode IRQ (QWBTU)\n"

L_.str.2:                               ## @.str.2
	.asciz	"Battery under temperature in work mode IRQ (WBTU)\n"

L_.str.3:                               ## @.str.3
	.asciz	"Quit Battery over temperature in work mode IRQ (QWBTO)\n"

L_.str.4:                               ## @.str.4
	.asciz	"Battery over temperature in work mode IRQ (WBTO)\n"

L_.str.5:                               ## @.str.5
	.asciz	"Low Batt Warning(2) INTR\n"

L_.str.6:                               ## @.str.6
	.asciz	"Low Batt Warning(1) INTR\n"

L_.str.7:                               ## @.str.7
	.asciz	"Spurious Interrupt!!!\n"

	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_fuel_gauge_thread_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fuel_gauge_thread_handler
_fuel_gauge_thread_handler:             ; @fuel_gauge_thread_handler
	.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, x1
Lloh0:
	adrp	x8, _AXP288_FG_INTR_NUM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AXP288_FG_INTR_NUM@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.1:
	mov	x9, #0
	ldr	x10, [x19]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x10, x9, lsl #2]
	cmp	w11, w0
	b.eq	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x9, x9, #1
	cmp	x8, x9
	b.ne	LBB0_2
LBB0_4:
	ldr	x0, [x19, #16]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_warn
Lloh5:
	adrp	x8, _IRQ_NONE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IRQ_NONE@GOTPAGEOFF]
	b	LBB0_15
LBB0_5:
	sub	w8, w9, #128
	cmp	w8, #5
	b.hi	LBB0_13
; %bb.6:
Lloh7:
	adrp	x9, lJTI0_0@PAGE
Lloh8:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_7
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_7:
	ldr	x0, [x19, #16]
Lloh9:
	adrp	x1, l_.str.5@PAGE
Lloh10:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_dev_info
	b	LBB0_14
LBB0_8:
	ldr	x0, [x19, #16]
Lloh11:
	adrp	x1, l_.str.6@PAGE
Lloh12:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_dev_info
	b	LBB0_14
LBB0_9:
	ldr	x0, [x19, #16]
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_info
	b	LBB0_14
LBB0_10:
	ldr	x0, [x19, #16]
Lloh15:
	adrp	x1, l_.str.4@PAGE
Lloh16:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_dev_info
	b	LBB0_14
LBB0_11:
	ldr	x0, [x19, #16]
Lloh17:
	adrp	x1, l_.str.1@PAGE
Lloh18:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_info
	b	LBB0_14
LBB0_12:
	ldr	x0, [x19, #16]
Lloh19:
	adrp	x1, l_.str.3@PAGE
Lloh20:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_dev_info
	b	LBB0_14
LBB0_13:
	ldr	x0, [x19, #16]
Lloh21:
	adrp	x1, l_.str.7@PAGE
Lloh22:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	_dev_warn
LBB0_14:
	ldr	w0, [x19, #8]
	bl	_power_supply_changed
Lloh23:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh24:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
LBB0_15:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_7-LBB0_7)>>2
	.byte	(LBB0_8-LBB0_7)>>2
	.byte	(LBB0_9-LBB0_7)>>2
	.byte	(LBB0_10-LBB0_7)>>2
	.byte	(LBB0_11-LBB0_7)>>2
	.byte	(LBB0_12-LBB0_7)>>2
                                        ; -- End function
	.comm	_AXP288_FG_INTR_NUM,4,2         ; @AXP288_FG_INTR_NUM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"spurious interrupt!!\n"

	.comm	_IRQ_NONE,4,2                   ; @IRQ_NONE
l_.str.1:                               ; @.str.1
	.asciz	"Quit Battery under temperature in work mode IRQ (QWBTU)\n"

l_.str.2:                               ; @.str.2
	.asciz	"Battery under temperature in work mode IRQ (WBTU)\n"

l_.str.3:                               ; @.str.3
	.asciz	"Quit Battery over temperature in work mode IRQ (QWBTO)\n"

l_.str.4:                               ; @.str.4
	.asciz	"Battery over temperature in work mode IRQ (WBTO)\n"

l_.str.5:                               ; @.str.5
	.asciz	"Low Batt Warning(2) INTR\n"

l_.str.6:                               ; @.str.6
	.asciz	"Low Batt Warning(1) INTR\n"

l_.str.7:                               ; @.str.7
	.asciz	"Spurious Interrupt!!!\n"

	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_fuel_gauge_thread_handler
.subsections_via_symbols
