	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mips_load
_mips_load:                             ## @mips_load
	.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
	movq	%rdi, %rbx
	xorl	%eax, %eax
	callq	_mips_exit_debug
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_error
LBB0_2:
	movq	_mips_monitor@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movq	_MON_IDT@GOTPCREL(%rip), %r15
	cmpq	(%r15), %rax
	jne	LBB0_3
## %bb.4:
	movq	%rbx, %rdi
	callq	_mips_load_srec
	jmp	LBB0_5
LBB0_3:
	movq	%rbx, %rdi
	callq	_pmon_load_fast
LBB0_5:
	xorl	%eax, %eax
	callq	_mips_initialize
	movq	(%r14), %rax
	cmpq	(%r15), %rax
	je	LBB0_7
## %bb.6:
	movq	_deprecated_register_valid@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_PC_REGNUM@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	$0, (%rax,%rcx,8)
LBB0_7:
	movq	_exec_bfd@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.8:
	callq	_bfd_get_start_address
	movl	%eax, %edi
	callq	_write_pc
LBB0_9:
	movq	_null_ptid@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_inferior_ptid@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_clear_symtab_users             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mips_load:  Couldn't get into monitor mode."

	.comm	_mips_monitor,8,3               ## @mips_monitor
	.comm	_MON_IDT,8,3                    ## @MON_IDT
	.comm	_deprecated_register_valid,8,3  ## @deprecated_register_valid
	.comm	_PC_REGNUM,8,3                  ## @PC_REGNUM
	.comm	_exec_bfd,8,3                   ## @exec_bfd
	.comm	_null_ptid,4,2                  ## @null_ptid
	.comm	_inferior_ptid,4,2              ## @inferior_ptid
	.no_dead_strip	_mips_load
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mips_load
_mips_load:                             ; @mips_load
	.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	x19, x0
	bl	_mips_exit_debug
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_error
LBB0_2:
Lloh2:
	adrp	x20, _mips_monitor@GOTPAGE
Lloh3:
	ldr	x20, [x20, _mips_monitor@GOTPAGEOFF]
	ldr	x8, [x20]
Lloh4:
	adrp	x21, _MON_IDT@GOTPAGE
Lloh5:
	ldr	x21, [x21, _MON_IDT@GOTPAGEOFF]
	ldr	x9, [x21]
	mov	x0, x19
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
	bl	_mips_load_srec
	b	LBB0_5
LBB0_4:
	bl	_pmon_load_fast
LBB0_5:
	bl	_mips_initialize
	ldr	x8, [x20]
	ldr	x9, [x21]
	cmp	x8, x9
	b.eq	LBB0_7
; %bb.6:
Lloh6:
	adrp	x8, _deprecated_register_valid@GOTPAGE
Lloh7:
	ldr	x8, [x8, _deprecated_register_valid@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
Lloh9:
	adrp	x9, _PC_REGNUM@GOTPAGE
Lloh10:
	ldr	x9, [x9, _PC_REGNUM@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	str	xzr, [x8, x9, lsl #3]
LBB0_7:
Lloh12:
	adrp	x8, _exec_bfd@GOTPAGE
Lloh13:
	ldr	x8, [x8, _exec_bfd@GOTPAGEOFF]
Lloh14:
	ldr	x0, [x8]
	cbz	x0, LBB0_9
; %bb.8:
	bl	_bfd_get_start_address
	bl	_write_pc
LBB0_9:
Lloh15:
	adrp	x8, _null_ptid@GOTPAGE
Lloh16:
	ldr	x8, [x8, _null_ptid@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
Lloh18:
	adrp	x9, _inferior_ptid@GOTPAGE
Lloh19:
	ldr	x9, [x9, _inferior_ptid@GOTPAGEOFF]
Lloh20:
	str	w8, [x9]
	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	_clear_symtab_users
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotStr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mips_load:  Couldn't get into monitor mode."

	.comm	_mips_monitor,8,3               ; @mips_monitor
	.comm	_MON_IDT,8,3                    ; @MON_IDT
	.comm	_deprecated_register_valid,8,3  ; @deprecated_register_valid
	.comm	_PC_REGNUM,8,3                  ; @PC_REGNUM
	.comm	_exec_bfd,8,3                   ; @exec_bfd
	.comm	_null_ptid,4,2                  ; @null_ptid
	.comm	_inferior_ptid,4,2              ; @inferior_ptid
	.no_dead_strip	_mips_load
.subsections_via_symbols
