	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hinic_set_rss_type             ## -- Begin function hinic_set_rss_type
	.p2align	4, 0x90
_hinic_set_rss_type:                    ## @hinic_set_rss_type
	.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
	movl	%esi, %r15d
	movq	(%rdi), %r13
	movq	(%r13), %rax
	movq	(%rax), %r14
	addq	$8, %r13
	leaq	-72(%rbp), %rsi
	movq	%r13, %rdi
	callq	_hinic_alloc_cmdq_buf
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_2:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	leaq	16(%rbp), %r14
	movq	_VALID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$1, %edi
	callq	_HINIC_RSS_TYPE_SET
	movl	%eax, %ebx
	movl	(%r14), %edi
	movq	_IPV4@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_HINIC_RSS_TYPE_SET
	orl	%eax, %ebx
	movl	4(%r14), %edi
	movq	_IPV6@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_HINIC_RSS_TYPE_SET
	movl	%eax, %r12d
	movl	8(%r14), %edi
	movq	_IPV6_EXT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_HINIC_RSS_TYPE_SET
	orl	%eax, %r12d
	orl	%ebx, %r12d
	movl	12(%r14), %edi
	movq	_TCP_IPV4@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_HINIC_RSS_TYPE_SET
	movl	%eax, %ebx
	movl	16(%r14), %edi
	movq	_TCP_IPV6@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_HINIC_RSS_TYPE_SET
	orl	%eax, %ebx
	movl	20(%r14), %edi
	movq	_TCP_IPV6_EXT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_HINIC_RSS_TYPE_SET
	orl	%eax, %ebx
	orl	%r12d, %ebx
	movl	24(%r14), %edi
	movq	_UDP_IPV4@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_HINIC_RSS_TYPE_SET
	movl	%eax, %r12d
	movl	28(%r14), %edi
	movq	_UDP_IPV6@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_HINIC_RSS_TYPE_SET
	orl	%eax, %r12d
	orl	%ebx, %r12d
	movl	$40, -72(%rbp)
	movq	-64(%rbp), %rbx
	movl	%r15d, %edi
	callq	_cpu_to_be32
	movq	%rax, 32(%rbx)
	movq	$0, 24(%rbx)
	movl	$4, (%rbx)
	movl	$4, %edi
	callq	_cpu_to_be32
	movl	%eax, (%rbx)
	movq	$0, 16(%rbx)
	movl	%r12d, %edi
	callq	_cpu_to_be32
	movq	%rax, 8(%rbx)
	movq	_HINIC_MOD_L2NIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_HINIC_UCODE_CMD_SET_RSS_CONTEXT_TABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-72(%rbp), %rbx
	leaq	-56(%rbp), %r8
	movq	%r13, %rdi
	movq	%rbx, %rcx
	callq	_hinic_cmdq_direct_resp
	movl	%eax, %r15d
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_hinic_free_cmdq_buf
	testl	%r15d, %r15d
	jne	LBB0_4
## %bb.3:
	xorl	%ebx, %ebx
	cmpq	$0, -56(%rbp)
	je	LBB0_6
LBB0_4:
	leaq	L_.str.1(%rip), %rsi
	xorl	%ebx, %ebx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%r15d, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EFAULT@GOTPCREL(%rip), %rax
LBB0_5:
	subl	(%rax), %ebx
LBB0_6:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to allocate cmd buf\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_VALID,4,2                      ## @VALID
	.comm	_IPV4,4,2                       ## @IPV4
	.comm	_IPV6,4,2                       ## @IPV6
	.comm	_IPV6_EXT,4,2                   ## @IPV6_EXT
	.comm	_TCP_IPV4,4,2                   ## @TCP_IPV4
	.comm	_TCP_IPV6,4,2                   ## @TCP_IPV6
	.comm	_TCP_IPV6_EXT,4,2               ## @TCP_IPV6_EXT
	.comm	_UDP_IPV4,4,2                   ## @UDP_IPV4
	.comm	_UDP_IPV6,4,2                   ## @UDP_IPV6
	.comm	_HINIC_MOD_L2NIC,4,2            ## @HINIC_MOD_L2NIC
	.comm	_HINIC_UCODE_CMD_SET_RSS_CONTEXT_TABLE,4,2 ## @HINIC_UCODE_CMD_SET_RSS_CONTEXT_TABLE
L_.str.1:                               ## @.str.1
	.asciz	"Failed to set rss context table, err: %d\n"

	.comm	_EFAULT,4,2                     ## @EFAULT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hinic_set_rss_type             ; -- Begin function hinic_set_rss_type
	.p2align	2
_hinic_set_rss_type:                    ; @hinic_set_rss_type
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x22, x2
	mov	x21, x1
	ldr	x20, [x0]
	ldr	x8, [x20], #8
	ldr	x19, [x8]
	add	x1, sp, #16
	mov	x0, x20
	bl	_hinic_alloc_cmdq_buf
	cbz	w0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh2:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_6
LBB0_2:
Lloh4:
	adrp	x8, _VALID@GOTPAGE
Lloh5:
	ldr	x8, [x8, _VALID@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	w0, #1
	bl	_HINIC_RSS_TYPE_SET
	mov	x23, x0
	ldr	w0, [x22]
Lloh7:
	adrp	x8, _IPV4@GOTPAGE
Lloh8:
	ldr	x8, [x8, _IPV4@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	bl	_HINIC_RSS_TYPE_SET
	orr	w23, w0, w23
	ldr	w0, [x22, #4]
Lloh10:
	adrp	x8, _IPV6@GOTPAGE
Lloh11:
	ldr	x8, [x8, _IPV6@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	bl	_HINIC_RSS_TYPE_SET
	orr	w23, w23, w0
	ldr	w0, [x22, #8]
Lloh13:
	adrp	x8, _IPV6_EXT@GOTPAGE
Lloh14:
	ldr	x8, [x8, _IPV6_EXT@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	bl	_HINIC_RSS_TYPE_SET
	orr	w23, w23, w0
	ldr	w0, [x22, #12]
Lloh16:
	adrp	x8, _TCP_IPV4@GOTPAGE
Lloh17:
	ldr	x8, [x8, _TCP_IPV4@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	bl	_HINIC_RSS_TYPE_SET
	orr	w23, w23, w0
	ldr	w0, [x22, #16]
Lloh19:
	adrp	x8, _TCP_IPV6@GOTPAGE
Lloh20:
	ldr	x8, [x8, _TCP_IPV6@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	bl	_HINIC_RSS_TYPE_SET
	orr	w23, w23, w0
	ldr	w0, [x22, #20]
Lloh22:
	adrp	x8, _TCP_IPV6_EXT@GOTPAGE
Lloh23:
	ldr	x8, [x8, _TCP_IPV6_EXT@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	bl	_HINIC_RSS_TYPE_SET
	orr	w23, w23, w0
	ldr	w0, [x22, #24]
Lloh25:
	adrp	x8, _UDP_IPV4@GOTPAGE
Lloh26:
	ldr	x8, [x8, _UDP_IPV4@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
	bl	_HINIC_RSS_TYPE_SET
	orr	w23, w23, w0
	ldr	w0, [x22, #28]
Lloh28:
	adrp	x8, _UDP_IPV6@GOTPAGE
Lloh29:
	ldr	x8, [x8, _UDP_IPV6@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
	bl	_HINIC_RSS_TYPE_SET
	orr	w22, w23, w0
	mov	w8, #40
	str	w8, [sp, #16]
	ldr	x23, [sp, #24]
	mov	x0, x21
	bl	_cpu_to_be32
	stp	xzr, x0, [x23, #24]
	mov	w8, #4
	str	w8, [x23]
	mov	w0, #4
	bl	_cpu_to_be32
	str	w0, [x23]
	str	xzr, [x23, #16]
	mov	x0, x22
	bl	_cpu_to_be32
	str	x0, [x23, #8]
Lloh31:
	adrp	x8, _HINIC_MOD_L2NIC@GOTPAGE
Lloh32:
	ldr	x8, [x8, _HINIC_MOD_L2NIC@GOTPAGEOFF]
Lloh33:
	ldr	w1, [x8]
Lloh34:
	adrp	x8, _HINIC_UCODE_CMD_SET_RSS_CONTEXT_TABLE@GOTPAGE
Lloh35:
	ldr	x8, [x8, _HINIC_UCODE_CMD_SET_RSS_CONTEXT_TABLE@GOTPAGEOFF]
Lloh36:
	ldr	w2, [x8]
	add	x3, sp, #16
	add	x4, sp, #8
	mov	x0, x20
	bl	_hinic_cmdq_direct_resp
	mov	x21, x0
	add	x1, sp, #16
	mov	x0, x20
	bl	_hinic_free_cmdq_buf
	cbnz	w21, LBB0_5
; %bb.3:
	ldr	x8, [sp, #8]
	cbnz	x8, LBB0_5
; %bb.4:
	mov	w0, #0
	b	LBB0_7
LBB0_5:
	str	x21, [sp]
Lloh37:
	adrp	x1, l_.str.1@PAGE
Lloh38:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh39:
	adrp	x8, _EFAULT@GOTPAGE
Lloh40:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpAdd	Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to allocate cmd buf\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_VALID,4,2                      ; @VALID
	.comm	_IPV4,4,2                       ; @IPV4
	.comm	_IPV6,4,2                       ; @IPV6
	.comm	_IPV6_EXT,4,2                   ; @IPV6_EXT
	.comm	_TCP_IPV4,4,2                   ; @TCP_IPV4
	.comm	_TCP_IPV6,4,2                   ; @TCP_IPV6
	.comm	_TCP_IPV6_EXT,4,2               ; @TCP_IPV6_EXT
	.comm	_UDP_IPV4,4,2                   ; @UDP_IPV4
	.comm	_UDP_IPV6,4,2                   ; @UDP_IPV6
	.comm	_HINIC_MOD_L2NIC,4,2            ; @HINIC_MOD_L2NIC
	.comm	_HINIC_UCODE_CMD_SET_RSS_CONTEXT_TABLE,4,2 ; @HINIC_UCODE_CMD_SET_RSS_CONTEXT_TABLE
l_.str.1:                               ; @.str.1
	.asciz	"Failed to set rss context table, err: %d\n"

	.comm	_EFAULT,4,2                     ; @EFAULT
.subsections_via_symbols
