	.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_p5
_bnxt_hwrm_vnic_set_rss_p5:             ## @bnxt_hwrm_vnic_set_rss_p5
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r13d
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	24(%rdi), %r15
	movq	(%rdi), %rax
	movq	%rax, -128(%rbp)                ## 8-byte Spill
	movq	8(%rdi), %rbx
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -64(%rbp)
	movaps	%xmm0, -80(%rbp)
	movaps	%xmm0, -96(%rbp)
	movq	$0, -48(%rbp)
	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
	shlq	$5, %r12
	movq	(%r15,%r12), %rdi
	callq	_cpu_to_le16
	movq	%rax, -56(%rbp)
	testl	%r13d, %r13d
	je	LBB0_11
## %bb.1:
	movl	16(%r14), %edi
	callq	_cpu_to_le32
	movl	%eax, -60(%rbp)
	movq	_VNIC_RSS_CFG_REQ_HASH_MODE_FLAGS_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -64(%rbp)
	movl	28(%r15,%r12), %edi
	callq	_cpu_to_le64
	movq	%rax, -72(%rbp)
	movl	24(%r15,%r12), %edi
	callq	_cpu_to_le64
	movq	%rax, -80(%rbp)
	movq	(%r14), %rdi
	movl	$64, %esi
	callq	_DIV_ROUND_UP
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_12
## %bb.2:
	leaq	(%r15,%r12), %rax
	addq	$16, %rax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	xorl	%ecx, %ecx
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
	movq	-104(%rbp), %rax                ## 8-byte Reload
	movq	(%rax), %r15
	movq	%rcx, -96(%rbp)
	movq	-8(%rax), %rax
	movq	%rcx, -120(%rbp)                ## 8-byte Spill
	movq	(%rax,%rcx,8), %rdi
	callq	_cpu_to_le16
	movq	%rax, -88(%rbp)
	xorl	%r13d, %r13d
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_6 Depth=2
	movq	8(%r14), %rbx
	xorl	%r12d, %r12d
LBB0_5:                                 ##   in Loop: Header=BB0_6 Depth=2
	incq	%r13
	cmpq	$64, %r13
	je	LBB0_8
LBB0_6:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%rbx), %rdi
	callq	_cpu_to_le16
	movl	%eax, (%r15,%r13,8)
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_bnxt_cp_ring_for_rx
	movq	%rax, %rdi
	callq	_cpu_to_le16
	movl	%eax, 4(%r15,%r13,8)
	incq	%r12
	cmpq	-128(%rbp), %r12                ## 8-byte Folded Reload
	je	LBB0_4
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=2
	addq	$8, %rbx
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	_HWRM_CMD_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	leaq	-96(%rbp), %rsi
	movl	$56, %edx
	callq	_hwrm_send_message
	testl	%eax, %eax
	jne	LBB0_13
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-120(%rbp), %rcx                ## 8-byte Reload
	incq	%rcx
	cmpq	-112(%rbp), %rcx                ## 8-byte Folded Reload
	jne	LBB0_3
	jmp	LBB0_12
LBB0_11:
	movq	_HWRM_CMD_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-96(%rbp), %rsi
	movq	%r14, %rdi
	movl	$56, %edx
	callq	_hwrm_send_message
LBB0_12:
	xorl	%eax, %eax
LBB0_13:
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HWRM_VNIC_RSS_CFG,4,2          ## @HWRM_VNIC_RSS_CFG
	.comm	_HWRM_CMD_TIMEOUT,4,2           ## @HWRM_CMD_TIMEOUT
	.comm	_VNIC_RSS_CFG_REQ_HASH_MODE_FLAGS_DEFAULT,4,2 ## @VNIC_RSS_CFG_REQ_HASH_MODE_FLAGS_DEFAULT
	.no_dead_strip	_bnxt_hwrm_vnic_set_rss_p5
.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_p5
_bnxt_hwrm_vnic_set_rss_p5:             ; @bnxt_hwrm_vnic_set_rss_p5
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x28, x27, [sp, #80]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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
	mov	x22, x2
	mov	x21, x1
	mov	x19, x0
	ldr	x24, [x0, #24]
	ldp	x23, x25, [x0]
	str	xzr, [sp, #64]
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [sp, #32]
	str	q0, [sp, #16]
Lloh0:
	adrp	x8, _HWRM_VNIC_RSS_CFG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HWRM_VNIC_RSS_CFG@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	add	x1, sp, #16
	mov	w3, #-1
	mov	w4, #-1
	bl	_bnxt_hwrm_cmd_hdr_init
	lsl	x8, x21, #5
	ldr	x0, [x24, x8]
	bl	_cpu_to_le16
	str	x0, [sp, #56]
	cbz	w22, LBB0_10
; %bb.1:
	ldr	w0, [x19, #16]
	bl	_cpu_to_le32
Lloh3:
	adrp	x8, _VNIC_RSS_CFG_REQ_HASH_MODE_FLAGS_DEFAULT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VNIC_RSS_CFG_REQ_HASH_MODE_FLAGS_DEFAULT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	stp	w8, w0, [sp, #48]
	add	x20, x24, x21, lsl #5
	ldr	w0, [x20, #28]
	bl	_cpu_to_le64
	str	x0, [sp, #40]
	ldr	w0, [x20, #24]
	bl	_cpu_to_le64
	str	x0, [sp, #32]
	ldr	x0, [x19]
	mov	w1, #64
	bl	_DIV_ROUND_UP
	cbz	x0, LBB0_12
; %bb.2:
	mov	x21, x0
	mov	x22, #0
	mov	x24, #0
	add	x9, x20, #16
	add	x8, x20, #8
	stp	x8, x9, [sp]                    ; 16-byte Folded Spill
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	ldr	x28, [x8]
	str	x22, [sp, #16]
	ldr	x8, [sp]                        ; 8-byte Folded Reload
	ldr	x8, [x8]
	ldr	x0, [x8, x22, lsl #3]
	bl	_cpu_to_le16
	mov	x27, #0
	str	x0, [sp, #24]
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=2
	mov	x24, #0
	ldr	x25, [x19, #8]
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=2
	add	x27, x27, #8
	cmp	x27, #512
	b.eq	LBB0_8
LBB0_6:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x26, x28, x27
	mov	x20, x25
	ldr	x0, [x20], #8
	bl	_cpu_to_le16
	str	w0, [x26]
	mov	x0, x19
	mov	x1, x25
	bl	_bnxt_cp_ring_for_rx
	bl	_cpu_to_le16
	str	w0, [x26, #4]
	add	x24, x24, #1
	cmp	x24, x23
	b.eq	LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=2
	mov	x25, x20
	b	LBB0_5
LBB0_8:                                 ;   in Loop: Header=BB0_3 Depth=1
Lloh6:
	adrp	x8, _HWRM_CMD_TIMEOUT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _HWRM_CMD_TIMEOUT@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
	add	x1, sp, #16
	mov	x0, x19
	mov	w2, #56
	bl	_hwrm_send_message
	cbnz	w0, LBB0_12
; %bb.9:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x22, x22, #1
	cmp	x22, x21
	b.ne	LBB0_3
	b	LBB0_11
LBB0_10:
Lloh9:
	adrp	x8, _HWRM_CMD_TIMEOUT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _HWRM_CMD_TIMEOUT@GOTPAGEOFF]
Lloh11:
	ldr	w3, [x8]
	add	x1, sp, #16
	mov	x0, x19
	mov	w2, #56
	bl	_hwrm_send_message
LBB0_11:
	mov	w0, #0
LBB0_12:
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_HWRM_VNIC_RSS_CFG,4,2          ; @HWRM_VNIC_RSS_CFG
	.comm	_HWRM_CMD_TIMEOUT,4,2           ; @HWRM_CMD_TIMEOUT
	.comm	_VNIC_RSS_CFG_REQ_HASH_MODE_FLAGS_DEFAULT,4,2 ; @VNIC_RSS_CFG_REQ_HASH_MODE_FLAGS_DEFAULT
	.no_dead_strip	_bnxt_hwrm_vnic_set_rss_p5
.subsections_via_symbols
