	.file	"extr_nic_main.c_nic_link_status_get.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	nic_link_status_get, @function
nic_link_status_get:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	pxor	xmm0, xmm0
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	sub	rsp, 48
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	mov	eax, DWORD PTR NIC_MBOX_MSG_BGX_LINK_CHANGE[rip]
	movaps	XMMWORD PTR 16[rsp], xmm0
	mov	DWORD PTR 32[rsp], eax
	mov	rax, QWORD PTR 8[rdi]
	mov	edi, DWORD PTR [rax+rsi*4]
	call	NIC_GET_BGX_FROM_VF_LMAC_MAP@PLT
	mov	r13, rax
	mov	rax, QWORD PTR 8[rbp]
	mov	edi, DWORD PTR [rax+r12*4]
	call	NIC_GET_LMAC_FROM_VF_LMAC_MAP@PLT
	mov	edi, DWORD PTR 0[rbp]
	mov	rcx, rsp
	mov	rsi, r13
	mov	rdx, rax
	call	bgx_get_lmac_link_state@PLT
	mov	rax, QWORD PTR [rsp]
	mov	rsi, r12
	mov	rdi, rbp
	lea	rdx, 16[rsp]
	mov	QWORD PTR 16[rsp], rax
	mov	rax, QWORD PTR 8[rsp]
	mov	QWORD PTR 24[rsp], rax
	call	nic_send_msg_to_vf@PLT
	mov	rax, QWORD PTR 40[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L5
	add	rsp, 48
	.cfi_remember_state
	.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
.L5:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	nic_link_status_get, .-nic_link_status_get
	.comm	NIC_MBOX_MSG_BGX_LINK_CHANGE,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_nic_main.c_nic_link_status_get.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	nic_link_status_get, %function
nic_link_status_get:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r3, #0
	push	{r4, r5, r6, lr}
	mov	r5, r1
	ldr	r1, .L6
	sub	sp, sp, #40
	ldr	r1, [r1]
	ldr	r2, [r0, #4]
	str	r1, [sp, #32]
	mov	r4, r0
	str	r3, [sp, #16]
	str	r3, [sp, #20]
	str	r3, [sp, #24]
	str	r3, [sp, #28]
	ldr	r3, .L6+4
	ldr	r0, [r2, r5, lsl #2]
	ldr	r3, [r3]
	str	r3, [sp, #36]
	mov	r3,#0
	bl	NIC_GET_BGX_FROM_VF_LMAC_MAP
	ldr	r3, [r4, #4]
	mov	r6, r0
	ldr	r0, [r3, r5, lsl #2]
	bl	NIC_GET_LMAC_FROM_VF_LMAC_MAP
	mov	r1, r6
	mov	r2, r0
	mov	r3, sp
	ldr	r0, [r4]
	bl	bgx_get_lmac_link_state
	ldm	sp, {r3, ip, lr}
	ldr	r6, [sp, #12]
	add	r2, sp, #16
	mov	r1, r5
	mov	r0, r4
	str	r3, [sp, #16]
	str	r6, [sp, #28]
	str	lr, [sp, #24]
	str	ip, [sp, #20]
	bl	nic_send_msg_to_vf
	ldr	r3, .L6+4
	ldr	r2, [r3]
	ldr	r3, [sp, #36]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L5
	add	sp, sp, #40
	@ sp needed
	pop	{r4, r5, r6, pc}
.L5:
	bl	__stack_chk_fail
.L7:
	.align	2
.L6:
	.word	NIC_MBOX_MSG_BGX_LINK_CHANGE
	.word	.LC0
	.size	nic_link_status_get, .-nic_link_status_get
	.comm	NIC_MBOX_MSG_BGX_LINK_CHANGE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
