	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fpudna                         ## -- Begin function fpudna
	.p2align	4, 0x90
_fpudna:                                ## @fpudna
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_curthread@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	xorl	%eax, %eax
	callq	_critical_enter
	movq	_curpcb@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_PCB_FPUNOSAVE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	xorl	%edi, %edi
	andl	(%rax), %ecx
	sete	%dil
	leaq	L_.str(%rip), %rsi
	callq	_KASSERT
	movq	_fpcurthread@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_PCPU_GET
	xorl	%edi, %edi
	cmpq	%rbx, %rax
	sete	%dil
	callq	___predict_false
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	callq	_stop_emulating
	jmp	LBB0_5
LBB0_2:
	movl	(%r15), %edi
	callq	_PCPU_GET
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	callq	___predict_false
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movl	(%r15), %edi
	callq	_PCPU_GET
	movq	%rax, %r14
	movl	(%r15), %edi
	callq	_PCPU_GET
	movl	(%rax), %edx
	movl	(%rbx), %r8d
	leaq	L_.str.1(%rip), %rdi
	movq	%r14, %rsi
	movq	%rbx, %rcx
	callq	_panic
LBB0_4:
	movq	%rbx, %rdi
	callq	_restore_fpu_curthread
LBB0_5:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_critical_exit                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_curthread,8,3                  ## @curthread
	.comm	_curpcb,8,3                     ## @curpcb
	.comm	_PCB_FPUNOSAVE,4,2              ## @PCB_FPUNOSAVE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"fpudna while in fpu_kern_enter(FPU_KERN_NOCTX)"

	.comm	_fpcurthread,4,2                ## @fpcurthread
L_.str.1:                               ## @.str.1
	.asciz	"fpudna: fpcurthread = %p (%d), curthread = %p (%d)\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fpudna                         ; -- Begin function fpudna
	.p2align	2
_fpudna:                                ; @fpudna
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
Lloh0:
	adrp	x8, _curthread@GOTPAGE
Lloh1:
	ldr	x8, [x8, _curthread@GOTPAGEOFF]
Lloh2:
	ldr	x19, [x8]
	bl	_critical_enter
Lloh3:
	adrp	x8, _curpcb@GOTPAGE
Lloh4:
	ldr	x8, [x8, _curpcb@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _PCB_FPUNOSAVE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _PCB_FPUNOSAVE@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w0, eq
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	bl	_KASSERT
Lloh11:
	adrp	x21, _fpcurthread@GOTPAGE
Lloh12:
	ldr	x21, [x21, _fpcurthread@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_PCPU_GET
	cmp	x0, x19
	cset	w0, eq
	bl	___predict_false
	cbz	x0, LBB0_2
; %bb.1:
	bl	_stop_emulating
	b	LBB0_5
LBB0_2:
	ldr	w0, [x21]
	bl	_PCPU_GET
	cmp	x0, #0
	cset	w0, ne
	bl	___predict_false
	cbz	x0, LBB0_4
; %bb.3:
	ldr	w0, [x21]
	bl	_PCPU_GET
	mov	x20, x0
	ldr	w0, [x21]
	bl	_PCPU_GET
	ldr	w2, [x0]
	ldr	w4, [x19]
Lloh13:
	adrp	x0, l_.str.1@PAGE
Lloh14:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x20
	mov	x3, x19
	bl	_panic
LBB0_4:
	mov	x0, x19
	bl	_restore_fpu_curthread
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_critical_exit
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_curthread,8,3                  ; @curthread
	.comm	_curpcb,8,3                     ; @curpcb
	.comm	_PCB_FPUNOSAVE,4,2              ; @PCB_FPUNOSAVE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"fpudna while in fpu_kern_enter(FPU_KERN_NOCTX)"

	.comm	_fpcurthread,4,2                ; @fpcurthread
l_.str.1:                               ; @.str.1
	.asciz	"fpudna: fpcurthread = %p (%d), curthread = %p (%d)\n"

.subsections_via_symbols
