	.file	"extr_sriov.c_sriov_restore_guids.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"modify vport context failed, unable to restore VF %d settings\n"
	.text
	.p2align 4
	.type	sriov_restore_guids, @function
sriov_restore_guids:
.LFB0:
	.cfi_startproc
	endbr64
	movsx	rax, esi
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rax
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	lea	rbx, [rax+rax*2]
	mov	rax, QWORD PTR [rdi]
	sal	rbx, 3
	add	rax, rbx
	cmp	QWORD PTR 16[rax], 0
	jne	.L2
	cmp	QWORD PTR 8[rax], 0
	je	.L13
.L2:
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	mov	edi, 32
	call	kzalloc@PLT
	mov	r14d, DWORD PTR ENOMEM[rip]
	mov	rbp, rax
	neg	r14d
	test	rax, rax
	je	.L1
	add	rbx, QWORD PTR [r12]
	mov	r8, rbp
	mov	esi, 1
	mov	rdi, r12
	mov	rdx, QWORD PTR 16[rbx]
	mov	rcx, QWORD PTR [rbx]
	mov	QWORD PTR 16[rax], rdx
	mov	rax, QWORD PTR 8[rbx]
	mov	QWORD PTR 0[rbp], rcx
	test	rax, rax
	mov	QWORD PTR 24[rbp], rax
	setne	al
	movzx	eax, al
	imul	eax, DWORD PTR MLX5_HCA_VPORT_SEL_PORT_GUID[rip]
	test	rdx, rdx
	setne	dl
	movzx	edx, dl
	imul	edx, DWORD PTR MLX5_HCA_VPORT_SEL_NODE_GUID[rip]
	or	eax, edx
	xor	edx, edx
	test	rcx, rcx
	setne	dl
	imul	edx, DWORD PTR MLX5_HCA_VPORT_SEL_STATE_POLICY[rip]
	lea	ecx, 1[r13]
	or	eax, edx
	mov	edx, 1
	mov	DWORD PTR 8[rbp], eax
	call	mlx5_core_modify_hca_vport_context@PLT
	mov	r14d, eax
	test	eax, eax
	jne	.L14
.L5:
	mov	rdi, rbp
	call	kfree@PLT
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r14d
	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
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	mov	rcx, QWORD PTR MLX5_POLICY_INVALID[rip]
	xor	r14d, r14d
	cmp	QWORD PTR [rax], rcx
	jne	.L2
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r14d
	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
	ret
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	mov	edx, r13d
	lea	rsi, .LC0[rip]
	mov	rdi, r12
	call	mlx5_core_warn@PLT
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	sriov_restore_guids, .-sriov_restore_guids
	.comm	MLX5_POLICY_INVALID,8,8
	.comm	MLX5_HCA_VPORT_SEL_STATE_POLICY,4,4
	.comm	MLX5_HCA_VPORT_SEL_PORT_GUID,4,4
	.comm	MLX5_HCA_VPORT_SEL_NODE_GUID,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,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_sriov.c_sriov_restore_guids.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"modify vport context failed, unable to restore VF %"
	.ascii	"d settings\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	sriov_restore_guids, %function
sriov_restore_guids:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r1
	ldr	r1, [r0]
	add	r3, r5, r5, lsl #1
	add	r2, r1, r3, lsl #2
	mov	r7, r0
	ldr	r0, [r2, #8]
	sub	sp, sp, #8
	cmp	r0, #0
	lsl	r8, r3, #2
	bne	.L2
	ldr	r6, [r2, #4]
	cmp	r6, #0
	beq	.L11
.L2:
	ldr	r3, .L14
	mov	r0, #16
	ldr	r1, [r3]
	bl	kzalloc
	subs	r4, r0, #0
	beq	.L12
	ldr	r1, [r7]
	ldr	r3, .L14+4
	add	r2, r1, r8
	ldr	lr, [r2, #4]
	ldr	r6, [r2, #8]
	ldr	ip, [r1, r8]
	cmp	lr, #0
	ldr	r0, .L14+8
	ldr	r3, [r3]
	ldr	r2, .L14+12
	moveq	r3, #0
	cmp	r6, #0
	ldr	r0, [r0]
	moveq	r0, #0
	cmp	ip, #0
	ldr	r1, [r2]
	moveq	r1, #0
	mov	r2, #1
	orr	r3, r3, r0
	orr	r3, r3, r1
	str	r6, [r4, #8]
	str	r3, [r4, #4]
	str	lr, [r4, #12]
	str	ip, [r4]
	mov	r1, r2
	mov	r0, r7
	str	r4, [sp]
	add	r3, r5, r2
	bl	mlx5_core_modify_hca_vport_context
	subs	r6, r0, #0
	bne	.L13
.L5:
	mov	r0, r4
	bl	kfree
.L1:
	mov	r0, r6
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L11:
	ldr	r3, .L14+16
	ldr	r2, [r1, r8]
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L2
	b	.L1
.L13:
	mov	r2, r5
	mov	r0, r7
	ldr	r1, .L14+20
	bl	mlx5_core_warn
	b	.L5
.L12:
	ldr	r3, .L14+24
	ldr	r6, [r3]
	rsb	r6, r6, #0
	mov	r0, r6
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L15:
	.align	2
.L14:
	.word	GFP_KERNEL
	.word	MLX5_HCA_VPORT_SEL_PORT_GUID
	.word	MLX5_HCA_VPORT_SEL_NODE_GUID
	.word	MLX5_HCA_VPORT_SEL_STATE_POLICY
	.word	MLX5_POLICY_INVALID
	.word	.LC0
	.word	ENOMEM
	.size	sriov_restore_guids, .-sriov_restore_guids
	.comm	MLX5_POLICY_INVALID,4,4
	.comm	MLX5_HCA_VPORT_SEL_STATE_POLICY,4,4
	.comm	MLX5_HCA_VPORT_SEL_PORT_GUID,4,4
	.comm	MLX5_HCA_VPORT_SEL_NODE_GUID,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
