	.file	"extr_core.c_qnxr_write_memory.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	qnxr_write_memory
	.type	qnxr_write_memory, @function
qnxr_write_memory:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 24
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	test	rdi, rdi
	je	.L5
	mov	r12, rdx
	test	rdx, rdx
	je	.L5
	mov	ebx, ecx
	mov	r13d, esi
	mov	ecx, DWORD PTR SET_CHANNEL_DEBUG[rip]
	xor	edx, edx
	mov	esi, DWORD PTR DStMsg_memwr[rip]
	mov	rbp, rdi
	call	nto_send_init@PLT
	lea	rdi, 4[rsp]
	mov	esi, 8
	mov	DWORD PTR 4[rsp], r13d
	call	EXTRACT_UNSIGNED_INTEGER@PLT
	mov	edi, DWORD PTR 8[rbp]
	mov	edx, ebx
	mov	rsi, r12
	mov	DWORD PTR 12[rbp], eax
	call	memcpy@PLT
	mov	edi, DWORD PTR DStMsg_memwr_t[rip]
	mov	rsi, r12
	call	offsetof@PLT
	xor	edx, edx
	mov	rdi, rbp
	lea	esi, [rax+rbx]
	call	nto_send@PLT
	mov	eax, DWORD PTR 4[rbp]
	cmp	eax, 128
	je	.L3
	cmp	eax, 129
	mov	eax, 0
	cmove	eax, ebx
.L1:
	mov	rbx, QWORD PTR 8[rsp]
	xor	rbx, QWORD PTR fs:40
	jne	.L9
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	mov	esi, 4
	mov	rdi, rbp
	call	EXTRACT_SIGNED_INTEGER@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L5:
	mov	eax, -1
	jmp	.L1
.L9:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	qnxr_write_memory, .-qnxr_write_memory
	.comm	SET_CHANNEL_DEBUG,4,4
	.comm	DStMsg_memwr_t,4,4
	.comm	DStMsg_memwr,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_core.c_qnxr_write_memory.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	qnxr_write_memory
	.syntax unified
	.arm
	.fpu softvfp
	.type	qnxr_write_memory, %function
qnxr_write_memory:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	clz	ip, r2
	cmp	r0, #0
	lsr	ip, ip, #5
	push	{r4, r5, r6, r7, r8, lr}
	movne	r7, ip
	moveq	r7, #1
	mov	r4, r3
	ldr	r3, .L10
	sub	sp, sp, #8
	cmp	r7, #0
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	bne	.L5
	mov	r8, r1
	mov	r6, r2
	ldr	r3, .L10+4
	ldr	r2, .L10+8
	ldr	r3, [r3]
	ldr	r1, [r2]
	mov	r2, r7
	mov	r5, r0
	bl	nto_send_init
	mov	r1, #8
	mov	r0, sp
	str	r8, [sp]
	bl	EXTRACT_UNSIGNED_INTEGER
	mov	r2, r4
	mov	r1, r6
	str	r0, [r5, #12]
	ldr	r0, [r5, #8]
	bl	memcpy
	ldr	r3, .L10+12
	mov	r1, r6
	ldr	r0, [r3]
	bl	offsetof
	mov	r2, r7
	add	r1, r0, r4
	mov	r0, r5
	bl	nto_send
	ldr	r3, [r5, #4]
	cmp	r3, #128
	beq	.L3
	cmp	r3, #129
	moveq	r0, r4
	movne	r0, #0
.L1:
	ldr	r3, .L10
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L9
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L3:
	mov	r0, r5
	mov	r1, #4
	bl	EXTRACT_SIGNED_INTEGER
	b	.L1
.L5:
	mvn	r0, #0
	b	.L1
.L9:
	bl	__stack_chk_fail
.L11:
	.align	2
.L10:
	.word	.LC0
	.word	SET_CHANNEL_DEBUG
	.word	DStMsg_memwr
	.word	DStMsg_memwr_t
	.size	qnxr_write_memory, .-qnxr_write_memory
	.comm	SET_CHANNEL_DEBUG,4,4
	.comm	DStMsg_memwr_t,4,4
	.comm	DStMsg_memwr,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
