	.file	"extr_cl_main.c_CL_GetFreePing.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	CL_GetFreePing
	.type	CL_GetFreePing, @function
CL_GetFreePing:
.LFB0:
	.cfi_startproc
	endbr64
	mov	eax, DWORD PTR MAX_PINGREQUESTS[rip]
	mov	rcx, QWORD PTR cl_pinglist[rip]
	test	eax, eax
	jle	.L10
	sub	eax, 1
	mov	edi, DWORD PTR cls[rip]
	add	rax, 1
	sal	rax, 4
	lea	rdx, [rcx+rax]
	mov	rax, rcx
.L6:
	cmp	QWORD PTR 8[rax], 0
	je	.L3
	mov	esi, DWORD PTR [rax]
	test	esi, esi
	jne	.L4
	mov	esi, edi
	sub	esi, DWORD PTR 4[rax]
	cmp	esi, 499
	jle	.L5
.L3:
	mov	QWORD PTR 8[rax], 0
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	cmp	esi, 499
	jg	.L3
.L5:
	add	rax, 16
	cmp	rax, rdx
	jne	.L6
	mov	r8d, DWORD PTR INT_MIN[rip]
	mov	rax, rcx
	.p2align 4,,10
	.p2align 3
.L9:
	mov	esi, edi
	sub	esi, DWORD PTR 4[rcx]
	cmp	esi, r8d
	jle	.L8
	mov	r8d, esi
	mov	rax, rcx
.L8:
	add	rcx, 16
	cmp	rcx, rdx
	jne	.L9
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	mov	rax, rcx
	ret
	.cfi_endproc
.LFE0:
	.size	CL_GetFreePing, .-CL_GetFreePing
	.comm	cls,4,4
	.comm	cl_pinglist,8,8
	.comm	MAX_PINGREQUESTS,4,4
	.comm	INT_MIN,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_cl_main.c_CL_GetFreePing.c"
	.text
	.align	2
	.global	CL_GetFreePing
	.syntax unified
	.arm
	.fpu softvfp
	.type	CL_GetFreePing, %function
CL_GetFreePing:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r2, .L23
	ldr	r3, .L23+4
	ldr	r1, [r2]
	ldr	r2, [r3]
	cmp	r1, #0
	ble	.L10
	mov	r0, r2
	mov	ip, #0
	ldr	r3, .L23+8
	push	{r4, lr}
	ldr	lr, [r3]
.L6:
	ldr	r3, [r0, #8]
	cmp	r3, #0
	beq	.L3
	ldr	r3, [r0]
	cmp	r3, #0
	bne	.L4
	ldr	r3, [r0, #4]
	sub	r3, lr, r3
	cmp	r3, #500
	blt	.L5
.L3:
	mov	r3, #0
	str	r3, [r0, #8]
	pop	{r4, pc}
.L4:
	cmp	r3, #500
	bge	.L3
.L5:
	add	ip, ip, #1
	cmp	ip, r1
	add	r0, r0, #12
	bne	.L6
	mov	r0, r2
	mov	ip, #0
	ldr	r3, .L23+12
	ldr	r4, [r3]
.L9:
	ldr	r3, [r2, #4]
	add	ip, ip, #1
	sub	r3, lr, r3
	cmp	r3, r4
	movgt	r0, r2
	movgt	r4, r3
	cmp	ip, r1
	add	r2, r2, #12
	bne	.L9
	pop	{r4, pc}
.L10:
	mov	r0, r2
	bx	lr
.L24:
	.align	2
.L23:
	.word	MAX_PINGREQUESTS
	.word	cl_pinglist
	.word	cls
	.word	INT_MIN
	.size	CL_GetFreePing, .-CL_GetFreePing
	.comm	cls,4,4
	.comm	cl_pinglist,4,4
	.comm	MAX_PINGREQUESTS,4,4
	.comm	INT_MIN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
