	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fpstate_drop                   ## -- Begin function fpstate_drop
	.p2align	4, 0x90
_fpstate_drop:                          ## @fpstate_drop
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movl	(%rdi), %edi
	callq	_PCB_USER_FPU
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edi
	callq	_KASSERT
	xorl	%eax, %eax
	callq	_critical_enter
	movq	_fpcurthread@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_PCPU_GET
	cmpq	%rbx, %rax
	jne	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	callq	_fpudrop
LBB0_2:
	movq	_curthread@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %edi
	movq	_PCB_FPUINITDONE@GOTPCREL(%rip), %rax
	movq	_PCB_USERFPUINITDONE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	callq	_clear_pcb_flags
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_critical_exit                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"fpstate_drop: kernel-owned fpu"

	.comm	_fpcurthread,4,2                ## @fpcurthread
	.comm	_curthread,8,3                  ## @curthread
	.comm	_PCB_FPUINITDONE,4,2            ## @PCB_FPUINITDONE
	.comm	_PCB_USERFPUINITDONE,4,2        ## @PCB_USERFPUINITDONE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fpstate_drop                   ; -- Begin function fpstate_drop
	.p2align	2
_fpstate_drop:                          ; @fpstate_drop
	.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
	mov	x19, x0
	ldr	w0, [x0]
	bl	_PCB_USER_FPU
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_KASSERT
	bl	_critical_enter
Lloh2:
	adrp	x8, _fpcurthread@GOTPAGE
Lloh3:
	ldr	x8, [x8, _fpcurthread@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_PCPU_GET
	cmp	x0, x19
	b.ne	LBB0_2
; %bb.1:
	bl	_fpudrop
LBB0_2:
Lloh5:
	adrp	x8, _curthread@GOTPAGE
Lloh6:
	ldr	x8, [x8, _curthread@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
Lloh8:
	adrp	x9, _PCB_FPUINITDONE@GOTPAGE
Lloh9:
	ldr	x9, [x9, _PCB_FPUINITDONE@GOTPAGEOFF]
	ldr	w0, [x8]
Lloh10:
	ldr	w8, [x9]
Lloh11:
	adrp	x9, _PCB_USERFPUINITDONE@GOTPAGE
Lloh12:
	ldr	x9, [x9, _PCB_USERFPUINITDONE@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w1, w9, w8
	bl	_clear_pcb_flags
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_critical_exit
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"fpstate_drop: kernel-owned fpu"

	.comm	_fpcurthread,4,2                ; @fpcurthread
	.comm	_curthread,8,3                  ; @curthread
	.comm	_PCB_FPUINITDONE,4,2            ; @PCB_FPUINITDONE
	.comm	_PCB_USERFPUINITDONE,4,2        ; @PCB_USERFPUINITDONE
.subsections_via_symbols
