	.file	"extr_be_cmds.c___be_cmd_modify_eqd.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	__be_cmd_modify_eqd, @function
__be_cmd_modify_eqd:
.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
	mov	r14, rdi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12d, edx
	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
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	call	mutex_lock@PLT
	mov	rdi, r14
	call	wrb_from_mccq@PLT
	test	rax, rax
	je	.L9
	mov	rdi, rax
	mov	rbx, rax
	call	embedded_payload@PLT
	xor	r9d, r9d
	mov	r8, rbx
	mov	ecx, 24
	mov	edx, DWORD PTR OPCODE_COMMON_MODIFY_EQ_DELAY[rip]
	mov	esi, DWORD PTR CMD_SUBSYSTEM_COMMON[rip]
	lea	rdi, 16[rax]
	mov	r13, rax
	call	be_wrb_cmd_hdr_prepare@PLT
	mov	edi, r12d
	call	cpu_to_le32@PLT
	mov	QWORD PTR 8[r13], rax
	test	r12d, r12d
	jle	.L4
	lea	eax, -1[r12]
	add	rbp, 4
	xor	ebx, ebx
	lea	r15, 3[rax+rax*2]
	sal	r15, 3
	.p2align 4,,10
	.p2align 3
.L5:
	mov	edi, DWORD PTR -4[rbp]
	mov	r12, QWORD PTR 0[r13]
	add	rbp, 8
	call	cpu_to_le32@PLT
	add	r12, rbx
	mov	edi, DWORD PTR -8[rbp]
	mov	QWORD PTR 16[r12], rax
	mov	r12, QWORD PTR 0[r13]
	add	r12, rbx
	add	rbx, 24
	mov	QWORD PTR 8[r12], 0
	call	cpu_to_le32@PLT
	mov	QWORD PTR [r12], rax
	cmp	rbx, r15
	jne	.L5
.L4:
	mov	rdi, r14
	call	be_mcc_notify@PLT
	mov	r12d, eax
.L3:
	mov	rdi, r14
	call	mutex_unlock@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	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
.L9:
	.cfi_restore_state
	mov	r12d, DWORD PTR EBUSY[rip]
	neg	r12d
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	__be_cmd_modify_eqd, .-__be_cmd_modify_eqd
	.comm	OPCODE_COMMON_MODIFY_EQ_DELAY,4,4
	.comm	EBUSY,4,4
	.comm	CMD_SUBSYSTEM_COMMON,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_be_cmds.c___be_cmd_modify_eqd.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	__be_cmd_modify_eqd, %function
__be_cmd_modify_eqd:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r10, r0
	sub	sp, sp, #12
	mov	r4, r1
	mov	r8, r2
	bl	mutex_lock
	mov	r0, r10
	bl	wrb_from_mccq
	subs	r6, r0, #0
	beq	.L9
	mov	r5, #0
	bl	embedded_payload
	ldr	r3, .L10
	ldr	r2, .L10+4
	str	r6, [sp]
	str	r5, [sp, #4]
	ldr	r1, [r3]
	mov	r7, r0
	mov	r3, #12
	ldr	r2, [r2]
	add	r0, r0, #8
	bl	be_wrb_cmd_hdr_prepare
	mov	r0, r8
	bl	cpu_to_le32
	cmp	r8, r5
	str	r0, [r7, #4]
	ble	.L4
	mov	r9, r5
	add	r8, r4, r8, lsl #3
.L5:
	ldr	r0, [r4]
	ldr	r6, [r7]
	bl	cpu_to_le32
	ldr	fp, [r7]
	add	r6, r6, r5
	add	r3, fp, r5
	str	r0, [r6, #8]
	ldr	r0, [r4, #4]
	str	r9, [r3, #4]
	bl	cpu_to_le32
	add	r4, r4, #8
	cmp	r4, r8
	str	r0, [fp, r5]
	add	r5, r5, #12
	bne	.L5
.L4:
	mov	r0, r10
	bl	be_mcc_notify
	mov	r4, r0
.L3:
	mov	r0, r10
	bl	mutex_unlock
	mov	r0, r4
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L9:
	ldr	r3, .L10+8
	ldr	r4, [r3]
	rsb	r4, r4, #0
	b	.L3
.L11:
	.align	2
.L10:
	.word	CMD_SUBSYSTEM_COMMON
	.word	OPCODE_COMMON_MODIFY_EQ_DELAY
	.word	EBUSY
	.size	__be_cmd_modify_eqd, .-__be_cmd_modify_eqd
	.comm	OPCODE_COMMON_MODIFY_EQ_DELAY,4,4
	.comm	EBUSY,4,4
	.comm	CMD_SUBSYSTEM_COMMON,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
