	.file	"extr_fm10k_mbx.c_fm10k_mbx_process_disconnect.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	fm10k_mbx_process_disconnect, @function
fm10k_mbx_process_disconnect:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	ebx, DWORD PTR [rsi]
	mov	edi, DWORD PTR 24[rsi]
	mov	esi, DWORD PTR HEAD[rip]
	call	FM10K_MSG_HDR_FIELD_GET@PLT
	cmp	QWORD PTR 16[rbp], 0
	je	.L2
	mov	rax, QWORD PTR FM10K_MBX_ERR_TAIL[rip]
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	QWORD PTR 8[rbp], 0
	mov	rdi, rbp
	mov	r12d, eax
	call	fm10k_mbx_verify_remote_crc@PLT
	test	rax, rax
	jne	.L1
	add	ebx, -128
	cmp	ebx, 1
	jbe	.L13
.L5:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	edx, r12d
	mov	rsi, rbp
	mov	rdi, r13
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	fm10k_mbx_create_reply@PLT
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	mov	rdi, rbp
	call	fm10k_mbx_tx_complete@PLT
	test	eax, eax
	je	.L5
	mov	rax, QWORD PTR FM10K_MBX_ERR_HEAD[rip]
	cmp	DWORD PTR 4[rbp], r12d
	jne	.L1
	mov	rdi, rbp
	call	fm10k_mbx_connect_reset@PLT
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	fm10k_mbx_process_disconnect, .-fm10k_mbx_process_disconnect
	.comm	HEAD,4,4
	.comm	FM10K_MBX_ERR_TAIL,8,8
	.comm	FM10K_MBX_ERR_HEAD,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_fm10k_mbx.c_fm10k_mbx_process_disconnect.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	fm10k_mbx_process_disconnect, %function
fm10k_mbx_process_disconnect:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r1
	ldr	r2, .L14
	mov	r6, r0
	ldr	r0, [r1, #16]
	ldr	r1, [r2]
	ldr	r7, [r4]
	bl	FM10K_MSG_HDR_FIELD_GET
	ldr	r3, [r4, #12]
	cmp	r3, #0
	beq	.L2
	ldr	r3, .L14+4
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	mov	r5, r0
	str	r3, [r4, #8]
	mov	r0, r4
	bl	fm10k_mbx_verify_remote_crc
	cmp	r0, #0
	popne	{r4, r5, r6, r7, r8, pc}
	sub	r7, r7, #128
	cmp	r7, #1
	bls	.L13
.L5:
	mov	r2, r5
	mov	r1, r4
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, lr}
	b	fm10k_mbx_create_reply
.L13:
	mov	r0, r4
	bl	fm10k_mbx_tx_complete
	cmp	r0, #0
	beq	.L5
	ldr	r3, [r4, #4]
	cmp	r3, r5
	beq	.L7
	ldr	r3, .L14+8
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, pc}
.L7:
	mov	r0, r4
	bl	fm10k_mbx_connect_reset
	b	.L5
.L15:
	.align	2
.L14:
	.word	HEAD
	.word	FM10K_MBX_ERR_TAIL
	.word	FM10K_MBX_ERR_HEAD
	.size	fm10k_mbx_process_disconnect, .-fm10k_mbx_process_disconnect
	.comm	HEAD,4,4
	.comm	FM10K_MBX_ERR_TAIL,4,4
	.comm	FM10K_MBX_ERR_HEAD,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
