	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ia32_get_fpcontext
_ia32_get_fpcontext:                    ## @ia32_get_fpcontext
	.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, %r14
	movq	%rsi, %r13
	movq	%rdi, %r15
	callq	_fpugetregs
	movl	%eax, 24(%r13)
	movq	%r15, %rdi
	callq	_get_pcb_user_save_td
	movq	(%r13), %rsi
	movl	$8, %edx
	movq	%rax, %rdi
	callq	_bcopy
	xorl	%eax, %eax
	callq	_fpuformat
	movl	%eax, 20(%r13)
	testq	%r12, %r12
	je	LBB0_5
## %bb.1:
	movq	_use_xsave@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_5
## %bb.2:
	movq	_cpu_max_ext_state_size@GOTPCREL(%rip), %rax
	movslq	(%rax), %rbx
	addq	$-4, %rbx
	cmpq	%r12, %rbx
	jae	LBB0_4
## %bb.3:
	leaq	(%r14,%rbx), %rdi
	xorl	%esi, %esi
	callq	_bzero
	movq	%rbx, %r12
LBB0_4:
	movq	__MC_IA32_HASFPXSTATE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 16(%r13)
	movq	%r12, 8(%r13)
	movq	%r15, %rdi
	callq	_get_pcb_user_save_td
	leaq	1(%rax), %rdi
	movq	%r14, %rsi
	movq	%r12, %rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_bcopy                          ## TAILCALL
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_use_xsave,4,2                  ## @use_xsave
	.comm	_cpu_max_ext_state_size,4,2     ## @cpu_max_ext_state_size
	.comm	__MC_IA32_HASFPXSTATE,4,2       ## @_MC_IA32_HASFPXSTATE
	.no_dead_strip	_ia32_get_fpcontext
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ia32_get_fpcontext
_ia32_get_fpcontext:                    ; @ia32_get_fpcontext
	.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	x20, x3
	mov	x19, x2
	mov	x22, x1
	mov	x21, x0
	bl	_fpugetregs
	str	w0, [x22, #24]
	mov	x0, x21
	bl	_get_pcb_user_save_td
	ldr	x1, [x22]
	mov	w2, #8
	bl	_bcopy
	bl	_fpuformat
	str	w0, [x22, #20]
	cbz	x20, LBB0_5
; %bb.1:
Lloh0:
	adrp	x8, _use_xsave@GOTPAGE
Lloh1:
	ldr	x8, [x8, _use_xsave@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cbz	w8, LBB0_5
; %bb.2:
Lloh3:
	adrp	x8, _cpu_max_ext_state_size@GOTPAGE
Lloh4:
	ldr	x8, [x8, _cpu_max_ext_state_size@GOTPAGEOFF]
Lloh5:
	ldrsw	x8, [x8]
	sub	x23, x8, #4
	cmp	x23, x20
	b.hs	LBB0_4
; %bb.3:
	add	x0, x19, x23
	mov	x1, #0
	bl	_bzero
	mov	x20, x23
LBB0_4:
Lloh6:
	adrp	x8, __MC_IA32_HASFPXSTATE@GOTPAGE
Lloh7:
	ldr	x8, [x8, __MC_IA32_HASFPXSTATE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ldr	w9, [x22, #16]
	orr	w8, w9, w8
	str	w8, [x22, #16]
	str	x20, [x22, #8]
	mov	x0, x21
	bl	_get_pcb_user_save_td
	add	x0, x0, #1
	mov	x1, x19
	mov	x2, x20
	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
	b	_bcopy
LBB0_5:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_use_xsave,4,2                  ; @use_xsave
	.comm	_cpu_max_ext_state_size,4,2     ; @cpu_max_ext_state_size
	.comm	__MC_IA32_HASFPXSTATE,4,2       ; @_MC_IA32_HASFPXSTATE
	.no_dead_strip	_ia32_get_fpcontext
.subsections_via_symbols
