	.file	"extr_hinic_hw_dev.c_get_cap_from_fw.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Failed to get capability from FW\n"
	.text
	.p2align 4
	.type	get_cap_from_fw, @function
get_cap_from_fw:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	xor	r8d, r8d
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdi
	sub	rsp, 24
	.cfi_def_cfa_offset 64
	mov	edx, DWORD PTR HINIC_CFG_NIC_CAP[rip]
	mov	esi, DWORD PTR HINIC_MOD_CFGM[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	rax, QWORD PTR 8[rdi]
	mov	rbp, rsp
	mov	rcx, rbp
	mov	r9, rbp
	mov	r13, QWORD PTR [rax]
	mov	eax, DWORD PTR HINIC_MGMT_MSG_SYNC[rip]
	mov	DWORD PTR 4[rsp], 4
	push	rax
	.cfi_def_cfa_offset 72
	lea	rax, 12[rsp]
	push	rax
	.cfi_def_cfa_offset 80
	call	hinic_msg_to_mgmt@PLT
	pop	rdx
	.cfi_def_cfa_offset 72
	pop	rcx
	.cfi_def_cfa_offset 64
	test	eax, eax
	jne	.L7
	lea	rdi, 8[rbx]
	mov	rsi, rbp
	call	get_capability@PLT
	mov	r12d, eax
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L8
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	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
.L7:
	.cfi_restore_state
	lea	rsi, .LC0[rip]
	mov	rdi, r13
	mov	r12d, eax
	call	dev_err@PLT
	jmp	.L1
.L8:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	get_cap_from_fw, .-get_cap_from_fw
	.comm	HINIC_MOD_CFGM,4,4
	.comm	HINIC_MGMT_MSG_SYNC,4,4
	.comm	HINIC_CFG_NIC_CAP,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_hinic_hw_dev.c_get_cap_from_fw.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Failed to get capability from FW\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_cap_from_fw, %function
get_cap_from_fw:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	mov	lr, #0
	mov	ip, #4
	ldr	r3, .L9
	ldr	r4, [r0, #4]
	ldr	r3, [r3]
	ldr	r2, .L9+4
	sub	sp, sp, #36
	ldr	r1, .L9+8
	ldr	r7, [r4]
	ldr	r2, [r2]
	add	r6, sp, #20
	str	r3, [sp, #12]
	str	lr, [sp]
	add	r3, sp, #24
	ldr	lr, .L9+12
	ldr	r1, [r1]
	str	r3, [sp, #8]
	str	r6, [sp, #4]
	mov	r3, r6
	ldr	lr, [lr]
	str	lr, [sp, #28]
	mov	lr,#0
	mov	r5, r0
	str	ip, [sp, #24]
	bl	hinic_msg_to_mgmt
	subs	r4, r0, #0
	bne	.L7
	mov	r1, r6
	add	r0, r5, #4
	bl	get_capability
	mov	r4, r0
.L1:
	ldr	r3, .L9+12
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L8
	mov	r0, r4
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L7:
	mov	r0, r7
	ldr	r1, .L9+16
	bl	dev_err
	b	.L1
.L8:
	bl	__stack_chk_fail
.L10:
	.align	2
.L9:
	.word	HINIC_MGMT_MSG_SYNC
	.word	HINIC_CFG_NIC_CAP
	.word	HINIC_MOD_CFGM
	.word	.LC1
	.word	.LC0
	.size	get_cap_from_fw, .-get_cap_from_fw
	.comm	HINIC_MOD_CFGM,4,4
	.comm	HINIC_MGMT_MSG_SYNC,4,4
	.comm	HINIC_CFG_NIC_CAP,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
