	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mips_kill
_mips_kill:                             ## @mips_kill
	.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	_mips_wait_flag@GOTPCREL(%rip), %rbx
	cmpq	$0, (%rbx)
	je	LBB0_8
## %bb.1:
	movq	_interrupt_count@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leal	1(%rcx), %edx
	movl	%edx, (%rax)
	testl	%ecx, %ecx
	jle	LBB0_5
## %bb.2:
	movl	$0, (%rax)
	xorl	%eax, %eax
	callq	_target_terminal_ours
	leaq	L_.str(%rip), %rdi
	callq	_query
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	$0, (%rbx)
	xorl	%eax, %eax
	callq	_close_ports
	leaq	L_.str.1(%rip), %rdi
	callq	_printf_unfiltered
	xorl	%eax, %eax
	callq	_target_mourn_inferior
	movq	_RETURN_QUIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_throw_exception
LBB0_4:
	xorl	%eax, %eax
	callq	_target_terminal_inferior
LBB0_5:
	movq	_remote_debug@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jle	LBB0_7
## %bb.6:
	leaq	L_.str.2(%rip), %rdi
	callq	_printf_unfiltered
LBB0_7:
	movq	_mips_desc@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_serial_send_break              ## TAILCALL
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_mips_wait_flag,8,3             ## @mips_wait_flag
	.comm	_interrupt_count,4,2            ## @interrupt_count
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Interrupted while waiting for the program.\nGive up (and stop debugging it)? "

L_.str.1:                               ## @.str.1
	.asciz	"Ending remote MIPS debugging.\n"

	.comm	_RETURN_QUIT,4,2                ## @RETURN_QUIT
	.comm	_remote_debug,8,3               ## @remote_debug
L_.str.2:                               ## @.str.2
	.asciz	"Sending break\n"

	.comm	_mips_desc,4,2                  ## @mips_desc
	.comm	_mips_is_open,8,3               ## @mips_is_open
	.no_dead_strip	_mips_kill
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mips_kill
_mips_kill:                             ; @mips_kill
	.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	x19, _mips_wait_flag@GOTPAGE
Lloh1:
	ldr	x19, [x19, _mips_wait_flag@GOTPAGEOFF]
	ldr	x8, [x19]
	cbz	x8, LBB0_8
; %bb.1:
Lloh2:
	adrp	x8, _interrupt_count@GOTPAGE
Lloh3:
	ldr	x8, [x8, _interrupt_count@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w10, w9, #1
	str	w10, [x8]
	cmp	w9, #1
	b.lt	LBB0_5
; %bb.2:
	str	wzr, [x8]
	bl	_target_terminal_ours
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	bl	_query
	cbz	x0, LBB0_4
; %bb.3:
	str	xzr, [x19]
	bl	_close_ports
Lloh6:
	adrp	x0, l_.str.1@PAGE
Lloh7:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_printf_unfiltered
	bl	_target_mourn_inferior
Lloh8:
	adrp	x8, _RETURN_QUIT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _RETURN_QUIT@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	bl	_throw_exception
LBB0_4:
	bl	_target_terminal_inferior
LBB0_5:
Lloh11:
	adrp	x8, _remote_debug@GOTPAGE
Lloh12:
	ldr	x8, [x8, _remote_debug@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	cmp	x8, #1
	b.lt	LBB0_7
; %bb.6:
Lloh14:
	adrp	x0, l_.str.2@PAGE
Lloh15:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_printf_unfiltered
LBB0_7:
Lloh16:
	adrp	x8, _mips_desc@GOTPAGE
Lloh17:
	ldr	x8, [x8, _mips_desc@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_serial_send_break
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_mips_wait_flag,8,3             ; @mips_wait_flag
	.comm	_interrupt_count,4,2            ; @interrupt_count
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Interrupted while waiting for the program.\nGive up (and stop debugging it)? "

l_.str.1:                               ; @.str.1
	.asciz	"Ending remote MIPS debugging.\n"

	.comm	_RETURN_QUIT,4,2                ; @RETURN_QUIT
	.comm	_remote_debug,8,3               ; @remote_debug
l_.str.2:                               ; @.str.2
	.asciz	"Sending break\n"

	.comm	_mips_desc,4,2                  ; @mips_desc
	.comm	_mips_is_open,8,3               ; @mips_is_open
	.no_dead_strip	_mips_kill
.subsections_via_symbols
