	.file	"extr_socket_server.c_socket_server_release.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	socket_server_release
	.type	socket_server_release, @function
socket_server_release:
.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
	sub	rsp, 16
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	eax, DWORD PTR MAX_SOCKET[rip]
	test	eax, eax
	jle	.L2
	xor	ebp, ebp
	lea	r13, 4[rsp]
	mov	r14, rsp
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rbx, rbp
	mov	rsi, r13
	sal	rbx, 4
	add	rbx, QWORD PTR 16[r12]
	mov	rdi, rbx
	call	socket_lock_init@PLT
	mov	rax, QWORD PTR SOCKET_TYPE_RESERVE[rip]
	cmp	QWORD PTR [rbx], rax
	je	.L3
	mov	rcx, r14
	mov	rdx, r13
	mov	rsi, rbx
	mov	rdi, r12
	call	force_close@PLT
.L3:
	lea	rdi, 8[rbx]
	add	rbp, 1
	call	spinlock_destroy@PLT
	cmp	DWORD PTR MAX_SOCKET[rip], ebp
	jg	.L4
.L2:
	mov	edi, DWORD PTR 8[r12]
	call	close@PLT
	mov	edi, DWORD PTR 4[r12]
	call	close@PLT
	mov	edi, DWORD PTR [r12]
	call	sp_release@PLT
	mov	rdi, r12
	call	FREE@PLT
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L9
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	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
.L9:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	socket_server_release, .-socket_server_release
	.comm	SOCKET_TYPE_RESERVE,8,8
	.comm	MAX_SOCKET,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_socket_server.c_socket_server_release.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	socket_server_release
	.syntax unified
	.arm
	.fpu softvfp
	.type	socket_server_release, %function
socket_server_release:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	ldr	r8, .L10
	ldr	r2, .L10+4
	ldr	r3, [r8]
	sub	sp, sp, #20
	cmp	r3, #0
	mov	r7, r0
	ldr	r2, [r2]
	str	r2, [sp, #12]
	mov	r2,#0
	ble	.L2
	mov	r4, #0
	ldr	r9, .L10+8
.L4:
	ldr	r6, [r7, #12]
	add	r1, sp, #8
	add	r5, r6, r4, lsl #3
	mov	r0, r5
	bl	socket_lock_init
	ldr	r2, [r6, r4, lsl #3]
	ldr	r3, [r9]
	cmp	r2, r3
	beq	.L3
	mov	r1, r5
	mov	r0, r7
	add	r3, sp, #4
	add	r2, sp, #8
	bl	force_close
.L3:
	add	r0, r5, #4
	bl	spinlock_destroy
	ldr	r3, [r8]
	add	r4, r4, #1
	cmp	r3, r4
	bgt	.L4
.L2:
	ldr	r0, [r7, #8]
	bl	close
	ldr	r0, [r7, #4]
	bl	close
	ldr	r0, [r7]
	bl	sp_release
	mov	r0, r7
	bl	FREE
	ldr	r3, .L10+4
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L9
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L9:
	bl	__stack_chk_fail
.L11:
	.align	2
.L10:
	.word	MAX_SOCKET
	.word	.LC0
	.word	SOCKET_TYPE_RESERVE
	.size	socket_server_release, .-socket_server_release
	.comm	SOCKET_TYPE_RESERVE,4,4
	.comm	MAX_SOCKET,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
