	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fpu_kern_thread                ## -- Begin function fpu_kern_thread
	.p2align	4, 0x90
_fpu_kern_thread:                       ## @fpu_kern_thread
	.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
	movq	_curthread@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_TDP_KTHREAD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	xorl	%edi, %edi
	andl	(%rax), %ecx
	setne	%dil
	leaq	L_.str(%rip), %rsi
	callq	_KASSERT
	movq	_curpcb@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	movq	(%rdi), %rbx
	callq	_get_pcb_user_save_pcb
	xorl	%edi, %edi
	cmpq	%rax, %rbx
	sete	%dil
	leaq	L_.str.1(%rip), %rsi
	callq	_KASSERT
	movq	(%r14), %rdi
	callq	_PCB_USER_FPU
	leaq	L_.str.2(%rip), %rsi
	movl	%eax, %edi
	callq	_KASSERT
	movq	(%r14), %rdi
	movq	_PCB_KERNFPU@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_set_pcb_flags
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_curthread,8,3                  ## @curthread
	.comm	_TDP_KTHREAD,4,2                ## @TDP_KTHREAD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Only kthread may use fpu_kern_thread"

	.comm	_curpcb,8,3                     ## @curpcb
L_.str.1:                               ## @.str.1
	.asciz	"mangled pcb_save"

L_.str.2:                               ## @.str.2
	.asciz	"recursive call"

	.comm	_PCB_KERNFPU,4,2                ## @PCB_KERNFPU
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fpu_kern_thread                ; -- Begin function fpu_kern_thread
	.p2align	2
_fpu_kern_thread:                       ; @fpu_kern_thread
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, _curthread@GOTPAGE
Lloh1:
	ldr	x8, [x8, _curthread@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _TDP_KTHREAD@GOTPAGE
Lloh4:
	ldr	x9, [x9, _TDP_KTHREAD@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w0, ne
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_KASSERT
Lloh8:
	adrp	x19, _curpcb@GOTPAGE
Lloh9:
	ldr	x19, [x19, _curpcb@GOTPAGEOFF]
	ldr	x0, [x19]
	ldr	x20, [x0]
	bl	_get_pcb_user_save_pcb
	cmp	x20, x0
	cset	w0, eq
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_KASSERT
	ldr	x0, [x19]
	bl	_PCB_USER_FPU
Lloh12:
	adrp	x1, l_.str.2@PAGE
Lloh13:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_KASSERT
	ldr	x0, [x19]
Lloh14:
	adrp	x8, _PCB_KERNFPU@GOTPAGE
Lloh15:
	ldr	x8, [x8, _PCB_KERNFPU@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	bl	_set_pcb_flags
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_curthread,8,3                  ; @curthread
	.comm	_TDP_KTHREAD,4,2                ; @TDP_KTHREAD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Only kthread may use fpu_kern_thread"

	.comm	_curpcb,8,3                     ; @curpcb
l_.str.1:                               ; @.str.1
	.asciz	"mangled pcb_save"

l_.str.2:                               ; @.str.2
	.asciz	"recursive call"

	.comm	_PCB_KERNFPU,4,2                ; @PCB_KERNFPU
.subsections_via_symbols
