	.file	"extr_svc.c_svcpool_close.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	svcpool_close
	.type	svcpool_close, @function
svcpool_close:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	lea	rbp, 8[r12]
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	call	svcpool_cleanup@PLT
	mov	rdi, rbp
	call	mtx_lock@PLT
	mov	eax, DWORD PTR SVCPOOL_INIT[rip]
	mov	rdi, rbp
	mov	DWORD PTR 12[r12], eax
	call	mtx_unlock@PLT
	mov	eax, DWORD PTR SVC_MAXGROUPS[rip]
	test	eax, eax
	jle	.L1
	xor	ebx, ebx
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rax, QWORD PTR [r12]
	lea	rbp, [rax+rbx*8]
	add	rbx, 1
	mov	rdi, rbp
	call	mtx_lock@PLT
	mov	eax, DWORD PTR SVCPOOL_ACTIVE[rip]
	mov	rdi, rbp
	mov	DWORD PTR 4[rbp], eax
	call	mtx_unlock@PLT
	cmp	DWORD PTR SVC_MAXGROUPS[rip], ebx
	jg	.L3
.L1:
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	svcpool_close, .-svcpool_close
	.comm	SVC_MAXGROUPS,4,4
	.comm	SVCPOOL_INIT,4,4
	.comm	SVCPOOL_ACTIVE,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_svc.c_svcpool_close.c"
	.text
	.align	2
	.global	svcpool_close
	.syntax unified
	.arm
	.fpu softvfp
	.type	svcpool_close, %function
svcpool_close:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r6, r0
	add	r4, r0, #4
	bl	svcpool_cleanup
	mov	r0, r4
	bl	mtx_lock
	ldr	r3, .L7
	ldr	r7, .L7+4
	ldr	r3, [r3]
	mov	r0, r4
	str	r3, [r6, #8]
	bl	mtx_unlock
	ldr	r3, [r7]
	cmp	r3, #0
	pople	{r4, r5, r6, r7, r8, pc}
	mov	r5, #0
	ldr	r8, .L7+8
.L3:
	ldr	r4, [r6]
	add	r4, r4, r5, lsl #3
	mov	r0, r4
	bl	mtx_lock
	ldr	r3, [r8]
	mov	r0, r4
	str	r3, [r4, #4]
	bl	mtx_unlock
	ldr	r3, [r7]
	add	r5, r5, #1
	cmp	r3, r5
	bgt	.L3
	pop	{r4, r5, r6, r7, r8, pc}
.L8:
	.align	2
.L7:
	.word	SVCPOOL_INIT
	.word	SVC_MAXGROUPS
	.word	SVCPOOL_ACTIVE
	.size	svcpool_close, .-svcpool_close
	.comm	SVC_MAXGROUPS,4,4
	.comm	SVCPOOL_INIT,4,4
	.comm	SVCPOOL_ACTIVE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
