	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hinic_rss_cfg                  ## -- Begin function hinic_rss_cfg
	.p2align	4, 0x90
_hinic_rss_cfg:                         ## @hinic_rss_cfg
	.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	%r12
	pushq	%rbx
	subq	$48, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %r12
	movq	(%rdi), %rbx
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -64(%rbp)
	movaps	%xmm0, -80(%rbp)
	movq	$0, -48(%rbp)
	movq	(%rbx), %rdi
	movq	(%rdi), %r14
	callq	_HINIC_HWIF_FUNC_IDX
	movl	%eax, -48(%rbp)
	movq	%r12, -56(%rbp)
	movq	%r15, -64(%rbp)
	movq	$0, -72(%rbp)
	movq	_HINIC_PORT_CMD_RSS_CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-80(%rbp), %rdx
	leaq	-36(%rbp), %r9
	movq	%rbx, %rdi
	movl	$40, %ecx
	movq	%rdx, %r8
	callq	_hinic_port_msg_cmd
	movl	-36(%rbp), %r8d
	movq	-80(%rbp), %rcx
	testl	%eax, %eax
	jne	LBB0_3
## %bb.1:
	testl	%r8d, %r8d
	je	LBB0_3
## %bb.2:
	xorl	%edx, %edx
	testq	%rcx, %rcx
	je	LBB0_4
LBB0_3:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%edx, %edx
	subl	(%rax), %edx
LBB0_4:
	movl	%edx, %eax
	addq	$48, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HINIC_PORT_CMD_RSS_CFG,4,2     ## @HINIC_PORT_CMD_RSS_CFG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to set rss cfg, err: %d, status: 0x%x, out size: 0x%x\n"

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

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hinic_rss_cfg                  ; -- Begin function hinic_rss_cfg
	.p2align	2
_hinic_rss_cfg:                         ; @hinic_rss_cfg
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	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
	mov	x20, x2
	mov	x21, x1
	ldr	x22, [x0]
	str	xzr, [sp, #48]
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [sp, #16]
	ldr	x0, [x22]
	ldr	x19, [x0]
	bl	_HINIC_HWIF_FUNC_IDX
	str	w0, [sp, #48]
	stp	x20, x21, [sp, #32]
	str	xzr, [sp, #24]
Lloh0:
	adrp	x8, _HINIC_PORT_CMD_RSS_CFG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HINIC_PORT_CMD_RSS_CFG@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #16
	add	x4, sp, #16
	add	x5, sp, #12
	mov	x0, x22
	mov	w3, #40
	bl	_hinic_port_msg_cmd
	ldr	w4, [sp, #12]
	ldr	x3, [sp, #16]
	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, x19
	bl	_dev_err
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_3
LBB0_2:
	mov	w0, #0
LBB0_3:
	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
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_HINIC_PORT_CMD_RSS_CFG,4,2     ; @HINIC_PORT_CMD_RSS_CFG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to set rss cfg, err: %d, status: 0x%x, out size: 0x%x\n"

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