	.file	"extr_cm.c_cm_process_work.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	cm_process_work, @function
cm_process_work:
.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
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	call	[QWORD PTR [rdi]]
	mov	rdi, rbp
	mov	r12d, eax
	call	cm_free_work@PLT
	test	r12d, r12d
	jne	.L2
	lea	r14, 12[r13]
	lea	rbx, 8[r13]
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rdi, rbx
	call	spin_lock_irq@PLT
	mov	rdi, r13
	call	cm_dequeue_work@PLT
	mov	rdi, rbx
	mov	rbp, rax
	call	spin_unlock_irq@PLT
	test	rbp, rbp
	je	.L1
	mov	rdi, r13
	mov	rsi, rbp
	call	[QWORD PTR 0[r13]]
	mov	rdi, rbp
	mov	r12d, eax
	call	cm_free_work@PLT
	test	r12d, r12d
	jne	.L2
.L3:
	mov	rsi, r14
	mov	edi, -1
	call	atomic_add_negative@PLT
	test	eax, eax
	je	.L5
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rdi, r13
	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
	jmp	cm_deref_id@PLT
	.p2align 4,,10
	.p2align 3
.L1:
	.cfi_restore_state
	pop	rbx
	.cfi_remember_state
	.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
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	rdi, r13
	call	cm_deref_id@PLT
	pop	rbx
	.cfi_def_cfa_offset 40
	mov	esi, r12d
	pop	rbp
	.cfi_def_cfa_offset 32
	mov	rdi, r13
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	jmp	cm_destroy_id@PLT
	.cfi_endproc
.LFE0:
	.size	cm_process_work, .-cm_process_work
	.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_process_work.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	cm_process_work, %function
cm_process_work:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r3, [r0]
	mov	r4, r1
	mov	r6, r0
	blx	r3
	mov	r5, r0
	mov	r0, r4
	bl	cm_free_work
	cmp	r5, #0
	bne	.L2
	add	r8, r6, #8
	add	r7, r6, #4
	b	.L3
.L5:
	mov	r0, r7
	bl	spin_lock_irq
	mov	r0, r6
	bl	cm_dequeue_work
	mov	r4, r0
	mov	r0, r7
	bl	spin_unlock_irq
	cmp	r4, #0
	popeq	{r4, r5, r6, r7, r8, pc}
	mov	r1, r4
	ldr	r3, [r6]
	mov	r0, r6
	blx	r3
	mov	r5, r0
	mov	r0, r4
	bl	cm_free_work
	cmp	r5, #0
	bne	.L2
.L3:
	mov	r1, r8
	mvn	r0, #0
	bl	atomic_add_negative
	cmp	r0, #0
	beq	.L5
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, lr}
	b	cm_deref_id
.L2:
	mov	r0, r6
	bl	cm_deref_id
	mov	r1, r5
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, lr}
	b	cm_destroy_id
	.size	cm_process_work, .-cm_process_work
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
