	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fpusetregs                     ## -- Begin function fpusetregs
	.p2align	4, 0x90
_fpusetregs:                            ## @fpusetregs
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r12
	movq	%rdx, %r13
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	_cpu_mxcsr_mask@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%eax, (%rsi)
	movq	(%rdi), %rbx
	xorl	%eax, %eax
	callq	_critical_enter
	movq	_fpcurthread@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_PCPU_GET
	cmpq	%r15, %rax
	je	LBB0_1
LBB0_4:
	movq	%r15, %rdi
	movq	%r13, %rsi
	movq	%r12, %rdx
	callq	_fpusetxstate
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_7
## %bb.5:
	movq	%r15, %rdi
	callq	_get_pcb_user_save_td
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	$4, %edx
	callq	_bcopy
	movq	%r15, %rdi
	callq	_fpuuserinited
	jmp	LBB0_6
LBB0_1:
	movq	%rbx, %rdi
	callq	_PCB_USER_FPU
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	movq	%r13, %rsi
	movq	%r12, %rdx
	callq	_fpusetxstate
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_7
## %bb.3:
	movq	%r15, %rdi
	callq	_get_pcb_user_save_td
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	$4, %edx
	callq	_bcopy
	movq	%r15, %rdi
	callq	_get_pcb_user_save_td
	movl	%eax, %edi
	callq	_fpurestore
	movq	_PCB_FPUINITDONE@GOTPCREL(%rip), %rax
	movq	_PCB_USERFPUINITDONE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_set_pcb_flags
LBB0_6:
	xorl	%ebx, %ebx
LBB0_7:
	xorl	%eax, %eax
	callq	_critical_exit
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_cpu_mxcsr_mask,4,2             ## @cpu_mxcsr_mask
	.comm	_fpcurthread,4,2                ## @fpcurthread
	.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	_fpusetregs                     ; -- Begin function fpusetregs
	.p2align	2
_fpusetregs:                            ; @fpusetregs
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x22, x3
	mov	x23, x2
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _cpu_mxcsr_mask@GOTPAGE
Lloh1:
	ldr	x8, [x8, _cpu_mxcsr_mask@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w9, [x1]
	and	w8, w9, w8
	str	w8, [x1]
	ldr	x21, [x0]
	bl	_critical_enter
Lloh3:
	adrp	x8, _fpcurthread@GOTPAGE
Lloh4:
	ldr	x8, [x8, _fpcurthread@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_PCPU_GET
	cmp	x0, x19
	b.eq	LBB0_3
LBB0_1:
	mov	x0, x19
	mov	x1, x23
	mov	x2, x22
	bl	_fpusetxstate
	mov	x22, x0
	cbnz	w0, LBB0_6
; %bb.2:
	mov	x0, x19
	bl	_get_pcb_user_save_td
	mov	x1, x0
	mov	x0, x20
	mov	w2, #4
	bl	_bcopy
	mov	x0, x19
	bl	_fpuuserinited
	b	LBB0_6
LBB0_3:
	mov	x0, x21
	bl	_PCB_USER_FPU
	cbz	x0, LBB0_1
; %bb.4:
	mov	x0, x19
	mov	x1, x23
	mov	x2, x22
	bl	_fpusetxstate
	mov	x22, x0
	cbnz	w0, LBB0_6
; %bb.5:
	mov	x0, x19
	bl	_get_pcb_user_save_td
	mov	x1, x0
	mov	x0, x20
	mov	w2, #4
	bl	_bcopy
	mov	x0, x19
	bl	_get_pcb_user_save_td
	bl	_fpurestore
Lloh6:
	adrp	x8, _PCB_FPUINITDONE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PCB_FPUINITDONE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _PCB_USERFPUINITDONE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _PCB_USERFPUINITDONE@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w1, w9, w8
	mov	x0, x21
	bl	_set_pcb_flags
LBB0_6:
	bl	_critical_exit
	mov	x0, x22
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_cpu_mxcsr_mask,4,2             ; @cpu_mxcsr_mask
	.comm	_fpcurthread,4,2                ; @fpcurthread
	.comm	_PCB_FPUINITDONE,4,2            ; @PCB_FPUINITDONE
	.comm	_PCB_USERFPUINITDONE,4,2        ; @PCB_USERFPUINITDONE
.subsections_via_symbols
