	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qnxr_write_memory              ## -- Begin function qnxr_write_memory
	.p2align	4, 0x90
_qnxr_write_memory:                     ## @qnxr_write_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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	$-1, %eax
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.1:
	movq	%rdx, %r15
	testq	%rdx, %rdx
	je	LBB0_6
## %bb.2:
	movl	%ecx, %r14d
	movl	%esi, %r12d
	movq	%rdi, %rbx
	movq	_DStMsg_memwr@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SET_CHANNEL_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%edx, %edx
	callq	_nto_send_init
	movl	%r12d, -36(%rbp)
	leaq	-36(%rbp), %rdi
	movl	$8, %esi
	callq	_EXTRACT_UNSIGNED_INTEGER
	movl	%eax, 12(%rbx)
	movl	8(%rbx), %edi
	movq	%r15, %rsi
	movl	%r14d, %edx
	callq	_memcpy
	movq	_DStMsg_memwr_t@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_offsetof
                                        ## kill: def $eax killed $eax def $rax
	leal	(%rax,%r14), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_nto_send
	movl	4(%rbx), %ecx
	movl	%r14d, %eax
	cmpl	$129, %ecx
	je	LBB0_6
## %bb.3:
	cmpl	$128, %ecx
	jne	LBB0_5
## %bb.4:
	movq	%rbx, %rdi
	movl	$4, %esi
	callq	_EXTRACT_SIGNED_INTEGER
	jmp	LBB0_6
LBB0_5:
	xorl	%eax, %eax
LBB0_6:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DStMsg_memwr,4,2               ## @DStMsg_memwr
	.comm	_SET_CHANNEL_DEBUG,4,2          ## @SET_CHANNEL_DEBUG
	.comm	_DStMsg_memwr_t,4,2             ## @DStMsg_memwr_t
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qnxr_write_memory              ; -- Begin function qnxr_write_memory
	.p2align	2
_qnxr_write_memory:                     ; @qnxr_write_memory
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
	mov	w0, #-1
	cbz	x19, LBB0_6
; %bb.1:
	mov	x21, x2
	cbz	x2, LBB0_6
; %bb.2:
	mov	x20, x3
	mov	x22, x1
Lloh0:
	adrp	x8, _DStMsg_memwr@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DStMsg_memwr@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _SET_CHANNEL_DEBUG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SET_CHANNEL_DEBUG@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_nto_send_init
	str	w22, [sp, #12]
	add	x0, sp, #12
	mov	w1, #8
	bl	_EXTRACT_UNSIGNED_INTEGER
	str	w0, [x19, #12]
	ldr	w0, [x19, #8]
	mov	x1, x21
	mov	x2, x20
	bl	_memcpy
Lloh6:
	adrp	x8, _DStMsg_memwr_t@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DStMsg_memwr_t@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_offsetof
	add	w1, w0, w20
	mov	x0, x19
	mov	w2, #0
	bl	_nto_send
	ldr	w8, [x19, #4]
	mov	x0, x20
	cmp	w8, #129
	b.eq	LBB0_6
; %bb.3:
	cmp	w8, #128
	b.ne	LBB0_5
; %bb.4:
	mov	x0, x19
	mov	w1, #4
	bl	_EXTRACT_SIGNED_INTEGER
	b	LBB0_6
LBB0_5:
	mov	w0, #0
LBB0_6:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_DStMsg_memwr,4,2               ; @DStMsg_memwr
	.comm	_SET_CHANNEL_DEBUG,4,2          ; @SET_CHANNEL_DEBUG
	.comm	_DStMsg_memwr_t,4,2             ; @DStMsg_memwr_t
.subsections_via_symbols
