	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_enic_set_nic_cfg               ## -- Begin function enic_set_nic_cfg
	.p2align	4, 0x90
_enic_set_nic_cfg:                      ## @enic_set_nic_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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movq	%rdi, %r14
	movl	16(%rbp), %r10d
	movl	24(%rbp), %eax
	movq	_CMD_NIC_CFG@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r15d
	leaq	-32(%rbp), %rdi
	movl	%ebx, %edx
	pushq	%rax
	pushq	%r10
	callq	_vnic_set_nic_cfg
	addq	$16, %rsp
	movq	-32(%rbp), %rax
	movq	%rax, -48(%rbp)
	movq	$0, -40(%rbp)
	movq	_NIC_CFG_RSS_HASH_TYPE_UDP_IPV4@GOTPCREL(%rip), %rax
	movq	_NIC_CFG_RSS_HASH_TYPE_UDP_IPV6@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	testl	%ebx, %ecx
	je	LBB0_2
## %bb.1:
	movq	_CMD_NIC_CFG_CHK@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
LBB0_2:
	movl	(%r14), %edi
	leaq	-48(%rbp), %rdx
	leaq	-40(%rbp), %rcx
	movl	%r15d, %esi
	movl	$1000, %r8d                     ## imm = 0x3E8
	callq	_vnic_dev_cmd
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CMD_NIC_CFG,4,2                ## @CMD_NIC_CFG
	.comm	_NIC_CFG_RSS_HASH_TYPE_UDP_IPV4,4,2 ## @NIC_CFG_RSS_HASH_TYPE_UDP_IPV4
	.comm	_NIC_CFG_RSS_HASH_TYPE_UDP_IPV6,4,2 ## @NIC_CFG_RSS_HASH_TYPE_UDP_IPV6
	.comm	_CMD_NIC_CFG_CHK,4,2            ## @CMD_NIC_CFG_CHK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_enic_set_nic_cfg               ; -- Begin function enic_set_nic_cfg
	.p2align	2
_enic_set_nic_cfg:                      ; @enic_set_nic_cfg
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x20, x0
Lloh0:
	adrp	x8, _CMD_NIC_CFG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CMD_NIC_CFG@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
	add	x0, sp, #8
	bl	_vnic_set_nic_cfg
	ldr	x8, [sp, #8]
	str	x8, [sp, #24]
Lloh3:
	adrp	x8, _NIC_CFG_RSS_HASH_TYPE_UDP_IPV4@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NIC_CFG_RSS_HASH_TYPE_UDP_IPV4@GOTPAGEOFF]
	str	xzr, [sp, #16]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _NIC_CFG_RSS_HASH_TYPE_UDP_IPV6@GOTPAGE
Lloh7:
	ldr	x9, [x9, _NIC_CFG_RSS_HASH_TYPE_UDP_IPV6@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh9:
	adrp	x9, _CMD_NIC_CFG_CHK@GOTPAGE
Lloh10:
	ldr	x9, [x9, _CMD_NIC_CFG_CHK@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w8, w19
	csel	w1, w21, w9, eq
	ldr	w0, [x20]
	add	x2, sp, #24
	add	x3, sp, #16
	mov	w4, #1000
	bl	_vnic_dev_cmd
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_CMD_NIC_CFG,4,2                ; @CMD_NIC_CFG
	.comm	_NIC_CFG_RSS_HASH_TYPE_UDP_IPV4,4,2 ; @NIC_CFG_RSS_HASH_TYPE_UDP_IPV4
	.comm	_NIC_CFG_RSS_HASH_TYPE_UDP_IPV6,4,2 ; @NIC_CFG_RSS_HASH_TYPE_UDP_IPV6
	.comm	_CMD_NIC_CFG_CHK,4,2            ; @CMD_NIC_CFG_CHK
.subsections_via_symbols
