	.file	"extr_nbcmdqueue.c_NBCmdQueueAdd.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	": queue %p, ncb %p\n"
.LC1:
	.string	"returning 0x%02x\n"
	.text
	.p2align 4
	.globl	NBCmdQueueAdd
	.type	NBCmdQueueAdd, @function
NBCmdQueueAdd:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	rdx, rsi
	xor	eax, eax
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rsi
	mov	rsi, rdi
	lea	rdi, .LC0[rip]
	call	TRACE@PLT
	mov	r12d, DWORD PTR NRC_BADDR[rip]
	test	rbp, rbp
	je	.L1
	mov	r12d, DWORD PTR NRC_INVADDRESS[rip]
	test	rbx, rbx
	jne	.L7
.L1:
	mov	eax, r12d
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	rdi, rbx
	call	CANCEL_EVENT_PTR@PLT
	mov	rdi, rbp
	mov	QWORD PTR [rax], 0
	call	EnterCriticalSection@PLT
	mov	rdi, rbx
	call	NEXT_PTR@PLT
	mov	rdx, QWORD PTR 8[rbp]
	mov	r12d, DWORD PTR NRC_GOODRET[rip]
	mov	rdi, rbp
	mov	QWORD PTR [rax], rdx
	mov	QWORD PTR 8[rbp], rbx
	call	LeaveCriticalSection@PLT
	movsx	rsi, r12d
	lea	rdi, .LC1[rip]
	xor	eax, eax
	call	TRACE@PLT
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	NBCmdQueueAdd, .-NBCmdQueueAdd
	.comm	NRC_INVADDRESS,4,4
	.comm	NRC_GOODRET,4,4
	.comm	NRC_BADDR,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_nbcmdqueue.c_NBCmdQueueAdd.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	": queue %p, ncb %p\012\000"
	.align	2
.LC1:
	.ascii	"returning 0x%02x\012\000"
	.text
	.align	2
	.global	NBCmdQueueAdd
	.syntax unified
	.arm
	.fpu softvfp
	.type	NBCmdQueueAdd, %function
NBCmdQueueAdd:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r5, r1
	mov	r4, r0
	mov	r1, r0
	mov	r2, r5
	ldr	r0, .L8
	bl	TRACE
	cmp	r4, #0
	beq	.L7
	cmp	r5, #0
	bne	.L4
	ldr	r3, .L8+4
	ldr	r4, [r3]
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L4:
	mov	r0, r5
	bl	CANCEL_EVENT_PTR
	mov	r2, #0
	mov	r3, r0
	mov	r0, r4
	str	r2, [r3]
	bl	EnterCriticalSection
	mov	r0, r5
	bl	NEXT_PTR
	ldr	r2, [r4, #4]
	ldr	r3, .L8+8
	str	r2, [r0]
	str	r5, [r4, #4]
	mov	r0, r4
	ldr	r4, [r3]
	bl	LeaveCriticalSection
	mov	r1, r4
	ldr	r0, .L8+12
	bl	TRACE
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L7:
	ldr	r3, .L8+16
	ldr	r4, [r3]
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L9:
	.align	2
.L8:
	.word	.LC0
	.word	NRC_INVADDRESS
	.word	NRC_GOODRET
	.word	.LC1
	.word	NRC_BADDR
	.size	NBCmdQueueAdd, .-NBCmdQueueAdd
	.comm	NRC_INVADDRESS,4,4
	.comm	NRC_GOODRET,4,4
	.comm	NRC_BADDR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
