	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rvu_mbox_handler_nix_rxvlan_alloc ## -- Begin function rvu_mbox_handler_nix_rxvlan_alloc
	.p2align	4, 0x90
_rvu_mbox_handler_nix_rxvlan_alloc:     ## @rvu_mbox_handler_nix_rxvlan_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rdi, %r15
	movq	$0, -80(%rbp)
	movq	$0, -48(%rbp)
	movq	$0, -64(%rbp)
	movq	(%rsi), %r13
	movq	%r13, %rdi
	callq	_is_afvf
	xorl	%ebx, %ebx
	testq	%rax, %rax
	jne	LBB0_8
## %bb.1:
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_rvu_get_pfvf
	cmpl	$0, (%rax)
	jne	LBB0_8
## %bb.2:
	movq	%rax, %r12
	movq	%r13, -72(%rbp)
	movl	$1, -80(%rbp)
	leaq	-80(%rbp), %rsi
	leaq	-48(%rbp), %rdx
	movq	%r15, %rdi
	callq	_rvu_mbox_handler_npc_mcam_alloc_entry
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_8
## %bb.3:
	movq	_BLKTYPE_NIX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movq	%r13, %rdx
	callq	_rvu_get_blkaddr
	testl	%eax, %eax
	js	LBB0_4
## %bb.5:
	movq	(%r15), %rcx
	movl	%eax, %esi
	shlq	$2, %rsi
	addq	(%rcx), %rsi
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	movq	%r13, %rdx
	xorl	%ecx, %ecx
	callq	_rvu_get_lf
	testl	%eax, %eax
	js	LBB0_4
## %bb.6:
	movq	-48(%rbp), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 4(%r12)
	movl	$1, (%r12)
	movq	%r15, %rdi
	movq	%r13, %rsi
	movl	%eax, %edx
	callq	_rvu_npc_update_rxvlan
	testl	%eax, %eax
	jne	LBB0_7
	jmp	LBB0_8
LBB0_4:
	movq	_NIX_AF_ERR_AF_LF_INVALID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_7:
	movq	%r13, -56(%rbp)
	movl	%eax, %ebx
	movq	-48(%rbp), %rax
	movl	(%rax), %eax
	movl	%eax, -64(%rbp)
	leaq	-64(%rbp), %rsi
	movq	%r15, %rdi
	movq	%r14, %rdx
	callq	_rvu_mbox_handler_npc_mcam_free_entry
	movl	$0, (%r12)
LBB0_8:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BLKTYPE_NIX,4,2                ## @BLKTYPE_NIX
	.comm	_NIX_AF_ERR_AF_LF_INVALID,4,2   ## @NIX_AF_ERR_AF_LF_INVALID
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rvu_mbox_handler_nix_rxvlan_alloc ; -- Begin function rvu_mbox_handler_nix_rxvlan_alloc
	.p2align	2
_rvu_mbox_handler_nix_rxvlan_alloc:     ; @rvu_mbox_handler_nix_rxvlan_alloc
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x19, x2
	mov	x20, x0
	stp	xzr, xzr, [sp, #24]
	str	xzr, [sp, #8]
	ldr	x21, [x1]
	mov	x0, x21
	bl	_is_afvf
	cbnz	x0, LBB0_2
; %bb.1:
	mov	x0, x20
	mov	x1, x21
	bl	_rvu_get_pfvf
	ldr	w8, [x0]
	cbz	w8, LBB0_4
LBB0_2:
	mov	w23, #0
LBB0_3:
	mov	x0, x23
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_4:
	mov	x22, x0
	str	x21, [sp, #40]
	mov	w8, #1
	str	w8, [sp, #32]
	add	x1, sp, #32
	add	x2, sp, #24
	mov	x0, x20
	bl	_rvu_mbox_handler_npc_mcam_alloc_entry
	mov	x23, x0
	cbnz	w0, LBB0_3
; %bb.5:
Lloh0:
	adrp	x8, _BLKTYPE_NIX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BLKTYPE_NIX@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, x21
	bl	_rvu_get_blkaddr
	tbnz	w0, #31, LBB0_8
; %bb.6:
	ldr	x8, [x20]
	ldr	x8, [x8]
	add	x1, x8, w0, uxtw #2
	mov	x0, x20
	mov	x2, x21
	mov	w3, #0
	bl	_rvu_get_lf
	tbnz	w0, #31, LBB0_8
; %bb.7:
	mov	x2, x0
	ldr	x8, [sp, #24]
	ldr	w8, [x8]
	mov	w9, #1
	stp	w9, w8, [x22]
	mov	x0, x20
	mov	x1, x21
	bl	_rvu_npc_update_rxvlan
	mov	x23, x0
	cbnz	w0, LBB0_9
	b	LBB0_3
LBB0_8:
Lloh3:
	adrp	x8, _NIX_AF_ERR_AF_LF_INVALID@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NIX_AF_ERR_AF_LF_INVALID@GOTPAGEOFF]
Lloh5:
	ldr	w23, [x8]
LBB0_9:
	str	x21, [sp, #16]
	ldr	x8, [sp, #24]
	ldr	w8, [x8]
	str	w8, [sp, #8]
	add	x1, sp, #8
	mov	x0, x20
	mov	x2, x19
	bl	_rvu_mbox_handler_npc_mcam_free_entry
	str	wzr, [x22]
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_BLKTYPE_NIX,4,2                ; @BLKTYPE_NIX
	.comm	_NIX_AF_ERR_AF_LF_INVALID,4,2   ; @NIX_AF_ERR_AF_LF_INVALID
.subsections_via_symbols
