	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rvu_mbox_handler_nix_lf_alloc  ## -- Begin function rvu_mbox_handler_nix_lf_alloc
	.p2align	4, 0x90
_rvu_mbox_handler_nix_lf_alloc:         ## @rvu_mbox_handler_nix_lf_alloc
	.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
	cmpl	$0, (%rsi)
	je	LBB0_22
## %bb.1:
	cmpl	$0, 4(%rsi)
	je	LBB0_22
## %bb.2:
	cmpl	$0, 8(%rsi)
	je	LBB0_22
## %bb.3:
	movq	%rdx, %rbx
	movq	8(%rdi), %r13
	movq	%rdi, %r12
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	48(%rsi), %r14
	movq	%r14, %rsi
	callq	_rvu_get_pfvf
	movq	%rax, %r15
	movq	_BLKTYPE_NIX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, -88(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdx
	callq	_rvu_get_blkaddr
	cmpl	$0, 88(%r15)
	je	LBB0_25
## %bb.4:
	testl	%eax, %eax
	js	LBB0_25
## %bb.5:
	movq	%r15, -80(%rbp)                 ## 8-byte Spill
	movq	%rbx, -96(%rbp)                 ## 8-byte Spill
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	%eax, %r15d
	shlq	$3, %r15
	addq	(%r13), %r15
	movq	-88(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdx
	xorl	%ecx, %ecx
	callq	_rvu_get_lf
	testl	%eax, %eax
	js	LBB0_25
## %bb.6:
	movl	%eax, %r12d
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movslq	12(%rcx), %rsi
	testq	%rsi, %rsi
	je	LBB0_10
## %bb.7:
	movq	_RVU_DEFAULT_PF_FUNC@GOTPCREL(%rip), %rax
	cmpq	%rsi, (%rax)
	jne	LBB0_9
## %bb.8:
	movl	%ebx, 12(%rcx)
	movslq	%ebx, %rsi
LBB0_9:
	movq	_BLKTYPE_NPA@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_is_pffunc_map_valid
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	testl	%eax, %eax
	je	LBB0_27
LBB0_10:
	movq	16(%rcx), %rsi
	testq	%rsi, %rsi
	je	LBB0_14
## %bb.11:
	movq	_RVU_DEFAULT_PF_FUNC@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rsi
	jne	LBB0_13
## %bb.12:
	movq	%rbx, 16(%rcx)
	movq	%rbx, %rsi
LBB0_13:
	movq	_BLKTYPE_SSO@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_is_pffunc_map_valid
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	testl	%eax, %eax
	je	LBB0_28
LBB0_14:
	movl	44(%rcx), %edi
	testl	%edi, %edi
	je	LBB0_20
## %bb.15:
	movq	_MAX_RSS_INDIR_TBL_SIZE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %edi
	jg	LBB0_26
## %bb.16:
	callq	_is_power_of_2
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	testl	%eax, %eax
	je	LBB0_26
## %bb.17:
	cmpl	$0, 44(%rcx)
	je	LBB0_20
## %bb.18:
	movl	40(%rcx), %eax
	testl	%eax, %eax
	je	LBB0_42
## %bb.19:
	movq	_MAX_RSS_GROUPS@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jg	LBB0_42
LBB0_20:
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	%r12d, %edx
	callq	_rvu_lf_reset
	testl	%eax, %eax
	je	LBB0_29
## %bb.21:
	movl	(%r14), %edi
	movq	(%r15), %rdx
	movq	_BLKADDR_NIX0@GOTPCREL(%rip), %rax
	subq	(%rax), %rdx
	leaq	L_.str(%rip), %rsi
	movl	%r12d, %ecx
	callq	_dev_err
	movq	_NIX_AF_ERR_LF_RESET@GOTPCREL(%rip), %rax
	jmp	LBB0_23
LBB0_22:
	movq	_NIX_AF_ERR_PARAM@GOTPCREL(%rip), %rax
LBB0_23:
	movl	(%rax), %ebx
LBB0_24:
	movl	%ebx, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_25:
	movq	_NIX_AF_ERR_AF_LF_INVALID@GOTPCREL(%rip), %rax
	jmp	LBB0_23
LBB0_26:
	movq	_NIX_AF_ERR_RSS_SIZE_INVALID@GOTPCREL(%rip), %rax
	jmp	LBB0_23
LBB0_27:
	movq	_NIX_AF_INVAL_NPA_PF_FUNC@GOTPCREL(%rip), %rax
	jmp	LBB0_23
LBB0_28:
	movq	_NIX_AF_INVAL_SSO_PF_FUNC@GOTPCREL(%rip), %rax
	jmp	LBB0_23
LBB0_29:
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	movq	_NIX_AF_CONST3@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	callq	_rvu_read64
	movl	%eax, %r15d
	movl	%r15d, %ecx
	shrb	$4, %cl
	movl	$1, %eax
	shll	%cl, %eax
	movl	(%r14), %edi
	movq	-80(%rbp), %r13                 ## 8-byte Reload
	leaq	72(%r13), %rsi
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movl	(%rbx), %edx
	movl	%eax, %ecx
	callq	_qmem_alloc
	testl	%eax, %eax
	je	LBB0_32
LBB0_30:
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_nix_ctx_free
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_31:
	movq	-96(%rbp), %r15                 ## 8-byte Reload
	movl	44(%r15), %edi
	movl	16(%r13), %esi
	callq	_ether_addr_copy
	movq	_NIX_AF_SQ_CONST@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	-48(%rbp), %r12d                ## 4-byte Reload
	movl	%r12d, %esi
	callq	_rvu_read64
	movups	(%r13), %xmm0
	movups	%xmm0, 28(%r15)
	movq	_NIX_LSO_FORMAT_IDX_TSOV4@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r15)
	movq	_NIX_LSO_FORMAT_IDX_TSOV6@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%r15)
	movq	_NIX_AF_CONST1@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	_rvu_read64
	shrl	$24, %eax
	movl	%eax, 8(%r15)
	movq	_NIX_AF_CONST2@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	_rvu_read64
	movl	%eax, %ecx
	shrl	$12, %ecx
	andl	$4095, %ecx                     ## imm = 0xFFF
	movl	%ecx, 12(%r15)
	sarl	$24, %eax
	andl	$4095, %eax                     ## imm = 0xFFF
	movl	%eax, 16(%r15)
	jmp	LBB0_24
LBB0_32:
	movl	(%rbx), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$8, %esi
	callq	_kcalloc
	movq	%rax, 80(%r13)
	testq	%rax, %rax
	je	LBB0_30
## %bb.33:
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	movl	%r12d, %edi
	callq	_NIX_AF_LFX_RQS_BASE
	movq	72(%r13), %rcx
	movl	(%rcx), %ecx
	movq	%r14, %rdi
	movl	%r15d, -52(%rbp)                ## 4-byte Spill
	movl	-48(%rbp), %r15d                ## 4-byte Reload
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_rvu_write64
	movl	$36, %edi
	callq	_BIT_ULL
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx), %ebx
	decl	%ebx
	orl	%eax, %ebx
	movl	%r12d, %edi
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	callq	_NIX_AF_LFX_RQS_CFG
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	movl	%ebx, %ecx
	callq	_rvu_write64
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, %ecx
	andb	$15, %cl
	movl	$1, %eax
	shll	%cl, %eax
	movl	(%r14), %edi
	leaq	56(%r13), %rsi
	movl	4(%r12), %edx
	movl	%eax, %ecx
	callq	_qmem_alloc
	testl	%eax, %eax
	jne	LBB0_30
## %bb.34:
	movl	4(%r12), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$8, %esi
	callq	_kcalloc
	movq	%rax, 64(%r13)
	testq	%rax, %rax
	je	LBB0_30
## %bb.35:
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	movl	%r12d, %edi
	callq	_NIX_AF_LFX_SQS_BASE
	movq	56(%r13), %rcx
	movl	(%rcx), %ecx
	movq	%r14, %rdi
	movl	-48(%rbp), %r15d                ## 4-byte Reload
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_rvu_write64
	movl	$36, %edi
	callq	_BIT_ULL
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	4(%rcx), %ebx
	decl	%ebx
	orl	%eax, %ebx
	movl	%r12d, %edi
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	callq	_NIX_AF_LFX_SQS_CFG
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	movl	%ebx, %ecx
	callq	_rvu_write64
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	shrl	$8, %ecx
	andb	$15, %cl
	movl	$1, %eax
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %eax
	movl	(%r14), %edi
	leaq	40(%r13), %rsi
	movl	8(%r12), %edx
	movl	%eax, %ecx
	callq	_qmem_alloc
	testl	%eax, %eax
	jne	LBB0_30
## %bb.36:
	movl	8(%r12), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$8, %esi
	callq	_kcalloc
	movq	%rax, 48(%r13)
	testq	%rax, %rax
	je	LBB0_30
## %bb.37:
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_NIX_AF_LFX_CQS_BASE
	movq	40(%r13), %rcx
	movl	(%rcx), %ecx
	movq	%r14, %rdi
	movl	-48(%rbp), %r15d                ## 4-byte Reload
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_rvu_write64
	movl	$36, %edi
	callq	_BIT_ULL
	movl	8(%r12), %ebx
	decl	%ebx
	orl	%eax, %ebx
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_NIX_AF_LFX_CQS_CFG
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	movl	%ebx, %ecx
	callq	_rvu_write64
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	shrl	$12, %ecx
	andb	$15, %cl
	movl	$1, %eax
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %eax
	movl	$1, %ebx
	movl	40(%r12), %r9d
	movl	44(%r12), %r8d
	movl	%eax, (%rsp)
	movq	%r14, %rdi
	movl	%r15d, %esi
	movq	%r13, %rdx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	callq	_nixlf_rss_ctx_init
	testl	%eax, %eax
	jne	LBB0_30
## %bb.38:
	movq	_NIX_AF_CONST2@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	callq	_rvu_read64
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	shrl	$24, %ecx
	andb	$15, %cl
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %ebx
	sarl	$24, %eax
	andl	$4095, %eax                     ## imm = 0xFFF
	movl	(%r14), %edi
	leaq	32(%r13), %rsi
	movl	%eax, %edx
	movl	%ebx, %ecx
	callq	_qmem_alloc
	testl	%eax, %eax
	jne	LBB0_30
## %bb.39:
	movl	-52(%rbp), %r15d                ## 4-byte Reload
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	movl	%r12d, %edi
	callq	_NIX_AF_LFX_CINTS_BASE
	movq	32(%r13), %rcx
	movl	(%rcx), %ecx
	movq	%r14, %rdi
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_rvu_write64
	movl	%r12d, %edi
	callq	_NIX_AF_LFX_CINTS_CFG
	movl	%eax, %r12d
	movl	$36, %edi
	callq	_BIT_ULL
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%r12d, %edx
	movl	%eax, %ecx
	callq	_rvu_write64
	movq	_NIX_AF_CONST2@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_rvu_read64
	shrl	$20, %r15d
	andb	$15, %r15b
	movl	$1, %ebx
	movl	%r15d, %ecx
	shll	%cl, %ebx
	shrl	$12, %eax
	andl	$4095, %eax                     ## imm = 0xFFF
	movl	(%r14), %edi
	movq	%r13, %r15
	addq	$24, %r15
	movq	%r15, %rsi
	movl	%eax, %edx
	movl	%ebx, %ecx
	callq	_qmem_alloc
	testl	%eax, %eax
	jne	LBB0_30
## %bb.40:
	movl	-44(%rbp), %r13d                ## 4-byte Reload
	movl	%r13d, %edi
	callq	_NIX_AF_LFX_QINTS_BASE
	movq	(%r15), %rcx
	movl	(%rcx), %ecx
	movq	%r14, %rdi
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_rvu_write64
	movl	%r13d, %edi
	callq	_NIX_AF_LFX_QINTS_CFG
	movl	%eax, %r15d
	movl	$36, %edi
	callq	_BIT_ULL
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%r15d, %edx
	movl	%eax, %ecx
	callq	_rvu_write64
	movl	%r13d, %edi
	callq	_NIX_AF_LFX_TX_CFG
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	movl	$-2130671448, %ecx              ## imm = 0x810088A8
	callq	_rvu_write64
	movl	%r13d, %edi
	callq	_NIX_AF_LFX_TX_CFG2
	movl	%eax, %r15d
	xorl	%edi, %edi
	callq	_BIT_ULL
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%r15d, %edx
	movl	%eax, %ecx
	callq	_rvu_write64
	movl	%r13d, %edi
	callq	_NIX_AF_LFX_CFG
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_rvu_write64
	movl	%r13d, %edi
	callq	_NIX_AF_LFX_RX_CFG
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	24(%rcx), %ecx
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_rvu_write64
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_is_afvf
	testq	%rax, %rax
	jne	LBB0_43
## %bb.41:
	movq	_NIX_INTF_TYPE_CGX@GOTPCREL(%rip), %rax
	jmp	LBB0_44
LBB0_42:
	movq	_NIX_AF_ERR_RSS_GRPS_INVALID@GOTPCREL(%rip), %rax
	jmp	LBB0_23
LBB0_43:
	movq	_NIX_INTF_TYPE_LBK@GOTPCREL(%rip), %rax
LBB0_44:
	movl	(%rax), %edx
	movq	-88(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	callq	_nix_interface_init
	testl	%eax, %eax
	movq	-80(%rbp), %r13                 ## 8-byte Reload
	jne	LBB0_30
## %bb.45:
	movq	%r14, %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_rvu_npc_disable_default_entries
	xorl	%ebx, %ebx
	jmp	LBB0_31
	.cfi_endproc
                                        ## -- End function
	.comm	_NIX_AF_ERR_PARAM,4,2           ## @NIX_AF_ERR_PARAM
	.comm	_BLKTYPE_NIX,4,2                ## @BLKTYPE_NIX
	.comm	_NIX_AF_ERR_AF_LF_INVALID,4,2   ## @NIX_AF_ERR_AF_LF_INVALID
	.comm	_RVU_DEFAULT_PF_FUNC,8,3        ## @RVU_DEFAULT_PF_FUNC
	.comm	_BLKTYPE_NPA,4,2                ## @BLKTYPE_NPA
	.comm	_NIX_AF_INVAL_NPA_PF_FUNC,4,2   ## @NIX_AF_INVAL_NPA_PF_FUNC
	.comm	_BLKTYPE_SSO,4,2                ## @BLKTYPE_SSO
	.comm	_NIX_AF_INVAL_SSO_PF_FUNC,4,2   ## @NIX_AF_INVAL_SSO_PF_FUNC
	.comm	_MAX_RSS_INDIR_TBL_SIZE,4,2     ## @MAX_RSS_INDIR_TBL_SIZE
	.comm	_NIX_AF_ERR_RSS_SIZE_INVALID,4,2 ## @NIX_AF_ERR_RSS_SIZE_INVALID
	.comm	_MAX_RSS_GROUPS,4,2             ## @MAX_RSS_GROUPS
	.comm	_NIX_AF_ERR_RSS_GRPS_INVALID,4,2 ## @NIX_AF_ERR_RSS_GRPS_INVALID
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to reset NIX%d LF%d\n"

	.comm	_BLKADDR_NIX0,8,3               ## @BLKADDR_NIX0
	.comm	_NIX_AF_ERR_LF_RESET,4,2        ## @NIX_AF_ERR_LF_RESET
	.comm	_NIX_AF_CONST3,4,2              ## @NIX_AF_CONST3
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_NIX_AF_CONST2,4,2              ## @NIX_AF_CONST2
	.comm	_NIX_INTF_TYPE_LBK,4,2          ## @NIX_INTF_TYPE_LBK
	.comm	_NIX_INTF_TYPE_CGX,4,2          ## @NIX_INTF_TYPE_CGX
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_NIX_AF_SQ_CONST,4,2            ## @NIX_AF_SQ_CONST
	.comm	_NIX_LSO_FORMAT_IDX_TSOV4,4,2   ## @NIX_LSO_FORMAT_IDX_TSOV4
	.comm	_NIX_LSO_FORMAT_IDX_TSOV6,4,2   ## @NIX_LSO_FORMAT_IDX_TSOV6
	.comm	_NIX_AF_CONST1,4,2              ## @NIX_AF_CONST1
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rvu_mbox_handler_nix_lf_alloc  ; -- Begin function rvu_mbox_handler_nix_lf_alloc
	.p2align	2
_rvu_mbox_handler_nix_lf_alloc:         ; @rvu_mbox_handler_nix_lf_alloc
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	w8, [x1]
	cbz	w8, LBB0_22
; %bb.1:
	mov	x24, x1
	ldr	w8, [x1, #4]
	cbz	w8, LBB0_22
; %bb.2:
	ldr	w8, [x24, #8]
	cbz	w8, LBB0_22
; %bb.3:
	mov	x19, x2
	mov	x20, x0
	ldr	x25, [x0, #8]
	ldr	x23, [x24, #48]
	mov	x1, x23
	bl	_rvu_get_pfvf
	mov	x22, x0
Lloh0:
	adrp	x8, _BLKTYPE_NIX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BLKTYPE_NIX@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, x23
	bl	_rvu_get_blkaddr
	ldr	w8, [x22, #88]
	cbz	w8, LBB0_25
; %bb.4:
	mov	x21, x0
	tbnz	w0, #31, LBB0_25
; %bb.5:
	ldr	x8, [x25]
	add	x26, x8, w21, uxtw #3
	mov	x0, x20
	mov	x1, x26
	mov	x2, x23
	mov	w3, #0
	bl	_rvu_get_lf
	tbnz	w0, #31, LBB0_25
; %bb.6:
	mov	x25, x0
	ldrsw	x1, [x24, #12]
Lloh3:
	adrp	x27, _RVU_DEFAULT_PF_FUNC@GOTPAGE
Lloh4:
	ldr	x27, [x27, _RVU_DEFAULT_PF_FUNC@GOTPAGEOFF]
	cbz	w1, LBB0_10
; %bb.7:
	ldr	x8, [x27]
	cmp	x8, x1
	b.ne	LBB0_9
; %bb.8:
	str	w23, [x24, #12]
	sxtw	x1, w23
LBB0_9:
Lloh5:
	adrp	x8, _BLKTYPE_NPA@GOTPAGE
Lloh6:
	ldr	x8, [x8, _BLKTYPE_NPA@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_is_pffunc_map_valid
	cbz	w0, LBB0_27
LBB0_10:
	ldr	x1, [x24, #16]
	cbz	x1, LBB0_14
; %bb.11:
	ldr	x8, [x27]
	cmp	x1, x8
	b.ne	LBB0_13
; %bb.12:
	str	x23, [x24, #16]
	mov	x1, x23
LBB0_13:
Lloh8:
	adrp	x8, _BLKTYPE_SSO@GOTPAGE
Lloh9:
	ldr	x8, [x8, _BLKTYPE_SSO@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_is_pffunc_map_valid
	cbz	w0, LBB0_28
LBB0_14:
	ldr	w0, [x24, #44]
	cbz	w0, LBB0_20
; %bb.15:
Lloh11:
	adrp	x8, _MAX_RSS_INDIR_TBL_SIZE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MAX_RSS_INDIR_TBL_SIZE@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	cmp	w0, w8
	b.gt	LBB0_26
; %bb.16:
	bl	_is_power_of_2
	cbz	w0, LBB0_26
; %bb.17:
	ldr	w8, [x24, #44]
	cbz	w8, LBB0_20
; %bb.18:
	ldr	w8, [x24, #40]
	cbz	w8, LBB0_42
; %bb.19:
Lloh14:
	adrp	x9, _MAX_RSS_GROUPS@GOTPAGE
Lloh15:
	ldr	x9, [x9, _MAX_RSS_GROUPS@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	cmp	w8, w9
	b.gt	LBB0_42
LBB0_20:
	mov	x0, x20
	mov	x1, x26
	mov	x2, x25
	bl	_rvu_lf_reset
	cbz	w0, LBB0_29
; %bb.21:
	ldr	w0, [x20]
	ldr	x8, [x26]
Lloh17:
	adrp	x9, _BLKADDR_NIX0@GOTPAGE
Lloh18:
	ldr	x9, [x9, _BLKADDR_NIX0@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	sub	x2, x8, x9
Lloh20:
	adrp	x1, l_.str@PAGE
Lloh21:
	add	x1, x1, l_.str@PAGEOFF
	mov	x3, x25
	bl	_dev_err
Lloh22:
	adrp	x8, _NIX_AF_ERR_LF_RESET@GOTPAGE
Lloh23:
	ldr	x8, [x8, _NIX_AF_ERR_LF_RESET@GOTPAGEOFF]
	b	LBB0_23
LBB0_22:
Lloh24:
	adrp	x8, _NIX_AF_ERR_PARAM@GOTPAGE
Lloh25:
	ldr	x8, [x8, _NIX_AF_ERR_PARAM@GOTPAGEOFF]
LBB0_23:
	ldr	w23, [x8]
LBB0_24:
	mov	x0, x23
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_25:
Lloh26:
	adrp	x8, _NIX_AF_ERR_AF_LF_INVALID@GOTPAGE
Lloh27:
	ldr	x8, [x8, _NIX_AF_ERR_AF_LF_INVALID@GOTPAGEOFF]
	b	LBB0_23
LBB0_26:
Lloh28:
	adrp	x8, _NIX_AF_ERR_RSS_SIZE_INVALID@GOTPAGE
Lloh29:
	ldr	x8, [x8, _NIX_AF_ERR_RSS_SIZE_INVALID@GOTPAGEOFF]
	b	LBB0_23
LBB0_27:
Lloh30:
	adrp	x8, _NIX_AF_INVAL_NPA_PF_FUNC@GOTPAGE
Lloh31:
	ldr	x8, [x8, _NIX_AF_INVAL_NPA_PF_FUNC@GOTPAGEOFF]
	b	LBB0_23
LBB0_28:
Lloh32:
	adrp	x8, _NIX_AF_INVAL_SSO_PF_FUNC@GOTPAGE
Lloh33:
	ldr	x8, [x8, _NIX_AF_INVAL_SSO_PF_FUNC@GOTPAGEOFF]
	b	LBB0_23
LBB0_29:
Lloh34:
	adrp	x8, _NIX_AF_CONST3@GOTPAGE
Lloh35:
	ldr	x8, [x8, _NIX_AF_CONST3@GOTPAGEOFF]
Lloh36:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x21
	bl	_rvu_read64
	mov	x26, x0
	ubfx	w8, w0, #4, #4
	mov	w9, #1
	lsl	w3, w9, w8
	ldr	w0, [x20]
	add	x1, x22, #72
	ldr	w2, [x24]
	bl	_qmem_alloc
	cbz	w0, LBB0_32
LBB0_30:
	mov	x0, x20
	mov	x1, x22
	bl	_nix_ctx_free
Lloh37:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh38:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh39:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_31:
	ldr	w0, [x19, #44]
	ldr	w1, [x22, #16]
	bl	_ether_addr_copy
Lloh40:
	adrp	x8, _NIX_AF_SQ_CONST@GOTPAGE
Lloh41:
	ldr	x8, [x8, _NIX_AF_SQ_CONST@GOTPAGEOFF]
Lloh42:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x21
	bl	_rvu_read64
	ldr	q0, [x22]
	stur	q0, [x19, #28]
Lloh43:
	adrp	x8, _NIX_LSO_FORMAT_IDX_TSOV4@GOTPAGE
Lloh44:
	ldr	x8, [x8, _NIX_LSO_FORMAT_IDX_TSOV4@GOTPAGEOFF]
Lloh45:
	ldr	w8, [x8]
Lloh46:
	adrp	x9, _NIX_LSO_FORMAT_IDX_TSOV6@GOTPAGE
Lloh47:
	ldr	x9, [x9, _NIX_LSO_FORMAT_IDX_TSOV6@GOTPAGEOFF]
Lloh48:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #20]
Lloh49:
	adrp	x8, _NIX_AF_CONST1@GOTPAGE
Lloh50:
	ldr	x8, [x8, _NIX_AF_CONST1@GOTPAGEOFF]
Lloh51:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x21
	bl	_rvu_read64
	lsr	w8, w0, #24
	str	w8, [x19, #8]
Lloh52:
	adrp	x8, _NIX_AF_CONST2@GOTPAGE
Lloh53:
	ldr	x8, [x8, _NIX_AF_CONST2@GOTPAGEOFF]
Lloh54:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x21
	bl	_rvu_read64
	ubfx	w8, w0, #12, #12
	asr	w9, w0, #24
	and	w9, w9, #0xfff
	stp	w8, w9, [x19, #12]
	b	LBB0_24
LBB0_32:
	ldr	w0, [x24]
Lloh55:
	adrp	x28, _GFP_KERNEL@GOTPAGE
Lloh56:
	ldr	x28, [x28, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w2, [x28]
	mov	w1, #8
	bl	_kcalloc
	str	x0, [x22, #80]
	cbz	x0, LBB0_30
; %bb.33:
	mov	x0, x25
	bl	_NIX_AF_LFX_RQS_BASE
	mov	x2, x0
	ldr	x8, [x22, #72]
	ldr	w3, [x8]
	mov	x0, x20
	mov	x1, x21
	bl	_rvu_write64
	mov	w0, #36
	bl	_BIT_ULL
	ldr	w8, [x24]
	sub	w8, w8, #1
	orr	w27, w8, w0
	mov	x0, x25
	bl	_NIX_AF_LFX_RQS_CFG
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	mov	x3, x27
	bl	_rvu_write64
	and	w8, w26, #0xf
	mov	w9, #1
	lsl	w3, w9, w8
	ldr	w0, [x20]
	add	x1, x22, #56
	ldr	w2, [x24, #4]
	bl	_qmem_alloc
	cbnz	w0, LBB0_30
; %bb.34:
	ldr	w0, [x24, #4]
	ldr	w2, [x28]
	mov	w1, #8
	bl	_kcalloc
	str	x0, [x22, #64]
	cbz	x0, LBB0_30
; %bb.35:
	mov	x0, x25
	bl	_NIX_AF_LFX_SQS_BASE
	mov	x2, x0
	ldr	x8, [x22, #56]
	ldr	w3, [x8]
	mov	x0, x20
	mov	x1, x21
	bl	_rvu_write64
	mov	w0, #36
	bl	_BIT_ULL
	ldr	w8, [x24, #4]
	sub	w8, w8, #1
	orr	w27, w8, w0
	mov	x0, x25
	bl	_NIX_AF_LFX_SQS_CFG
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	mov	x3, x27
	bl	_rvu_write64
	ubfx	w8, w26, #8, #4
	mov	w9, #1
	lsl	w3, w9, w8
	ldr	w0, [x20]
	add	x1, x22, #40
	ldr	w2, [x24, #8]
	bl	_qmem_alloc
	cbnz	w0, LBB0_30
; %bb.36:
	ldr	w0, [x24, #8]
	ldr	w2, [x28]
	mov	w1, #8
	bl	_kcalloc
	str	x0, [x22, #48]
	cbz	x0, LBB0_30
; %bb.37:
	mov	x0, x25
	bl	_NIX_AF_LFX_CQS_BASE
	mov	x2, x0
	ldr	x8, [x22, #40]
	ldr	w3, [x8]
	mov	x0, x20
	mov	x1, x21
	bl	_rvu_write64
	mov	w0, #36
	bl	_BIT_ULL
	ldr	w8, [x24, #8]
	sub	w8, w8, #1
	orr	w27, w8, w0
	mov	x0, x25
	bl	_NIX_AF_LFX_CQS_CFG
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	mov	x3, x27
	bl	_rvu_write64
	ubfx	w8, w26, #12, #4
	mov	w27, #1
	lsl	w6, w27, w8
	ldp	w5, w4, [x24, #40]
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	mov	x3, x25
	bl	_nixlf_rss_ctx_init
	cbnz	w0, LBB0_30
; %bb.38:
Lloh57:
	adrp	x8, _NIX_AF_CONST2@GOTPAGE
Lloh58:
	ldr	x8, [x8, _NIX_AF_CONST2@GOTPAGEOFF]
Lloh59:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x21
	bl	_rvu_read64
	asr	w8, w0, #24
	and	w2, w8, #0xfff
	ubfx	w8, w26, #24, #4
	lsl	w3, w27, w8
	ldr	w0, [x20]
	add	x1, x22, #32
	bl	_qmem_alloc
	cbnz	w0, LBB0_30
; %bb.39:
	mov	x0, x25
	bl	_NIX_AF_LFX_CINTS_BASE
	mov	x2, x0
	ldr	x8, [x22, #32]
	ldr	w3, [x8]
	mov	x0, x20
	mov	x1, x21
	bl	_rvu_write64
	mov	x0, x25
	bl	_NIX_AF_LFX_CINTS_CFG
	mov	x27, x0
	mov	w0, #36
	bl	_BIT_ULL
	mov	x3, x0
	mov	x0, x20
	mov	x1, x21
	mov	x2, x27
	bl	_rvu_write64
Lloh60:
	adrp	x8, _NIX_AF_CONST2@GOTPAGE
Lloh61:
	ldr	x8, [x8, _NIX_AF_CONST2@GOTPAGEOFF]
Lloh62:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x21
	bl	_rvu_read64
	ubfx	w2, w0, #12, #12
	ubfx	w8, w26, #20, #4
	mov	w9, #1
	lsl	w3, w9, w8
	ldr	w0, [x20]
	add	x26, x22, #24
	mov	x1, x26
	bl	_qmem_alloc
	cbnz	w0, LBB0_30
; %bb.40:
	mov	x0, x25
	bl	_NIX_AF_LFX_QINTS_BASE
	mov	x2, x0
	ldr	x8, [x26]
	ldr	w3, [x8]
	mov	x0, x20
	mov	x1, x21
	bl	_rvu_write64
	mov	x0, x25
	bl	_NIX_AF_LFX_QINTS_CFG
	mov	x26, x0
	mov	w0, #36
	bl	_BIT_ULL
	mov	x3, x0
	mov	x0, x20
	mov	x1, x21
	mov	x2, x26
	bl	_rvu_write64
	mov	x0, x25
	bl	_NIX_AF_LFX_TX_CFG
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	mov	w3, #34984
	movk	w3, #33024, lsl #16
	bl	_rvu_write64
	mov	x0, x25
	bl	_NIX_AF_LFX_TX_CFG2
	mov	x26, x0
	mov	w0, #0
	bl	_BIT_ULL
	mov	x3, x0
	mov	x0, x20
	mov	x1, x21
	mov	x2, x26
	bl	_rvu_write64
	mov	x0, x25
	bl	_NIX_AF_LFX_CFG
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	_rvu_write64
	mov	x0, x25
	bl	_NIX_AF_LFX_RX_CFG
	mov	x2, x0
	ldr	w3, [x24, #24]
	mov	x0, x20
	mov	x1, x21
	bl	_rvu_write64
	mov	x0, x23
	bl	_is_afvf
Lloh63:
	adrp	x8, _NIX_INTF_TYPE_LBK@GOTPAGE
Lloh64:
	ldr	x8, [x8, _NIX_INTF_TYPE_LBK@GOTPAGEOFF]
Lloh65:
	adrp	x9, _NIX_INTF_TYPE_CGX@GOTPAGE
Lloh66:
	ldr	x9, [x9, _NIX_INTF_TYPE_CGX@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x9, x8, eq
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x23
	mov	x3, x25
	bl	_nix_interface_init
	cbnz	w0, LBB0_30
; %bb.41:
	mov	x0, x20
	mov	x1, x23
	mov	x2, x25
	bl	_rvu_npc_disable_default_entries
	mov	w23, #0
	b	LBB0_31
LBB0_42:
Lloh67:
	adrp	x8, _NIX_AF_ERR_RSS_GRPS_INVALID@GOTPAGE
Lloh68:
	ldr	x8, [x8, _NIX_AF_ERR_RSS_GRPS_INVALID@GOTPAGEOFF]
	b	LBB0_23
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGot	Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.loh AdrpLdrGot	Lloh65, Lloh66
	.loh AdrpLdrGot	Lloh63, Lloh64
	.loh AdrpLdrGot	Lloh67, Lloh68
	.cfi_endproc
                                        ; -- End function
	.comm	_NIX_AF_ERR_PARAM,4,2           ; @NIX_AF_ERR_PARAM
	.comm	_BLKTYPE_NIX,4,2                ; @BLKTYPE_NIX
	.comm	_NIX_AF_ERR_AF_LF_INVALID,4,2   ; @NIX_AF_ERR_AF_LF_INVALID
	.comm	_RVU_DEFAULT_PF_FUNC,8,3        ; @RVU_DEFAULT_PF_FUNC
	.comm	_BLKTYPE_NPA,4,2                ; @BLKTYPE_NPA
	.comm	_NIX_AF_INVAL_NPA_PF_FUNC,4,2   ; @NIX_AF_INVAL_NPA_PF_FUNC
	.comm	_BLKTYPE_SSO,4,2                ; @BLKTYPE_SSO
	.comm	_NIX_AF_INVAL_SSO_PF_FUNC,4,2   ; @NIX_AF_INVAL_SSO_PF_FUNC
	.comm	_MAX_RSS_INDIR_TBL_SIZE,4,2     ; @MAX_RSS_INDIR_TBL_SIZE
	.comm	_NIX_AF_ERR_RSS_SIZE_INVALID,4,2 ; @NIX_AF_ERR_RSS_SIZE_INVALID
	.comm	_MAX_RSS_GROUPS,4,2             ; @MAX_RSS_GROUPS
	.comm	_NIX_AF_ERR_RSS_GRPS_INVALID,4,2 ; @NIX_AF_ERR_RSS_GRPS_INVALID
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to reset NIX%d LF%d\n"

	.comm	_BLKADDR_NIX0,8,3               ; @BLKADDR_NIX0
	.comm	_NIX_AF_ERR_LF_RESET,4,2        ; @NIX_AF_ERR_LF_RESET
	.comm	_NIX_AF_CONST3,4,2              ; @NIX_AF_CONST3
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_NIX_AF_CONST2,4,2              ; @NIX_AF_CONST2
	.comm	_NIX_INTF_TYPE_LBK,4,2          ; @NIX_INTF_TYPE_LBK
	.comm	_NIX_INTF_TYPE_CGX,4,2          ; @NIX_INTF_TYPE_CGX
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_NIX_AF_SQ_CONST,4,2            ; @NIX_AF_SQ_CONST
	.comm	_NIX_LSO_FORMAT_IDX_TSOV4,4,2   ; @NIX_LSO_FORMAT_IDX_TSOV4
	.comm	_NIX_LSO_FORMAT_IDX_TSOV6,4,2   ; @NIX_LSO_FORMAT_IDX_TSOV6
	.comm	_NIX_AF_CONST1,4,2              ; @NIX_AF_CONST1
.subsections_via_symbols
