	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnxt_hwrm_vnic_set_rss
_bnxt_hwrm_vnic_set_rss:                ## @bnxt_hwrm_vnic_set_rss
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	24(%rdi), %r13
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -80(%rbp)
	movaps	%xmm0, -96(%rbp)
	movq	$0, -64(%rbp)
	movq	_BNXT_FLAG_CHIP_P5@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%eax, %eax
	testl	%ecx, (%rdi)
	jne	LBB0_11
## %bb.1:
	movl	%edx, %r14d
	leaq	(%rsi,%rsi,4), %r15
	movq	(%r13,%r15,8), %rcx
	movq	(%rcx), %rcx
	movq	_INVALID_HW_RING_ID@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_11
## %bb.2:
	movq	%rdi, %rbx
	leaq	(,%r15,8), %r12
	addq	%r13, %r12
	movq	_HWRM_VNIC_RSS_CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-96(%rbp), %rsi
	movl	$-1, %ecx
	movl	$-1, %r8d
	callq	_bnxt_hwrm_cmd_hdr_init
	testl	%r14d, %r14d
	je	LBB0_10
## %bb.3:
	movl	16(%rbx), %edi
	callq	_cpu_to_le32
	movl	%eax, -68(%rbp)
	movq	_VNIC_RSS_CFG_REQ_HASH_MODE_FLAGS_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -72(%rbp)
	movq	_BNXT_VNIC_RSS_FLAG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	testl	%eax, 8(%r13,%r15,8)
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movq	%r12, -112(%rbp)                ## 8-byte Spill
	movq	%rbx, -104(%rbp)                ## 8-byte Spill
	je	LBB0_4
## %bb.5:
	movq	%rbx, %rdi
	callq	_BNXT_CHIP_TYPE_NITRO_A0
	movq	8(%rbx), %rbx
	cmpq	$1, %rax
	adcq	$-1, %rbx
	jmp	LBB0_6
LBB0_4:
	movl	$1, %ebx
LBB0_6:
	movq	_HW_HASH_INDEX_SIZE@GOTPCREL(%rip), %r13
	cmpq	$0, (%r13)
	je	LBB0_9
## %bb.7:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rax,%rcx,8), %r12
	addq	$16, %r12
	xorl	%eax, %eax
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rbx, %rax
	movl	$0, %r14d
	cmovneq	%rax, %r14
	movq	(%r12), %rax
	movq	(%rax,%r14,8), %rdi
	callq	_cpu_to_le16
	movq	16(%r12), %rcx
	movq	%rax, (%rcx,%r15,8)
	incq	%r15
	incq	%r14
	movq	%r14, %rax
	cmpq	(%r13), %r15
	jb	LBB0_8
LBB0_9:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movl	28(%r14,%rbx,8), %edi
	callq	_cpu_to_le64
	movq	%rax, -80(%rbp)
	movl	24(%r14,%rbx,8), %edi
	callq	_cpu_to_le64
	movq	%rax, -88(%rbp)
	movq	-112(%rbp), %r12                ## 8-byte Reload
	movq	-104(%rbp), %rbx                ## 8-byte Reload
LBB0_10:
	movq	(%r12), %rax
	movq	(%rax), %rdi
	callq	_cpu_to_le16
	movq	%rax, -96(%rbp)
	movq	_HWRM_CMD_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-96(%rbp), %rsi
	movq	%rbx, %rdi
	movl	$40, %edx
	callq	_hwrm_send_message
LBB0_11:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BNXT_FLAG_CHIP_P5,4,2          ## @BNXT_FLAG_CHIP_P5
	.comm	_INVALID_HW_RING_ID,8,3         ## @INVALID_HW_RING_ID
	.comm	_HWRM_VNIC_RSS_CFG,4,2          ## @HWRM_VNIC_RSS_CFG
	.comm	_VNIC_RSS_CFG_REQ_HASH_MODE_FLAGS_DEFAULT,4,2 ## @VNIC_RSS_CFG_REQ_HASH_MODE_FLAGS_DEFAULT
	.comm	_BNXT_VNIC_RSS_FLAG,4,2         ## @BNXT_VNIC_RSS_FLAG
	.comm	_HW_HASH_INDEX_SIZE,8,3         ## @HW_HASH_INDEX_SIZE
	.comm	_HWRM_CMD_TIMEOUT,4,2           ## @HWRM_CMD_TIMEOUT
	.no_dead_strip	_bnxt_hwrm_vnic_set_rss
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnxt_hwrm_vnic_set_rss
_bnxt_hwrm_vnic_set_rss:                ; @bnxt_hwrm_vnic_set_rss
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	ldr	x23, [x0, #24]
	str	xzr, [sp, #32]
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [sp]
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _BNXT_FLAG_CHIP_P5@GOTPAGE
Lloh1:
	ldr	x9, [x9, _BNXT_FLAG_CHIP_P5@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_2
; %bb.1:
	mov	x20, x1
	mov	w8, #40
	madd	x22, x1, x8, x23
	ldr	x8, [x22]
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _INVALID_HW_RING_ID@GOTPAGE
Lloh4:
	ldr	x9, [x9, _INVALID_HW_RING_ID@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
LBB0_2:
	mov	w0, #0
LBB0_3:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_4:
	mov	x21, x2
	mov	x19, x0
Lloh6:
	adrp	x8, _HWRM_VNIC_RSS_CFG@GOTPAGE
Lloh7:
	ldr	x8, [x8, _HWRM_VNIC_RSS_CFG@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x1, sp
	mov	w3, #-1
	mov	w4, #-1
	bl	_bnxt_hwrm_cmd_hdr_init
	cbz	w21, LBB0_12
; %bb.5:
	ldr	w0, [x19, #16]
	bl	_cpu_to_le32
Lloh9:
	adrp	x8, _VNIC_RSS_CFG_REQ_HASH_MODE_FLAGS_DEFAULT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _VNIC_RSS_CFG_REQ_HASH_MODE_FLAGS_DEFAULT@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	stp	w8, w0, [sp, #24]
	mov	w8, #40
	madd	x8, x20, x8, x23
	ldr	w8, [x8, #8]
Lloh12:
	adrp	x9, _BNXT_VNIC_RSS_FLAG@GOTPAGE
Lloh13:
	ldr	x9, [x9, _BNXT_VNIC_RSS_FLAG@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.6:
	mov	x0, x19
	bl	_BNXT_CHIP_TYPE_NITRO_A0
	cmp	x0, #0
	cset	w8, ne
	ldr	x9, [x19, #8]
	sub	x21, x9, x8
	b	LBB0_8
LBB0_7:
	mov	w21, #1
LBB0_8:
Lloh15:
	adrp	x24, _HW_HASH_INDEX_SIZE@GOTPAGE
Lloh16:
	ldr	x24, [x24, _HW_HASH_INDEX_SIZE@GOTPAGEOFF]
	ldr	x8, [x24]
	cbz	x8, LBB0_11
; %bb.9:
	mov	x8, #0
	mov	x25, #0
	mov	w9, #40
	madd	x9, x20, x9, x23
	add	x26, x9, #16
	add	x27, x9, #32
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	cmp	x8, x21
	csel	x28, xzr, x8, eq
	ldr	x8, [x26]
	ldr	x0, [x8, x28, lsl #3]
	bl	_cpu_to_le16
	ldr	x8, [x27]
	str	x0, [x8, x25, lsl #3]
	add	x25, x25, #1
	add	x8, x28, #1
	ldr	x9, [x24]
	cmp	x25, x9
	b.lo	LBB0_10
LBB0_11:
	mov	w8, #40
	madd	x20, x20, x8, x23
	ldr	w0, [x20, #28]
	bl	_cpu_to_le64
	str	x0, [sp, #16]
	ldr	w0, [x20, #24]
	bl	_cpu_to_le64
	str	x0, [sp, #8]
LBB0_12:
	ldr	x8, [x22]
	ldr	x0, [x8]
	bl	_cpu_to_le16
	str	x0, [sp]
Lloh17:
	adrp	x8, _HWRM_CMD_TIMEOUT@GOTPAGE
Lloh18:
	ldr	x8, [x8, _HWRM_CMD_TIMEOUT@GOTPAGEOFF]
Lloh19:
	ldr	w3, [x8]
	mov	x1, sp
	mov	x0, x19
	mov	w2, #40
	bl	_hwrm_send_message
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_BNXT_FLAG_CHIP_P5,4,2          ; @BNXT_FLAG_CHIP_P5
	.comm	_INVALID_HW_RING_ID,8,3         ; @INVALID_HW_RING_ID
	.comm	_HWRM_VNIC_RSS_CFG,4,2          ; @HWRM_VNIC_RSS_CFG
	.comm	_VNIC_RSS_CFG_REQ_HASH_MODE_FLAGS_DEFAULT,4,2 ; @VNIC_RSS_CFG_REQ_HASH_MODE_FLAGS_DEFAULT
	.comm	_BNXT_VNIC_RSS_FLAG,4,2         ; @BNXT_VNIC_RSS_FLAG
	.comm	_HW_HASH_INDEX_SIZE,8,3         ; @HW_HASH_INDEX_SIZE
	.comm	_HWRM_CMD_TIMEOUT,4,2           ; @HWRM_CMD_TIMEOUT
	.no_dead_strip	_bnxt_hwrm_vnic_set_rss
.subsections_via_symbols
