	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_isa_nmi                        ## -- Begin function isa_nmi
	.p2align	4, 0x90
_isa_nmi:                               ## @isa_nmi
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	$97, %edi
	callq	_inb
	movl	%eax, %ebx
	movl	$1121, %edi                     ## imm = 0x461
	callq	_inb
	movl	%eax, %r14d
	movq	_LOG_CRIT@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%r15d, %r15d
	movl	%ebx, %edx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_log
	movq	_NMI_PARITY@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_2
## %bb.1:
	movl	(%r12), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_log
	movl	$1, %r15d
LBB0_2:
	movq	_NMI_IOCHAN@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_4
## %bb.3:
	movl	(%r12), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_log
	movl	$1, %r15d
LBB0_4:
	cmpl	$255, %r14d
	je	LBB0_11
## %bb.5:
	movq	_ENMI_WATCHDOG@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_7
## %bb.6:
	movl	(%r12), %edi
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_log
	movl	$1, %r15d
LBB0_7:
	movq	_ENMI_BUSTIMER@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_9
## %bb.8:
	movl	(%r12), %edi
	leaq	L_.str.4(%rip), %rsi
	xorl	%eax, %eax
	callq	_log
	movl	$1, %r15d
LBB0_9:
	movq	_ENMI_IOSTATUS@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_11
## %bb.10:
	movl	(%r12), %edi
	leaq	L_.str.5(%rip), %rsi
	xorl	%eax, %eax
	callq	_log
	movl	$1, %r15d
LBB0_11:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LOG_CRIT,4,2                   ## @LOG_CRIT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"NMI ISA %x, EISA %x\n"

	.comm	_NMI_PARITY,4,2                 ## @NMI_PARITY
L_.str.1:                               ## @.str.1
	.asciz	"RAM parity error, likely hardware failure."

	.comm	_NMI_IOCHAN,4,2                 ## @NMI_IOCHAN
L_.str.2:                               ## @.str.2
	.asciz	"I/O channel check, likely hardware failure."

	.comm	_ENMI_WATCHDOG,4,2              ## @ENMI_WATCHDOG
L_.str.3:                               ## @.str.3
	.asciz	"EISA watchdog timer expired, likely hardware failure."

	.comm	_ENMI_BUSTIMER,4,2              ## @ENMI_BUSTIMER
L_.str.4:                               ## @.str.4
	.asciz	"EISA bus timeout, likely hardware failure."

	.comm	_ENMI_IOSTATUS,4,2              ## @ENMI_IOSTATUS
L_.str.5:                               ## @.str.5
	.asciz	"EISA I/O port status error."

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_isa_nmi                        ; -- Begin function isa_nmi
	.p2align	2
_isa_nmi:                               ; @isa_nmi
	.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	w0, #97
	bl	_inb
	mov	x20, x0
	mov	w0, #1121
	bl	_inb
	mov	x19, x0
Lloh0:
	adrp	x21, _LOG_CRIT@GOTPAGE
Lloh1:
	ldr	x21, [x21, _LOG_CRIT@GOTPAGEOFF]
	ldr	w0, [x21]
	stp	x20, x19, [sp]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_log
Lloh4:
	adrp	x8, _NMI_PARITY@GOTPAGE
Lloh5:
	ldr	x8, [x8, _NMI_PARITY@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_2
; %bb.1:
	ldr	w0, [x21]
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_log
	mov	w0, #1
	b	LBB0_3
LBB0_2:
	mov	w0, #0
LBB0_3:
Lloh9:
	adrp	x8, _NMI_IOCHAN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _NMI_IOCHAN@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_5
; %bb.4:
	ldr	w0, [x21]
Lloh12:
	adrp	x1, l_.str.2@PAGE
Lloh13:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_log
	mov	w0, #1
LBB0_5:
	cmp	w19, #255
	b.eq	LBB0_12
; %bb.6:
Lloh14:
	adrp	x8, _ENMI_WATCHDOG@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENMI_WATCHDOG@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	tst	w8, w19
	b.eq	LBB0_8
; %bb.7:
	ldr	w0, [x21]
Lloh17:
	adrp	x1, l_.str.3@PAGE
Lloh18:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_log
	mov	w0, #1
LBB0_8:
Lloh19:
	adrp	x8, _ENMI_BUSTIMER@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ENMI_BUSTIMER@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	tst	w8, w19
	b.eq	LBB0_10
; %bb.9:
	ldr	w0, [x21]
Lloh22:
	adrp	x1, l_.str.4@PAGE
Lloh23:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_log
	mov	w0, #1
LBB0_10:
Lloh24:
	adrp	x8, _ENMI_IOSTATUS@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ENMI_IOSTATUS@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	tst	w8, w19
	b.eq	LBB0_12
; %bb.11:
	ldr	w0, [x21]
Lloh27:
	adrp	x1, l_.str.5@PAGE
Lloh28:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_log
	mov	w0, #1
LBB0_12:
	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 AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_LOG_CRIT,4,2                   ; @LOG_CRIT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"NMI ISA %x, EISA %x\n"

	.comm	_NMI_PARITY,4,2                 ; @NMI_PARITY
l_.str.1:                               ; @.str.1
	.asciz	"RAM parity error, likely hardware failure."

	.comm	_NMI_IOCHAN,4,2                 ; @NMI_IOCHAN
l_.str.2:                               ; @.str.2
	.asciz	"I/O channel check, likely hardware failure."

	.comm	_ENMI_WATCHDOG,4,2              ; @ENMI_WATCHDOG
l_.str.3:                               ; @.str.3
	.asciz	"EISA watchdog timer expired, likely hardware failure."

	.comm	_ENMI_BUSTIMER,4,2              ; @ENMI_BUSTIMER
l_.str.4:                               ; @.str.4
	.asciz	"EISA bus timeout, likely hardware failure."

	.comm	_ENMI_IOSTATUS,4,2              ; @ENMI_IOSTATUS
l_.str.5:                               ; @.str.5
	.asciz	"EISA I/O port status error."

.subsections_via_symbols
