	.file	"extr_rcom.c_receive_sync_reply.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"reject reply %d from %d seq %llx expect %llx"
	.text
	.p2align 4
	.type	receive_sync_reply, @function
receive_sync_reply:
.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
	lea	r13, 8[rdi]
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	mov	rdi, r13
	lea	r14, 16[rbp]
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	spin_lock@PLT
	mov	edi, DWORD PTR LSFL_RCOM_WAIT[rip]
	mov	rsi, r14
	call	test_bit@PLT
	mov	r8, QWORD PTR [r12]
	mov	r9, QWORD PTR 0[rbp]
	test	eax, eax
	je	.L3
	cmp	r8, r9
	je	.L4
.L3:
	mov	ecx, DWORD PTR 12[r12]
	mov	edx, DWORD PTR 16[r12]
	lea	rsi, .LC0[rip]
	mov	rdi, rbp
	call	log_debug@PLT
.L5:
	add	rsp, 8
	.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	spin_unlock@PLT
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	mov	edx, DWORD PTR 8[r12]
	mov	edi, DWORD PTR 20[rbp]
	mov	rsi, r12
	call	memcpy@PLT
	mov	edi, DWORD PTR LSFL_RCOM_READY[rip]
	mov	rsi, r14
	call	set_bit@PLT
	mov	edi, DWORD PTR LSFL_RCOM_WAIT[rip]
	mov	rsi, r14
	call	clear_bit@PLT
	lea	rdi, 12[rbp]
	call	wake_up@PLT
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	receive_sync_reply, .-receive_sync_reply
	.comm	LSFL_RCOM_WAIT,4,4
	.comm	LSFL_RCOM_READY,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_rcom.c_receive_sync_reply.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"reject reply %d from %d seq %llx expect %llx\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	receive_sync_reply, %function
receive_sync_reply:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	mov	r4, r0
	ldr	r9, .L8
	add	r8, r0, #4
	sub	sp, sp, #20
	mov	r0, r8
	add	r7, r4, #12
	mov	r5, r1
	bl	spin_lock
	mov	r1, r7
	ldr	r0, [r9]
	bl	test_bit
	cmp	r0, #0
	ldr	r2, [r5]
	ldr	r6, [r4]
	beq	.L3
	cmp	r2, r6
	beq	.L4
.L3:
.L5:
	asr	r3, r2, #31
	asr	r7, r6, #31
	str	r6, [sp, #8]
	str	r7, [sp, #12]
	stm	sp, {r2-r3}
	mov	r0, r4
	ldr	r3, [r5, #8]
	ldr	r2, [r5, #12]
	ldr	r1, .L8+4
	bl	log_debug
	mov	r0, r8
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, lr}
	b	spin_unlock
.L4:
	ldr	r2, [r5, #4]
	mov	r1, r5
	ldr	r0, [r4, #16]
	bl	memcpy
	ldr	r3, .L8+8
	mov	r1, r7
	ldr	r0, [r3]
	bl	set_bit
	mov	r1, r7
	ldr	r0, [r9]
	bl	clear_bit
	add	r0, r4, #8
	bl	wake_up
	mov	r0, r8
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, lr}
	b	spin_unlock
.L9:
	.align	2
.L8:
	.word	LSFL_RCOM_WAIT
	.word	.LC0
	.word	LSFL_RCOM_READY
	.size	receive_sync_reply, .-receive_sync_reply
	.comm	LSFL_RCOM_WAIT,4,4
	.comm	LSFL_RCOM_READY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
