	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function monitor_write_memory_bytes
_monitor_write_memory_bytes:            ## @monitor_write_memory_bytes
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	testl	%edx, %edx
	je	LBB0_4
## %bb.1:
	movq	%rsi, %r13
	movl	%edi, %esi
	movq	_current_monitor@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	4(%rax), %rdi
	xorl	%eax, %eax
	callq	_monitor_printf
	xorl	%edi, %edi
	xorl	%esi, %esi
	callq	_monitor_expect_prompt
	movl	%r14d, %ebx
	leaq	L_.str(%rip), %r15
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%r13,%r12), %esi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_monitor_printf
	xorl	%edi, %edi
	xorl	%esi, %esi
	callq	_monitor_expect_prompt
	incq	%r12
	cmpl	%r12d, %ebx
	jne	LBB0_2
## %bb.3:
	movq	_current_monitor@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	(%rax), %rdi
	xorl	%eax, %eax
	callq	_monitor_printf
	xorl	%edi, %edi
	xorl	%esi, %esi
	callq	_monitor_expect_prompt
LBB0_4:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	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	"%x\r"

	.no_dead_strip	_monitor_write_memory_bytes
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function monitor_write_memory_bytes
_monitor_write_memory_bytes:            ; @monitor_write_memory_bytes
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x2
                                        ; kill: def $w0 killed $w0 def $x0
	cbz	w2, LBB0_4
; %bb.1:
	mov	x20, x1
Lloh0:
	adrp	x22, _current_monitor@GOTPAGE
Lloh1:
	ldr	x22, [x22, _current_monitor@GOTPAGEOFF]
	ldr	x8, [x22]
	ldrsw	x8, [x8, #4]
	str	x0, [sp]
	mov	x0, x8
	bl	_monitor_printf
	mov	x0, #0
	mov	w1, #0
	bl	_monitor_expect_prompt
Lloh2:
	adrp	x21, l_.str@PAGE
Lloh3:
	add	x21, x21, l_.str@PAGEOFF
	mov	x23, x19
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w8, [x20], #1
	str	x8, [sp]
	mov	x0, x21
	bl	_monitor_printf
	mov	x0, #0
	mov	w1, #0
	bl	_monitor_expect_prompt
	subs	w23, w23, #1
	b.ne	LBB0_2
; %bb.3:
	ldr	x8, [x22]
	ldrsw	x0, [x8]
	bl	_monitor_printf
	mov	x0, #0
	mov	w1, #0
	bl	_monitor_expect_prompt
LBB0_4:
	mov	x0, x19
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_current_monitor,8,3            ; @current_monitor
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%x\r"

	.no_dead_strip	_monitor_write_memory_bytes
.subsections_via_symbols
