	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mips_restore_gp                ## -- Begin function mips_restore_gp
	.p2align	4, 0x90
_mips_restore_gp:                       ## @mips_restore_gp
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_TARGET_ABICALLS@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	setne	%al
	movq	_TARGET_OLDABI@GOTPCREL(%rip), %rcx
	cmpq	$0, (%rcx)
	setne	%cl
	andb	%al, %cl
	movzbl	%cl, %edi
	callq	_gcc_assert
	movq	_pic_offset_table_rtx@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movq	_frame_pointer_needed@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_1
## %bb.2:
	movq	_stack_pointer_rtx@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_hard_frame_pointer_rtx@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %esi
	movq	_current_function_outgoing_args_size@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_mips_add_offset
	movq	_Pmode@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movl	%eax, %esi
	callq	_gen_rtx_MEM
	movl	(%rbx), %edi
	movl	%eax, %esi
	callq	_emit_move_insn
	movq	_TARGET_EXPLICIT_RELOCS@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_5
## %bb.4:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_5:
	xorl	%eax, %eax
	callq	_gen_blockage
	movl	%eax, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_emit_insn                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_TARGET_ABICALLS,8,3            ## @TARGET_ABICALLS
	.comm	_TARGET_OLDABI,8,3              ## @TARGET_OLDABI
	.comm	_pic_offset_table_rtx,4,2       ## @pic_offset_table_rtx
	.comm	_frame_pointer_needed,8,3       ## @frame_pointer_needed
	.comm	_hard_frame_pointer_rtx,4,2     ## @hard_frame_pointer_rtx
	.comm	_stack_pointer_rtx,4,2          ## @stack_pointer_rtx
	.comm	_current_function_outgoing_args_size,4,2 ## @current_function_outgoing_args_size
	.comm	_Pmode,4,2                      ## @Pmode
	.comm	_TARGET_EXPLICIT_RELOCS,4,2     ## @TARGET_EXPLICIT_RELOCS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mips_restore_gp                ; -- Begin function mips_restore_gp
	.p2align	2
_mips_restore_gp:                       ; @mips_restore_gp
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, _TARGET_ABICALLS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TARGET_ABICALLS@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, #0
Lloh3:
	adrp	x8, _TARGET_OLDABI@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TARGET_OLDABI@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ccmp	x8, #0, #4, ne
	cset	w0, ne
	bl	_gcc_assert
Lloh6:
	adrp	x19, _pic_offset_table_rtx@GOTPAGE
Lloh7:
	ldr	x19, [x19, _pic_offset_table_rtx@GOTPAGEOFF]
Lloh8:
	adrp	x8, _frame_pointer_needed@GOTPAGE
Lloh9:
	ldr	x8, [x8, _frame_pointer_needed@GOTPAGEOFF]
	ldr	w0, [x19]
Lloh10:
	ldr	x8, [x8]
Lloh11:
	adrp	x9, _hard_frame_pointer_rtx@GOTPAGE
Lloh12:
	ldr	x9, [x9, _hard_frame_pointer_rtx@GOTPAGEOFF]
Lloh13:
	adrp	x10, _stack_pointer_rtx@GOTPAGE
Lloh14:
	ldr	x10, [x10, _stack_pointer_rtx@GOTPAGEOFF]
	cmp	x8, #0
	csel	x8, x10, x9, eq
	ldr	w1, [x8]
Lloh15:
	adrp	x8, _current_function_outgoing_args_size@GOTPAGE
Lloh16:
	ldr	x8, [x8, _current_function_outgoing_args_size@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	bl	_mips_add_offset
	mov	x1, x0
Lloh18:
	adrp	x8, _Pmode@GOTPAGE
Lloh19:
	ldr	x8, [x8, _Pmode@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	bl	_gen_rtx_MEM
	mov	x1, x0
	ldr	w0, [x19]
	bl	_emit_move_insn
Lloh21:
	adrp	x8, _TARGET_EXPLICIT_RELOCS@GOTPAGE
Lloh22:
	ldr	x8, [x8, _TARGET_EXPLICIT_RELOCS@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	cbz	w8, LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_2:
	bl	_gen_blockage
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_emit_insn
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_TARGET_ABICALLS,8,3            ; @TARGET_ABICALLS
	.comm	_TARGET_OLDABI,8,3              ; @TARGET_OLDABI
	.comm	_pic_offset_table_rtx,4,2       ; @pic_offset_table_rtx
	.comm	_frame_pointer_needed,8,3       ; @frame_pointer_needed
	.comm	_hard_frame_pointer_rtx,4,2     ; @hard_frame_pointer_rtx
	.comm	_stack_pointer_rtx,4,2          ; @stack_pointer_rtx
	.comm	_current_function_outgoing_args_size,4,2 ; @current_function_outgoing_args_size
	.comm	_Pmode,4,2                      ; @Pmode
	.comm	_TARGET_EXPLICIT_RELOCS,4,2     ; @TARGET_EXPLICIT_RELOCS
.subsections_via_symbols
