	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mvpp22_port_rss_ctx_create     ## -- Begin function mvpp22_port_rss_ctx_create
	.p2align	4, 0x90
_mvpp22_port_rss_ctx_create:            ## @mvpp22_port_rss_ctx_create
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	leaq	-20(%rbp), %rsi
	callq	_mvpp22_rss_context_create
	testl	%eax, %eax
	jne	LBB0_8
## %bb.1:
	movq	_MVPP22_N_RSS_TABLES@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	$1, %eax
	cmpl	$2, %ecx
	jl	LBB0_5
## %bb.2:
	movq	(%rbx), %rdx
	movl	$1, %eax
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, (%rdx,%rax,8)
	js	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	%rax
	cmpq	%rax, %rcx
	jne	LBB0_3
	jmp	LBB0_6
LBB0_5:
	cmpl	%ecx, %eax
	jne	LBB0_7
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_8
LBB0_7:
	movslq	-20(%rbp), %rcx
	movq	(%rbx), %rdx
	movl	%eax, %esi
	movq	%rcx, (%rdx,%rsi,8)
	movl	%eax, (%r14)
	xorl	%eax, %eax
LBB0_8:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MVPP22_N_RSS_TABLES,4,2        ## @MVPP22_N_RSS_TABLES
	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mvpp22_port_rss_ctx_create     ; -- Begin function mvpp22_port_rss_ctx_create
	.p2align	2
_mvpp22_port_rss_ctx_create:            ; @mvpp22_port_rss_ctx_create
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
	add	x1, sp, #12
	bl	_mvpp22_rss_context_create
	cbnz	w0, LBB0_9
; %bb.1:
Lloh0:
	adrp	x8, _MVPP22_N_RSS_TABLES@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MVPP22_N_RSS_TABLES@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, #2
	b.lt	LBB0_5
; %bb.2:
	ldr	x10, [x20]
	mov	w9, #1
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x10, x9, lsl #3]
	tbnz	x11, #63, LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x9, x9, #1
	cmp	x8, x9
	b.ne	LBB0_3
	b	LBB0_7
LBB0_5:
	mov	w9, #1
LBB0_6:
	cmp	w9, w8
	b.ne	LBB0_8
LBB0_7:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_9
LBB0_8:
	mov	w0, #0
	ldrsw	x8, [sp, #12]
	ldr	x10, [x20]
	str	x8, [x10, w9, uxtw #3]
	str	w9, [x19]
LBB0_9:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_MVPP22_N_RSS_TABLES,4,2        ; @MVPP22_N_RSS_TABLES
	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
