	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function st2000_read_inferior_memory
_st2000_read_inferior_memory:           ## @st2000_read_inferior_memory
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
                                        ## kill: def $edi killed $edi def $rdi
	leal	(%rdi,%r15), %eax
	decl	%eax
	cmpl	%edi, %eax
	jge	LBB0_2
## %bb.1:
	movq	_EIO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	xorl	%r15d, %r15d
	jmp	LBB0_9
LBB0_2:
	testl	%r15d, %r15d
	jle	LBB0_9
## %bb.3:
	movslq	%edi, %rbx
	xorl	%r12d, %r12d
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	$1, %edi
	callq	_expect_prompt
	movslq	%r14d, %rax
	addq	%rax, %rbx
	cmpl	%r15d, %r12d
	jge	LBB0_9
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
	movl	%ebx, %eax
	andl	$15, %eax
	movl	$16, %ecx
	subl	%eax, %ecx
	testq	%rax, %rax
	movl	$16, %eax
	cmovel	%eax, %ecx
	movl	%r15d, %r14d
	subl	%r12d, %r14d
	cmpl	%r14d, %ecx
	cmovll	%ecx, %r14d
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	movl	%r14d, %edx
	callq	_printf_stdebug
	leaq	L_.str.1(%rip), %rdi
	movl	$1, %esi
	callq	_expect
	testl	%r14d, %r14d
	jle	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	movslq	%r12d, %r13
	addq	-64(%rbp), %r13                 ## 8-byte Folded Reload
	movl	%r14d, %r12d
	negl	%r12d
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_6:                                 ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r13, %rdi
	callq	_get_hex_byte
	incq	%r13
	decl	%r15d
	cmpl	%r15d, %r12d
	jne	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	subl	%r15d, %r12d
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_8
LBB0_9:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EIO,4,2                        ## @EIO
	.comm	_errno,4,2                      ## @errno
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"DI.L %x %x\r"

L_.str.1:                               ## @.str.1
	.asciz	":  "

	.no_dead_strip	_st2000_read_inferior_memory
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function st2000_read_inferior_memory
_st2000_read_inferior_memory:           ; @st2000_read_inferior_memory
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
                                        ; kill: def $w0 killed $w0 def $x0
	add	w8, w0, w2
	sub	w8, w8, #1
	cmp	w8, w0
	b.ge	LBB0_2
; %bb.1:
	mov	w19, #0
Lloh0:
	adrp	x8, _EIO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _errno@GOTPAGE
Lloh4:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh5:
	str	w8, [x9]
	b	LBB0_8
LBB0_2:
	mov	x19, x2
	cmp	w2, #1
	b.lt	LBB0_8
; %bb.3:
	mov	x20, x1
	mov	w26, #0
	sxtw	x21, w0
	mov	w27, #16
Lloh6:
	adrp	x22, l_.str@PAGE
Lloh7:
	add	x22, x22, l_.str@PAGEOFF
Lloh8:
	adrp	x23, l_.str.1@PAGE
Lloh9:
	add	x23, x23, l_.str.1@PAGEOFF
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	w0, #1
	bl	_expect_prompt
	add	x21, x21, w24, sxtw
	cmp	w26, w19
	b.ge	LBB0_8
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	ands	x8, x21, #0xf
	sub	w8, w27, w8
	tst	x21, #0xf
	csel	w8, w27, w8, eq
	sub	w9, w19, w26
	cmp	w8, w9
	csel	w24, w8, w9, lt
	mov	x0, x22
	mov	x1, x21
	mov	x2, x24
	bl	_printf_stdebug
	mov	x0, x23
	mov	w1, #1
	bl	_expect
	cmp	w24, #1
	b.lt	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x25, x20, w26, sxtw
	mov	x28, x24
LBB0_7:                                 ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x25
	bl	_get_hex_byte
	add	x25, x25, #1
	add	w26, w26, #1
	subs	w28, w28, #1
	b.ne	LBB0_7
	b	LBB0_4
LBB0_8:
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotStr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_EIO,4,2                        ; @EIO
	.comm	_errno,4,2                      ; @errno
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"DI.L %x %x\r"

l_.str.1:                               ; @.str.1
	.asciz	":  "

	.no_dead_strip	_st2000_read_inferior_memory
.subsections_via_symbols
