	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function monitor_insert_breakpoint
_monitor_insert_breakpoint:             ## @monitor_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	%r15
	pushq	%r14
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	%rdi, -32(%rbp)
	callq	_paddr
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_monitor_debug
	movq	_current_monitor@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	cmpq	$0, 8(%rax)
	jne	LBB0_2
## %bb.1:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_error
	movq	(%r15), %rax
LBB0_2:
	movq	_MO_ADDR_BITS_REMOVE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	callq	_ADDR_BITS_REMOVE
	movq	%rax, -32(%rbp)
LBB0_4:
	movq	_current_gdbarch@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-32(%rbp), %rsi
	leaq	-36(%rbp), %rdx
	callq	_gdbarch_breakpoint_from_pc
	movq	(%r15), %rax
	movl	4(%rax), %esi
	testl	%esi, %esi
	jle	LBB0_9
## %bb.5:
	movq	_breakaddr@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, (%rax,%rcx,8)
	je	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	incq	%rcx
	cmpq	%rcx, %rsi
	jne	LBB0_6
LBB0_9:
	leaq	L_.str.2(%rip), %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	xorl	%eax, %eax
	callq	_error
	jmp	LBB0_10
LBB0_7:
	movq	-32(%rbp), %rdx
	movq	%rdx, (%rax,%rcx,8)
	movq	-32(%rbp), %rdi
	movl	-36(%rbp), %edx
	movq	%r14, %rsi
	callq	_monitor_read_memory
	movq	(%r15), %rax
	movq	8(%rax), %rdi
	movq	-32(%rbp), %rsi
	callq	_monitor_printf
	xorl	%edi, %edi
	xorl	%esi, %esi
	callq	_monitor_expect_prompt
LBB0_10:
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"MON inst bkpt %s\n"

	.comm	_current_monitor,8,3            ## @current_monitor
L_.str.1:                               ## @.str.1
	.asciz	"No set_break defined for this monitor"

	.comm	_MO_ADDR_BITS_REMOVE,4,2        ## @MO_ADDR_BITS_REMOVE
	.comm	_current_gdbarch,4,2            ## @current_gdbarch
	.comm	_breakaddr,8,3                  ## @breakaddr
L_.str.2:                               ## @.str.2
	.asciz	"Too many breakpoints (> %d) for monitor."

	.no_dead_strip	_monitor_insert_breakpoint
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function monitor_insert_breakpoint
_monitor_insert_breakpoint:             ; @monitor_insert_breakpoint
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x1
	mov	x20, x0
	str	x0, [sp, #24]
	bl	_paddr
	mov	x1, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_monitor_debug
Lloh2:
	adrp	x21, _current_monitor@GOTPAGE
Lloh3:
	ldr	x21, [x21, _current_monitor@GOTPAGEOFF]
	ldr	x8, [x21]
	ldr	x9, [x8, #8]
	cbnz	x9, LBB0_2
; %bb.1:
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_error
	ldr	x8, [x21]
LBB0_2:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _MO_ADDR_BITS_REMOVE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MO_ADDR_BITS_REMOVE@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.3:
	mov	x0, x20
	bl	_ADDR_BITS_REMOVE
	str	x0, [sp, #24]
LBB0_4:
Lloh9:
	adrp	x8, _current_gdbarch@GOTPAGE
Lloh10:
	ldr	x8, [x8, _current_gdbarch@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	add	x1, sp, #24
	add	x2, sp, #20
	bl	_gdbarch_breakpoint_from_pc
	ldr	x8, [x21]
	ldr	w8, [x8, #4]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.5:
Lloh12:
	adrp	x9, _breakaddr@GOTPAGE
Lloh13:
	ldr	x9, [x9, _breakaddr@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	mov	x10, x8
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x9]
	cbz	x11, LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x9, x9, #8
	subs	x10, x10, #1
	b.ne	LBB0_6
LBB0_8:
	str	x8, [sp]
Lloh15:
	adrp	x0, l_.str.2@PAGE
Lloh16:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_error
	b	LBB0_10
LBB0_9:
	ldr	x8, [sp, #24]
	str	x8, [x9]
	ldr	x0, [sp, #24]
	ldr	w2, [sp, #20]
	mov	x1, x19
	bl	_monitor_read_memory
	ldr	x8, [x21]
	ldr	x0, [x8, #8]
	ldr	x1, [sp, #24]
	bl	_monitor_printf
	mov	x0, #0
	mov	w1, #0
	bl	_monitor_expect_prompt
LBB0_10:
	mov	w0, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"MON inst bkpt %s\n"

	.comm	_current_monitor,8,3            ; @current_monitor
l_.str.1:                               ; @.str.1
	.asciz	"No set_break defined for this monitor"

	.comm	_MO_ADDR_BITS_REMOVE,4,2        ; @MO_ADDR_BITS_REMOVE
	.comm	_current_gdbarch,4,2            ; @current_gdbarch
	.comm	_breakaddr,8,3                  ; @breakaddr
l_.str.2:                               ; @.str.2
	.asciz	"Too many breakpoints (> %d) for monitor."

	.no_dead_strip	_monitor_insert_breakpoint
.subsections_via_symbols
