	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mips_restore_reg
_mips_restore_reg:                      ## @mips_restore_reg
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movl	%edi, %ebx
	movq	_TARGET_MIPS16@GOTPCREL(%rip), %r15
	cmpq	$0, (%r15)
	je	LBB0_6
## %bb.1:
	movl	%ebx, %edi
	callq	_REGNO
	movq	_GP_REG_FIRST@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	addq	$31, %rcx
	cmpq	%rcx, %rax
	jne	LBB0_3
## %bb.2:
	movl	%ebx, %edi
	callq	_GET_MODE
	movl	%eax, %edi
	movl	$7, %esi
	callq	_gen_rtx_REG
	movl	%eax, %ebx
LBB0_3:
	cmpq	$0, (%r15)
	je	LBB0_6
## %bb.4:
	movl	%ebx, %edi
	callq	_REGNO
	movq	%rax, %rdi
	callq	_M16_REG_P
	testl	%eax, %eax
	je	LBB0_5
LBB0_6:
	movl	%ebx, %edi
	movl	%r14d, %esi
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_emit_move_insn                 ## TAILCALL
LBB0_5:
	movl	%ebx, %edi
	callq	_GET_MODE
	movl	%eax, %edi
	callq	_MIPS_EPILOGUE_TEMP
	movl	%eax, %edi
	movl	%r14d, %esi
	callq	_emit_move_insn
	movl	%ebx, %edi
	callq	_GET_MODE
	movl	%eax, %edi
	callq	_MIPS_EPILOGUE_TEMP
	movl	%ebx, %edi
	movl	%eax, %esi
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_TARGET_MIPS16,8,3              ## @TARGET_MIPS16
	.comm	_GP_REG_FIRST,8,3               ## @GP_REG_FIRST
	.no_dead_strip	_mips_restore_reg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mips_restore_reg
_mips_restore_reg:                      ; @mips_restore_reg
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x21, _TARGET_MIPS16@GOTPAGE
Lloh1:
	ldr	x21, [x21, _TARGET_MIPS16@GOTPAGEOFF]
	ldr	x8, [x21]
	cbz	x8, LBB0_5
; %bb.1:
	mov	x0, x19
	bl	_REGNO
Lloh2:
	adrp	x8, _GP_REG_FIRST@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GP_REG_FIRST@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	add	x8, x8, #31
	cmp	x0, x8
	b.ne	LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_GET_MODE
	mov	w1, #7
	bl	_gen_rtx_REG
	mov	x19, x0
LBB0_3:
	ldr	x8, [x21]
	cbz	x8, LBB0_5
; %bb.4:
	mov	x0, x19
	bl	_REGNO
	bl	_M16_REG_P
	cbz	w0, LBB0_7
LBB0_5:
	mov	x0, x19
	mov	x1, x20
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_emit_move_insn
LBB0_7:
	mov	x0, x19
	bl	_GET_MODE
	bl	_MIPS_EPILOGUE_TEMP
	mov	x1, x20
	bl	_emit_move_insn
	mov	x0, x19
	bl	_GET_MODE
	bl	_MIPS_EPILOGUE_TEMP
	mov	x1, x0
	mov	x0, x19
	b	LBB0_6
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_TARGET_MIPS16,8,3              ; @TARGET_MIPS16
	.comm	_GP_REG_FIRST,8,3               ; @GP_REG_FIRST
	.no_dead_strip	_mips_restore_reg
.subsections_via_symbols
