	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i387_cache_to_fxsave           ## -- Begin function i387_cache_to_fxsave
	.p2align	4, 0x90
_i387_cache_to_fxsave:                  ## @i387_cache_to_fxsave
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	leaq	L_.str(%rip), %rdi
	callq	_find_regno
	movl	%eax, %r15d
	leaq	L_.str.1(%rip), %rdi
	callq	_find_regno
	movl	%eax, %r14d
	movq	64(%r12), %rsi
	movl	%r15d, %edi
	callq	_collect_register
	leal	1(%r15), %edi
	movq	64(%r12), %rsi
	addq	$16, %rsi
	callq	_collect_register
	leal	2(%r15), %edi
	movq	64(%r12), %rsi
	addq	$32, %rsi
	callq	_collect_register
	leal	3(%r15), %edi
	movq	64(%r12), %rsi
	addq	$48, %rsi
	callq	_collect_register
	leal	4(%r15), %edi
	movq	64(%r12), %rsi
	addq	$64, %rsi
	callq	_collect_register
	leal	5(%r15), %edi
	movq	64(%r12), %rsi
	addq	$80, %rsi
	callq	_collect_register
	leal	6(%r15), %edi
	movq	64(%r12), %rsi
	addq	$96, %rsi
	callq	_collect_register
	addl	$7, %r15d
	movq	64(%r12), %rsi
	addq	$112, %rsi
	movl	%r15d, %edi
	callq	_collect_register
	movq	_num_xmm_registers@GOTPCREL(%rip), %r15
	cmpl	$0, (%r15)
	jle	LBB0_3
## %bb.1:
	movl	%r14d, %r14d
	xorl	%r13d, %r13d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	56(%r12), %rsi
	addq	%r13, %rsi
	leal	(%r14,%rbx), %edi
	callq	_collect_register
	incq	%rbx
	movslq	(%r15), %rax
	addq	$16, %r13
	cmpq	%rax, %rbx
	jl	LBB0_2
LBB0_3:
	leaq	L_.str.2(%rip), %rdi
	movq	%r12, %rsi
	callq	_collect_register_by_name
	leaq	8(%r12), %rsi
	leaq	L_.str.3(%rip), %rdi
	callq	_collect_register_by_name
	leaq	16(%r12), %rsi
	leaq	L_.str.4(%rip), %rdi
	callq	_collect_register_by_name
	leaq	L_.str.5(%rip), %rdi
	leaq	-56(%rbp), %rsi
	callq	_collect_register_by_name
	movq	-56(%rbp), %rax
	andl	$2047, %eax                     ## imm = 0x7FF
	movq	24(%r12), %rcx
	andl	$63488, %ecx                    ## imm = 0xF800
	orq	%rax, %rcx
	movq	%rcx, 24(%r12)
	leaq	L_.str.6(%rip), %rdi
	leaq	-48(%rbp), %r14
	movq	%r14, %rsi
	callq	_collect_register_by_name
	movzwl	-48(%rbp), %eax
	movw	%ax, 48(%r12)
	leaq	L_.str.7(%rip), %rdi
	movq	%r14, %rsi
	callq	_collect_register_by_name
	movq	-48(%rbp), %rax
	movzwl	%ax, %eax
	movq	%rax, -48(%rbp)
	movw	%ax, 44(%r12)
	leaq	L_.str.8(%rip), %rdi
	movq	%r14, %rsi
	callq	_collect_register_by_name
	movq	-48(%rbp), %rcx
	movzwl	%cx, %eax
	movq	%rax, -48(%rbp)
	movq	-56(%rbp), %rdx
	notl	%ecx
	movq	%rdx, %rsi
	orq	$128, %rsi
	testl	$49152, %ecx                    ## imm = 0xC000
	cmoveq	%rdx, %rsi
	movq	%rsi, %rdx
	orq	$64, %rdx
	testl	$12288, %ecx                    ## imm = 0x3000
	cmoveq	%rsi, %rdx
	movq	%rdx, %rsi
	orq	$32, %rsi
	testl	$3072, %ecx                     ## imm = 0xC00
	cmoveq	%rdx, %rsi
	movq	%rsi, %rdx
	orq	$16, %rdx
	testl	$768, %ecx                      ## imm = 0x300
	cmoveq	%rsi, %rdx
	movq	%rdx, %rsi
	orq	$8, %rsi
	testb	$-64, %cl
	cmoveq	%rdx, %rsi
	movq	%rsi, %rdx
	orq	$4, %rdx
	testb	$48, %cl
	cmoveq	%rsi, %rdx
	movq	%rdx, %rsi
	orq	$2, %rsi
	testb	$12, %cl
	cmoveq	%rdx, %rsi
	xorl	%edx, %edx
	testb	$3, %cl
	setne	%dl
	orq	%rsi, %rdx
	cmpq	$65535, %rax                    ## imm = 0xFFFF
	je	LBB0_5
## %bb.4:
	movq	%rdx, -56(%rbp)
LBB0_5:
	movw	%dx, 40(%r12)
	leaq	L_.str.9(%rip), %rdi
	leaq	-48(%rbp), %r14
	movq	%r14, %rsi
	callq	_collect_register_by_name
	movq	-48(%rbp), %rax
	movzwl	%ax, %eax
	movq	%rax, -48(%rbp)
	movw	%ax, 36(%r12)
	leaq	L_.str.10(%rip), %rdi
	movq	%r14, %rsi
	callq	_collect_register_by_name
	movzwl	-48(%rbp), %eax
	movw	%ax, 32(%r12)
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"st0"

L_.str.1:                               ## @.str.1
	.asciz	"xmm0"

	.comm	_num_xmm_registers,4,2          ## @num_xmm_registers
L_.str.2:                               ## @.str.2
	.asciz	"fioff"

L_.str.3:                               ## @.str.3
	.asciz	"fooff"

L_.str.4:                               ## @.str.4
	.asciz	"mxcsr"

L_.str.5:                               ## @.str.5
	.asciz	"fop"

L_.str.6:                               ## @.str.6
	.asciz	"fctrl"

L_.str.7:                               ## @.str.7
	.asciz	"fstat"

L_.str.8:                               ## @.str.8
	.asciz	"ftag"

L_.str.9:                               ## @.str.9
	.asciz	"fiseg"

L_.str.10:                              ## @.str.10
	.asciz	"foseg"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i387_cache_to_fxsave           ; -- Begin function i387_cache_to_fxsave
	.p2align	2
_i387_cache_to_fxsave:                  ; @i387_cache_to_fxsave
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_find_regno
	mov	x21, x0
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_find_regno
	mov	x20, x0
	ldr	x1, [x19, #64]
	mov	x0, x21
	bl	_collect_register
	add	w0, w21, #1
	ldr	x8, [x19, #64]
	add	x1, x8, #16
	bl	_collect_register
	add	w0, w21, #2
	ldr	x8, [x19, #64]
	add	x1, x8, #32
	bl	_collect_register
	add	w0, w21, #3
	ldr	x8, [x19, #64]
	add	x1, x8, #48
	bl	_collect_register
	add	w0, w21, #4
	ldr	x8, [x19, #64]
	add	x1, x8, #64
	bl	_collect_register
	add	w0, w21, #5
	ldr	x8, [x19, #64]
	add	x1, x8, #80
	bl	_collect_register
	add	w0, w21, #6
	ldr	x8, [x19, #64]
	add	x1, x8, #96
	bl	_collect_register
	add	w0, w21, #7
	ldr	x8, [x19, #64]
	add	x1, x8, #112
	bl	_collect_register
Lloh4:
	adrp	x21, _num_xmm_registers@GOTPAGE
Lloh5:
	ldr	x21, [x21, _num_xmm_registers@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x22, #0
	mov	x23, #0
	mov	w20, w20
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #56]
	add	x1, x8, x22
	add	w0, w20, w23
	bl	_collect_register
	add	x23, x23, #1
	ldrsw	x8, [x21]
	add	x22, x22, #16
	cmp	x23, x8
	b.lt	LBB0_2
LBB0_3:
Lloh6:
	adrp	x0, l_.str.2@PAGE
Lloh7:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x19
	bl	_collect_register_by_name
	add	x1, x19, #8
Lloh8:
	adrp	x0, l_.str.3@PAGE
Lloh9:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_collect_register_by_name
	add	x1, x19, #16
Lloh10:
	adrp	x0, l_.str.4@PAGE
Lloh11:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_collect_register_by_name
Lloh12:
	adrp	x0, l_.str.5@PAGE
Lloh13:
	add	x0, x0, l_.str.5@PAGEOFF
	mov	x1, sp
	bl	_collect_register_by_name
	ldr	x8, [sp]
	ldr	x9, [x19, #24]
	and	x9, x9, #0xf800
	bfxil	x9, x8, #0, #11
	str	x9, [x19, #24]
Lloh14:
	adrp	x0, l_.str.6@PAGE
Lloh15:
	add	x0, x0, l_.str.6@PAGEOFF
	add	x1, sp, #8
	bl	_collect_register_by_name
	ldr	x8, [sp, #8]
	strh	w8, [x19, #48]
Lloh16:
	adrp	x0, l_.str.7@PAGE
Lloh17:
	add	x0, x0, l_.str.7@PAGEOFF
	add	x1, sp, #8
	bl	_collect_register_by_name
	ldr	x8, [sp, #8]
	and	x9, x8, #0xffff
	str	x9, [sp, #8]
	strh	w8, [x19, #44]
Lloh18:
	adrp	x0, l_.str.8@PAGE
Lloh19:
	add	x0, x0, l_.str.8@PAGEOFF
	add	x1, sp, #8
	bl	_collect_register_by_name
	ldr	x8, [sp, #8]
	mvn	w9, w8
	and	x10, x8, #0xffff
	str	x10, [sp, #8]
	ldr	x8, [sp]
	orr	x11, x8, #0x80
	tst	x9, #0xc000
	csel	x8, x8, x11, eq
	orr	x11, x8, #0x40
	tst	x9, #0x3000
	csel	x8, x8, x11, eq
	orr	x11, x8, #0x20
	tst	x9, #0xc00
	csel	x8, x8, x11, eq
	orr	x11, x8, #0x10
	tst	x9, #0x300
	csel	x8, x8, x11, eq
	orr	x11, x8, #0x8
	tst	x9, #0xc0
	csel	x8, x8, x11, eq
	orr	x11, x8, #0x4
	tst	x9, #0x30
	csel	x8, x8, x11, eq
	orr	x11, x8, #0x2
	tst	x9, #0xc
	csel	x8, x8, x11, eq
	tst	x9, #0x3
	cset	w9, ne
	orr	x8, x8, x9
	mov	w9, #65535
	cmp	x10, x9
	b.eq	LBB0_5
; %bb.4:
	str	x8, [sp]
LBB0_5:
	strh	w8, [x19, #40]
Lloh20:
	adrp	x0, l_.str.9@PAGE
Lloh21:
	add	x0, x0, l_.str.9@PAGEOFF
	add	x1, sp, #8
	bl	_collect_register_by_name
	ldr	x8, [sp, #8]
	and	x9, x8, #0xffff
	str	x9, [sp, #8]
	strh	w8, [x19, #36]
Lloh22:
	adrp	x0, l_.str.10@PAGE
Lloh23:
	add	x0, x0, l_.str.10@PAGEOFF
	add	x1, sp, #8
	bl	_collect_register_by_name
	ldr	x8, [sp, #8]
	strh	w8, [x19, #32]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"st0"

l_.str.1:                               ; @.str.1
	.asciz	"xmm0"

	.comm	_num_xmm_registers,4,2          ; @num_xmm_registers
l_.str.2:                               ; @.str.2
	.asciz	"fioff"

l_.str.3:                               ; @.str.3
	.asciz	"fooff"

l_.str.4:                               ; @.str.4
	.asciz	"mxcsr"

l_.str.5:                               ; @.str.5
	.asciz	"fop"

l_.str.6:                               ; @.str.6
	.asciz	"fctrl"

l_.str.7:                               ; @.str.7
	.asciz	"fstat"

l_.str.8:                               ; @.str.8
	.asciz	"ftag"

l_.str.9:                               ; @.str.9
	.asciz	"fiseg"

l_.str.10:                              ; @.str.10
	.asciz	"foseg"

.subsections_via_symbols
