	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fpusetxstate                   ## -- Begin function fpusetxstate
	.p2align	4, 0x90
_fpusetxstate:                          ## @fpusetxstate
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%r15d, %r15d
	testq	%rsi, %rsi
	je	LBB0_8
## %bb.1:
	movq	_use_xsave@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_6
## %bb.2:
	movq	%rdx, %r14
	cmpq	$3, %rdx
	jbe	LBB0_5
## %bb.3:
	movq	_cpu_max_ext_state_size@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	addq	$-4, %rax
	cmpq	%r14, %rax
	jb	LBB0_5
## %bb.4:
	movq	%rsi, %rbx
	movl	(%rsi), %r12d
	movq	_xsave_mask@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	testl	%eax, %r12d
	je	LBB0_9
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_6:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %r15d
LBB0_8:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	callq	_get_pcb_user_save_td
	movl	%r12d, 1(%rax)
	addq	$4, %rbx
	leaq	5(%rax), %rdi
	addq	$-4, %r14
	movq	%rbx, %rsi
	movq	%r14, %rdx
	callq	_memmove
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_use_xsave,4,2                  ## @use_xsave
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_cpu_max_ext_state_size,4,2     ## @cpu_max_ext_state_size
	.comm	_xsave_mask,4,2                 ## @xsave_mask
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fpusetxstate                   ; -- Begin function fpusetxstate
	.p2align	2
_fpusetxstate:                          ; @fpusetxstate
	.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
	cbz	x1, LBB0_8
; %bb.1:
Lloh0:
	adrp	x8, _use_xsave@GOTPAGE
Lloh1:
	ldr	x8, [x8, _use_xsave@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cbz	w8, LBB0_6
; %bb.2:
	mov	x19, x2
	cmp	x2, #3
	b.ls	LBB0_5
; %bb.3:
Lloh3:
	adrp	x8, _cpu_max_ext_state_size@GOTPAGE
Lloh4:
	ldr	x8, [x8, _cpu_max_ext_state_size@GOTPAGEOFF]
Lloh5:
	ldrsw	x8, [x8]
	sub	x8, x8, #4
	cmp	x8, x19
	b.lo	LBB0_5
; %bb.4:
	mov	x20, x1
	ldr	w21, [x1]
Lloh6:
	adrp	x8, _xsave_mask@GOTPAGE
Lloh7:
	ldr	x8, [x8, _xsave_mask@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	bics	wzr, w21, w8
	b.eq	LBB0_7
LBB0_5:
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	b	LBB0_9
LBB0_6:
Lloh12:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	b	LBB0_9
LBB0_7:
	bl	_get_pcb_user_save_td
	stur	w21, [x0, #1]
	add	x1, x20, #4
	add	x0, x0, #5
	sub	x2, x19, #4
	bl	_memmove
LBB0_8:
	mov	w0, #0
LBB0_9:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_use_xsave,4,2                  ; @use_xsave
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_cpu_max_ext_state_size,4,2     ; @cpu_max_ext_state_size
	.comm	_xsave_mask,4,2                 ; @xsave_mask
.subsections_via_symbols
