	.file	"extr_ip_fw_table.c_check_table_space.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	check_table_space, @function
check_table_space:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	push	r13
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	mov	r13, rdx
	push	r12
	.cfi_offset 12, -48
	mov	r12, rdi
	push	rbx
	.cfi_offset 3, -56
	mov	rbx, rcx
	sub	rsp, 56
	mov	QWORD PTR -88[rbp], rsi
	mov	DWORD PTR -76[rbp], r8d
	mov	rcx, rsp
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	movsx	rax, DWORD PTR TA_BUF_SZ[rip]
	mov	DWORD PTR -80[rbp], eax
	add	rax, 15
	mov	rdx, rax
	and	rax, -4096
	sub	rcx, rax
	and	rdx, -16
	mov	rax, rcx
	cmp	rsp, rax
	je	.L3
.L20:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L20
.L3:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L21
.L4:
	mov	rdi, r12
	mov	r14, rsp
	call	IPFW_UH_WLOCK_ASSERT@PLT
	mov	rax, QWORD PTR 16[r13]
	mov	QWORD PTR -72[rbp], rax
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L13
	add	DWORD PTR 0[r13], 1
	lea	r15, -64[rbp]
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L25:
	mov	rsi, rbx
	mov	rdi, r12
	call	add_toperation_state@PLT
	mov	rdi, r12
	call	IPFW_UH_WUNLOCK@PLT
	mov	edx, DWORD PTR -80[rbp]
	xor	esi, esi
	mov	rdi, r14
	call	memset@PLT
	mov	rax, QWORD PTR -72[rbp]
	mov	rsi, r15
	mov	rdi, r14
	call	[QWORD PTR 8[rax]]
	mov	rdi, r12
	mov	DWORD PTR -92[rbp], eax
	call	IPFW_UH_WLOCK@PLT
	mov	rsi, rbx
	mov	rdi, r12
	call	del_toperation_state@PLT
	mov	r8d, DWORD PTR -92[rbp]
	test	r8d, r8d
	jne	.L6
	cmp	QWORD PTR [rbx], 0
	jne	.L22
.L8:
	mov	esi, DWORD PTR 4[r13]
	mov	rdi, r12
	call	KIDX_TO_TI@PLT
	mov	edi, DWORD PTR 8[r13]
	mov	edx, DWORD PTR -76[rbp]
	mov	rcx, r15
	mov	rbx, rax
	mov	rsi, rax
	mov	rax, QWORD PTR -72[rbp]
	call	[QWORD PTR [rax]]
	test	rax, rax
	je	.L23
	mov	rax, QWORD PTR -72[rbp]
	mov	edi, DWORD PTR 8[r13]
	mov	rcx, r15
	mov	rdx, r14
	mov	rsi, rbx
	call	[QWORD PTR 16[rax]]
	test	eax, eax
	je	.L24
.L10:
	mov	rax, QWORD PTR -72[rbp]
	mov	rdi, r14
	call	[QWORD PTR 24[rax]]
	mov	rax, QWORD PTR -72[rbp]
	mov	rax, QWORD PTR [rax]
.L11:
	mov	edi, DWORD PTR 8[r13]
	mov	edx, DWORD PTR -76[rbp]
	mov	rcx, r15
	mov	rsi, rbx
	mov	QWORD PTR -64[rbp], 0
	call	rax
	test	rax, rax
	je	.L14
	mov	rbx, QWORD PTR -88[rbp]
	test	rbx, rbx
	jne	.L25
	mov	rdi, r12
	call	IPFW_UH_WUNLOCK@PLT
	mov	edx, DWORD PTR -80[rbp]
	xor	esi, esi
	mov	rdi, r14
	call	memset@PLT
	mov	rax, QWORD PTR -72[rbp]
	mov	rsi, r15
	mov	rdi, r14
	call	[QWORD PTR 8[rax]]
	mov	rdi, r12
	mov	DWORD PTR -92[rbp], eax
	call	IPFW_UH_WLOCK@PLT
	mov	r8d, DWORD PTR -92[rbp]
	test	r8d, r8d
	je	.L8
.L6:
	sub	DWORD PTR 0[r13], 1
.L1:
	mov	rax, QWORD PTR -56[rbp]
	xor	rax, QWORD PTR fs:40
	jne	.L26
	lea	rsp, -40[rbp]
	mov	eax, r8d
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L24:
	.cfi_restore_state
	mov	rdi, r12
	call	IPFW_WLOCK@PLT
	mov	rax, QWORD PTR -72[rbp]
	mov	edi, DWORD PTR 8[r13]
	mov	rdx, r14
	mov	rcx, QWORD PTR -64[rbp]
	mov	rsi, rbx
	call	[QWORD PTR 32[rax]]
	mov	rdi, r12
	call	IPFW_WUNLOCK@PLT
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L14:
	xor	r8d, r8d
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L23:
	mov	rdi, r12
	call	IPFW_UH_WUNLOCK@PLT
	mov	rax, QWORD PTR -72[rbp]
	mov	rdi, r14
	call	[QWORD PTR 24[rax]]
	xor	r8d, r8d
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L21:
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L4
.L13:
	xor	r8d, r8d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L22:
	mov	rax, QWORD PTR -72[rbp]
	mov	DWORD PTR -76[rbp], r8d
	mov	rdi, r14
	call	[QWORD PTR 24[rax]]
	mov	r8d, DWORD PTR -76[rbp]
	jmp	.L6
.L26:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	check_table_space, .-check_table_space
	.comm	TA_BUF_SZ,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_ip_fw_table.c_check_table_space.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	check_table_space, %function
check_table_space:
	@ args = 4, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	add	fp, sp, #32
	sub	sp, sp, #20
	mov	r6, r2
	ldr	r2, .L27
	mov	r10, r3
	ldr	r2, [r2]
	mov	r9, r1
	add	r3, r2, #7
	bic	r3, r3, #7
	sub	sp, sp, r3
	ldr	r3, .L27+4
	str	r2, [fp, #-48]
	ldr	r3, [r3]
	str	r3, [fp, #-40]
	mov	r3,#0
	mov	r7, r0
	bl	IPFW_UH_WLOCK_ASSERT
	ldr	r5, [r6, #12]
	ldr	r4, [r5]
	cmp	r4, #0
	beq	.L1
	ldr	r3, [r6]
	mov	r8, sp
	add	r3, r3, #1
	str	r3, [r6]
	b	.L8
.L25:
	mov	r1, r9
	mov	r0, r7
	bl	add_toperation_state
	mov	r0, r7
	bl	IPFW_UH_WUNLOCK
	ldr	r2, [fp, #-48]
	mov	r1, #0
	mov	r0, r8
	bl	memset
	ldr	r3, [r5, #4]
	sub	r1, fp, #44
	mov	r0, r8
	blx	r3
	mov	r4, r0
	mov	r0, r7
	bl	IPFW_UH_WLOCK
	mov	r1, r9
	mov	r0, r7
	bl	del_toperation_state
	cmp	r4, #0
	bne	.L3
	ldr	r3, [r9]
	cmp	r3, #0
	bne	.L21
.L5:
	ldr	r1, [r6, #4]
	mov	r0, r7
	bl	KIDX_TO_TI
	ldr	r4, [r5]
	mov	r1, r0
	mov	r10, r0
	ldr	r2, [fp, #4]
	ldr	r0, [r6, #8]
	sub	r3, fp, #44
	blx	r4
	subs	r4, r0, #0
	beq	.L23
	mov	r2, r8
	mov	r1, r10
	ldr	r4, [r5, #8]
	ldr	r0, [r6, #8]
	sub	r3, fp, #44
	blx	r4
	cmp	r0, #0
	beq	.L24
.L7:
	mov	r0, r8
	ldr	r3, [r5, #12]
	blx	r3
	ldr	r4, [r5]
.L8:
	mov	r3, #0
	mov	r1, r10
	str	r3, [fp, #-44]
	ldr	r2, [fp, #4]
	ldr	r0, [r6, #8]
	sub	r3, fp, #44
	blx	r4
	subs	r4, r0, #0
	beq	.L3
	cmp	r9, #0
	bne	.L25
	mov	r0, r7
	bl	IPFW_UH_WUNLOCK
	ldr	r2, [fp, #-48]
	mov	r1, r9
	mov	r0, r8
	bl	memset
	ldr	r3, [r5, #4]
	sub	r1, fp, #44
	mov	r0, r8
	blx	r3
	mov	r4, r0
	mov	r0, r7
	bl	IPFW_UH_WLOCK
	cmp	r4, #0
	beq	.L5
.L3:
	ldr	r3, [r6]
	sub	r3, r3, #1
	str	r3, [r6]
.L1:
	ldr	r3, .L27+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L26
	mov	r0, r4
	sub	sp, fp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L24:
	mov	r0, r7
	bl	IPFW_WLOCK
	mov	r2, r8
	mov	r1, r10
	ldr	r4, [r5, #16]
	ldr	r3, [fp, #-44]
	ldr	r0, [r6, #8]
	blx	r4
	mov	r0, r7
	bl	IPFW_WUNLOCK
	b	.L7
.L23:
	mov	r0, r7
	bl	IPFW_UH_WUNLOCK
.L21:
	mov	r0, r8
	ldr	r3, [r5, #12]
	blx	r3
	b	.L3
.L26:
	bl	__stack_chk_fail
.L28:
	.align	2
.L27:
	.word	TA_BUF_SZ
	.word	.LC0
	.size	check_table_space, .-check_table_space
	.comm	TA_BUF_SZ,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
