	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hinic_rss_get_indir_tbl        ## -- Begin function hinic_rss_get_indir_tbl
	.p2align	4, 0x90
_hinic_rss_get_indir_tbl:               ## @hinic_rss_get_indir_tbl
	.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, %r13
	movl	%esi, %r15d
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -64(%rbp)
	movaps	%xmm0, -80(%rbp)
	movq	(%rdi), %r12
	movq	(%r12), %rdi
	movq	(%rdi), %r14
	movl	$32, -44(%rbp)
	callq	_HINIC_HWIF_FUNC_IDX
	movl	%eax, -60(%rbp)
	movl	%r15d, -64(%rbp)
	movq	_HINIC_PORT_CMD_GET_RSS_TEMPLATE_INDIR_TBL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-80(%rbp), %rdx
	leaq	-44(%rbp), %r9
	movq	%r12, %rdi
	movl	$32, %ecx
	movq	%rdx, %r8
	callq	_hinic_port_msg_cmd
	movl	-44(%rbp), %r8d
	movq	-72(%rbp), %rcx
	testl	%eax, %eax
	jne	LBB0_3
## %bb.1:
	testl	%r8d, %r8d
	je	LBB0_3
## %bb.2:
	testq	%rcx, %rcx
	jne	LBB0_3
## %bb.4:
	movq	-80(%rbp), %rdi
	movq	_HINIC_RSS_INDIR_SIZE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	callq	_hinic_be32_to_cpu
	cmpl	$0, (%rbx)
	jle	LBB0_5
## %bb.6:
	movq	-80(%rbp), %rcx
	xorl	%eax, %eax
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rcx,%rdx,4), %esi
	movl	%esi, (%r13,%rdx,4)
	incq	%rdx
	movslq	(%rbx), %rsi
	cmpq	%rsi, %rdx
	jl	LBB0_7
	jmp	LBB0_8
LBB0_3:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_8
LBB0_5:
	xorl	%eax, %eax
LBB0_8:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HINIC_PORT_CMD_GET_RSS_TEMPLATE_INDIR_TBL,4,2 ## @HINIC_PORT_CMD_GET_RSS_TEMPLATE_INDIR_TBL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to get indir table, err: %d, status: 0x%x, out size: 0x%x\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_HINIC_RSS_INDIR_SIZE,4,2       ## @HINIC_RSS_INDIR_SIZE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hinic_rss_get_indir_tbl        ; -- Begin function hinic_rss_get_indir_tbl
	.p2align	2
_hinic_rss_get_indir_tbl:               ; @hinic_rss_get_indir_tbl
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x19, x2
	mov	x21, x1
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [sp, #16]
	ldr	x22, [x0]
	ldr	x0, [x22]
	ldr	x20, [x0]
	mov	w8, #32
	str	w8, [sp, #12]
	bl	_HINIC_HWIF_FUNC_IDX
	stp	w21, w0, [sp, #32]
Lloh0:
	adrp	x8, _HINIC_PORT_CMD_GET_RSS_TEMPLATE_INDIR_TBL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HINIC_PORT_CMD_GET_RSS_TEMPLATE_INDIR_TBL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #16
	add	x4, sp, #16
	add	x5, sp, #12
	mov	x0, x22
	mov	w3, #32
	bl	_hinic_port_msg_cmd
	ldr	w4, [sp, #12]
	ldr	x3, [sp, #24]
	cmp	w0, #0
	ccmp	w4, #0, #4, eq
	ccmp	x3, #0, #0, ne
	b.eq	LBB0_2
; %bb.1:
	mov	x2, x0
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_err
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_6
LBB0_2:
	ldr	x0, [sp, #16]
Lloh8:
	adrp	x20, _HINIC_RSS_INDIR_SIZE@GOTPAGE
Lloh9:
	ldr	x20, [x20, _HINIC_RSS_INDIR_SIZE@GOTPAGEOFF]
	ldr	w1, [x20]
	bl	_hinic_be32_to_cpu
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.3:
	mov	x8, #0
	ldr	x9, [sp, #16]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	lsl	x10, x8, #2
	ldr	w11, [x9, x10]
	str	w11, [x19, x10]
	add	x8, x8, #1
	ldrsw	x10, [x20]
	cmp	x8, x10
	b.lt	LBB0_4
LBB0_5:
	mov	w0, #0
LBB0_6:
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_HINIC_PORT_CMD_GET_RSS_TEMPLATE_INDIR_TBL,4,2 ; @HINIC_PORT_CMD_GET_RSS_TEMPLATE_INDIR_TBL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to get indir table, err: %d, status: 0x%x, out size: 0x%x\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_HINIC_RSS_INDIR_SIZE,4,2       ; @HINIC_RSS_INDIR_SIZE
.subsections_via_symbols
