	.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	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %ebx
	movq	_current_regcache@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movq	_inferior_ptid@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	callq	_TIDGET
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movl	(%r12), %edi
	callq	_PIDGET
	movl	%eax, %r15d
LBB0_2:
	movq	_SPARC_G0_REGNUM@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jne	LBB0_3
## %bb.13:
	movq	%r14, %rdi
	movl	%ebx, %esi
	xorl	%edx, %edx
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_regcache_raw_supply            ## TAILCALL
LBB0_3:
	cmpl	$-1, %ebx
	je	LBB0_5
## %bb.4:
	movl	%ebx, %edi
	callq	_sparc_gregset_supplies_p
	testq	%rax, %rax
	je	LBB0_8
LBB0_5:
	movq	_PTRACE_GETREGS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-40(%rbp), %rdx
	movl	%r15d, %esi
                                        ## kill: def $edx killed $edx killed $rdx
	xorl	%ecx, %ecx
	callq	_ptrace
	cmpl	$-1, %eax
	jne	LBB0_7
## %bb.6:
	leaq	L_.str(%rip), %rdi
	callq	_perror_with_name
LBB0_7:
	movq	_sparc_gregset@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-40(%rbp), %rcx
	movq	%r14, %rsi
	movl	$-1, %edx
	callq	_sparc_supply_gregset
	cmpl	$-1, %ebx
	jne	LBB0_12
	jmp	LBB0_9
LBB0_8:
	movl	%ebx, %edi
	callq	_sparc_fpregset_supplies_p
	testq	%rax, %rax
	je	LBB0_12
LBB0_9:
	movq	_PTRACE_GETFPREGS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-36(%rbp), %rdx
	movl	%r15d, %esi
                                        ## kill: def $edx killed $edx killed $rdx
	xorl	%ecx, %ecx
	callq	_ptrace
	cmpl	$-1, %eax
	jne	LBB0_11
## %bb.10:
	leaq	L_.str.1(%rip), %rdi
	callq	_perror_with_name
LBB0_11:
	leaq	-36(%rbp), %rdx
	movq	%r14, %rdi
	movl	$-1, %esi
	callq	_sparc_supply_fpregset
LBB0_12:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_current_regcache,8,3           ## @current_regcache
	.comm	_inferior_ptid,4,2              ## @inferior_ptid
	.comm	_SPARC_G0_REGNUM,4,2            ## @SPARC_G0_REGNUM
	.comm	_PTRACE_GETREGS,4,2             ## @PTRACE_GETREGS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Couldn't get registers"

	.comm	_sparc_gregset,4,2              ## @sparc_gregset
	.comm	_PTRACE_GETFPREGS,4,2           ## @PTRACE_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	x21, x0
Lloh0:
	adrp	x8, _current_regcache@GOTPAGE
Lloh1:
	ldr	x8, [x8, _current_regcache@GOTPAGEOFF]
Lloh2:
	ldr	x19, [x8]
Lloh3:
	adrp	x22, _inferior_ptid@GOTPAGE
Lloh4:
	ldr	x22, [x22, _inferior_ptid@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	_TIDGET
	mov	x20, x0
	cbnz	w0, LBB0_2
; %bb.1:
	ldr	w0, [x22]
	bl	_PIDGET
	mov	x20, x0
LBB0_2:
Lloh5:
	adrp	x8, _SPARC_G0_REGNUM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SPARC_G0_REGNUM@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmp	w8, w21
	b.ne	LBB0_4
; %bb.3:
	mov	x0, x19
	mov	x1, x21
	mov	x2, #0
	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
	b	_regcache_raw_supply
LBB0_4:
	cmn	w21, #1
	b.eq	LBB0_6
; %bb.5:
	mov	x0, x21
	bl	_sparc_gregset_supplies_p
	cbz	x0, LBB0_9
LBB0_6:
Lloh8:
	adrp	x8, _PTRACE_GETREGS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PTRACE_GETREGS@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	add	x2, sp, #12
	mov	x1, x20
	mov	w3, #0
	bl	_ptrace
	cmn	w0, #1
	b.ne	LBB0_8
; %bb.7:
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
	bl	_perror_with_name
LBB0_8:
Lloh13:
	adrp	x8, _sparc_gregset@GOTPAGE
Lloh14:
	ldr	x8, [x8, _sparc_gregset@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	add	x3, sp, #12
	mov	x1, x19
	mov	w2, #-1
	bl	_sparc_supply_gregset
	cmn	w21, #1
	b.ne	LBB0_13
	b	LBB0_10
LBB0_9:
	mov	x0, x21
	bl	_sparc_fpregset_supplies_p
	cbz	x0, LBB0_13
LBB0_10:
Lloh16:
	adrp	x8, _PTRACE_GETFPREGS@GOTPAGE
Lloh17:
	ldr	x8, [x8, _PTRACE_GETFPREGS@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	add	x2, sp, #8
	mov	x1, x20
	mov	w3, #0
	bl	_ptrace
	cmn	w0, #1
	b.ne	LBB0_12
; %bb.11:
Lloh19:
	adrp	x0, l_.str.1@PAGE
Lloh20:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_perror_with_name
LBB0_12:
	add	x2, sp, #8
	mov	x0, x19
	mov	w1, #-1
	bl	_sparc_supply_fpregset
LBB0_13:
	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	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_current_regcache,8,3           ; @current_regcache
	.comm	_inferior_ptid,4,2              ; @inferior_ptid
	.comm	_SPARC_G0_REGNUM,4,2            ; @SPARC_G0_REGNUM
	.comm	_PTRACE_GETREGS,4,2             ; @PTRACE_GETREGS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Couldn't get registers"

	.comm	_sparc_gregset,4,2              ; @sparc_gregset
	.comm	_PTRACE_GETFPREGS,4,2           ; @PTRACE_GETFPREGS
l_.str.1:                               ; @.str.1
	.asciz	"Couldn't get floating point status"

.subsections_via_symbols
