	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gdb_read_mem
_gdb_read_mem:                          ## @gdb_read_mem
	.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
	movq	%rsi, %r14
	movq	%rdi, %r15
	addq	$4, %r15
	decq	%r14
	movq	%r15, %rdi
	movl	$44, %esi
	movq	%r14, %rdx
	callq	_memchr
	testq	%rax, %rax
	je	LBB0_34
## %bb.1:
	movq	%rax, %rbx
	subq	%r15, %rbx
	je	LBB0_34
## %bb.2:
	sarq	$2, %rbx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_parse_integer
	movq	%rax, %r13
	leaq	1(%rbx), %rax
	subq	%rax, %r14
	leaq	(%r15,%rbx,4), %rdi
	addq	$4, %rdi
	movq	%r14, %rsi
	callq	_parse_integer
	testq	%rax, %rax
	je	LBB0_31
## %bb.3:
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_17 Depth 2
                                        ##     Child Loop BB0_22 Depth 2
                                        ##       Child Loop BB0_29 Depth 3
	movq	_cur_vcpu@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r13d, %esi
	leaq	-48(%rbp), %rdx
	callq	_guest_vaddr2paddr
	testl	%eax, %eax
	je	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$-1, %eax
	je	LBB0_6
## %bb.11:                              ##   in Loop: Header=BB0_4 Depth=1
	xorl	%eax, %eax
	callq	_getpagesize
	movl	%eax, %ebx
	movl	-48(%rbp), %r15d
	xorl	%eax, %eax
	callq	_getpagesize
	movl	%eax, %ecx
	movl	%r15d, %eax
	cltd
	idivl	%ecx
	subl	%edx, %ebx
	movslq	%ebx, %r14
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	cmpq	%r14, %r12
	cmovbq	%r12, %r14
	movq	_ctx@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	-48(%rbp), %esi
	movq	%r14, %rdx
	callq	_paddr_guest2host
	testq	%rax, %rax
	je	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	%rax, %r15
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_4 Depth=1
	xorl	%eax, %eax
	callq	_start_packet
LBB0_15:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	$1, -44(%rbp)                   ## 4-byte Folded Spill
	testq	%r14, %r14
	je	LBB0_19
## %bb.16:                              ##   in Loop: Header=BB0_4 Depth=1
	addl	%r14d, %r13d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_17:                                ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%r15,%rbx,4), %edi
	callq	_append_byte
	incl	-48(%rbp)
	incq	%rbx
	cmpq	%rbx, %r14
	jne	LBB0_17
## %bb.18:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	subq	%r14, %r12
	jmp	LBB0_19
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_4 Depth=1
	testq	%r14, %r14
	je	LBB0_19
	.p2align	4, 0x90
LBB0_22:                                ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_29 Depth 3
	movl	-48(%rbp), %edx
	movl	$1, %r15d
	testb	$1, %dl
	jne	LBB0_25
## %bb.23:                              ##   in Loop: Header=BB0_22 Depth=2
	cmpq	$1, %r14
	je	LBB0_25
## %bb.24:                              ##   in Loop: Header=BB0_22 Depth=2
	testb	$2, %dl
	sete	%al
	cmpq	$2, %r14
	setne	%cl
	andb	%al, %cl
	movzbl	%cl, %eax
	leaq	(%rax,%rax), %r15
	addq	$2, %r15
LBB0_25:                                ##   in Loop: Header=BB0_22 Depth=2
	movq	_ctx@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_cur_vcpu@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-52(%rbp), %rcx
	movq	%r15, %r8
	callq	_read_mem
	testl	%eax, %eax
	jne	LBB0_9
## %bb.26:                              ##   in Loop: Header=BB0_22 Depth=2
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_28
## %bb.27:                              ##   in Loop: Header=BB0_22 Depth=2
	xorl	%eax, %eax
	callq	_start_packet
LBB0_28:                                ##   in Loop: Header=BB0_22 Depth=2
	addl	%r15d, -48(%rbp)
	subq	%r15, %r12
	movl	-52(%rbp), %edi
	movq	%r15, %rbx
	.p2align	4, 0x90
LBB0_29:                                ##   Parent Loop BB0_4 Depth=1
                                        ##     Parent Loop BB0_22 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	callq	_append_byte
	movl	-52(%rbp), %edi
	sarl	$8, %edi
	movl	%edi, -52(%rbp)
	decq	%rbx
	jne	LBB0_29
## %bb.21:                              ##   in Loop: Header=BB0_22 Depth=2
	addl	%r15d, %r13d
	movl	$1, -44(%rbp)                   ## 4-byte Folded Spill
	subq	%r15, %r14
	jne	LBB0_22
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_4 Depth=1
	testq	%r12, %r12
	je	LBB0_30
## %bb.20:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movl	-48(%rbp), %ebx
	xorl	%eax, %eax
	callq	_getpagesize
	movl	%eax, %ecx
	movl	%ebx, %eax
	cltd
	idivl	%ecx
	xorl	%edi, %edi
	testl	%edx, %edx
	sete	%dil
	callq	_assert
	jmp	LBB0_4
LBB0_34:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_send_error                     ## TAILCALL
LBB0_9:
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_32
## %bb.10:
	movq	_EFAULT@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %edi
	callq	_send_error
	jmp	LBB0_33
LBB0_6:
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_32
## %bb.7:
	movq	_errno@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_30:
	movl	$1, %edi
	callq	_assert
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_32
LBB0_31:
	xorl	%eax, %eax
	callq	_start_packet
LBB0_32:
	xorl	%eax, %eax
	callq	_finish_packet
LBB0_33:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_cur_vcpu,4,2                   ## @cur_vcpu
	.comm	_errno,4,2                      ## @errno
	.comm	_EFAULT,4,2                     ## @EFAULT
	.comm	_ctx,4,2                        ## @ctx
	.no_dead_strip	_gdb_read_mem
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gdb_read_mem
_gdb_read_mem:                          ; @gdb_read_mem
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	add	x20, x0, #4
	sub	x21, x1, #1
	mov	x0, x20
	mov	w1, #44
	mov	x2, x21
	bl	_memchr
	cbz	x0, LBB0_23
; %bb.1:
	subs	x8, x0, x20
	b.eq	LBB0_23
; %bb.2:
	asr	x22, x8, #2
	mov	x0, x20
	mov	x1, x22
	bl	_parse_integer
	mov	x19, x0
	add	x8, x22, #1
	sub	x1, x21, x8
	add	x0, x20, x8, lsl #2
	bl	_parse_integer
	cbz	x0, LBB0_30
; %bb.3:
	mov	x20, x0
	mov	w28, #0
Lloh0:
	adrp	x23, _cur_vcpu@GOTPAGE
Lloh1:
	ldr	x23, [x23, _cur_vcpu@GOTPAGEOFF]
Lloh2:
	adrp	x24, _ctx@GOTPAGE
Lloh3:
	ldr	x24, [x24, _ctx@GOTPAGEOFF]
	mov	w25, #1
	mov	w26, #4
	mov	w27, #2
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_11 Depth 2
                                        ;     Child Loop BB0_17 Depth 2
                                        ;       Child Loop BB0_21 Depth 3
	ldr	w0, [x23]
	add	x2, sp, #12
	mov	x1, x19
	bl	_guest_vaddr2paddr
	cbz	w0, LBB0_24
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	cmn	w0, #1
	b.eq	LBB0_27
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	bl	_getpagesize
	mov	x21, x0
	ldr	w22, [sp, #12]
	bl	_getpagesize
	sdiv	w8, w22, w0
	neg	w9, w22
	madd	w8, w8, w0, w9
	add	w8, w21, w8
	sxtw	x8, w8
	cmp	x20, x8
	csel	x21, x20, x8, lo
	ldr	w0, [x24]
	ldr	w1, [sp, #12]
	mov	x2, x21
	bl	_paddr_guest2host
	cbz	x0, LBB0_16
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x22, x0
	cbnz	w28, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	bl	_start_packet
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	cbz	x21, LBB0_13
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	add	w19, w19, w21
	mov	x28, x21
LBB0_11:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w0, [x22], #4
	bl	_append_byte
	ldr	w8, [sp, #12]
	add	w8, w8, #1
	str	w8, [sp, #12]
	subs	x28, x28, #1
	b.ne	LBB0_11
; %bb.12:                               ;   in Loop: Header=BB0_4 Depth=1
	sub	x20, x20, x21
LBB0_13:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w28, #1
LBB0_14:                                ;   in Loop: Header=BB0_4 Depth=1
	cbz	x20, LBB0_29
; %bb.15:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w21, [sp, #12]
	bl	_getpagesize
	sdiv	w8, w21, w0
	msub	w8, w8, w0, w21
	cmp	w8, #0
	cset	w0, eq
	bl	_assert
	b	LBB0_4
LBB0_16:                                ;   in Loop: Header=BB0_4 Depth=1
	cbz	x21, LBB0_14
LBB0_17:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_21 Depth 3
	ldr	w2, [sp, #12]
	and	w8, w2, #0x2
	cmp	x21, #2
	cset	w9, eq
	orr	w8, w9, w8, lsr #1
	cmp	w8, #0
	csel	x8, x27, x26, ne
	cmp	x21, #1
	csel	x8, x25, x8, eq
	tst	w2, #0x1
	csel	x22, x25, x8, ne
	ldr	w0, [x24]
	ldr	w1, [x23]
	add	x3, sp, #8
	mov	x4, x22
	bl	_read_mem
	cbnz	w0, LBB0_24
; %bb.18:                               ;   in Loop: Header=BB0_17 Depth=2
	cbnz	w28, LBB0_20
; %bb.19:                               ;   in Loop: Header=BB0_17 Depth=2
	bl	_start_packet
LBB0_20:                                ;   in Loop: Header=BB0_17 Depth=2
	ldp	w0, w8, [sp, #8]
	add	w8, w8, w22
	str	w8, [sp, #12]
	sub	x20, x20, x22
	mov	x28, x22
LBB0_21:                                ;   Parent Loop BB0_4 Depth=1
                                        ;     Parent Loop BB0_17 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	bl	_append_byte
	ldr	w8, [sp, #8]
	asr	w0, w8, #8
	str	w0, [sp, #8]
	subs	x28, x28, #1
	b.ne	LBB0_21
; %bb.22:                               ;   in Loop: Header=BB0_17 Depth=2
	add	w19, w19, w22
	mov	w28, #1
	subs	x21, x21, x22
	b.ne	LBB0_17
	b	LBB0_14
LBB0_23:
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_send_error
LBB0_24:
	cbnz	w28, LBB0_31
; %bb.25:
Lloh7:
	adrp	x8, _EFAULT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
LBB0_26:
	ldr	w0, [x8]
	bl	_send_error
	b	LBB0_32
LBB0_27:
	cbnz	w28, LBB0_31
; %bb.28:
Lloh9:
	adrp	x8, _errno@GOTPAGE
Lloh10:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
	b	LBB0_26
LBB0_29:
	mov	w0, #1
	bl	_assert
	cbnz	w28, LBB0_31
LBB0_30:
	bl	_start_packet
LBB0_31:
	bl	_finish_packet
LBB0_32:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_cur_vcpu,4,2                   ; @cur_vcpu
	.comm	_errno,4,2                      ; @errno
	.comm	_EFAULT,4,2                     ; @EFAULT
	.comm	_ctx,4,2                        ; @ctx
	.no_dead_strip	_gdb_read_mem
.subsections_via_symbols
