	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function e7000_read_inferior_memory
_e7000_read_inferior_memory:            ## @e7000_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	$216, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
                                        ## kill: def $edi killed $edi def $rdi
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leal	(%rdi,%r14), %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	%r14d, %r14d
	jmp	LBB0_21
LBB0_2:
	movq	%rsi, %r12
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_paddr_nz
	leaq	L_.str(%rip), %rsi
	leaq	-256(%rbp), %r15
	movq	%r15, %rdi
	movq	%rax, %rdx
	callq	_sprintf
	movq	%r15, %rdi
	callq	_puts_e7000debug
	testl	%r14d, %r14d
	jle	LBB0_20
## %bb.3:
	movl	%r14d, %r13d
	leaq	L_.str.2(%rip), %r15
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_8 Depth 2
	xorl	%eax, %eax
	callq	_gch
	cmpl	$32, %eax
	jne	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	xorl	%eax, %eax
	callq	_gch
	cmpl	$32, %eax
	je	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$42, %eax
	je	LBB0_7
	.p2align	4, 0x90
LBB0_8:                                 ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	xorl	%eax, %eax
	callq	_gch
	cmpl	$32, %eax
	jne	LBB0_8
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	xorl	%eax, %eax
	callq	_gbyte
	cmpq	%r13, %rbx
	jge	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_4 Depth=1
	movb	%al, (%r12,%rbx)
LBB0_11:                                ##   in Loop: Header=BB0_4 Depth=1
	xorl	%eax, %eax
	callq	_gbyte
	movq	%rbx, %rcx
	orq	$1, %rcx
	cmpq	%r13, %rcx
	jge	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_4 Depth=1
	movb	%al, (%r12,%rcx)
LBB0_13:                                ##   in Loop: Header=BB0_4 Depth=1
	xorl	%eax, %eax
	callq	_gbyte
	movq	%rbx, %rcx
	orq	$2, %rcx
	cmpq	%r13, %rcx
	jge	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_4 Depth=1
	movb	%al, (%r12,%rcx)
LBB0_15:                                ##   in Loop: Header=BB0_4 Depth=1
	xorl	%eax, %eax
	callq	_gbyte
	movq	%rbx, %rcx
	orq	$3, %rcx
	cmpq	%r13, %rcx
	jge	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_4 Depth=1
	movb	%al, (%r12,%rcx)
LBB0_17:                                ##   in Loop: Header=BB0_4 Depth=1
	xorl	%eax, %eax
	callq	_gch
	xorl	%eax, %eax
	callq	_gch
	addq	$4, %rbx
	cmpl	%r14d, %ebx
	jge	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	%r15, %rdi
	callq	_puts_e7000debug
	jmp	LBB0_4
LBB0_19:
	leaq	L_.str.1(%rip), %rdi
	callq	_puts_e7000debug
LBB0_20:
	xorl	%eax, %eax
	callq	_expect_prompt
	jmp	LBB0_21
LBB0_7:
	leaq	L_.str.1(%rip), %rdi
	callq	_puts_e7000debug
	xorl	%eax, %eax
	callq	_expect_full_prompt
	movl	$-1, %r14d
LBB0_21:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_23
## %bb.22:
	movl	%r14d, %eax
	addq	$216, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_23:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_EIO,4,2                        ## @EIO
	.comm	_errno,4,2                      ## @errno
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"m %s;l\r"

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

L_.str.2:                               ## @.str.2
	.asciz	"\r"

	.no_dead_strip	_e7000_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 e7000_read_inferior_memory
_e7000_read_inferior_memory:            ; @e7000_read_inferior_memory
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #272
	.cfi_def_cfa_offset 272
	stp	x24, x23, [sp, #208]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #224]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #240]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #256]            ; 16-byte Folded Spill
	add	x29, sp, #256
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	add	w8, w0, w2
	sub	w8, w8, #1
	cmp	w8, w0
	b.ge	LBB0_2
; %bb.1:
	mov	w19, #0
Lloh3:
	adrp	x8, _EIO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _errno@GOTPAGE
Lloh7:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh8:
	str	w8, [x9]
	b	LBB0_21
LBB0_2:
	mov	x19, x2
	mov	x20, x1
	bl	_paddr_nz
	mov	x2, x0
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, sp
	bl	_sprintf
	mov	x0, sp
	bl	_puts_e7000debug
	cmp	w19, #1
	b.lt	LBB0_19
; %bb.3:
	mov	x22, #0
	mov	w23, w19
Lloh11:
	adrp	x21, l_.str.2@PAGE
Lloh12:
	add	x21, x21, l_.str.2@PAGEOFF
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	bl	_gch
	cmp	w0, #32
	b.ne	LBB0_4
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	bl	_gch
	cmp	w0, #32
	b.eq	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w0, #42
	b.eq	LBB0_20
LBB0_7:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	bl	_gch
	cmp	w0, #32
	b.ne	LBB0_7
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	bl	_gbyte
	cmp	x22, x23
	b.ge	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	strb	w0, [x20, x22]
LBB0_10:                                ;   in Loop: Header=BB0_4 Depth=1
	bl	_gbyte
	orr	x8, x22, #0x1
	cmp	x8, x23
	b.ge	LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_4 Depth=1
	strb	w0, [x20, x8]
LBB0_12:                                ;   in Loop: Header=BB0_4 Depth=1
	bl	_gbyte
	orr	x8, x22, #0x2
	cmp	x8, x23
	b.ge	LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_4 Depth=1
	strb	w0, [x20, x8]
LBB0_14:                                ;   in Loop: Header=BB0_4 Depth=1
	bl	_gbyte
	orr	x8, x22, #0x3
	cmp	x8, x23
	b.ge	LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_4 Depth=1
	strb	w0, [x20, x8]
LBB0_16:                                ;   in Loop: Header=BB0_4 Depth=1
	bl	_gch
	bl	_gch
	add	x22, x22, #4
	cmp	w22, w19
	b.ge	LBB0_18
; %bb.17:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x21
	bl	_puts_e7000debug
	b	LBB0_4
LBB0_18:
Lloh13:
	adrp	x0, l_.str.1@PAGE
Lloh14:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_puts_e7000debug
LBB0_19:
	bl	_expect_prompt
	b	LBB0_21
LBB0_20:
Lloh15:
	adrp	x0, l_.str.1@PAGE
Lloh16:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_puts_e7000debug
	bl	_expect_full_prompt
	mov	w19, #-1
LBB0_21:
	ldur	x8, [x29, #-56]
Lloh17:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh18:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_23
; %bb.22:
	mov	x0, x19
	ldp	x29, x30, [sp, #256]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #240]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #224]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #208]            ; 16-byte Folded Reload
	add	sp, sp, #272
	ret
LBB0_23:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotStr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_EIO,4,2                        ; @EIO
	.comm	_errno,4,2                      ; @errno
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"m %s;l\r"

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

l_.str.2:                               ; @.str.2
	.asciz	"\r"

	.no_dead_strip	_e7000_read_inferior_memory
.subsections_via_symbols
