	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_store_inferior_registers       ## -- Begin function store_inferior_registers
	.p2align	4, 0x90
_store_inferior_registers:              ## @store_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	%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
	movl	%edi, %ebx
	movq	_current_regcache@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movq	_inferior_ptid@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	callq	_TIDGET
	movl	%eax, %r14d
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	cmpl	$-1, %ebx
	jne	LBB0_3
	jmp	LBB0_4
LBB0_1:
	movl	(%r12), %edi
	callq	_PIDGET
	movl	%eax, %r14d
	cmpl	$-1, %ebx
	je	LBB0_4
LBB0_3:
	movl	%ebx, %edi
	callq	_sparc_gregset_supplies_p
	testq	%rax, %rax
	je	LBB0_14
LBB0_4:
	movq	_PTRACE_GETREGS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-44(%rbp), %r12
	movl	%r14d, %esi
	movl	%r12d, %edx
	xorl	%ecx, %ecx
	callq	_ptrace
	cmpl	$-1, %eax
	jne	LBB0_6
## %bb.5:
	leaq	L_.str(%rip), %rdi
	callq	_perror_with_name
LBB0_6:
	movq	_sparc_gregset@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-44(%rbp), %rcx
	movq	%r15, %rsi
	movl	%ebx, %edx
	callq	_sparc_collect_gregset
	movq	_PTRACE_SETREGS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r14d, %esi
	movl	%r12d, %edx
	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	_SPARC_SP_REGNUM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	cmpl	$-1, %ebx
	je	LBB0_12
## %bb.9:
	cmpl	%ebx, %esi
	je	LBB0_12
## %bb.10:
	movq	_SPARC_L0_REGNUM@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jg	LBB0_13
## %bb.11:
	movq	_SPARC_I7_REGNUM@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jl	LBB0_13
LBB0_12:
	leaq	-48(%rbp), %rdx
	movq	%r15, %rdi
	callq	_regcache_cooked_read_unsigned
	movl	-48(%rbp), %esi
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_sparc_collect_rwindow
LBB0_13:
	cmpl	$-1, %ebx
	jne	LBB0_20
	jmp	LBB0_15
LBB0_14:
	movl	%ebx, %edi
	callq	_sparc_fpregset_supplies_p
	testq	%rax, %rax
	je	LBB0_20
LBB0_15:
	movq	_PTRACE_GETFPREGS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-44(%rbp), %rdx
	movl	%r14d, %esi
                                        ## kill: def $edx killed $edx killed $rdx
	xorl	%ecx, %ecx
	callq	_ptrace
	cmpl	$-1, %eax
	jne	LBB0_17
## %bb.16:
	leaq	L_.str.2(%rip), %rdi
	callq	_perror_with_name
LBB0_17:
	leaq	-48(%rbp), %r13
	leaq	-44(%rbp), %r12
	movq	%r13, %rdi
	movq	%r12, %rsi
	movl	$4, %edx
	callq	_memcpy
	movq	%r15, %rdi
	movl	%ebx, %esi
	movq	%r12, %rdx
	callq	_sparc_collect_fpregset
	movq	%r13, %rdi
	movq	%r12, %rsi
	movl	$4, %edx
	callq	_memcmp
	testq	%rax, %rax
	je	LBB0_20
## %bb.18:
	movq	_PTRACE_SETFPREGS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r14d, %esi
	leaq	-44(%rbp), %rdx
                                        ## kill: def $edx killed $edx killed $rdx
	xorl	%ecx, %ecx
	callq	_ptrace
	cmpl	$-1, %eax
	jne	LBB0_20
## %bb.19:
	leaq	L_.str.3(%rip), %rdi
	callq	_perror_with_name
LBB0_20:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	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	_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_SETREGS,4,2             ## @PTRACE_SETREGS
L_.str.1:                               ## @.str.1
	.asciz	"Couldn't write registers"

	.comm	_SPARC_SP_REGNUM,4,2            ## @SPARC_SP_REGNUM
	.comm	_SPARC_L0_REGNUM,4,2            ## @SPARC_L0_REGNUM
	.comm	_SPARC_I7_REGNUM,4,2            ## @SPARC_I7_REGNUM
	.comm	_PTRACE_GETFPREGS,4,2           ## @PTRACE_GETFPREGS
L_.str.2:                               ## @.str.2
	.asciz	"Couldn't get floating-point registers"

	.comm	_PTRACE_SETFPREGS,4,2           ## @PTRACE_SETFPREGS
L_.str.3:                               ## @.str.3
	.asciz	"Couldn't write floating-point registers"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_store_inferior_registers       ; -- Begin function store_inferior_registers
	.p2align	2
_store_inferior_registers:              ; @store_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	x20, x0
Lloh0:
	adrp	x8, _current_regcache@GOTPAGE
Lloh1:
	ldr	x8, [x8, _current_regcache@GOTPAGEOFF]
Lloh2:
	ldr	x21, [x8]
Lloh3:
	adrp	x22, _inferior_ptid@GOTPAGE
Lloh4:
	ldr	x22, [x22, _inferior_ptid@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	_TIDGET
	mov	x19, x0
	cbz	w0, LBB0_2
; %bb.1:
	cmn	w20, #1
	b.ne	LBB0_3
	b	LBB0_4
LBB0_2:
	ldr	w0, [x22]
	bl	_PIDGET
	mov	x19, x0
	cmn	w20, #1
	b.eq	LBB0_4
LBB0_3:
	mov	x0, x20
	bl	_sparc_gregset_supplies_p
	cbz	x0, LBB0_13
LBB0_4:
Lloh5:
	adrp	x8, _PTRACE_GETREGS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PTRACE_GETREGS@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	add	x2, sp, #12
	mov	x1, x19
	mov	w3, #0
	bl	_ptrace
	cmn	w0, #1
	b.ne	LBB0_6
; %bb.5:
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	bl	_perror_with_name
LBB0_6:
Lloh10:
	adrp	x8, _sparc_gregset@GOTPAGE
Lloh11:
	ldr	x8, [x8, _sparc_gregset@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	add	x3, sp, #12
	mov	x1, x21
	mov	x2, x20
	bl	_sparc_collect_gregset
Lloh13:
	adrp	x8, _PTRACE_SETREGS@GOTPAGE
Lloh14:
	ldr	x8, [x8, _PTRACE_SETREGS@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	add	x2, sp, #12
	mov	x1, x19
	mov	w3, #0
	bl	_ptrace
	cmn	w0, #1
	b.ne	LBB0_8
; %bb.7:
Lloh16:
	adrp	x0, l_.str.1@PAGE
Lloh17:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_perror_with_name
LBB0_8:
Lloh18:
	adrp	x8, _SPARC_SP_REGNUM@GOTPAGE
Lloh19:
	ldr	x8, [x8, _SPARC_SP_REGNUM@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	cmn	w20, #1
	b.eq	LBB0_11
; %bb.9:
	cmp	w1, w20
	b.eq	LBB0_11
; %bb.10:
Lloh21:
	adrp	x8, _SPARC_L0_REGNUM@GOTPAGE
Lloh22:
	ldr	x8, [x8, _SPARC_L0_REGNUM@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
Lloh24:
	adrp	x9, _SPARC_I7_REGNUM@GOTPAGE
Lloh25:
	ldr	x9, [x9, _SPARC_I7_REGNUM@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	cmp	w8, w20
	ccmp	w9, w20, #8, le
	b.lt	LBB0_12
LBB0_11:
	add	x2, sp, #8
	mov	x0, x21
	bl	_regcache_cooked_read_unsigned
	ldr	w1, [sp, #8]
	mov	x0, x21
	mov	x2, x20
	bl	_sparc_collect_rwindow
LBB0_12:
	cmn	w20, #1
	b.ne	LBB0_19
	b	LBB0_14
LBB0_13:
	mov	x0, x20
	bl	_sparc_fpregset_supplies_p
	cbz	x0, LBB0_19
LBB0_14:
Lloh27:
	adrp	x8, _PTRACE_GETFPREGS@GOTPAGE
Lloh28:
	ldr	x8, [x8, _PTRACE_GETFPREGS@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
	add	x2, sp, #12
	mov	x1, x19
	mov	w3, #0
	bl	_ptrace
	cmn	w0, #1
	b.ne	LBB0_16
; %bb.15:
Lloh30:
	adrp	x0, l_.str.2@PAGE
Lloh31:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_perror_with_name
LBB0_16:
	add	x0, sp, #8
	add	x1, sp, #12
	mov	w2, #4
	bl	_memcpy
	add	x2, sp, #12
	mov	x0, x21
	mov	x1, x20
	bl	_sparc_collect_fpregset
	add	x0, sp, #8
	add	x1, sp, #12
	mov	w2, #4
	bl	_memcmp
	cbz	x0, LBB0_19
; %bb.17:
Lloh32:
	adrp	x8, _PTRACE_SETFPREGS@GOTPAGE
Lloh33:
	ldr	x8, [x8, _PTRACE_SETFPREGS@GOTPAGEOFF]
Lloh34:
	ldr	w0, [x8]
	add	x2, sp, #12
	mov	x1, x19
	mov	w3, #0
	bl	_ptrace
	cmn	w0, #1
	b.ne	LBB0_19
; %bb.18:
Lloh35:
	adrp	x0, l_.str.3@PAGE
Lloh36:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_perror_with_name
LBB0_19:
	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 AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpAdd	Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.comm	_current_regcache,8,3           ; @current_regcache
	.comm	_inferior_ptid,4,2              ; @inferior_ptid
	.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_SETREGS,4,2             ; @PTRACE_SETREGS
l_.str.1:                               ; @.str.1
	.asciz	"Couldn't write registers"

	.comm	_SPARC_SP_REGNUM,4,2            ; @SPARC_SP_REGNUM
	.comm	_SPARC_L0_REGNUM,4,2            ; @SPARC_L0_REGNUM
	.comm	_SPARC_I7_REGNUM,4,2            ; @SPARC_I7_REGNUM
	.comm	_PTRACE_GETFPREGS,4,2           ; @PTRACE_GETFPREGS
l_.str.2:                               ; @.str.2
	.asciz	"Couldn't get floating-point registers"

	.comm	_PTRACE_SETFPREGS,4,2           ; @PTRACE_SETFPREGS
l_.str.3:                               ; @.str.3
	.asciz	"Couldn't write floating-point registers"

.subsections_via_symbols
