	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vnic_dev_capable_rss_hash_type ## -- Begin function vnic_dev_capable_rss_hash_type
	.p2align	4, 0x90
_vnic_dev_capable_rss_hash_type:        ## @vnic_dev_capable_rss_hash_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rsi, %rbx
	movq	_CMD_NIC_CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -16(%rbp)
	movl	$0, -12(%rbp)
	movq	_CMD_CAPABILITY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-16(%rbp), %rdx
	leaq	-12(%rbp), %rcx
	movl	$1000, %r8d                     ## imm = 0x3E8
	callq	_vnic_dev_cmd
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	cmpl	$1, -16(%rbp)
	jne	LBB0_2
## %bb.3:
	movl	-12(%rbp), %eax
	movq	_NIC_CFG_RSS_HASH_TYPE_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %eax
	movq	_NIC_CFG_RSS_HASH_TYPE_MASK_FIELD@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	cltq
	movq	%rax, (%rbx)
	xorl	%eax, %eax
	jmp	LBB0_4
LBB0_2:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CMD_NIC_CFG,4,2                ## @CMD_NIC_CFG
	.comm	_CMD_CAPABILITY,4,2             ## @CMD_CAPABILITY
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_NIC_CFG_RSS_HASH_TYPE_SHIFT,4,2 ## @NIC_CFG_RSS_HASH_TYPE_SHIFT
	.comm	_NIC_CFG_RSS_HASH_TYPE_MASK_FIELD,4,2 ## @NIC_CFG_RSS_HASH_TYPE_MASK_FIELD
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vnic_dev_capable_rss_hash_type ; -- Begin function vnic_dev_capable_rss_hash_type
	.p2align	2
_vnic_dev_capable_rss_hash_type:        ; @vnic_dev_capable_rss_hash_type
	.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
Lloh0:
	adrp	x8, _CMD_NIC_CFG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CMD_NIC_CFG@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	stp	wzr, w8, [sp, #8]
Lloh3:
	adrp	x8, _CMD_CAPABILITY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CMD_CAPABILITY@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	x2, sp, #12
	add	x3, sp, #8
	mov	w4, #1000
	bl	_vnic_dev_cmd
	ldr	w8, [sp, #12]
	cmp	w0, #0
	ccmp	w8, #1, #0, eq
	b.eq	LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_3
LBB0_2:
	mov	w0, #0
	ldr	w8, [sp, #8]
Lloh9:
	adrp	x9, _NIC_CFG_RSS_HASH_TYPE_SHIFT@GOTPAGE
Lloh10:
	ldr	x9, [x9, _NIC_CFG_RSS_HASH_TYPE_SHIFT@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	asr	w8, w8, w9
Lloh12:
	adrp	x9, _NIC_CFG_RSS_HASH_TYPE_MASK_FIELD@GOTPAGE
Lloh13:
	ldr	x9, [x9, _NIC_CFG_RSS_HASH_TYPE_MASK_FIELD@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	and	w8, w8, w9
	sxtw	x8, w8
	str	x8, [x19]
LBB0_3:
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_CMD_NIC_CFG,4,2                ; @CMD_NIC_CFG
	.comm	_CMD_CAPABILITY,4,2             ; @CMD_CAPABILITY
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_NIC_CFG_RSS_HASH_TYPE_SHIFT,4,2 ; @NIC_CFG_RSS_HASH_TYPE_SHIFT
	.comm	_NIC_CFG_RSS_HASH_TYPE_MASK_FIELD,4,2 ; @NIC_CFG_RSS_HASH_TYPE_MASK_FIELD
.subsections_via_symbols
