	.file	"extr_mckey.c_alloc_nodes.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"mckey: unable to allocate memory for test nodes\n"
	.text
	.p2align 4
	.type	alloc_nodes, @function
alloc_nodes:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	eax, DWORD PTR connections[rip]
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	lea	edi, 0[0+rax*8]
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	call	malloc@PLT
	mov	QWORD PTR test[rip], rax
	test	rax, rax
	je	.L16
	mov	rdi, rax
	mov	eax, DWORD PTR connections[rip]
	xor	esi, esi
	xor	ebx, ebx
	lea	r14, test[rip]
	lea	edx, 0[0+rax*8]
	call	memset@PLT
	mov	eax, DWORD PTR connections[rip]
	test	eax, eax
	jg	.L4
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L5:
	add	rbx, 1
	cmp	DWORD PTR connections[rip], ebx
	jle	.L8
.L4:
	mov	rax, QWORD PTR [r14]
	mov	ecx, DWORD PTR port_space[rip]
	movsx	r13, ebx
	mov	edi, DWORD PTR test[rip+8]
	lea	rdx, [rax+rbx*8]
	mov	DWORD PTR [rdx], ebx
	lea	rsi, 4[rdx]
	call	rdma_create_id@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L5
	lea	ebp, -1[r13]
	test	r13d, r13d
	je	.L7
	lea	eax, -1[rbx]
	movsx	rbp, ebp
	sub	r13, rax
	sal	rbp, 3
	lea	rbx, -16[0+r13*8]
	.p2align 4,,10
	.p2align 3
.L9:
	mov	rax, QWORD PTR [r14]
	mov	edi, DWORD PTR 4[rax+rbp]
	sub	rbp, 8
	call	rdma_destroy_id@PLT
	cmp	rbp, rbx
	jne	.L9
.L7:
	mov	rdi, QWORD PTR test[rip]
	call	free@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	xor	r12d, r12d
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	mov	eax, r12d
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L16:
	.cfi_restore_state
	lea	rdi, .LC0[rip]
	call	printf@PLT
	mov	r12d, DWORD PTR ENOMEM[rip]
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	neg	r12d
	mov	eax, r12d
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	alloc_nodes, .-alloc_nodes
	.comm	test,16,16
	.comm	port_space,4,4
	.comm	connections,4,4
	.comm	ENOMEM,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_mckey.c_alloc_nodes.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"mckey: unable to allocate memory for test nodes\012"
	.ascii	"\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	alloc_nodes, %function
alloc_nodes:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r7, .L15
	ldr	r6, .L15+4
	ldr	r4, [r7]
	lsl	r8, r4, #3
	mov	r0, r8
	bl	malloc
	cmp	r0, #0
	str	r0, [r6]
	beq	.L14
	mov	r2, r8
	mov	r1, #0
	mov	r5, r0
	bl	memset
	cmp	r4, #0
	movgt	r4, #0
	ldrgt	r8, .L15+8
	bgt	.L4
	b	.L7
.L5:
	ldr	r3, [r7]
	add	r4, r4, #1
	cmp	r3, r4
	ble	.L7
	ldr	r5, [r6]
.L4:
	add	r2, r5, r4, lsl #3
	str	r4, [r5, r4, lsl #3]
	ldr	r3, [r8]
	ldr	r0, [r6, #4]
	add	r1, r2, #4
	bl	rdma_create_id
	subs	r5, r0, #0
	beq	.L5
	cmp	r4, #0
	sub	r4, r4, #1
	beq	.L8
.L6:
	ldr	r3, [r6]
	add	r3, r3, r4, lsl #3
	ldr	r0, [r3, #4]
	sub	r4, r4, #1
	bl	rdma_destroy_id
	cmn	r4, #1
	bne	.L6
.L8:
	ldr	r0, [r6]
	bl	free
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, pc}
.L7:
	mov	r5, #0
.L1:
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, pc}
.L14:
	ldr	r0, .L15+12
	bl	printf
	ldr	r3, .L15+16
	ldr	r0, [r3]
	rsb	r5, r0, #0
	b	.L1
.L16:
	.align	2
.L15:
	.word	connections
	.word	test
	.word	port_space
	.word	.LC0
	.word	ENOMEM
	.size	alloc_nodes, .-alloc_nodes
	.comm	test,8,4
	.comm	port_space,4,4
	.comm	connections,4,4
	.comm	ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
