	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function monitor_store_register
_monitor_store_register:                ## @monitor_store_register
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %ebx
	movq	_current_monitor@GOTPCREL(%rip), %r12
	movq	(%r12), %rcx
	movq	(%rcx), %rax
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	%ebx, %edi
	callq	*%rax
	movq	%rax, %r15
	testq	%r15, %r15
	jne	LBB0_4
	jmp	LBB0_18
LBB0_2:
	movq	8(%rcx), %rax
	movslq	%ebx, %rcx
	movq	(%rax,%rcx,8), %r15
	testq	%r15, %r15
	je	LBB0_18
LBB0_4:
	cmpb	$0, (%r15)
	je	LBB0_18
## %bb.5:
	movl	%ebx, %edi
	callq	_read_register
	movl	%eax, %r14d
	movl	%ebx, %edi
	callq	_DEPRECATED_REGISTER_RAW_SIZE
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_phex
	leaq	L_.str.1(%rip), %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_monitor_debug
	movq	(%r12), %rax
	movl	16(%rax), %ecx
	movq	_MO_REGISTER_VALUE_FIRST@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_7
## %bb.6:
	movq	24(%rax), %rdi
	movslq	%r14d, %rsi
	movq	%r15, %rdx
	xorl	%eax, %eax
	callq	_monitor_printf
	jmp	LBB0_10
LBB0_18:
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_monitor_debug                  ## TAILCALL
LBB0_7:
	movq	_MO_SETREG_INTERACTIVE@GOTPCREL(%rip), %rdx
	movq	24(%rax), %rdi
	testl	%ecx, (%rdx)
	je	LBB0_9
## %bb.8:
	movq	%r15, %rsi
	xorl	%eax, %eax
	callq	_monitor_printf
	jmp	LBB0_10
LBB0_9:
	movq	%r15, %rsi
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_monitor_printf
LBB0_10:
	movq	(%r12), %rax
	cmpq	$0, 48(%rax)
	je	LBB0_13
## %bb.11:
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_monitor_debug
	movq	_setreg_resp_delim_pattern@GOTPCREL(%rip), %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_monitor_expect_regexp
	movq	(%r12), %rax
	movq	_MO_SETREG_INTERACTIVE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, 16(%rax)
	je	LBB0_13
## %bb.12:
	movl	%r14d, %edi
	callq	_paddr_nz
	leaq	L_.str.3(%rip), %rdi
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	_monitor_printf
	movq	(%r12), %rax
LBB0_13:
	cmpq	$0, 40(%rax)
	je	LBB0_16
## %bb.14:
	leaq	L_.str.4(%rip), %rdi
	xorl	%eax, %eax
	callq	_monitor_debug
	movq	(%r12), %rax
	movq	40(%rax), %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_monitor_expect
	movq	(%r12), %rax
	movq	_MO_SETREG_INTERACTIVE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, 16(%rax)
	je	LBB0_16
## %bb.15:
	movl	%r14d, %edi
	callq	_paddr_nz
	leaq	L_.str.3(%rip), %rdi
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	_monitor_printf
LBB0_16:
	xorl	%edi, %edi
	xorl	%esi, %esi
	callq	_monitor_expect_prompt
	movq	(%r12), %rax
	cmpq	$0, 32(%rax)
	je	LBB0_17
## %bb.19:
	leaq	L_.str.5(%rip), %rdi
	xorl	%eax, %eax
	callq	_monitor_debug
	movq	(%r12), %rax
	movq	32(%rax), %rsi
	leaq	L_.str.6(%rip), %rdi
	xorl	%eax, %eax
	callq	_monitor_printf
	xorl	%edi, %edi
	xorl	%esi, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_monitor_expect_prompt          ## TAILCALL
LBB0_17:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_current_monitor,8,3            ## @current_monitor
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"MON Cannot store unknown register\n"

L_.str.1:                               ## @.str.1
	.asciz	"MON storeg %d %s\n"

	.comm	_MO_REGISTER_VALUE_FIRST,4,2    ## @MO_REGISTER_VALUE_FIRST
	.comm	_MO_SETREG_INTERACTIVE,4,2      ## @MO_SETREG_INTERACTIVE
L_.str.2:                               ## @.str.2
	.asciz	"EXP setreg.resp_delim\n"

	.comm	_setreg_resp_delim_pattern,4,2  ## @setreg_resp_delim_pattern
L_.str.3:                               ## @.str.3
	.asciz	"%s\r"

L_.str.4:                               ## @.str.4
	.asciz	"EXP setreg.term\n"

L_.str.5:                               ## @.str.5
	.asciz	"EXP setreg_termcmd\n"

L_.str.6:                               ## @.str.6
	.asciz	"%s"

	.no_dead_strip	_monitor_store_register
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function monitor_store_register
_monitor_store_register:                ; @monitor_store_register
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x21, x0
Lloh0:
	adrp	x22, _current_monitor@GOTPAGE
Lloh1:
	ldr	x22, [x22, _current_monitor@GOTPAGEOFF]
	ldr	x9, [x22]
	ldr	x8, [x9]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x0, x21
	blr	x8
	mov	x20, x0
	cbnz	x20, LBB0_3
	b	LBB0_6
LBB0_2:
	ldr	x8, [x9, #8]
	ldr	x20, [x8, w21, sxtw #3]
	cbz	x20, LBB0_6
LBB0_3:
	ldrb	w8, [x20]
	cbz	w8, LBB0_6
; %bb.4:
	mov	x0, x21
	bl	_read_register
	mov	x19, x0
	mov	x0, x21
	bl	_DEPRECATED_REGISTER_RAW_SIZE
	mov	x1, x0
	mov	x0, x19
	bl	_phex
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x21, x0, [sp]
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_monitor_debug
	ldr	x8, [x22]
	ldr	w9, [x8, #16]
Lloh4:
	adrp	x10, _MO_REGISTER_VALUE_FIRST@GOTPAGE
Lloh5:
	ldr	x10, [x10, _MO_REGISTER_VALUE_FIRST@GOTPAGEOFF]
Lloh6:
	ldr	w10, [x10]
Lloh7:
	adrp	x21, _MO_SETREG_INTERACTIVE@GOTPAGE
Lloh8:
	ldr	x21, [x21, _MO_SETREG_INTERACTIVE@GOTPAGEOFF]
	tst	w10, w9
	b.eq	LBB0_7
; %bb.5:
	ldr	x0, [x8, #24]
	sxtw	x1, w19
	str	x20, [sp]
	b	LBB0_10
LBB0_6:
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_monitor_debug
LBB0_7:
	ldr	w10, [x21]
	ldr	x0, [x8, #24]
	tst	w10, w9
	b.ne	LBB0_9
; %bb.8:
	mov	x8, x19
	str	x8, [sp]
LBB0_9:
	mov	x1, x20
LBB0_10:
	bl	_monitor_printf
	ldr	x8, [x22]
	ldr	x9, [x8, #48]
	cbz	x9, LBB0_13
; %bb.11:
Lloh11:
	adrp	x0, l_.str.2@PAGE
Lloh12:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_monitor_debug
Lloh13:
	adrp	x0, _setreg_resp_delim_pattern@GOTPAGE
Lloh14:
	ldr	x0, [x0, _setreg_resp_delim_pattern@GOTPAGEOFF]
	mov	x1, #0
	mov	w2, #0
	bl	_monitor_expect_regexp
	ldr	x8, [x22]
	ldr	w9, [x8, #16]
	ldr	w10, [x21]
	tst	w10, w9
	b.eq	LBB0_13
; %bb.12:
	mov	x0, x19
	bl	_paddr_nz
	mov	x1, x0
Lloh15:
	adrp	x0, l_.str.3@PAGE
Lloh16:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_monitor_printf
	ldr	x8, [x22]
LBB0_13:
	ldr	x8, [x8, #40]
	cbz	x8, LBB0_16
; %bb.14:
Lloh17:
	adrp	x0, l_.str.4@PAGE
Lloh18:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_monitor_debug
	ldr	x8, [x22]
	ldr	x0, [x8, #40]
	mov	x1, #0
	mov	w2, #0
	bl	_monitor_expect
	ldr	x8, [x22]
	ldr	w8, [x8, #16]
	ldr	w9, [x21]
	tst	w9, w8
	b.eq	LBB0_16
; %bb.15:
	mov	x0, x19
	bl	_paddr_nz
	mov	x1, x0
Lloh19:
	adrp	x0, l_.str.3@PAGE
Lloh20:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_monitor_printf
LBB0_16:
	mov	x0, #0
	mov	w1, #0
	bl	_monitor_expect_prompt
	ldr	x8, [x22]
	ldr	x8, [x8, #32]
	cbz	x8, LBB0_18
; %bb.17:
Lloh21:
	adrp	x0, l_.str.5@PAGE
Lloh22:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_monitor_debug
	ldr	x8, [x22]
	ldr	x1, [x8, #32]
Lloh23:
	adrp	x0, l_.str.6@PAGE
Lloh24:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_monitor_printf
	mov	x0, #0
	mov	w1, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_monitor_expect_prompt
LBB0_18:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_current_monitor,8,3            ; @current_monitor
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"MON Cannot store unknown register\n"

l_.str.1:                               ; @.str.1
	.asciz	"MON storeg %d %s\n"

	.comm	_MO_REGISTER_VALUE_FIRST,4,2    ; @MO_REGISTER_VALUE_FIRST
	.comm	_MO_SETREG_INTERACTIVE,4,2      ; @MO_SETREG_INTERACTIVE
l_.str.2:                               ; @.str.2
	.asciz	"EXP setreg.resp_delim\n"

	.comm	_setreg_resp_delim_pattern,4,2  ; @setreg_resp_delim_pattern
l_.str.3:                               ; @.str.3
	.asciz	"%s\r"

l_.str.4:                               ; @.str.4
	.asciz	"EXP setreg.term\n"

l_.str.5:                               ; @.str.5
	.asciz	"EXP setreg_termcmd\n"

l_.str.6:                               ; @.str.6
	.asciz	"%s"

	.no_dead_strip	_monitor_store_register
.subsections_via_symbols
