	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fetch_fpregs
_fetch_fpregs:                          ## @fetch_fpregs
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	_i386_FLOAT_STATE_COUNT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -20(%rbp)
	movl	(%rdi), %edi
	movq	_i386_FLOAT_STATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-32(%rbp), %rdx
	leaq	-20(%rbp), %rcx
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_thread_get_state
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_proc_string
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_warning
	jmp	LBB0_6
LBB0_2:
	cmpl	$0, -28(%rbp)
	je	LBB0_3
## %bb.5:
	movq	_current_regcache@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	-32(%rbp), %edx
	movl	$-1, %esi
	callq	_i387_supply_fsave
	jmp	LBB0_6
LBB0_3:
	movq	_FP0_REGNUM@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_FOP_REGNUM@GOTPCREL(%rip), %r14
	cmpl	(%r14), %ebx
	jg	LBB0_6
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	xorl	%esi, %esi
	callq	_supply_register
	leal	1(%rbx), %eax
	cmpl	(%r14), %ebx
	movl	%eax, %ebx
	jl	LBB0_4
LBB0_6:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_i386_FLOAT_STATE_COUNT,4,2     ## @i386_FLOAT_STATE_COUNT
	.comm	_i386_FLOAT_STATE,4,2           ## @i386_FLOAT_STATE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Couldn't fetch floating-point state from %s"

	.comm	_FP0_REGNUM,4,2                 ## @FP0_REGNUM
	.comm	_FOP_REGNUM,4,2                 ## @FOP_REGNUM
	.comm	_current_regcache,4,2           ## @current_regcache
	.no_dead_strip	_fetch_fpregs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fetch_fpregs
_fetch_fpregs:                          ; @fetch_fpregs
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _i386_FLOAT_STATE_COUNT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _i386_FLOAT_STATE_COUNT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #12]
	ldr	w0, [x0]
Lloh3:
	adrp	x8, _i386_FLOAT_STATE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _i386_FLOAT_STATE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x2, sp
	add	x3, sp, #12
	bl	_thread_get_state
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_proc_string
	mov	x1, x0
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_warning
	b	LBB0_6
LBB0_2:
	ldr	w8, [sp, #4]
	cbz	w8, LBB0_4
; %bb.3:
Lloh8:
	adrp	x8, _current_regcache@GOTPAGE
Lloh9:
	ldr	x8, [x8, _current_regcache@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	ldr	w2, [sp]
	mov	w1, #-1
	bl	_i387_supply_fsave
	b	LBB0_6
LBB0_4:
Lloh11:
	adrp	x8, _FP0_REGNUM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _FP0_REGNUM@GOTPAGEOFF]
Lloh13:
	ldr	w19, [x8]
Lloh14:
	adrp	x20, _FOP_REGNUM@GOTPAGE
Lloh15:
	ldr	x20, [x20, _FOP_REGNUM@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w19, w8
	b.gt	LBB0_6
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, #0
	bl	_supply_register
	add	w8, w19, #1
	ldr	w9, [x20]
	cmp	w19, w9
	mov	x19, x8
	b.lt	LBB0_5
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_i386_FLOAT_STATE_COUNT,4,2     ; @i386_FLOAT_STATE_COUNT
	.comm	_i386_FLOAT_STATE,4,2           ; @i386_FLOAT_STATE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Couldn't fetch floating-point state from %s"

	.comm	_FP0_REGNUM,4,2                 ; @FP0_REGNUM
	.comm	_FOP_REGNUM,4,2                 ; @FOP_REGNUM
	.comm	_current_regcache,4,2           ; @current_regcache
	.no_dead_strip	_fetch_fpregs
.subsections_via_symbols
