	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function st2000_insert_breakpoint
_st2000_insert_breakpoint:              ## @st2000_insert_breakpoint
	.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
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	%rdi, -32(%rbp)
	movl	$0, -20(%rbp)
	leaq	-32(%rbp), %rdi
	leaq	-20(%rbp), %rsi
	callq	_BREAKPOINT_FROM_PC
	movq	_MAX_STDEBUG_BREAKPOINTS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	js	LBB0_5
## %bb.1:
	movq	_breakaddr@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	incq	%rax
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, (%rcx,%rdx,8)
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%rdx
	cmpq	%rdx, %rax
	jne	LBB0_2
LBB0_5:
	movq	_gdb_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_fprintf_unfiltered
	movl	$1, %eax
	jmp	LBB0_6
LBB0_3:
	movq	%rbx, (%rcx,%rdx,8)
	movq	-32(%rbp), %rdi
	movl	-20(%rbp), %edx
	movq	%r14, %rsi
	callq	_st2000_read_inferior_memory
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	callq	_printf_stdebug
	movl	$1, %edi
	callq	_expect_prompt
	xorl	%eax, %eax
LBB0_6:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_STDEBUG_BREAKPOINTS,4,2    ## @MAX_STDEBUG_BREAKPOINTS
	.comm	_breakaddr,8,3                  ## @breakaddr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"BR %x H\r"

	.comm	_gdb_stderr,4,2                 ## @gdb_stderr
L_.str.1:                               ## @.str.1
	.asciz	"Too many breakpoints (> 16) for STDBUG\n"

	.no_dead_strip	_st2000_insert_breakpoint
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function st2000_insert_breakpoint
_st2000_insert_breakpoint:              ; @st2000_insert_breakpoint
	.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
	mov	x20, x1
	mov	x19, x0
	str	x0, [sp, #8]
	str	wzr, [sp, #4]
	add	x0, sp, #8
	add	x1, sp, #4
	bl	_BREAKPOINT_FROM_PC
Lloh0:
	adrp	x8, _MAX_STDEBUG_BREAKPOINTS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX_STDEBUG_BREAKPOINTS@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x8]
	tbnz	w9, #31, LBB0_4
; %bb.1:
Lloh3:
	adrp	x8, _breakaddr@GOTPAGE
Lloh4:
	ldr	x8, [x8, _breakaddr@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	add	x9, x9, #1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x8]
	cbz	x10, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x8, x8, #8
	subs	x9, x9, #1
	b.ne	LBB0_2
LBB0_4:
Lloh6:
	adrp	x8, _gdb_stderr@GOTPAGE
Lloh7:
	ldr	x8, [x8, _gdb_stderr@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_fprintf_unfiltered
	mov	w0, #1
	b	LBB0_6
LBB0_5:
	str	x19, [x8]
	ldr	x0, [sp, #8]
	ldr	w2, [sp, #4]
	mov	x1, x20
	bl	_st2000_read_inferior_memory
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_printf_stdebug
	mov	w0, #1
	bl	_expect_prompt
	mov	w0, #0
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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_STDEBUG_BREAKPOINTS,4,2    ; @MAX_STDEBUG_BREAKPOINTS
	.comm	_breakaddr,8,3                  ; @breakaddr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"BR %x H\r"

	.comm	_gdb_stderr,4,2                 ; @gdb_stderr
l_.str.1:                               ; @.str.1
	.asciz	"Too many breakpoints (> 16) for STDBUG\n"

	.no_dead_strip	_st2000_insert_breakpoint
.subsections_via_symbols
