	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function handle_power_fault
_handle_power_fault:                    ## @handle_power_fault
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testl	%edi, %edi
	je	LBB0_1
## %bb.2:
	movq	%rsi, %r13
	movl	%edi, %r14d
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_info
	movabsq	$-3689348814741910323, %r12     ## imm = 0xCCCCCCCCCCCCCCCD
	xorl	%ebx, %ebx
	xorl	%r15d, %r15d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	$0, (%r8)
	movq	_INT_POWER_FAULT_CLEAR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rsi,%rdi,8)
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%rbx
	cmpq	$6, %rbx
	je	LBB0_10
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	btl	%ebx, %r14d
	jae	LBB0_9
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	32(%r13), %edi
	movq	24(%r13), %rsi
	addq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_cpqhp_slot_find
	movq	%rax, %r8
	movq	(%r13), %rdi
	movq	16(%r13), %rsi
	leaq	1(%rdi), %rax
	mulq	%r12
	shrq	$2, %rdx
	andq	$-2, %rdx
	leaq	(%rdx,%rdx,4), %rax
	negq	%rax
	addq	%rdi, %rax
	incq	%rax
	movq	%rax, (%r13)
	movl	%ebx, (%rsi,%rdi,8)
	incl	%r15d
	movl	8(%r13), %eax
	movl	%ebx, %ecx
	shrl	%cl, %eax
	testl	$256, %eax                      ## imm = 0x100
	jne	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_INT_POWER_FAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rsi,%rdi,8)
	cmpl	$3, 12(%r13)
	jg	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	_amber_LED_on
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	_green_LED_off
	movq	%r13, %rdi
	callq	_set_SOGO
	jmp	LBB0_9
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	$255, (%r8)
	leaq	L_.str.1(%rip), %rdi
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_info
	jmp	LBB0_9
LBB0_1:
	xorl	%r15d, %r15d
LBB0_10:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"power fault interrupt\n"

	.comm	_INT_POWER_FAULT_CLEAR,4,2      ## @INT_POWER_FAULT_CLEAR
	.comm	_INT_POWER_FAULT,4,2            ## @INT_POWER_FAULT
L_.str.1:                               ## @.str.1
	.asciz	"power fault bit %x set\n"

	.no_dead_strip	_handle_power_fault
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function handle_power_fault
_handle_power_fault:                    ; @handle_power_fault
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	cbz	w0, LBB0_9
; %bb.1:
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_info
	mov	x22, #0
	mov	w21, #0
	mov	x24, #-3689348814741910324
	movk	x24, #52429
Lloh2:
	adrp	x25, _INT_POWER_FAULT@GOTPAGE
Lloh3:
	ldr	x25, [x25, _INT_POWER_FAULT@GOTPAGEOFF]
	mov	w26, #10
	mov	w27, #255
Lloh4:
	adrp	x28, _INT_POWER_FAULT_CLEAR@GOTPAGE
Lloh5:
	ldr	x28, [x28, _INT_POWER_FAULT_CLEAR@GOTPAGEOFF]
Lloh6:
	adrp	x23, l_.str.1@PAGE
Lloh7:
	add	x23, x23, l_.str.1@PAGEOFF
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	str	wzr, [x0]
	ldr	w10, [x28]
	add	x8, x8, x9, lsl #3
	str	w10, [x8, #4]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x22, x22, #1
	cmp	x22, #6
	b.eq	LBB0_10
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	lsr	w8, w20, w22
	tbz	w8, #0, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x19, #32]
	ldr	x8, [x19, #24]
	add	x1, x22, x8
	mov	w2, #0
	bl	_cpqhp_slot_find
	ldr	x8, [x19, #16]
	ldr	x9, [x19]
	add	x10, x9, #1
	umulh	x11, x10, x24
	lsr	x11, x11, #3
	msub	x10, x11, x26, x10
	str	x10, [x19]
	lsl	x10, x9, #3
	str	w22, [x8, x10]
	add	w21, w21, #1
	ldr	w10, [x19, #8]
	lsr	w10, w10, w22
	tbnz	w10, #8, LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w10, [x25]
	add	x8, x8, x9, lsl #3
	str	w10, [x8, #4]
	ldr	w8, [x19, #12]
	cmp	w8, #3
	b.gt	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	mov	x1, x22
	bl	_amber_LED_on
	mov	x0, x19
	mov	x1, x22
	bl	_green_LED_off
	mov	x0, x19
	bl	_set_SOGO
	b	LBB0_3
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	str	w27, [x0]
	str	x22, [sp]
	mov	x0, x23
	bl	_info
	b	LBB0_3
LBB0_9:
	mov	w21, #0
LBB0_10:
	mov	x0, x21
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"power fault interrupt\n"

	.comm	_INT_POWER_FAULT_CLEAR,4,2      ; @INT_POWER_FAULT_CLEAR
	.comm	_INT_POWER_FAULT,4,2            ; @INT_POWER_FAULT
l_.str.1:                               ; @.str.1
	.asciz	"power fault bit %x set\n"

	.no_dead_strip	_handle_power_fault
.subsections_via_symbols
