	.file	"extr_grukservices.c_send_message_queue_full.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	send_message_queue_full, @function
send_message_queue_full:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	xor	r15d, r15d
	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
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	QWORD PTR 24[rsp], rdx
	call	gru_get_amo_value@PLT
	mov	rdi, rbp
	mov	r13, rax
	call	gru_get_amo_value_head@PLT
	mov	rdi, rbp
	mov	DWORD PTR 16[rsp], eax
	call	gru_get_amo_value_limit@PLT
	mov	esi, DWORD PTR [r12]
	mov	ebx, eax
	cmp	esi, eax
	setne	r15b
	je	.L2
	mov	edi, esi
	shr	edi, 31
	add	edi, esi
	sar	edi
	add	edi, 1
	call	gru_mesq_head@PLT
	mov	DWORD PTR 20[rsp], eax
.L3:
	mov	r8d, DWORD PTR IMA[rip]
	mov	edi, DWORD PTR 4[r12]
	mov	esi, r15d
	mov	r14d, DWORD PTR XTYPE_DW[rip]
	mov	DWORD PTR 12[rsp], r8d
	call	HSTATUS@PLT
	mov	r8d, DWORD PTR 12[rsp]
	mov	ecx, r14d
	mov	rdi, rbp
	mov	esi, DWORD PTR EOP_IR_CLR[rip]
	mov	edx, eax
	call	gru_gamir@PLT
	mov	rdi, rbp
	call	gru_wait@PLT
	cmp	rax, QWORD PTR CBS_IDLE[rip]
	je	.L14
.L4:
	mov	edi, DWORD PTR mesq_qf_unexpected_error[rip]
	call	STAT@PLT
	mov	eax, DWORD PTR MQE_UNEXPECTED_CB_ERR[rip]
.L1:
	add	rsp, 40
	.cfi_remember_state
	.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
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	esi, eax
	mov	edi, 2
	shr	esi, 31
	add	esi, eax
	sar	esi
	add	esi, 1
	call	gru_mesq_head@PLT
	mov	DWORD PTR 20[rsp], eax
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L14:
	mov	rdi, rbp
	call	gru_get_amo_value@PLT
	test	rax, rax
	je	.L15
	cmp	DWORD PTR 16[rsp], ebx
	je	.L7
	mov	rdx, QWORD PTR 24[rsp]
	mov	rsi, r12
	mov	rdi, rbp
	add	r13, 1
	call	send_noop_message@PLT
	test	rax, rax
	je	.L7
	mov	edi, DWORD PTR 4[r12]
	mov	ebx, DWORD PTR IMA[rip]
	mov	esi, r15d
	mov	r13d, DWORD PTR XTYPE_DW[rip]
	call	HSTATUS@PLT
	mov	esi, DWORD PTR EOP_IR_INC[rip]
	mov	r8d, ebx
	mov	rdi, rbp
	mov	edx, eax
	mov	ecx, r13d
	call	gru_gamir@PLT
	mov	rdi, rbp
	call	gru_wait@PLT
	cmp	rax, QWORD PTR CBS_IDLE[rip]
	jne	.L4
	mov	edi, DWORD PTR mesq_qf_noop_not_full[rip]
	call	STAT@PLT
	mov	eax, DWORD PTR MQIE_AGAIN[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L7:
	mov	eax, DWORD PTR IMA[rip]
	sub	rsp, 8
	.cfi_def_cfa_offset 104
	mov	r9, r13
	mov	rdi, rbp
	mov	edx, DWORD PTR 4[r12]
	mov	ecx, DWORD PTR XTYPE_DW[rip]
	push	rax
	.cfi_def_cfa_offset 112
	mov	esi, DWORD PTR EOP_ERR_CSWAP[rip]
	mov	r8d, DWORD PTR 36[rsp]
	call	gru_gamer@PLT
	mov	rdi, rbp
	call	gru_wait@PLT
	cmp	rax, QWORD PTR CBS_IDLE[rip]
	pop	rdx
	.cfi_def_cfa_offset 104
	pop	rcx
	.cfi_def_cfa_offset 96
	jne	.L4
	mov	rdi, rbp
	call	gru_get_amo_value@PLT
	cmp	rax, r13
	jne	.L9
.L10:
	mov	eax, DWORD PTR MQIE_AGAIN[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L15:
	mov	edi, DWORD PTR mesq_qf_locked[rip]
	call	STAT@PLT
	mov	eax, DWORD PTR MQE_QUEUE_FULL[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L9:
	mov	edi, DWORD PTR mesq_qf_switch_head_failed[rip]
	call	STAT@PLT
	mov	edi, DWORD PTR 4[r12]
	mov	ebx, DWORD PTR IMA[rip]
	mov	esi, r15d
	mov	r13d, DWORD PTR XTYPE_DW[rip]
	call	HSTATUS@PLT
	mov	esi, DWORD PTR EOP_IR_INC[rip]
	mov	r8d, ebx
	mov	rdi, rbp
	mov	edx, eax
	mov	ecx, r13d
	call	gru_gamir@PLT
	mov	rdi, rbp
	call	gru_wait@PLT
	cmp	rax, QWORD PTR CBS_IDLE[rip]
	je	.L10
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	send_message_queue_full, .-send_message_queue_full
	.comm	mesq_qf_unexpected_error,4,4
	.comm	mesq_qf_switch_head_failed,4,4
	.comm	mesq_qf_noop_not_full,4,4
	.comm	mesq_qf_locked,4,4
	.comm	XTYPE_DW,4,4
	.comm	MQIE_AGAIN,4,4
	.comm	MQE_UNEXPECTED_CB_ERR,4,4
	.comm	MQE_QUEUE_FULL,4,4
	.comm	IMA,4,4
	.comm	EOP_IR_INC,4,4
	.comm	EOP_IR_CLR,4,4
	.comm	EOP_ERR_CSWAP,4,4
	.comm	CBS_IDLE,8,8
	.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_grukservices.c_send_message_queue_full.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	send_message_queue_full, %function
send_message_queue_full:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	sub	sp, sp, #36
	str	r2, [sp, #28]
	mov	r4, r0
	mov	r5, r1
	bl	gru_get_amo_value
	mov	r7, r0
	mov	r0, r4
	bl	gru_get_amo_value_head
	mov	r3, r0
	mov	r0, r4
	str	r3, [sp, #20]
	bl	gru_get_amo_value_limit
	mov	r6, r0
	ldr	r1, [r5]
	ldr	r10, .L15
	cmp	r1, r0
	addne	r0, r1, r1, lsr #31
	addeq	r1, r6, r6, lsr #31
	asreq	r1, r1, #1
	asrne	r0, r0, #1
	addeq	r1, r1, #1
	moveq	r0, #2
	addne	r0, r0, #1
	movne	fp, #1
	moveq	fp, #0
	bl	gru_mesq_head
	ldr	r3, .L15+4
	mov	r1, fp
	str	r0, [sp, #24]
	ldr	r0, [r5, #4]
	ldr	r8, [r3]
	bl	HSTATUS
	ldr	r9, .L15+8
	ldr	r3, [r10]
	mov	r2, r0
	mov	r1, r8
	str	r3, [sp]
	mov	r0, r4
	ldr	r3, [r9]
	bl	gru_gamir
	mov	r0, r4
	bl	gru_wait
	ldr	r8, .L15+12
	ldr	r3, [r8]
	cmp	r0, r3
	beq	.L13
.L4:
	ldr	r3, .L15+16
	ldr	r0, [r3]
	bl	STAT
	ldr	r3, .L15+20
	ldr	r0, [r3]
.L1:
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L13:
	mov	r0, r4
	bl	gru_get_amo_value
	cmp	r0, #0
	beq	.L14
	ldr	r3, [sp, #20]
	cmp	r3, r6
	beq	.L7
	mov	r1, r5
	mov	r0, r4
	ldr	r2, [sp, #28]
	bl	send_noop_message
	cmp	r0, #0
	addeq	r7, r7, #1
	beq	.L7
	ldr	r3, .L15+24
	mov	r1, fp
	ldr	r0, [r5, #4]
	ldr	r5, [r3]
	bl	HSTATUS
	ldr	r3, [r10]
	mov	r2, r0
	mov	r1, r5
	str	r3, [sp]
	mov	r0, r4
	ldr	r3, [r9]
	bl	gru_gamir
	mov	r0, r4
	bl	gru_wait
	ldr	r3, [r8]
	cmp	r0, r3
	bne	.L4
	ldr	r3, .L15+28
	ldr	r0, [r3]
	bl	STAT
	ldr	r3, .L15+32
	ldr	r0, [r3]
	b	.L1
.L7:
	ldr	r1, [sp, #24]
	ldr	r3, [r10]
	ldr	r2, .L15+36
	str	r7, [sp, #4]
	str	r1, [sp]
	ldr	r1, [r2]
	str	r3, [sp, #8]
	ldr	r2, [r5, #4]
	ldr	r3, [r9]
	mov	r0, r4
	bl	gru_gamer
	mov	r0, r4
	bl	gru_wait
	ldr	r3, [r8]
	cmp	r0, r3
	bne	.L4
	mov	r0, r4
	bl	gru_get_amo_value
	cmp	r0, r7
	bne	.L9
.L10:
	ldr	r3, .L15+32
	ldr	r0, [r3]
	b	.L1
.L14:
	ldr	r3, .L15+40
	ldr	r0, [r3]
	bl	STAT
	ldr	r3, .L15+44
	ldr	r0, [r3]
	b	.L1
.L9:
	ldr	r3, .L15+48
	ldr	r0, [r3]
	bl	STAT
	ldr	r3, .L15+24
	mov	r1, fp
	ldr	r0, [r5, #4]
	ldr	r5, [r3]
	bl	HSTATUS
	ldr	r3, [r10]
	mov	r2, r0
	mov	r1, r5
	str	r3, [sp]
	mov	r0, r4
	ldr	r3, [r9]
	bl	gru_gamir
	mov	r0, r4
	bl	gru_wait
	ldr	r3, [r8]
	cmp	r0, r3
	beq	.L10
	b	.L4
.L16:
	.align	2
.L15:
	.word	IMA
	.word	EOP_IR_CLR
	.word	XTYPE_DW
	.word	CBS_IDLE
	.word	mesq_qf_unexpected_error
	.word	MQE_UNEXPECTED_CB_ERR
	.word	EOP_IR_INC
	.word	mesq_qf_noop_not_full
	.word	MQIE_AGAIN
	.word	EOP_ERR_CSWAP
	.word	mesq_qf_locked
	.word	MQE_QUEUE_FULL
	.word	mesq_qf_switch_head_failed
	.size	send_message_queue_full, .-send_message_queue_full
	.comm	mesq_qf_unexpected_error,4,4
	.comm	mesq_qf_switch_head_failed,4,4
	.comm	mesq_qf_noop_not_full,4,4
	.comm	mesq_qf_locked,4,4
	.comm	XTYPE_DW,4,4
	.comm	MQIE_AGAIN,4,4
	.comm	MQE_UNEXPECTED_CB_ERR,4,4
	.comm	MQE_QUEUE_FULL,4,4
	.comm	IMA,4,4
	.comm	EOP_IR_INC,4,4
	.comm	EOP_IR_CLR,4,4
	.comm	EOP_ERR_CSWAP,4,4
	.comm	CBS_IDLE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
