	.file	"extr_cfi_cmdset_0020.c_cfi_staa_suspend.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	cfi_staa_suspend, @function
cfi_staa_suspend:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	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
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	xor	ebx, ebx
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR [rdi]
	mov	r13, QWORD PTR [rax]
.L2:
	cmp	DWORD PTR 0[r13], ebx
	jle	.L12
	movsx	r12, ebx
	sal	r12, 4
.L11:
	mov	rbp, QWORD PTR 8[r13]
	mov	r15d, ebx
	add	ebx, 1
	add	rbp, r12
	lea	r14, 8[rbp]
	mov	rdi, r14
	call	mutex_lock@PLT
	mov	eax, DWORD PTR 0[rbp]
	cmp	eax, 130
	je	.L18
	jg	.L4
	lea	edx, -128[rax]
	cmp	edx, 1
	ja	.L5
.L6:
	mov	DWORD PTR 4[rbp], eax
	mov	DWORD PTR 0[rbp], 130
.L18:
	mov	rdi, r14
	add	r12, 16
	call	mutex_unlock@PLT
	cmp	DWORD PTR 0[r13], ebx
	jg	.L11
.L12:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xor	eax, eax
	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
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	lea	edx, -131[rax]
	cmp	edx, 1
	jbe	.L6
.L5:
	mov	r12d, DWORD PTR EAGAIN[rip]
	mov	rdi, r14
	call	mutex_unlock@PLT
	test	r12d, r12d
	je	.L2
	movsx	rbx, r15d
	xor	r14d, r14d
	sal	rbx, 4
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L13:
	mov	rdi, r15
	call	mutex_unlock@PLT
	lea	rax, -16[rbx]
	cmp	r14, rbx
	je	.L20
	mov	rbx, rax
.L14:
	mov	rbp, QWORD PTR 8[r13]
	add	rbp, rbx
	lea	r15, 8[rbp]
	mov	rdi, r15
	call	mutex_lock@PLT
	cmp	DWORD PTR 0[rbp], 130
	jne	.L13
	mov	eax, DWORD PTR 4[rbp]
	lea	rdi, 12[rbp]
	mov	DWORD PTR 0[rbp], eax
	call	wake_up@PLT
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L20:
	add	rsp, 8
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 48
	neg	eax
	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
	ret
	.cfi_endproc
.LFE0:
	.size	cfi_staa_suspend, .-cfi_staa_suspend
	.comm	EAGAIN,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_cfi_cmdset_0020.c_cfi_staa_suspend.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	cfi_staa_suspend, %function
cfi_staa_suspend:
	@ 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	r4, #0
	mov	r10, #130
	ldr	r3, [r0]
	ldr	r7, [r3]
.L7:
	ldr	r3, [r7]
	cmp	r3, r4
	ble	.L19
.L9:
	ldr	r6, [r7, #4]
	mov	r5, r4
	add	r9, r6, r4, lsl #4
	add	fp, r9, #8
	mov	r0, fp
	bl	mutex_lock
	ldr	r3, [r6, r4, lsl #4]
	lsl	r8, r4, #4
	cmp	r3, #130
	add	r4, r4, #1
	beq	.L3
	sub	r0, r3, #128
	sub	r1, r3, #131
	bgt	.L4
	cmp	r0, #1
	bhi	.L5
.L6:
	str	r3, [r9, #4]
	mov	r0, fp
	str	r10, [r6, r8]
	bl	mutex_unlock
	ldr	r3, [r7]
	cmp	r3, r4
	bgt	.L9
.L19:
	mov	r0, #0
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L4:
	cmp	r1, #1
	bls	.L6
.L5:
	ldr	r3, .L21
	mov	r0, fp
	ldr	r6, [r3]
	bl	mutex_unlock
	cmp	r6, #0
	beq	.L7
	b	.L8
.L12:
	mov	r0, r8
	sub	r5, r5, #1
	bl	mutex_unlock
	cmn	r5, #1
	beq	.L20
.L8:
	ldr	r4, [r7, #4]
	add	r9, r4, r5, lsl #4
	add	r8, r9, #8
	mov	r0, r8
	bl	mutex_lock
	ldr	r3, [r4, r5, lsl #4]
	cmp	r3, #130
	bne	.L12
	ldr	r3, [r9, #4]
	add	r0, r9, #12
	str	r3, [r4, r5, lsl #4]
	bl	wake_up
	b	.L12
.L3:
	mov	r0, fp
	bl	mutex_unlock
	b	.L7
.L20:
	rsb	r0, r6, #0
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L22:
	.align	2
.L21:
	.word	EAGAIN
	.size	cfi_staa_suspend, .-cfi_staa_suspend
	.comm	EAGAIN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
