	.file	"extr_bnxt.c_bnxt_hwrm_vnic_set_rss_p5.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	bnxt_hwrm_vnic_set_rss_p5, @function
bnxt_hwrm_vnic_set_rss_p5:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	sal	rsi, 5
	pxor	xmm0, xmm0
	mov	r8d, -1
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	ecx, -1
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	ebx, edx
	sub	rsp, 104
	.cfi_def_cfa_offset 160
	add	rsi, QWORD PTR 24[rdi]
	mov	edx, DWORD PTR HWRM_VNIC_RSS_CFG[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 88[rsp], rax
	xor	eax, eax
	mov	r15, rsi
	mov	QWORD PTR 8[rsp], rsi
	lea	rsi, 32[rsp]
	mov	r12, QWORD PTR [rdi]
	mov	r14, QWORD PTR 8[rdi]
	mov	QWORD PTR 16[rsp], rsi
	movaps	XMMWORD PTR 32[rsp], xmm0
	movaps	XMMWORD PTR 48[rsp], xmm0
	movaps	XMMWORD PTR 64[rsp], xmm0
	mov	QWORD PTR 80[rsp], 0
	call	bnxt_hwrm_cmd_hdr_init@PLT
	mov	rdi, QWORD PTR [r15]
	call	cpu_to_le16@PLT
	mov	QWORD PTR 72[rsp], rax
	test	ebx, ebx
	je	.L17
	mov	edi, DWORD PTR 16[rbp]
	call	cpu_to_le32@PLT
	mov	rbx, QWORD PTR 8[rsp]
	mov	DWORD PTR 68[rsp], eax
	mov	eax, DWORD PTR VNIC_RSS_CFG_REQ_HASH_MODE_FLAGS_DEFAULT[rip]
	mov	edi, DWORD PTR 28[rbx]
	mov	DWORD PTR 64[rsp], eax
	call	cpu_to_le64@PLT
	mov	edi, DWORD PTR 24[rbx]
	mov	QWORD PTR 56[rsp], rax
	call	cpu_to_le64@PLT
	mov	rdi, QWORD PTR 0[rbp]
	mov	esi, 64
	mov	QWORD PTR 48[rsp], rax
	call	DIV_ROUND_UP@PLT
	mov	QWORD PTR 24[rsp], rax
	test	rax, rax
	je	.L4
	mov	QWORD PTR [rsp], 0
	xor	r15d, r15d
	.p2align 4,,10
	.p2align 3
.L8:
	mov	rax, QWORD PTR 8[rsp]
	mov	rcx, QWORD PTR [rsp]
	mov	r13, QWORD PTR 16[rax]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR 32[rsp], rcx
	mov	rdi, QWORD PTR [rax+rcx*8]
	lea	rbx, 512[r13]
	call	cpu_to_le16@PLT
	mov	QWORD PTR 40[rsp], rax
	.p2align 4,,10
	.p2align 3
.L7:
	mov	rdi, QWORD PTR [r14]
	add	r13, 8
	add	r15, 1
	call	cpu_to_le16@PLT
	mov	rsi, r14
	mov	rdi, rbp
	add	r14, 8
	mov	DWORD PTR -8[r13], eax
	call	bnxt_cp_ring_for_rx@PLT
	mov	rdi, rax
	call	cpu_to_le16@PLT
	mov	DWORD PTR -4[r13], eax
	cmp	r12, r15
	jne	.L6
	mov	r14, QWORD PTR 8[rbp]
	xor	r15d, r15d
.L6:
	cmp	rbx, r13
	jne	.L7
	mov	ecx, DWORD PTR HWRM_CMD_TIMEOUT[rip]
	mov	rsi, QWORD PTR 16[rsp]
	mov	edx, 56
	mov	rdi, rbp
	call	hwrm_send_message@PLT
	test	eax, eax
	jne	.L1
	add	QWORD PTR [rsp], 1
	mov	rax, QWORD PTR [rsp]
	cmp	QWORD PTR 24[rsp], rax
	jne	.L8
.L4:
	xor	eax, eax
.L1:
	mov	rdx, QWORD PTR 88[rsp]
	xor	rdx, QWORD PTR fs:40
	jne	.L18
	add	rsp, 104
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
.L17:
	.cfi_restore_state
	mov	ecx, DWORD PTR HWRM_CMD_TIMEOUT[rip]
	mov	rsi, QWORD PTR 16[rsp]
	mov	edx, 56
	mov	rdi, rbp
	call	hwrm_send_message@PLT
	xor	eax, eax
	jmp	.L1
.L18:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	bnxt_hwrm_vnic_set_rss_p5, .-bnxt_hwrm_vnic_set_rss_p5
	.comm	VNIC_RSS_CFG_REQ_HASH_MODE_FLAGS_DEFAULT,4,4
	.comm	HWRM_VNIC_RSS_CFG,4,4
	.comm	HWRM_CMD_TIMEOUT,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_bnxt.c_bnxt_hwrm_vnic_set_rss_p5.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	bnxt_hwrm_vnic_set_rss_p5, %function
bnxt_hwrm_vnic_set_rss_p5:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r6, r0
	sub	sp, sp, #60
	ldr	r7, [r0, #12]
	ldr	ip, .L19
	add	r3, r1, r1, lsl #2
	mov	r5, r2
	mov	r1, #0
	mov	r2, #32
	add	r0, sp, #20
	ldr	ip, [ip]
	str	ip, [sp, #52]
	mov	ip,#0
	lsl	r9, r3, #2
	add	r10, r7, r3, lsl #2
	ldr	r8, [r6]
	ldr	r4, [r6, #4]
	bl	memset
	mvn	r3, #0
	ldr	r2, .L19+4
	str	r3, [sp]
	ldr	r2, [r2]
	add	r1, sp, #20
	mov	r0, r6
	bl	bnxt_hwrm_cmd_hdr_init
	ldr	r0, [r7, r9]
	bl	cpu_to_le16
	cmp	r5, #0
	str	r0, [sp, #44]
	beq	.L17
	ldr	r0, [r6, #8]
	bl	cpu_to_le32
	ldr	r3, .L19+8
	str	r0, [sp, #40]
	ldr	r3, [r3]
	ldr	r0, [r10, #16]
	str	r3, [sp, #36]
	bl	cpu_to_le64
	mov	r3, r0
	ldr	r0, [r10, #12]
	str	r3, [sp, #32]
	bl	cpu_to_le64
	mov	r3, r0
	mov	r1, #64
	ldr	r0, [r6]
	str	r3, [sp, #28]
	bl	DIV_ROUND_UP
	subs	r3, r0, #0
	str	r3, [sp, #12]
	beq	.L4
	mov	r5, #0
	mov	r9, r5
.L8:
	ldr	r3, [r10, #4]
	str	r9, [sp, #20]
	ldr	r0, [r3, r9, lsl #2]
	ldr	r7, [r10, #8]
	bl	cpu_to_le16
	add	fp, r7, #8
	str	r0, [sp, #24]
	add	r7, r7, #520
.L7:
	ldr	r0, [r4]
	bl	cpu_to_le16
	mov	r1, r4
	str	r0, [fp, #-8]
	mov	r0, r6
	bl	bnxt_cp_ring_for_rx
	bl	cpu_to_le16
	add	r5, r5, #1
	cmp	r8, r5
	str	r0, [fp, #-4]
	add	fp, fp, #8
	moveq	r5, #0
	ldreq	r4, [r6, #4]
	addne	r4, r4, #4
	cmp	fp, r7
	bne	.L7
	ldr	r3, .L19+12
	mov	r2, #32
	mov	r0, r6
	ldr	r3, [r3]
	add	r1, sp, #20
	bl	hwrm_send_message
	cmp	r0, #0
	bne	.L1
	ldr	r3, [sp, #12]
	add	r9, r9, #1
	cmp	r3, r9
	bne	.L8
.L4:
	mov	r0, #0
.L1:
	ldr	r3, .L19
	ldr	r2, [r3]
	ldr	r3, [sp, #52]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L18
	add	sp, sp, #60
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L17:
	ldr	r3, .L19+12
	mov	r0, r6
	mov	r2, #32
	ldr	r3, [r3]
	add	r1, sp, #20
	bl	hwrm_send_message
	mov	r0, r5
	b	.L1
.L18:
	bl	__stack_chk_fail
.L20:
	.align	2
.L19:
	.word	.LC0
	.word	HWRM_VNIC_RSS_CFG
	.word	VNIC_RSS_CFG_REQ_HASH_MODE_FLAGS_DEFAULT
	.word	HWRM_CMD_TIMEOUT
	.size	bnxt_hwrm_vnic_set_rss_p5, .-bnxt_hwrm_vnic_set_rss_p5
	.comm	VNIC_RSS_CFG_REQ_HASH_MODE_FLAGS_DEFAULT,4,4
	.comm	HWRM_VNIC_RSS_CFG,4,4
	.comm	HWRM_CMD_TIMEOUT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
