	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hinic_get_rss_type             ## -- Begin function hinic_get_rss_type
	.p2align	4, 0x90
_hinic_get_rss_type:                    ## @hinic_get_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	%r12
	pushq	%rbx
	subq	$48, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -64(%rbp)
	movaps	%xmm0, -80(%rbp)
	movq	(%rdi), %rbx
	movl	$32, -36(%rbp)
	testq	%rdx, %rdx
	je	LBB0_2
## %bb.1:
	testq	%rbx, %rbx
	je	LBB0_2
## %bb.3:
	movq	%rdx, %r15
	movl	%esi, %r12d
	movq	(%rbx), %rdi
	movq	(%rdi), %r14
	callq	_HINIC_HWIF_FUNC_IDX
	movl	%eax, -60(%rbp)
	movl	%r12d, -64(%rbp)
	movq	_HINIC_PORT_CMD_GET_RSS_CTX_TBL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-80(%rbp), %rdx
	leaq	-36(%rbp), %r9
	movq	%rbx, %rdi
	movl	$32, %ecx
	movq	%rdx, %r8
	callq	_hinic_port_msg_cmd
	movl	-36(%rbp), %r8d
	movq	-72(%rbp), %rcx
	testl	%eax, %eax
	jne	LBB0_6
## %bb.4:
	testl	%r8d, %r8d
	je	LBB0_6
## %bb.5:
	testq	%rcx, %rcx
	jne	LBB0_6
## %bb.7:
	movl	-80(%rbp), %edi
	movq	_IPV4@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_HINIC_RSS_TYPE_GET
	movq	%rax, 56(%r15)
	movl	-80(%rbp), %edi
	movq	_IPV6@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_HINIC_RSS_TYPE_GET
	movq	%rax, 48(%r15)
	movl	-80(%rbp), %edi
	movq	_IPV6_EXT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_HINIC_RSS_TYPE_GET
	movq	%rax, 40(%r15)
	movl	-80(%rbp), %edi
	movq	_TCP_IPV4@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_HINIC_RSS_TYPE_GET
	movq	%rax, 32(%r15)
	movl	-80(%rbp), %edi
	movq	_TCP_IPV6@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_HINIC_RSS_TYPE_GET
	movq	%rax, 24(%r15)
	movl	-80(%rbp), %edi
	movq	_TCP_IPV6_EXT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_HINIC_RSS_TYPE_GET
	movq	%rax, 16(%r15)
	movl	-80(%rbp), %edi
	movq	_UDP_IPV4@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_HINIC_RSS_TYPE_GET
	movq	%rax, 8(%r15)
	movl	-80(%rbp), %edi
	movq	_UDP_IPV6@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_HINIC_RSS_TYPE_GET
	movq	%rax, (%r15)
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_6:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_dev_err
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_8:
	addq	$48, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_HINIC_PORT_CMD_GET_RSS_CTX_TBL,4,2 ## @HINIC_PORT_CMD_GET_RSS_CTX_TBL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to get hash type, err: %d, status: 0x%x, out size: 0x%x\n"

	.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
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hinic_get_rss_type             ; -- Begin function hinic_get_rss_type
	.p2align	2
_hinic_get_rss_type:                    ; @hinic_get_rss_type
	.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
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [sp, #16]
	ldr	x21, [x0]
	mov	w8, #32
	str	w8, [sp, #12]
	cbz	x2, LBB0_4
; %bb.1:
	cbz	x21, LBB0_4
; %bb.2:
	mov	x19, x2
	mov	x22, x1
	ldr	x0, [x21]
	ldr	x20, [x0]
	bl	_HINIC_HWIF_FUNC_IDX
	stp	w22, w0, [sp, #32]
Lloh0:
	adrp	x8, _HINIC_PORT_CMD_GET_RSS_CTX_TBL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HINIC_PORT_CMD_GET_RSS_CTX_TBL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #16
	add	x4, sp, #16
	add	x5, sp, #12
	mov	x0, x21
	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_5
; %bb.3:
	mov	x2, x0
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_err
LBB0_4:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_6
LBB0_5:
	ldr	w0, [sp, #16]
Lloh8:
	adrp	x8, _IPV4@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IPV4@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	bl	_HINIC_RSS_TYPE_GET
	str	x0, [x19, #56]
	ldr	w0, [sp, #16]
Lloh11:
	adrp	x8, _IPV6@GOTPAGE
Lloh12:
	ldr	x8, [x8, _IPV6@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	bl	_HINIC_RSS_TYPE_GET
	str	x0, [x19, #48]
	ldr	w0, [sp, #16]
Lloh14:
	adrp	x8, _IPV6_EXT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _IPV6_EXT@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	bl	_HINIC_RSS_TYPE_GET
	str	x0, [x19, #40]
	ldr	w0, [sp, #16]
Lloh17:
	adrp	x8, _TCP_IPV4@GOTPAGE
Lloh18:
	ldr	x8, [x8, _TCP_IPV4@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	bl	_HINIC_RSS_TYPE_GET
	str	x0, [x19, #32]
	ldr	w0, [sp, #16]
Lloh20:
	adrp	x8, _TCP_IPV6@GOTPAGE
Lloh21:
	ldr	x8, [x8, _TCP_IPV6@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	bl	_HINIC_RSS_TYPE_GET
	str	x0, [x19, #24]
	ldr	w0, [sp, #16]
Lloh23:
	adrp	x8, _TCP_IPV6_EXT@GOTPAGE
Lloh24:
	ldr	x8, [x8, _TCP_IPV6_EXT@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	bl	_HINIC_RSS_TYPE_GET
	str	x0, [x19, #16]
	ldr	w0, [sp, #16]
Lloh26:
	adrp	x8, _UDP_IPV4@GOTPAGE
Lloh27:
	ldr	x8, [x8, _UDP_IPV4@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	bl	_HINIC_RSS_TYPE_GET
	str	x0, [x19, #8]
	ldr	w0, [sp, #16]
Lloh29:
	adrp	x8, _UDP_IPV6@GOTPAGE
Lloh30:
	ldr	x8, [x8, _UDP_IPV6@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
	bl	_HINIC_RSS_TYPE_GET
	mov	x8, x0
	mov	w0, #0
	str	x8, [x19]
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 AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_HINIC_PORT_CMD_GET_RSS_CTX_TBL,4,2 ; @HINIC_PORT_CMD_GET_RSS_CTX_TBL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to get hash type, err: %d, status: 0x%x, out size: 0x%x\n"

	.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
.subsections_via_symbols
