	.file	"extr_nc_message.c__msg_get.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	_msg_get, @function
_msg_get:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	lea	rdi, free_msgq[rip]
	call	TAILQ_EMPTY@PLT
	test	eax, eax
	je	.L11
	mov	edi, 336
	call	nc_alloc@PLT
	mov	r12, rax
	test	rax, rax
	je	.L1
.L3:
	mov	rax, QWORD PTR msg_id[rip]
	lea	rdi, 308[r12]
	mov	QWORD PTR 320[r12], 0
	mov	QWORD PTR 312[r12], 0
	add	rax, 1
	mov	QWORD PTR 328[r12], rax
	mov	QWORD PTR msg_id[rip], rax
	call	rbtree_node_init@PLT
	lea	rdi, 304[r12]
	call	STAILQ_INIT@PLT
	mov	eax, DWORD PTR MSG_PARSE_OK[rip]
	mov	esi, 4
	mov	QWORD PTR 296[r12], 0
	mov	QWORD PTR 288[r12], 0
	mov	edi, 1
	mov	DWORD PTR 240[r12], eax
	mov	eax, DWORD PTR MSG_UNKNOWN[rip]
	mov	QWORD PTR 280[r12], 0
	mov	QWORD PTR 272[r12], 0
	mov	QWORD PTR 264[r12], 0
	mov	QWORD PTR 256[r12], 0
	mov	QWORD PTR 248[r12], 0
	mov	QWORD PTR 232[r12], 0
	mov	QWORD PTR 224[r12], 0
	mov	QWORD PTR 216[r12], 0
	mov	QWORD PTR 208[r12], 0
	mov	DWORD PTR 200[r12], eax
	call	array_create@PLT
	mov	QWORD PTR 192[r12], rax
	test	rax, rax
	je	.L12
	mov	QWORD PTR 184[r12], 0
	mov	QWORD PTR 176[r12], 0
	mov	QWORD PTR 168[r12], 0
	mov	QWORD PTR 160[r12], 0
	mov	QWORD PTR 152[r12], 0
	mov	QWORD PTR 144[r12], 0
	mov	QWORD PTR 136[r12], 0
	mov	QWORD PTR 128[r12], 0
	mov	QWORD PTR 120[r12], 0
	mov	QWORD PTR 112[r12], 0
	mov	QWORD PTR 104[r12], 0
	mov	QWORD PTR 96[r12], 0
	mov	QWORD PTR 88[r12], 0
	mov	QWORD PTR 80[r12], 0
	mov	QWORD PTR 72[r12], 0
	mov	QWORD PTR 64[r12], 0
	mov	QWORD PTR 56[r12], 0
	mov	QWORD PTR 48[r12], 0
	mov	QWORD PTR 40[r12], 0
	mov	QWORD PTR 32[r12], 0
	mov	QWORD PTR 24[r12], 0
	mov	QWORD PTR 16[r12], 0
	mov	QWORD PTR 8[r12], 0
	mov	QWORD PTR [r12], 0
.L1:
	mov	rax, r12
	pop	r12
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	xor	edi, edi
	cmp	QWORD PTR nfree_msgq[rip], 0
	setg	dil
	call	ASSERT@PLT
	lea	rdi, free_msgq[rip]
	call	TAILQ_FIRST@PLT
	mov	edx, DWORD PTR m_tqe[rip]
	lea	rdi, free_msgq[rip]
	sub	QWORD PTR nfree_msgq[rip], 1
	mov	rsi, rax
	mov	r12, rax
	call	TAILQ_REMOVE@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L12:
	mov	rdi, r12
	xor	r12d, r12d
	call	nc_free@PLT
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	_msg_get, .-_msg_get
	.comm	nfree_msgq,8,8
	.comm	msg_id,8,8
	.comm	m_tqe,4,4
	.comm	free_msgq,4,4
	.comm	MSG_UNKNOWN,4,4
	.comm	MSG_PARSE_OK,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_nc_message.c__msg_get.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	_msg_get, %function
_msg_get:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r0, .L13
	bl	TAILQ_EMPTY
	cmp	r0, #0
	beq	.L11
	mov	r0, #172
	bl	nc_alloc
	subs	r4, r0, #0
	beq	.L1
.L3:
	mov	r5, #0
	ldr	r2, .L13+4
	str	r5, [r4, #164]
	ldr	r3, [r2]
	str	r5, [r4, #160]
	add	r3, r3, #1
	str	r3, [r4, #168]
	add	r0, r4, #156
	str	r3, [r2]
	bl	rbtree_node_init
	add	r0, r4, #152
	bl	STAILQ_INIT
	ldr	r2, .L13+8
	ldr	r3, .L13+12
	ldr	r2, [r2]
	ldr	r3, [r3]
	mov	r1, #4
	mov	r0, #1
	str	r5, [r4, #148]
	str	r5, [r4, #144]
	str	r5, [r4, #140]
	str	r5, [r4, #136]
	str	r5, [r4, #132]
	str	r5, [r4, #128]
	str	r5, [r4, #124]
	str	r5, [r4, #116]
	str	r5, [r4, #112]
	str	r5, [r4, #108]
	str	r5, [r4, #104]
	str	r2, [r4, #120]
	str	r3, [r4, #100]
	bl	array_create
	cmp	r0, r5
	mov	r6, r0
	str	r0, [r4, #96]
	beq	.L12
	str	r5, [r4, #92]
	str	r5, [r4, #88]
	str	r5, [r4, #84]
	str	r5, [r4, #80]
	str	r5, [r4, #76]
	str	r5, [r4, #72]
	str	r5, [r4, #68]
	str	r5, [r4, #64]
	str	r5, [r4, #60]
	str	r5, [r4, #56]
	str	r5, [r4, #52]
	str	r5, [r4, #48]
	str	r5, [r4, #44]
	str	r5, [r4, #40]
	str	r5, [r4, #36]
	str	r5, [r4, #32]
	str	r5, [r4, #28]
	str	r5, [r4, #24]
	str	r5, [r4, #20]
	str	r5, [r4, #16]
	str	r5, [r4, #12]
	str	r5, [r4, #8]
	str	r5, [r4, #4]
	str	r5, [r4]
.L1:
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L11:
	ldr	r5, .L13+16
	ldr	r0, [r5]
	cmp	r0, #0
	movle	r0, #0
	movgt	r0, #1
	bl	ASSERT
	ldr	r0, .L13
	bl	TAILQ_FIRST
	ldr	r3, [r5]
	ldr	r2, .L13+20
	mov	r4, r0
	mov	r1, r0
	sub	r3, r3, #1
	ldr	r2, [r2]
	ldr	r0, .L13
	str	r3, [r5]
	bl	TAILQ_REMOVE
	b	.L3
.L12:
	mov	r0, r4
	bl	nc_free
	mov	r4, r6
	b	.L1
.L14:
	.align	2
.L13:
	.word	free_msgq
	.word	msg_id
	.word	MSG_PARSE_OK
	.word	MSG_UNKNOWN
	.word	nfree_msgq
	.word	m_tqe
	.size	_msg_get, .-_msg_get
	.comm	nfree_msgq,4,4
	.comm	msg_id,4,4
	.comm	m_tqe,4,4
	.comm	free_msgq,4,4
	.comm	MSG_UNKNOWN,4,4
	.comm	MSG_PARSE_OK,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
