	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function axp8xx_intr
_axp8xx_intr:                           ## @axp8xx_intr
	.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
	movq	%rdi, %r14
	movq	_AXP_IRQSTAT1@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	leaq	-20(%rbp), %rdx
	movl	$1, %ecx
	callq	_axp8xx_read
	testl	%eax, %eax
	jne	LBB0_48
## %bb.1:
	movl	-20(%rbp), %edx
	testl	%edx, %edx
	je	LBB0_13
## %bb.2:
	movq	_bootverbose@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_device_printf
	movl	-20(%rbp), %edx
LBB0_4:
	movq	_AXP_IRQSTAT1_ACIN_HI@GOTPCREL(%rip), %rax
	testl	%edx, (%rax)
	je	LBB0_6
## %bb.5:
	leaq	L_.str.1(%rip), %rdi
	leaq	L_.str.2(%rip), %rsi
	leaq	L_.str.3(%rip), %rdx
	xorl	%ecx, %ecx
	callq	_devctl_notify
	movl	-20(%rbp), %edx
LBB0_6:
	movq	_AXP_IRQSTAT1_ACIN_LO@GOTPCREL(%rip), %rax
	testl	%edx, (%rax)
	je	LBB0_8
## %bb.7:
	leaq	L_.str.1(%rip), %rdi
	leaq	L_.str.2(%rip), %rsi
	leaq	L_.str.4(%rip), %rdx
	xorl	%ecx, %ecx
	callq	_devctl_notify
	movl	-20(%rbp), %edx
LBB0_8:
	movq	_AXP_IRQSTAT1_VBUS_HI@GOTPCREL(%rip), %rax
	testl	%edx, (%rax)
	je	LBB0_10
## %bb.9:
	leaq	L_.str.1(%rip), %rdi
	leaq	L_.str.5(%rip), %rsi
	leaq	L_.str.3(%rip), %rdx
	xorl	%ecx, %ecx
	callq	_devctl_notify
	movl	-20(%rbp), %edx
LBB0_10:
	movq	_AXP_IRQSTAT1_VBUS_LO@GOTPCREL(%rip), %rax
	testl	%edx, (%rax)
	je	LBB0_12
## %bb.11:
	leaq	L_.str.1(%rip), %rdi
	leaq	L_.str.5(%rip), %rsi
	leaq	L_.str.4(%rip), %rdx
	xorl	%ecx, %ecx
	callq	_devctl_notify
	movl	-20(%rbp), %edx
LBB0_12:
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_axp8xx_write
LBB0_13:
	movq	_AXP_IRQSTAT2@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	leaq	-20(%rbp), %rdx
	movq	%r14, %rdi
	movl	$1, %ecx
	callq	_axp8xx_read
	testl	%eax, %eax
	jne	LBB0_48
## %bb.14:
	movl	-20(%rbp), %edx
	testl	%edx, %edx
	je	LBB0_26
## %bb.15:
	movq	_bootverbose@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_17
## %bb.16:
	leaq	L_.str.6(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_device_printf
	movl	-20(%rbp), %edx
LBB0_17:
	movq	_AXP_IRQSTAT2_BATCHGD@GOTPCREL(%rip), %rax
	testl	%edx, (%rax)
	je	LBB0_19
## %bb.18:
	leaq	L_.str.1(%rip), %rdi
	leaq	L_.str.7(%rip), %rsi
	leaq	L_.str.8(%rip), %rdx
	xorl	%ecx, %ecx
	callq	_devctl_notify
	movl	-20(%rbp), %edx
LBB0_19:
	movq	_AXP_IRQSTAT2_BATCHGC@GOTPCREL(%rip), %rax
	testl	%edx, (%rax)
	je	LBB0_21
## %bb.20:
	leaq	L_.str.1(%rip), %rdi
	leaq	L_.str.7(%rip), %rsi
	leaq	L_.str.9(%rip), %rdx
	xorl	%ecx, %ecx
	callq	_devctl_notify
	movl	-20(%rbp), %edx
LBB0_21:
	movq	_AXP_IRQSTAT2_BAT_NO@GOTPCREL(%rip), %rax
	testl	%edx, (%rax)
	je	LBB0_23
## %bb.22:
	leaq	L_.str.1(%rip), %rdi
	leaq	L_.str.7(%rip), %rsi
	leaq	L_.str.10(%rip), %rdx
	xorl	%ecx, %ecx
	callq	_devctl_notify
	movl	-20(%rbp), %edx
LBB0_23:
	movq	_AXP_IRQSTAT2_BAT_IN@GOTPCREL(%rip), %rax
	testl	%edx, (%rax)
	je	LBB0_25
## %bb.24:
	leaq	L_.str.1(%rip), %rdi
	leaq	L_.str.7(%rip), %rsi
	leaq	L_.str.3(%rip), %rdx
	xorl	%ecx, %ecx
	callq	_devctl_notify
	movl	-20(%rbp), %edx
LBB0_25:
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_axp8xx_write
LBB0_26:
	movq	_AXP_IRQSTAT3@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	leaq	-20(%rbp), %rdx
	movq	%r14, %rdi
	movl	$1, %ecx
	callq	_axp8xx_read
	testl	%eax, %eax
	jne	LBB0_48
## %bb.27:
	movl	-20(%rbp), %edx
	testl	%edx, %edx
	je	LBB0_29
## %bb.28:
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_axp8xx_write
LBB0_29:
	movq	_AXP_IRQSTAT4@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	leaq	-20(%rbp), %rdx
	movq	%r14, %rdi
	movl	$1, %ecx
	callq	_axp8xx_read
	testl	%eax, %eax
	jne	LBB0_48
## %bb.30:
	movl	-20(%rbp), %edx
	testl	%edx, %edx
	je	LBB0_38
## %bb.31:
	movq	_bootverbose@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_33
## %bb.32:
	leaq	L_.str.11(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_device_printf
	movl	-20(%rbp), %edx
LBB0_33:
	movq	_AXP_IRQSTAT4_BATLVL_LO0@GOTPCREL(%rip), %rax
	testl	%edx, (%rax)
	je	LBB0_35
## %bb.34:
	leaq	L_.str.1(%rip), %rdi
	leaq	L_.str.7(%rip), %rsi
	leaq	L_.str.12(%rip), %rdx
	xorl	%ecx, %ecx
	callq	_devctl_notify
	movl	-20(%rbp), %edx
LBB0_35:
	movq	_AXP_IRQSTAT4_BATLVL_LO1@GOTPCREL(%rip), %rax
	testl	%edx, (%rax)
	je	LBB0_37
## %bb.36:
	leaq	L_.str.1(%rip), %rdi
	leaq	L_.str.7(%rip), %rsi
	leaq	L_.str.13(%rip), %rdx
	xorl	%ecx, %ecx
	callq	_devctl_notify
	movl	-20(%rbp), %edx
LBB0_37:
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_axp8xx_write
LBB0_38:
	movq	_AXP_IRQSTAT5@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	leaq	-20(%rbp), %rdx
	movq	%r14, %rdi
	movl	$1, %ecx
	callq	_axp8xx_read
	testl	%eax, %eax
	jne	LBB0_48
## %bb.39:
	movl	-20(%rbp), %edx
	testl	%edx, %edx
	je	LBB0_45
## %bb.40:
	movq	_AXP_IRQSTAT5_POKSIRQ@GOTPCREL(%rip), %rax
	testl	%edx, (%rax)
	je	LBB0_44
## %bb.41:
	movq	_bootverbose@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_43
## %bb.42:
	leaq	L_.str.14(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_device_printf
LBB0_43:
	movq	_RB_POWEROFF@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_shutdown_nice
	movl	-20(%rbp), %edx
LBB0_44:
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_axp8xx_write
LBB0_45:
	movq	_AXP_IRQSTAT6@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	leaq	-20(%rbp), %rdx
	movq	%r14, %rdi
	movl	$1, %ecx
	callq	_axp8xx_read
	testl	%eax, %eax
	jne	LBB0_48
## %bb.46:
	movl	-20(%rbp), %edx
	testl	%edx, %edx
	je	LBB0_48
## %bb.47:
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_axp8xx_write
LBB0_48:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AXP_IRQSTAT1,4,2               ## @AXP_IRQSTAT1
	.comm	_bootverbose,8,3                ## @bootverbose
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"AXP_IRQSTAT1 val: %x\n"

	.comm	_AXP_IRQSTAT1_ACIN_HI,4,2       ## @AXP_IRQSTAT1_ACIN_HI
L_.str.1:                               ## @.str.1
	.asciz	"PMU"

L_.str.2:                               ## @.str.2
	.asciz	"AC"

L_.str.3:                               ## @.str.3
	.asciz	"plugged"

	.comm	_AXP_IRQSTAT1_ACIN_LO,4,2       ## @AXP_IRQSTAT1_ACIN_LO
L_.str.4:                               ## @.str.4
	.asciz	"unplugged"

	.comm	_AXP_IRQSTAT1_VBUS_HI,4,2       ## @AXP_IRQSTAT1_VBUS_HI
L_.str.5:                               ## @.str.5
	.asciz	"USB"

	.comm	_AXP_IRQSTAT1_VBUS_LO,4,2       ## @AXP_IRQSTAT1_VBUS_LO
	.comm	_AXP_IRQSTAT2,4,2               ## @AXP_IRQSTAT2
L_.str.6:                               ## @.str.6
	.asciz	"AXP_IRQSTAT2 val: %x\n"

	.comm	_AXP_IRQSTAT2_BATCHGD,4,2       ## @AXP_IRQSTAT2_BATCHGD
L_.str.7:                               ## @.str.7
	.asciz	"Battery"

L_.str.8:                               ## @.str.8
	.asciz	"charged"

	.comm	_AXP_IRQSTAT2_BATCHGC,4,2       ## @AXP_IRQSTAT2_BATCHGC
L_.str.9:                               ## @.str.9
	.asciz	"charging"

	.comm	_AXP_IRQSTAT2_BAT_NO,4,2        ## @AXP_IRQSTAT2_BAT_NO
L_.str.10:                              ## @.str.10
	.asciz	"absent"

	.comm	_AXP_IRQSTAT2_BAT_IN,4,2        ## @AXP_IRQSTAT2_BAT_IN
	.comm	_AXP_IRQSTAT3,4,2               ## @AXP_IRQSTAT3
	.comm	_AXP_IRQSTAT4,4,2               ## @AXP_IRQSTAT4
L_.str.11:                              ## @.str.11
	.asciz	"AXP_IRQSTAT4 val: %x\n"

	.comm	_AXP_IRQSTAT4_BATLVL_LO0,4,2    ## @AXP_IRQSTAT4_BATLVL_LO0
L_.str.12:                              ## @.str.12
	.asciz	"shutdown threshold"

	.comm	_AXP_IRQSTAT4_BATLVL_LO1,4,2    ## @AXP_IRQSTAT4_BATLVL_LO1
L_.str.13:                              ## @.str.13
	.asciz	"warning threshold"

	.comm	_AXP_IRQSTAT5,4,2               ## @AXP_IRQSTAT5
	.comm	_AXP_IRQSTAT5_POKSIRQ,4,2       ## @AXP_IRQSTAT5_POKSIRQ
L_.str.14:                              ## @.str.14
	.asciz	"Power button pressed\n"

	.comm	_RB_POWEROFF,4,2                ## @RB_POWEROFF
	.comm	_AXP_IRQSTAT6,4,2               ## @AXP_IRQSTAT6
	.no_dead_strip	_axp8xx_intr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function axp8xx_intr
_axp8xx_intr:                           ; @axp8xx_intr
	.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	x19, x0
Lloh0:
	adrp	x20, _AXP_IRQSTAT1@GOTPAGE
Lloh1:
	ldr	x20, [x20, _AXP_IRQSTAT1@GOTPAGEOFF]
	ldr	w1, [x20]
	add	x2, sp, #12
	mov	w3, #1
	bl	_axp8xx_read
	cbnz	w0, LBB0_48
; %bb.1:
	ldr	w2, [sp, #12]
	cbz	w2, LBB0_13
; %bb.2:
Lloh2:
	adrp	x8, _bootverbose@GOTPAGE
Lloh3:
	ldr	x8, [x8, _bootverbose@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cbz	x8, LBB0_4
; %bb.3:
	str	x2, [sp]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_device_printf
	ldr	w2, [sp, #12]
LBB0_4:
Lloh7:
	adrp	x8, _AXP_IRQSTAT1_ACIN_HI@GOTPAGE
Lloh8:
	ldr	x8, [x8, _AXP_IRQSTAT1_ACIN_HI@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	tst	w8, w2
	b.eq	LBB0_6
; %bb.5:
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
Lloh12:
	adrp	x1, l_.str.2@PAGE
Lloh13:
	add	x1, x1, l_.str.2@PAGEOFF
Lloh14:
	adrp	x2, l_.str.3@PAGE
Lloh15:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x3, #0
	bl	_devctl_notify
	ldr	w2, [sp, #12]
LBB0_6:
Lloh16:
	adrp	x8, _AXP_IRQSTAT1_ACIN_LO@GOTPAGE
Lloh17:
	ldr	x8, [x8, _AXP_IRQSTAT1_ACIN_LO@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	tst	w8, w2
	b.eq	LBB0_8
; %bb.7:
Lloh19:
	adrp	x0, l_.str.1@PAGE
Lloh20:
	add	x0, x0, l_.str.1@PAGEOFF
Lloh21:
	adrp	x1, l_.str.2@PAGE
Lloh22:
	add	x1, x1, l_.str.2@PAGEOFF
Lloh23:
	adrp	x2, l_.str.4@PAGE
Lloh24:
	add	x2, x2, l_.str.4@PAGEOFF
	mov	x3, #0
	bl	_devctl_notify
	ldr	w2, [sp, #12]
LBB0_8:
Lloh25:
	adrp	x8, _AXP_IRQSTAT1_VBUS_HI@GOTPAGE
Lloh26:
	ldr	x8, [x8, _AXP_IRQSTAT1_VBUS_HI@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	tst	w8, w2
	b.eq	LBB0_10
; %bb.9:
Lloh28:
	adrp	x0, l_.str.1@PAGE
Lloh29:
	add	x0, x0, l_.str.1@PAGEOFF
Lloh30:
	adrp	x1, l_.str.5@PAGE
Lloh31:
	add	x1, x1, l_.str.5@PAGEOFF
Lloh32:
	adrp	x2, l_.str.3@PAGE
Lloh33:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x3, #0
	bl	_devctl_notify
	ldr	w2, [sp, #12]
LBB0_10:
Lloh34:
	adrp	x8, _AXP_IRQSTAT1_VBUS_LO@GOTPAGE
Lloh35:
	ldr	x8, [x8, _AXP_IRQSTAT1_VBUS_LO@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
	tst	w8, w2
	b.eq	LBB0_12
; %bb.11:
Lloh37:
	adrp	x0, l_.str.1@PAGE
Lloh38:
	add	x0, x0, l_.str.1@PAGEOFF
Lloh39:
	adrp	x1, l_.str.5@PAGE
Lloh40:
	add	x1, x1, l_.str.5@PAGEOFF
Lloh41:
	adrp	x2, l_.str.4@PAGE
Lloh42:
	add	x2, x2, l_.str.4@PAGEOFF
	mov	x3, #0
	bl	_devctl_notify
	ldr	w2, [sp, #12]
LBB0_12:
	ldr	w1, [x20]
	mov	x0, x19
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_axp8xx_write
LBB0_13:
Lloh43:
	adrp	x20, _AXP_IRQSTAT2@GOTPAGE
Lloh44:
	ldr	x20, [x20, _AXP_IRQSTAT2@GOTPAGEOFF]
	ldr	w1, [x20]
	add	x2, sp, #12
	mov	x0, x19
	mov	w3, #1
	bl	_axp8xx_read
	cbnz	w0, LBB0_48
; %bb.14:
	ldr	w2, [sp, #12]
	cbz	w2, LBB0_26
; %bb.15:
Lloh45:
	adrp	x8, _bootverbose@GOTPAGE
Lloh46:
	ldr	x8, [x8, _bootverbose@GOTPAGEOFF]
Lloh47:
	ldr	x8, [x8]
	cbz	x8, LBB0_17
; %bb.16:
	str	x2, [sp]
Lloh48:
	adrp	x1, l_.str.6@PAGE
Lloh49:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	bl	_device_printf
	ldr	w2, [sp, #12]
LBB0_17:
Lloh50:
	adrp	x8, _AXP_IRQSTAT2_BATCHGD@GOTPAGE
Lloh51:
	ldr	x8, [x8, _AXP_IRQSTAT2_BATCHGD@GOTPAGEOFF]
Lloh52:
	ldr	w8, [x8]
	tst	w8, w2
	b.eq	LBB0_19
; %bb.18:
Lloh53:
	adrp	x0, l_.str.1@PAGE
Lloh54:
	add	x0, x0, l_.str.1@PAGEOFF
Lloh55:
	adrp	x1, l_.str.7@PAGE
Lloh56:
	add	x1, x1, l_.str.7@PAGEOFF
Lloh57:
	adrp	x2, l_.str.8@PAGE
Lloh58:
	add	x2, x2, l_.str.8@PAGEOFF
	mov	x3, #0
	bl	_devctl_notify
	ldr	w2, [sp, #12]
LBB0_19:
Lloh59:
	adrp	x8, _AXP_IRQSTAT2_BATCHGC@GOTPAGE
Lloh60:
	ldr	x8, [x8, _AXP_IRQSTAT2_BATCHGC@GOTPAGEOFF]
Lloh61:
	ldr	w8, [x8]
	tst	w8, w2
	b.eq	LBB0_21
; %bb.20:
Lloh62:
	adrp	x0, l_.str.1@PAGE
Lloh63:
	add	x0, x0, l_.str.1@PAGEOFF
Lloh64:
	adrp	x1, l_.str.7@PAGE
Lloh65:
	add	x1, x1, l_.str.7@PAGEOFF
Lloh66:
	adrp	x2, l_.str.9@PAGE
Lloh67:
	add	x2, x2, l_.str.9@PAGEOFF
	mov	x3, #0
	bl	_devctl_notify
	ldr	w2, [sp, #12]
LBB0_21:
Lloh68:
	adrp	x8, _AXP_IRQSTAT2_BAT_NO@GOTPAGE
Lloh69:
	ldr	x8, [x8, _AXP_IRQSTAT2_BAT_NO@GOTPAGEOFF]
Lloh70:
	ldr	w8, [x8]
	tst	w8, w2
	b.eq	LBB0_23
; %bb.22:
Lloh71:
	adrp	x0, l_.str.1@PAGE
Lloh72:
	add	x0, x0, l_.str.1@PAGEOFF
Lloh73:
	adrp	x1, l_.str.7@PAGE
Lloh74:
	add	x1, x1, l_.str.7@PAGEOFF
Lloh75:
	adrp	x2, l_.str.10@PAGE
Lloh76:
	add	x2, x2, l_.str.10@PAGEOFF
	mov	x3, #0
	bl	_devctl_notify
	ldr	w2, [sp, #12]
LBB0_23:
Lloh77:
	adrp	x8, _AXP_IRQSTAT2_BAT_IN@GOTPAGE
Lloh78:
	ldr	x8, [x8, _AXP_IRQSTAT2_BAT_IN@GOTPAGEOFF]
Lloh79:
	ldr	w8, [x8]
	tst	w8, w2
	b.eq	LBB0_25
; %bb.24:
Lloh80:
	adrp	x0, l_.str.1@PAGE
Lloh81:
	add	x0, x0, l_.str.1@PAGEOFF
Lloh82:
	adrp	x1, l_.str.7@PAGE
Lloh83:
	add	x1, x1, l_.str.7@PAGEOFF
Lloh84:
	adrp	x2, l_.str.3@PAGE
Lloh85:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x3, #0
	bl	_devctl_notify
	ldr	w2, [sp, #12]
LBB0_25:
	ldr	w1, [x20]
	mov	x0, x19
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_axp8xx_write
LBB0_26:
Lloh86:
	adrp	x20, _AXP_IRQSTAT3@GOTPAGE
Lloh87:
	ldr	x20, [x20, _AXP_IRQSTAT3@GOTPAGEOFF]
	ldr	w1, [x20]
	add	x2, sp, #12
	mov	x0, x19
	mov	w3, #1
	bl	_axp8xx_read
	cbnz	w0, LBB0_48
; %bb.27:
	ldr	w2, [sp, #12]
	cbz	w2, LBB0_29
; %bb.28:
	ldr	w1, [x20]
	mov	x0, x19
	bl	_axp8xx_write
LBB0_29:
Lloh88:
	adrp	x20, _AXP_IRQSTAT4@GOTPAGE
Lloh89:
	ldr	x20, [x20, _AXP_IRQSTAT4@GOTPAGEOFF]
	ldr	w1, [x20]
	add	x2, sp, #12
	mov	x0, x19
	mov	w3, #1
	bl	_axp8xx_read
	cbnz	w0, LBB0_48
; %bb.30:
	ldr	w2, [sp, #12]
	cbz	w2, LBB0_38
; %bb.31:
Lloh90:
	adrp	x8, _bootverbose@GOTPAGE
Lloh91:
	ldr	x8, [x8, _bootverbose@GOTPAGEOFF]
Lloh92:
	ldr	x8, [x8]
	cbz	x8, LBB0_33
; %bb.32:
	str	x2, [sp]
Lloh93:
	adrp	x1, l_.str.11@PAGE
Lloh94:
	add	x1, x1, l_.str.11@PAGEOFF
	mov	x0, x19
	bl	_device_printf
	ldr	w2, [sp, #12]
LBB0_33:
Lloh95:
	adrp	x8, _AXP_IRQSTAT4_BATLVL_LO0@GOTPAGE
Lloh96:
	ldr	x8, [x8, _AXP_IRQSTAT4_BATLVL_LO0@GOTPAGEOFF]
Lloh97:
	ldr	w8, [x8]
	tst	w8, w2
	b.eq	LBB0_35
; %bb.34:
Lloh98:
	adrp	x0, l_.str.1@PAGE
Lloh99:
	add	x0, x0, l_.str.1@PAGEOFF
Lloh100:
	adrp	x1, l_.str.7@PAGE
Lloh101:
	add	x1, x1, l_.str.7@PAGEOFF
Lloh102:
	adrp	x2, l_.str.12@PAGE
Lloh103:
	add	x2, x2, l_.str.12@PAGEOFF
	mov	x3, #0
	bl	_devctl_notify
	ldr	w2, [sp, #12]
LBB0_35:
Lloh104:
	adrp	x8, _AXP_IRQSTAT4_BATLVL_LO1@GOTPAGE
Lloh105:
	ldr	x8, [x8, _AXP_IRQSTAT4_BATLVL_LO1@GOTPAGEOFF]
Lloh106:
	ldr	w8, [x8]
	tst	w8, w2
	b.eq	LBB0_37
; %bb.36:
Lloh107:
	adrp	x0, l_.str.1@PAGE
Lloh108:
	add	x0, x0, l_.str.1@PAGEOFF
Lloh109:
	adrp	x1, l_.str.7@PAGE
Lloh110:
	add	x1, x1, l_.str.7@PAGEOFF
Lloh111:
	adrp	x2, l_.str.13@PAGE
Lloh112:
	add	x2, x2, l_.str.13@PAGEOFF
	mov	x3, #0
	bl	_devctl_notify
	ldr	w2, [sp, #12]
LBB0_37:
	ldr	w1, [x20]
	mov	x0, x19
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_axp8xx_write
LBB0_38:
Lloh113:
	adrp	x20, _AXP_IRQSTAT5@GOTPAGE
Lloh114:
	ldr	x20, [x20, _AXP_IRQSTAT5@GOTPAGEOFF]
	ldr	w1, [x20]
	add	x2, sp, #12
	mov	x0, x19
	mov	w3, #1
	bl	_axp8xx_read
	cbnz	w0, LBB0_48
; %bb.39:
	ldr	w2, [sp, #12]
	cbz	w2, LBB0_45
; %bb.40:
Lloh115:
	adrp	x8, _AXP_IRQSTAT5_POKSIRQ@GOTPAGE
Lloh116:
	ldr	x8, [x8, _AXP_IRQSTAT5_POKSIRQ@GOTPAGEOFF]
Lloh117:
	ldr	w8, [x8]
	tst	w8, w2
	b.eq	LBB0_44
; %bb.41:
Lloh118:
	adrp	x8, _bootverbose@GOTPAGE
Lloh119:
	ldr	x8, [x8, _bootverbose@GOTPAGEOFF]
Lloh120:
	ldr	x8, [x8]
	cbz	x8, LBB0_43
; %bb.42:
Lloh121:
	adrp	x1, l_.str.14@PAGE
Lloh122:
	add	x1, x1, l_.str.14@PAGEOFF
	mov	x0, x19
	bl	_device_printf
LBB0_43:
Lloh123:
	adrp	x8, _RB_POWEROFF@GOTPAGE
Lloh124:
	ldr	x8, [x8, _RB_POWEROFF@GOTPAGEOFF]
Lloh125:
	ldr	w0, [x8]
	bl	_shutdown_nice
	ldr	w2, [sp, #12]
LBB0_44:
	ldr	w1, [x20]
	mov	x0, x19
	bl	_axp8xx_write
LBB0_45:
Lloh126:
	adrp	x20, _AXP_IRQSTAT6@GOTPAGE
Lloh127:
	ldr	x20, [x20, _AXP_IRQSTAT6@GOTPAGEOFF]
	ldr	w1, [x20]
	add	x2, sp, #12
	mov	x0, x19
	mov	w3, #1
	bl	_axp8xx_read
	cbnz	w0, LBB0_48
; %bb.46:
	ldr	w2, [sp, #12]
	cbz	w2, LBB0_48
; %bb.47:
	ldr	w1, [x20]
	mov	x0, x19
	bl	_axp8xx_write
LBB0_48:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpAdd	Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpAdd	Lloh57, Lloh58
	.loh AdrpAdd	Lloh55, Lloh56
	.loh AdrpAdd	Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpAdd	Lloh66, Lloh67
	.loh AdrpAdd	Lloh64, Lloh65
	.loh AdrpAdd	Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh68, Lloh69, Lloh70
	.loh AdrpAdd	Lloh75, Lloh76
	.loh AdrpAdd	Lloh73, Lloh74
	.loh AdrpAdd	Lloh71, Lloh72
	.loh AdrpLdrGotLdr	Lloh77, Lloh78, Lloh79
	.loh AdrpAdd	Lloh84, Lloh85
	.loh AdrpAdd	Lloh82, Lloh83
	.loh AdrpAdd	Lloh80, Lloh81
	.loh AdrpLdrGot	Lloh86, Lloh87
	.loh AdrpLdrGot	Lloh88, Lloh89
	.loh AdrpLdrGotLdr	Lloh90, Lloh91, Lloh92
	.loh AdrpAdd	Lloh93, Lloh94
	.loh AdrpLdrGotLdr	Lloh95, Lloh96, Lloh97
	.loh AdrpAdd	Lloh102, Lloh103
	.loh AdrpAdd	Lloh100, Lloh101
	.loh AdrpAdd	Lloh98, Lloh99
	.loh AdrpLdrGotLdr	Lloh104, Lloh105, Lloh106
	.loh AdrpAdd	Lloh111, Lloh112
	.loh AdrpAdd	Lloh109, Lloh110
	.loh AdrpAdd	Lloh107, Lloh108
	.loh AdrpLdrGot	Lloh113, Lloh114
	.loh AdrpLdrGotLdr	Lloh115, Lloh116, Lloh117
	.loh AdrpLdrGotLdr	Lloh118, Lloh119, Lloh120
	.loh AdrpAdd	Lloh121, Lloh122
	.loh AdrpLdrGotLdr	Lloh123, Lloh124, Lloh125
	.loh AdrpLdrGot	Lloh126, Lloh127
	.cfi_endproc
                                        ; -- End function
	.comm	_AXP_IRQSTAT1,4,2               ; @AXP_IRQSTAT1
	.comm	_bootverbose,8,3                ; @bootverbose
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"AXP_IRQSTAT1 val: %x\n"

	.comm	_AXP_IRQSTAT1_ACIN_HI,4,2       ; @AXP_IRQSTAT1_ACIN_HI
l_.str.1:                               ; @.str.1
	.asciz	"PMU"

l_.str.2:                               ; @.str.2
	.asciz	"AC"

l_.str.3:                               ; @.str.3
	.asciz	"plugged"

	.comm	_AXP_IRQSTAT1_ACIN_LO,4,2       ; @AXP_IRQSTAT1_ACIN_LO
l_.str.4:                               ; @.str.4
	.asciz	"unplugged"

	.comm	_AXP_IRQSTAT1_VBUS_HI,4,2       ; @AXP_IRQSTAT1_VBUS_HI
l_.str.5:                               ; @.str.5
	.asciz	"USB"

	.comm	_AXP_IRQSTAT1_VBUS_LO,4,2       ; @AXP_IRQSTAT1_VBUS_LO
	.comm	_AXP_IRQSTAT2,4,2               ; @AXP_IRQSTAT2
l_.str.6:                               ; @.str.6
	.asciz	"AXP_IRQSTAT2 val: %x\n"

	.comm	_AXP_IRQSTAT2_BATCHGD,4,2       ; @AXP_IRQSTAT2_BATCHGD
l_.str.7:                               ; @.str.7
	.asciz	"Battery"

l_.str.8:                               ; @.str.8
	.asciz	"charged"

	.comm	_AXP_IRQSTAT2_BATCHGC,4,2       ; @AXP_IRQSTAT2_BATCHGC
l_.str.9:                               ; @.str.9
	.asciz	"charging"

	.comm	_AXP_IRQSTAT2_BAT_NO,4,2        ; @AXP_IRQSTAT2_BAT_NO
l_.str.10:                              ; @.str.10
	.asciz	"absent"

	.comm	_AXP_IRQSTAT2_BAT_IN,4,2        ; @AXP_IRQSTAT2_BAT_IN
	.comm	_AXP_IRQSTAT3,4,2               ; @AXP_IRQSTAT3
	.comm	_AXP_IRQSTAT4,4,2               ; @AXP_IRQSTAT4
l_.str.11:                              ; @.str.11
	.asciz	"AXP_IRQSTAT4 val: %x\n"

	.comm	_AXP_IRQSTAT4_BATLVL_LO0,4,2    ; @AXP_IRQSTAT4_BATLVL_LO0
l_.str.12:                              ; @.str.12
	.asciz	"shutdown threshold"

	.comm	_AXP_IRQSTAT4_BATLVL_LO1,4,2    ; @AXP_IRQSTAT4_BATLVL_LO1
l_.str.13:                              ; @.str.13
	.asciz	"warning threshold"

	.comm	_AXP_IRQSTAT5,4,2               ; @AXP_IRQSTAT5
	.comm	_AXP_IRQSTAT5_POKSIRQ,4,2       ; @AXP_IRQSTAT5_POKSIRQ
l_.str.14:                              ; @.str.14
	.asciz	"Power button pressed\n"

	.comm	_RB_POWEROFF,4,2                ; @RB_POWEROFF
	.comm	_AXP_IRQSTAT6,4,2               ; @AXP_IRQSTAT6
	.no_dead_strip	_axp8xx_intr
.subsections_via_symbols
