	.file	"extr_namespace.c_free_ipcs.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	free_ipcs
	.type	free_ipcs, @function
free_ipcs:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	lea	rax, 4[rsi]
	xor	r15d, r15d
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rdi
	mov	rdi, rax
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	add	rbp, 8
	xor	ebx, ebx
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	QWORD PTR [rsp], rdx
	mov	QWORD PTR 8[rsp], rax
	call	down_write@PLT
	mov	r12d, DWORD PTR -8[rbp]
	test	r12d, r12d
	jle	.L5
	.p2align 4,,10
	.p2align 3
.L4:
	mov	esi, r15d
	mov	rdi, rbp
	call	idr_find@PLT
	mov	r13, rax
	test	rax, rax
	je	.L3
	mov	rdi, rax
	add	ebx, 1
	call	ipc_lock_by_ptr@PLT
	mov	rax, QWORD PTR [rsp]
	mov	rsi, r13
	mov	rdi, r14
	call	rax
.L3:
	add	r15d, 1
	cmp	ebx, r12d
	jl	.L4
.L5:
	mov	rdi, QWORD PTR 8[rsp]
	add	rsp, 24
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	jmp	up_write@PLT
	.cfi_endproc
.LFE0:
	.size	free_ipcs, .-free_ipcs
	.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_namespace.c_free_ipcs.c"
	.text
	.align	2
	.global	free_ipcs
	.syntax unified
	.arm
	.fpu softvfp
	.type	free_ipcs, %function
free_ipcs:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r6, r1
	add	r10, r1, #4
	mov	r8, r0
	mov	r0, r10
	mov	r9, r2
	bl	down_write
	ldr	r7, [r6]
	cmp	r7, #0
	movgt	r5, #0
	addgt	r6, r6, #8
	movgt	fp, r5
	ble	.L5
.L4:
	mov	r1, fp
	mov	r0, r6
	bl	idr_find
	subs	r4, r0, #0
	beq	.L3
	bl	ipc_lock_by_ptr
	mov	r1, r4
	mov	r0, r8
	blx	r9
	add	r5, r5, #1
.L3:
	cmp	r5, r7
	add	fp, fp, #1
	blt	.L4
.L5:
	mov	r0, r10
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	up_write
	.size	free_ipcs, .-free_ipcs
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
