	.file	"extr_cm.c_cm_timewait_handler.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	cm_timewait_handler, @function
cm_timewait_handler:
.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
	lea	rdi, cm[rip]
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	spin_lock_irq@PLT
	lea	rdi, 16[r12]
	call	list_del@PLT
	lea	rdi, cm[rip]
	call	spin_unlock_irq@PLT
	mov	esi, DWORD PTR 8[r12]
	mov	edi, DWORD PTR 12[r12]
	call	cm_acquire_id@PLT
	test	rax, rax
	je	.L8
	lea	r14, 8[rax]
	mov	rbp, rax
	mov	rdi, r14
	call	spin_lock_irq@PLT
	mov	rax, QWORD PTR IB_CM_TIMEWAIT[rip]
	cmp	QWORD PTR 24[rbp], rax
	jne	.L4
	mov	rax, QWORD PTR [r12]
	cmp	QWORD PTR 0[rbp], rax
	je	.L5
.L4:
	mov	rdi, r14
	call	spin_unlock_irq@PLT
	mov	rdi, rbp
	call	cm_deref_id@PLT
.L8:
	mov	r13d, DWORD PTR EINVAL[rip]
	neg	r13d
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r13d
	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
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	rax, QWORD PTR IB_CM_IDLE[rip]
	lea	rdi, 16[rbp]
	mov	QWORD PTR 24[rbp], rax
	call	atomic_inc_and_test@PLT
	mov	r13d, eax
	test	eax, eax
	je	.L10
	mov	rdi, r14
	xor	r13d, r13d
	call	spin_unlock_irq@PLT
	mov	rsi, r12
	mov	rdi, rbp
	call	cm_process_work@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L10:
	lea	rsi, 12[rbp]
	mov	rdi, r12
	call	list_add_tail@PLT
	mov	rdi, r14
	call	spin_unlock_irq@PLT
	mov	rdi, rbp
	call	cm_deref_id@PLT
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	cm_timewait_handler, .-cm_timewait_handler
	.comm	cm,4,4
	.comm	IB_CM_TIMEWAIT,8,8
	.comm	IB_CM_IDLE,8,8
	.comm	EINVAL,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_cm.c_cm_timewait_handler.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	cm_timewait_handler, %function
cm_timewait_handler:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r6, r0
	ldr	r0, .L11
	bl	spin_lock_irq
	add	r0, r6, #12
	bl	list_del
	ldr	r0, .L11
	bl	spin_unlock_irq
	ldr	r1, [r6, #4]
	ldr	r0, [r6, #8]
	bl	cm_acquire_id
	subs	r4, r0, #0
	beq	.L8
	add	r7, r4, #4
	mov	r0, r7
	bl	spin_lock_irq
	ldr	r3, .L11+4
	ldr	r2, [r4, #16]
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L4
	ldr	r2, [r4]
	ldr	r3, [r6]
	cmp	r2, r3
	beq	.L5
.L4:
	mov	r0, r7
	bl	spin_unlock_irq
	mov	r0, r4
	bl	cm_deref_id
.L8:
	ldr	r3, .L11+8
	ldr	r5, [r3]
	rsb	r5, r5, #0
.L1:
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, pc}
.L5:
	ldr	r3, .L11+12
	add	r0, r4, #12
	ldr	r3, [r3]
	str	r3, [r4, #16]
	bl	atomic_inc_and_test
	subs	r5, r0, #0
	beq	.L10
	mov	r0, r7
	bl	spin_unlock_irq
	mov	r1, r6
	mov	r0, r4
	bl	cm_process_work
	mov	r5, #0
	b	.L1
.L10:
	add	r1, r4, #8
	mov	r0, r6
	bl	list_add_tail
	mov	r0, r7
	bl	spin_unlock_irq
	mov	r0, r4
	bl	cm_deref_id
	b	.L1
.L12:
	.align	2
.L11:
	.word	cm
	.word	IB_CM_TIMEWAIT
	.word	EINVAL
	.word	IB_CM_IDLE
	.size	cm_timewait_handler, .-cm_timewait_handler
	.comm	cm,4,4
	.comm	IB_CM_TIMEWAIT,4,4
	.comm	IB_CM_IDLE,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
