	.file	"extr_hclge_mbx.c_hclge_get_link_mode.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	hclge_get_link_mode, @function
hclge_get_link_mode:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	sub	rsp, 112
	.cfi_def_cfa_offset 144
	mov	rbx, QWORD PTR [rsi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 104[rsp], rax
	xor	eax, eax
	mov	rax, QWORD PTR [rdi]
	lea	rdi, 32[rsp]
	lea	r12, 16[rsp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR 8[rax]
	mov	rcx, QWORD PTR [rdx]
	mov	rdx, QWORD PTR 8[rsi]
	lea	rsi, 8[rsp]
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR 16[rdx]
	cmp	rdx, 1
	mov	QWORD PTR 16[rsp], rdx
	mov	edx, 8
	cmovne	rax, rcx
	mov	QWORD PTR 8[rsp], rax
	call	memcpy@PLT
	mov	r8, rbx
	mov	edx, 80
	mov	rsi, r12
	mov	ecx, DWORD PTR HCLGE_MBX_LINK_STAT_MODE[rip]
	mov	rdi, rbp
	call	hclge_send_mbx_msg@PLT
	mov	rax, QWORD PTR 104[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L8
	add	rsp, 112
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
.L8:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	hclge_get_link_mode, .-hclge_get_link_mode
	.comm	HCLGE_SUPPORTED,8,8
	.comm	HCLGE_MBX_LINK_STAT_MODE,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_hclge_mbx.c_hclge_get_link_mode.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	hclge_get_link_mode, %function
hclge_get_link_mode:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r0]
	push	{r4, r5, lr}
	ldr	lr, [r1, #4]
	ldr	ip, [r3]
	ldr	lr, [lr, #8]
	ldr	r2, [r3, #4]
	ldr	r3, [ip]
	cmp	lr, #1
	ldr	ip, [r2]
	movne	ip, r3
	ldr	r2, [r1]
	sub	sp, sp, #60
	ldr	r3, .L9
	str	r2, [sp]
	ldr	r4, .L9+4
	mov	r2, #40
	ldr	r3, [r3]
	add	r1, sp, #12
	ldr	r4, [r4]
	str	r4, [sp, #52]
	mov	r4,#0
	str	ip, [sp, #20]
	str	lr, [sp, #12]
	bl	hclge_send_mbx_msg
	ldr	r3, .L9+4
	ldr	r2, [r3]
	ldr	r3, [sp, #52]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L8
	add	sp, sp, #60
	@ sp needed
	pop	{r4, r5, pc}
.L8:
	bl	__stack_chk_fail
.L10:
	.align	2
.L9:
	.word	HCLGE_MBX_LINK_STAT_MODE
	.word	.LC0
	.size	hclge_get_link_mode, .-hclge_get_link_mode
	.comm	HCLGE_SUPPORTED,4,4
	.comm	HCLGE_MBX_LINK_STAT_MODE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
