	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mips_store_registers
_mips_store_registers:                  ## @mips_store_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
	cmpl	$-1, %edi
	je	LBB0_1
## %bb.4:
	movl	%edi, %ebx
	callq	_mips_map_regno
	movl	%eax, %r14d
	movl	%ebx, %edi
	callq	_read_register
	movq	_mips_receive_wait@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	leaq	-20(%rbp), %rcx
	movl	$82, %edi
	movl	%r14d, %esi
	movl	%eax, %edx
	xorl	%r9d, %r9d
	callq	_mips_request
	cmpl	$0, -20(%rbp)
	je	LBB0_6
## %bb.5:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_safe_strerror
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_mips_error
	jmp	LBB0_6
LBB0_1:
	movq	_NUM_REGS@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	jle	LBB0_6
## %bb.2:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	callq	_mips_store_registers
	incl	%ebx
	cmpl	(%r14), %ebx
	jl	LBB0_3
LBB0_6:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NUM_REGS,4,2                   ## @NUM_REGS
	.comm	_mips_receive_wait,4,2          ## @mips_receive_wait
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Can't write register %d: %s"

	.comm	_errno,4,2                      ## @errno
	.no_dead_strip	_mips_store_registers
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mips_store_registers
_mips_store_registers:                  ; @mips_store_registers
	.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
	cmn	w0, #1
	b.eq	LBB0_3
; %bb.1:
	mov	x19, x0
	bl	_mips_map_regno
	mov	x20, x0
	mov	x0, x19
	bl	_read_register
	mov	x2, x0
Lloh0:
	adrp	x8, _mips_receive_wait@GOTPAGE
Lloh1:
	ldr	x8, [x8, _mips_receive_wait@GOTPAGEOFF]
Lloh2:
	ldr	w4, [x8]
	add	x3, sp, #12
	mov	w0, #82
	mov	x1, x20
	mov	x5, #0
	bl	_mips_request
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_6
; %bb.2:
Lloh3:
	adrp	x8, _errno@GOTPAGE
Lloh4:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_safe_strerror
	mov	x2, x0
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_mips_error
	b	LBB0_6
LBB0_3:
Lloh8:
	adrp	x20, _NUM_REGS@GOTPAGE
Lloh9:
	ldr	x20, [x20, _NUM_REGS@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.4:
	mov	w19, #0
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_mips_store_registers
	add	w19, w19, #1
	ldr	w8, [x20]
	cmp	w19, w8
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_NUM_REGS,4,2                   ; @NUM_REGS
	.comm	_mips_receive_wait,4,2          ; @mips_receive_wait
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Can't write register %d: %s"

	.comm	_errno,4,2                      ; @errno
	.no_dead_strip	_mips_store_registers
.subsections_via_symbols
