	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function run_nmi_sleep_test
_run_nmi_sleep_test:                    ## @run_nmi_sleep_test
	.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
	movl	%edi, %ebx
	xorl	%eax, %eax
	callq	_init_simple_test
	movq	_nmi_sleep_test@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_ts@GOTPCREL(%rip), %r14
	movl	%eax, 8(%r14)
	leaq	L_.str(%rip), %rax
	movq	%rax, (%r14)
	xorl	%eax, %eax
	callq	_kgdb_breakpoint
	callq	_local_irq_save
	imull	$1000, %ebx, %edi               ## imm = 0x3E8
	callq	_mdelay
	xorl	%eax, %eax
	callq	_touch_nmi_watchdog
	callq	_local_irq_restore
	movq	_test_complete@GOTPCREL(%rip), %rbx
	cmpl	$2, (%rbx)
	je	LBB0_2
## %bb.1:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_eprintk
LBB0_2:
	xorl	%eax, %eax
	callq	_kgdb_breakpoint
	cmpl	$1, (%rbx)
	jne	LBB0_4
## %bb.3:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_4:
	movq	(%r14), %rsi
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_eprintk                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_nmi_sleep_test,4,2             ## @nmi_sleep_test
	.comm	_ts,16,3                        ## @ts
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"nmi_sleep_test"

	.comm	_test_complete,4,2              ## @test_complete
L_.str.1:                               ## @.str.1
	.asciz	"kgdbts: ERROR nmi_test did not hit nmi\n"

L_.str.2:                               ## @.str.2
	.asciz	"kgdbts: ERROR %s test failed\n"

	.no_dead_strip	_run_nmi_sleep_test
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function run_nmi_sleep_test
_run_nmi_sleep_test:                    ; @run_nmi_sleep_test
	.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
	bl	_init_simple_test
Lloh0:
	adrp	x8, _nmi_sleep_test@GOTPAGE
Lloh1:
	ldr	x8, [x8, _nmi_sleep_test@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x20, _ts@GOTPAGE
Lloh4:
	ldr	x20, [x20, _ts@GOTPAGEOFF]
	str	w8, [x20, #8]
Lloh5:
	adrp	x8, l_.str@PAGE
Lloh6:
	add	x8, x8, l_.str@PAGEOFF
	str	x8, [x20]
	bl	_kgdb_breakpoint
	bl	_local_irq_save
	mov	w8, #1000
	mul	w0, w19, w8
	bl	_mdelay
	bl	_touch_nmi_watchdog
	bl	_local_irq_restore
Lloh7:
	adrp	x19, _test_complete@GOTPAGE
Lloh8:
	ldr	x19, [x19, _test_complete@GOTPAGEOFF]
	ldr	w8, [x19]
	cmp	w8, #2
	b.eq	LBB0_2
; %bb.1:
Lloh9:
	adrp	x0, l_.str.1@PAGE
Lloh10:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_eprintk
LBB0_2:
	bl	_kgdb_breakpoint
	ldr	w8, [x19]
	cmp	w8, #1
	b.eq	LBB0_4
; %bb.3:
	ldr	x8, [x20]
	str	x8, [sp]
Lloh11:
	adrp	x0, l_.str.2@PAGE
Lloh12:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_eprintk
LBB0_4:
	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	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_nmi_sleep_test,4,2             ; @nmi_sleep_test
	.comm	_ts,16,3                        ; @ts
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"nmi_sleep_test"

	.comm	_test_complete,4,2              ; @test_complete
l_.str.1:                               ; @.str.1
	.asciz	"kgdbts: ERROR nmi_test did not hit nmi\n"

l_.str.2:                               ; @.str.2
	.asciz	"kgdbts: ERROR %s test failed\n"

	.no_dead_strip	_run_nmi_sleep_test
.subsections_via_symbols
