	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qnxr_read_memory               ## -- Begin function qnxr_read_memory
	.p2align	4, 0x90
_qnxr_read_memory:                      ## @qnxr_read_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
                                        ## kill: def $esi killed $esi def $rsi
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movl	$-1, %ebx
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.1:
	movq	%rdx, %r15
	testq	%rdx, %rdx
	je	LBB0_7
## %bb.2:
	movl	%ecx, %r14d
	movq	%rdi, %r13
	movl	$0, -44(%rbp)
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	_DStMsg_memrd@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SET_CHANNEL_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r13, %rdi
	xorl	%edx, %edx
	callq	_nto_send_init
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	addl	%ebx, %eax
	movl	%eax, -48(%rbp)
	leaq	-48(%rbp), %rdi
	movl	$8, %esi
	callq	_EXTRACT_UNSIGNED_INTEGER
	movl	%eax, 20(%r13)
	movl	%r14d, %eax
	subl	%ebx, %eax
	movq	_DS_DATA_MAX_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpl	%ecx, %eax
	cmovgel	%ecx, %eax
	movl	%eax, -44(%rbp)
	leaq	-44(%rbp), %rdi
	movl	$2, %esi
	callq	_EXTRACT_SIGNED_INTEGER
	movl	%eax, 16(%r13)
	movq	%r13, %rdi
	movl	$8, %esi
	xorl	%edx, %edx
	callq	_nto_send
	movl	%eax, %r12d
	addl	$-8, %r12d
	testl	%r12d, %r12d
	jle	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%r13), %rax
	movq	_DSrMsg_okdata@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movslq	%ebx, %rax
	leaq	(%r15,%rax,4), %rdi
	movl	(%r13), %esi
	movl	%r12d, %edx
	callq	_memcpy
	addl	%ebx, %r12d
	movl	%r12d, %ebx
	cmpl	%r14d, %r12d
	jne	LBB0_3
## %bb.6:
	movl	%r14d, %ebx
LBB0_7:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DStMsg_memrd,4,2               ## @DStMsg_memrd
	.comm	_SET_CHANNEL_DEBUG,4,2          ## @SET_CHANNEL_DEBUG
	.comm	_DS_DATA_MAX_SIZE,4,2           ## @DS_DATA_MAX_SIZE
	.comm	_DSrMsg_okdata,8,3              ## @DSrMsg_okdata
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qnxr_read_memory               ; -- Begin function qnxr_read_memory
	.p2align	2
_qnxr_read_memory:                      ; @qnxr_read_memory
	.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	w19, #-1
	cbz	x0, LBB0_7
; %bb.1:
	mov	x21, x2
	cbz	x2, LBB0_7
; %bb.2:
	mov	x20, x3
	mov	x22, x1
	mov	x23, x0
	mov	w19, #0
	str	wzr, [sp, #12]
Lloh0:
	adrp	x25, _DStMsg_memrd@GOTPAGE
Lloh1:
	ldr	x25, [x25, _DStMsg_memrd@GOTPAGEOFF]
Lloh2:
	adrp	x26, _SET_CHANNEL_DEBUG@GOTPAGE
Lloh3:
	ldr	x26, [x26, _SET_CHANNEL_DEBUG@GOTPAGEOFF]
Lloh4:
	adrp	x27, _DS_DATA_MAX_SIZE@GOTPAGE
Lloh5:
	ldr	x27, [x27, _DS_DATA_MAX_SIZE@GOTPAGEOFF]
Lloh6:
	adrp	x28, _DSrMsg_okdata@GOTPAGE
Lloh7:
	ldr	x28, [x28, _DSrMsg_okdata@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x25]
	ldr	w3, [x26]
	mov	x0, x23
	mov	w2, #0
	bl	_nto_send_init
	add	w8, w19, w22
	str	w8, [sp, #8]
	add	x0, sp, #8
	mov	w1, #8
	bl	_EXTRACT_UNSIGNED_INTEGER
	str	w0, [x23, #20]
	ldr	w8, [x27]
	sub	w9, w20, w19
	cmp	w9, w8
	csel	w8, w9, w8, lt
	str	w8, [sp, #12]
	add	x0, sp, #12
	mov	w1, #2
	bl	_EXTRACT_SIGNED_INTEGER
	str	w0, [x23, #16]
	mov	x0, x23
	mov	w1, #8
	mov	w2, #0
	bl	_nto_send
	sub	w24, w0, #8
	cmp	w24, #1
	b.lt	LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x23, #8]
	ldr	x9, [x28]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x0, x21, w19, sxtw #2
	ldr	w1, [x23]
	mov	x2, x24
	bl	_memcpy
	add	w19, w24, w19
	cmp	w19, w20
	b.ne	LBB0_3
; %bb.6:
	mov	x19, x20
LBB0_7:
	mov	x0, x19
	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	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_DStMsg_memrd,4,2               ; @DStMsg_memrd
	.comm	_SET_CHANNEL_DEBUG,4,2          ; @SET_CHANNEL_DEBUG
	.comm	_DS_DATA_MAX_SIZE,4,2           ; @DS_DATA_MAX_SIZE
	.comm	_DSrMsg_okdata,8,3              ; @DSrMsg_okdata
.subsections_via_symbols
