	.file	"extr_node.c_load_free_nid_bitmap.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	load_free_nid_bitmap, @function
load_free_nid_bitmap:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	call	NM_I@PLT
	xor	esi, esi
	mov	rdi, r12
	mov	r14, rax
	call	enabled_nat_bits@PLT
	test	eax, eax
	je	.L1
	mov	esi, DWORD PTR [r14]
	test	esi, esi
	je	.L1
	xor	edx, edx
	.p2align 4,,10
	.p2align 3
.L6:
	mov	edi, DWORD PTR 16[r14]
	call	find_next_bit_le@PLT
	mov	esi, DWORD PTR [r14]
	mov	r13d, eax
	cmp	esi, eax
	jbe	.L4
	mov	esi, DWORD PTR 4[r14]
	mov	edi, eax
	call	__set_bit_le@PLT
	mov	ebp, DWORD PTR NAT_ENTRY_PER_BLOCK[rip]
	mov	rdi, r12
	call	NM_I@PLT
	mov	ebx, ebp
	lea	rdi, 12[rax]
	imul	ebx, r13d
	add	ebp, ebx
	call	spin_lock@PLT
	cmp	ebx, ebp
	jnb	.L7
	.p2align 4,,10
	.p2align 3
.L5:
	mov	esi, ebx
	mov	ecx, 1
	mov	edx, 1
	mov	rdi, r12
	call	update_free_nid_bitmap@PLT
	add	ebx, 1
	cmp	ebp, ebx
	jne	.L5
.L7:
	mov	rdi, r12
	call	NM_I@PLT
	lea	rdi, 12[rax]
	call	spin_unlock@PLT
	mov	esi, DWORD PTR [r14]
	lea	edx, 1[r13]
	cmp	esi, edx
	ja	.L6
.L4:
	test	esi, esi
	je	.L1
	xor	edx, edx
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L21:
	mov	esi, DWORD PTR 4[r14]
	mov	edi, eax
	call	__set_bit_le@PLT
	mov	esi, DWORD PTR [r14]
	lea	edx, 1[rbx]
	cmp	esi, edx
	jbe	.L1
.L8:
	mov	edi, DWORD PTR 8[r14]
	call	find_next_bit_le@PLT
	mov	ebx, eax
	cmp	DWORD PTR [r14], eax
	ja	.L21
.L1:
	pop	rbx
	.cfi_def_cfa_offset 40
	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
	.cfi_endproc
.LFE0:
	.size	load_free_nid_bitmap, .-load_free_nid_bitmap
	.comm	NAT_ENTRY_PER_BLOCK,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_node.c_load_free_nid_bitmap.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	load_free_nid_bitmap, %function
load_free_nid_bitmap:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r6, r0
	bl	NM_I
	mov	r1, #0
	mov	r8, r0
	mov	r0, r6
	bl	enabled_nat_bits
	cmp	r0, #0
	popeq	{r4, r5, r6, r7, r8, r9, r10, pc}
	ldr	r1, [r8]
	cmp	r1, #0
	popeq	{r4, r5, r6, r7, r8, r9, r10, pc}
	mov	r2, #0
	ldr	r9, .L21
.L6:
	ldr	r0, [r8, #16]
	bl	find_next_bit_le
	ldr	r1, [r8]
	mov	r7, r0
	cmp	r1, r0
	bls	.L4
	ldr	r1, [r8, #4]
	bl	__set_bit_le
	mov	r0, r6
	ldr	r5, [r9]
	bl	NM_I
	mul	r4, r7, r5
	add	r0, r0, #12
	add	r5, r5, r4
	bl	spin_lock
	cmp	r4, r5
	bcs	.L7
.L5:
	mov	r3, #1
	mov	r1, r4
	mov	r2, r3
	add	r4, r4, r3
	mov	r0, r6
	bl	update_free_nid_bitmap
	cmp	r5, r4
	bne	.L5
.L7:
	mov	r0, r6
	bl	NM_I
	add	r0, r0, #12
	bl	spin_unlock
	ldr	r1, [r8]
	add	r2, r7, #1
	cmp	r1, r2
	bhi	.L6
.L4:
	cmp	r1, #0
	popeq	{r4, r5, r6, r7, r8, r9, r10, pc}
	mov	r2, #0
.L8:
	ldr	r0, [r8, #8]
	bl	find_next_bit_le
	ldr	r3, [r8]
	mov	r4, r0
	cmp	r3, r0
	popls	{r4, r5, r6, r7, r8, r9, r10, pc}
	ldr	r1, [r8, #4]
	bl	__set_bit_le
	ldr	r1, [r8]
	add	r2, r4, #1
	cmp	r1, r2
	bhi	.L8
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L22:
	.align	2
.L21:
	.word	NAT_ENTRY_PER_BLOCK
	.size	load_free_nid_bitmap, .-load_free_nid_bitmap
	.comm	NAT_ENTRY_PER_BLOCK,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
