	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_remote_read_bytes              ## -- Begin function remote_read_bytes
	.p2align	4, 0x90
_remote_read_bytes:                     ## @remote_read_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
	subq	$40, %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, -72(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r13
	xorl	%eax, %eax
	callq	_get_memory_read_packet_size
	movl	%eax, %r14d
	leal	1(%r14), %eax
	movslq	%eax, %rdi
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	callq	_alloca
	testl	%r15d, %r15d
	jle	LBB0_11
## %bb.1:
	movq	%rax, %rbx
	movl	%r14d, %eax
	shrl	$31, %eax
	addl	%r14d, %eax
	sarl	%eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	%rbx, %rax
	incq	%rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	movl	%r15d, %r14d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r14d, %edi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	callq	_min
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	%r13, %rdi
	callq	_remote_address_masked
	movq	%rax, %r13
	movb	$109, (%rbx)
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	movl	%r13d, %esi
	callq	_hexnumstr
	cltq
	leaq	(%r12,%rax), %r15
	leaq	(%r12,%rax), %rdi
	incq	%rdi
	movl	-52(%rbp), %r12d                ## 4-byte Reload
	movb	$44, 1(%rbx,%rax)
	movl	%r12d, %esi
	callq	_hexnumstr
	cltq
	movb	$0, 1(%rax,%r15)
	movq	%rbx, %rdi
	callq	_putpkt
	movq	%rbx, %rdi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	xorl	%edx, %edx
	callq	_getpkt
	cmpb	$69, (%rbx)
	jne	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movsbl	(%rax), %edi
	callq	_isxdigit
	testq	%rax, %rax
	je	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movsbl	2(%rbx), %edi
	callq	_isxdigit
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpb	$0, 3(%rbx)
	je	LBB0_6
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %r15
	movq	%rbx, %rdi
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rsi
	movl	%r12d, %edx
	callq	_hex2bin
	cmpl	%r12d, %eax
	jl	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movslq	%r12d, %rax
	addq	%rax, %rbx
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	addq	%rax, %r13
	subl	%r12d, %r14d
	movq	%r15, %rbx
	jg	LBB0_2
## %bb.10:
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	jmp	LBB0_11
LBB0_8:
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	subl	%r14d, %r15d
	addl	%eax, %r15d
LBB0_11:
	movl	%r15d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	_EIO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	xorl	%r15d, %r15d
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_EIO,4,2                        ## @EIO
	.comm	_errno,4,2                      ## @errno
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_remote_read_bytes              ; -- Begin function remote_read_bytes
	.p2align	2
_remote_read_bytes:                     ; @remote_read_bytes
	.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
	mov	x25, x2
	mov	x20, x1
	mov	x27, x0
	bl	_get_memory_read_packet_size
	mov	x23, x0
	add	w8, w0, #1
	sxtw	x21, w8
	mov	x0, x21
	bl	_alloca
	cmp	w25, #1
	b.lt	LBB0_10
; %bb.1:
	mov	x22, x0
	cmp	w23, #0
	cinc	w8, w23, lt
	asr	w23, w8, #1
	add	x24, x0, #1
	mov	w19, #44
	str	w25, [sp, #12]                  ; 4-byte Folded Spill
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x25
	mov	x1, x23
	bl	_min
	mov	x26, x0
	mov	x0, x27
	bl	_remote_address_masked
	mov	x27, x0
	mov	w8, #109
	strb	w8, [x22]
	mov	x0, x24
	mov	x1, x27
	bl	_hexnumstr
	add	x28, x24, w0, sxtw
	strb	w19, [x28], #1
	mov	x0, x28
	mov	x1, x26
	bl	_hexnumstr
	strb	wzr, [x28, w0, sxtw]
	mov	x0, x22
	bl	_putpkt
	mov	x0, x22
	mov	x1, x21
	mov	w2, #0
	bl	_getpkt
	ldrb	w8, [x22]
	cmp	w8, #69
	b.ne	LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldrsb	w0, [x24]
	bl	_isxdigit
	cbz	x0, LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	ldrsb	w0, [x22, #2]
	bl	_isxdigit
	cbz	x0, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	ldrb	w8, [x22, #3]
	cbz	w8, LBB0_11
LBB0_6:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x22
	mov	x1, x20
	mov	x2, x26
	bl	_hex2bin
	cmp	w0, w26
	b.lt	LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_2 Depth=1
	sxtw	x8, w26
	add	x20, x20, x8
	add	x27, x27, x8
	sub	w25, w25, w26
	cmp	w25, #0
	b.gt	LBB0_2
; %bb.8:
	ldr	w25, [sp, #12]                  ; 4-byte Folded Reload
	b	LBB0_10
LBB0_9:
	ldr	w8, [sp, #12]                   ; 4-byte Folded Reload
	sub	w8, w8, w25
	add	w25, w8, w0
LBB0_10:
	mov	x0, x25
	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
LBB0_11:
	mov	w25, #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_10
	.loh AdrpLdrGotStr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EIO,4,2                        ; @EIO
	.comm	_errno,4,2                      ; @errno
.subsections_via_symbols
