	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fetch_inferior_registers       ## -- Begin function fetch_inferior_registers
	.p2align	4, 0x90
_fetch_inferior_registers:              ## @fetch_inferior_registers
	.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
	movl	%edi, %ebx
	cmpl	$-1, %edi
	je	LBB0_2
## %bb.1:
	movl	%ebx, %edi
	callq	_amd64_native_gregset_supplies_p
	testq	%rax, %rax
	je	LBB0_5
LBB0_2:
	movq	_PT_GETREGS@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_inferior_ptid@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_PIDGET
	leaq	-32(%rbp), %rdx
	movl	%r14d, %edi
	movl	%eax, %esi
                                        ## kill: def $edx killed $edx killed $rdx
	xorl	%ecx, %ecx
	callq	_ptrace
	cmpl	$-1, %eax
	jne	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rdi
	callq	_perror_with_name
LBB0_4:
	movq	_current_regcache@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-32(%rbp), %rsi
	movl	$-1, %edx
	callq	_amd64_supply_native_gregset
	cmpl	$-1, %ebx
	jne	LBB0_9
	jmp	LBB0_6
LBB0_5:
	movq	_AMD64_ST0_REGNUM@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jg	LBB0_9
LBB0_6:
	movq	_PT_GETFPREGS@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_inferior_ptid@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_PIDGET
	leaq	-24(%rbp), %rdx
	movl	%ebx, %edi
	movl	%eax, %esi
                                        ## kill: def $edx killed $edx killed $rdx
	xorl	%ecx, %ecx
	callq	_ptrace
	cmpl	$-1, %eax
	jne	LBB0_8
## %bb.7:
	leaq	L_.str.1(%rip), %rdi
	callq	_perror_with_name
LBB0_8:
	movq	_current_regcache@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-24(%rbp), %rdx
	movl	$-1, %esi
	callq	_amd64_supply_fxsave
LBB0_9:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PT_GETREGS,4,2                 ## @PT_GETREGS
	.comm	_inferior_ptid,4,2              ## @inferior_ptid
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Couldn't get registers"

	.comm	_current_regcache,4,2           ## @current_regcache
	.comm	_AMD64_ST0_REGNUM,4,2           ## @AMD64_ST0_REGNUM
	.comm	_PT_GETFPREGS,4,2               ## @PT_GETFPREGS
L_.str.1:                               ## @.str.1
	.asciz	"Couldn't get floating point status"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fetch_inferior_registers       ; -- Begin function fetch_inferior_registers
	.p2align	2
_fetch_inferior_registers:              ; @fetch_inferior_registers
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
Lloh0:
	adrp	x22, _inferior_ptid@GOTPAGE
Lloh1:
	ldr	x22, [x22, _inferior_ptid@GOTPAGEOFF]
Lloh2:
	adrp	x21, _current_regcache@GOTPAGE
Lloh3:
	ldr	x21, [x21, _current_regcache@GOTPAGEOFF]
	cmn	w0, #1
	b.eq	LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_amd64_native_gregset_supplies_p
	cbz	x0, LBB0_5
LBB0_2:
Lloh4:
	adrp	x8, _PT_GETREGS@GOTPAGE
Lloh5:
	ldr	x8, [x8, _PT_GETREGS@GOTPAGEOFF]
Lloh6:
	ldr	w20, [x8]
	ldr	w0, [x22]
	bl	_PIDGET
	mov	x1, x0
	add	x2, sp, #8
	mov	x0, x20
	mov	w3, #0
	bl	_ptrace
	cmn	w0, #1
	b.ne	LBB0_4
; %bb.3:
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
	bl	_perror_with_name
LBB0_4:
	ldr	w0, [x21]
	add	x1, sp, #8
	mov	w2, #-1
	bl	_amd64_supply_native_gregset
	cmn	w19, #1
	b.ne	LBB0_9
	b	LBB0_6
LBB0_5:
Lloh9:
	adrp	x8, _AMD64_ST0_REGNUM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AMD64_ST0_REGNUM@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmp	w8, w19
	b.gt	LBB0_9
LBB0_6:
Lloh12:
	adrp	x8, _PT_GETFPREGS@GOTPAGE
Lloh13:
	ldr	x8, [x8, _PT_GETFPREGS@GOTPAGEOFF]
Lloh14:
	ldr	w19, [x8]
	ldr	w0, [x22]
	bl	_PIDGET
	mov	x1, x0
	mov	x2, sp
	mov	x0, x19
	mov	w3, #0
	bl	_ptrace
	cmn	w0, #1
	b.ne	LBB0_8
; %bb.7:
Lloh15:
	adrp	x0, l_.str.1@PAGE
Lloh16:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_perror_with_name
LBB0_8:
	ldr	w0, [x21]
	mov	x2, sp
	mov	w1, #-1
	bl	_amd64_supply_fxsave
LBB0_9:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_PT_GETREGS,4,2                 ; @PT_GETREGS
	.comm	_inferior_ptid,4,2              ; @inferior_ptid
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Couldn't get registers"

	.comm	_current_regcache,4,2           ; @current_regcache
	.comm	_AMD64_ST0_REGNUM,4,2           ; @AMD64_ST0_REGNUM
	.comm	_PT_GETFPREGS,4,2               ; @PT_GETFPREGS
l_.str.1:                               ; @.str.1
	.asciz	"Couldn't get floating point status"

.subsections_via_symbols
