	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function enic_set_rx_coal_setting
_enic_set_rx_coal_setting:              ## @enic_set_rx_coal_setting
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movl	16(%rdi), %edi
	callq	_vnic_dev_port_speed
	movq	_ENIC_LINK_SPEED_10G@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_ENIC_LINK_SPEED_4G@GOTPCREL(%rip), %rcx
	cmpl	%eax, (%rcx)
	jae	LBB0_1
## %bb.2:
	movq	_ENIC_LINK_10G_INDEX@GOTPCREL(%rip), %rcx
	cmpl	%eax, %edx
	jb	LBB0_4
	jmp	LBB0_5
LBB0_1:
	movq	_ENIC_LINK_4G_INDEX@GOTPCREL(%rip), %rcx
	cmpl	%eax, %edx
	jae	LBB0_5
LBB0_4:
	movq	_ENIC_LINK_40G_INDEX@GOTPCREL(%rip), %rcx
LBB0_5:
	movslq	(%rcx), %rax
	movq	_mod_range@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	4(%rcx,%rax,8), %edx
	movl	%edx, 32(%r14)
	movl	(%rcx,%rax,8), %eax
	movl	%eax, 28(%r14)
	movq	_ENIC_RX_COALESCE_RANGE_END@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r14)
	movl	(%r14), %eax
	testl	%eax, %eax
	jle	LBB0_17
## %bb.6:
	movl	4(%r14), %ecx
	movq	8(%r14), %rdx
	cmpl	$8, %eax
	jae	LBB0_8
## %bb.7:
	xorl	%esi, %esi
	jmp	LBB0_16
LBB0_8:
	movl	%eax, %esi
	andl	$-8, %esi
	movd	%ecx, %xmm0
	pshufd	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0]
	leaq	-8(%rsi), %rbx
	movq	%rbx, %rdi
	shrq	$3, %rdi
	incq	%rdi
	movl	%edi, %r8d
	andl	$7, %r8d
	cmpq	$56, %rbx
	jae	LBB0_10
## %bb.9:
	xorl	%ebx, %ebx
	jmp	LBB0_12
LBB0_10:
	andq	$-8, %rdi
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movdqu	%xmm0, (%rdx,%rbx,4)
	movdqu	%xmm0, 16(%rdx,%rbx,4)
	movdqu	%xmm0, 32(%rdx,%rbx,4)
	movdqu	%xmm0, 48(%rdx,%rbx,4)
	movdqu	%xmm0, 64(%rdx,%rbx,4)
	movdqu	%xmm0, 80(%rdx,%rbx,4)
	movdqu	%xmm0, 96(%rdx,%rbx,4)
	movdqu	%xmm0, 112(%rdx,%rbx,4)
	movdqu	%xmm0, 128(%rdx,%rbx,4)
	movdqu	%xmm0, 144(%rdx,%rbx,4)
	movdqu	%xmm0, 160(%rdx,%rbx,4)
	movdqu	%xmm0, 176(%rdx,%rbx,4)
	movdqu	%xmm0, 192(%rdx,%rbx,4)
	movdqu	%xmm0, 208(%rdx,%rbx,4)
	movdqu	%xmm0, 224(%rdx,%rbx,4)
	movdqu	%xmm0, 240(%rdx,%rbx,4)
	addq	$64, %rbx
	addq	$-8, %rdi
	jne	LBB0_11
LBB0_12:
	testq	%r8, %r8
	je	LBB0_15
## %bb.13:
	leaq	(%rdx,%rbx,4), %rdi
	addq	$16, %rdi
	shlq	$5, %r8
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movdqu	%xmm0, -16(%rdi,%rbx)
	movdqu	%xmm0, (%rdi,%rbx)
	addq	$32, %rbx
	cmpq	%rbx, %r8
	jne	LBB0_14
LBB0_15:
	cmpq	%rax, %rsi
	je	LBB0_17
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movl	%ecx, (%rdx,%rsi,4)
	incq	%rsi
	cmpq	%rsi, %rax
	jne	LBB0_16
LBB0_17:
	movl	$1, 20(%r14)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENIC_LINK_SPEED_10G,4,2        ## @ENIC_LINK_SPEED_10G
	.comm	_ENIC_LINK_40G_INDEX,4,2        ## @ENIC_LINK_40G_INDEX
	.comm	_ENIC_LINK_SPEED_4G,4,2         ## @ENIC_LINK_SPEED_4G
	.comm	_ENIC_LINK_10G_INDEX,4,2        ## @ENIC_LINK_10G_INDEX
	.comm	_ENIC_LINK_4G_INDEX,4,2         ## @ENIC_LINK_4G_INDEX
	.comm	_mod_range,8,3                  ## @mod_range
	.comm	_ENIC_RX_COALESCE_RANGE_END,4,2 ## @ENIC_RX_COALESCE_RANGE_END
	.no_dead_strip	_enic_set_rx_coal_setting
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function enic_set_rx_coal_setting
_enic_set_rx_coal_setting:              ; @enic_set_rx_coal_setting
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	w0, [x0, #16]
	bl	_vnic_dev_port_speed
Lloh0:
	adrp	x8, _ENIC_LINK_SPEED_10G@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENIC_LINK_SPEED_10G@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _ENIC_LINK_SPEED_4G@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ENIC_LINK_SPEED_4G@GOTPAGEOFF]
Lloh5:
	adrp	x10, _ENIC_LINK_40G_INDEX@GOTPAGE
Lloh6:
	ldr	x10, [x10, _ENIC_LINK_40G_INDEX@GOTPAGEOFF]
Lloh7:
	adrp	x11, _ENIC_LINK_10G_INDEX@GOTPAGE
Lloh8:
	ldr	x11, [x11, _ENIC_LINK_10G_INDEX@GOTPAGEOFF]
Lloh9:
	adrp	x12, _ENIC_LINK_4G_INDEX@GOTPAGE
Lloh10:
	ldr	x12, [x12, _ENIC_LINK_4G_INDEX@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	cmp	w9, w0
	csel	x9, x11, x12, lo
	cmp	w8, w0
	csel	x8, x10, x9, lo
	ldrsw	x8, [x8]
Lloh12:
	adrp	x9, _mod_range@GOTPAGE
Lloh13:
	ldr	x9, [x9, _mod_range@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	ldr	d0, [x9, x8, lsl #3]
	stur	d0, [x19, #28]
Lloh15:
	adrp	x8, _ENIC_RX_COALESCE_RANGE_END@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENIC_RX_COALESCE_RANGE_END@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	str	w8, [x19, #24]
	ldr	w9, [x19]
	cmp	w9, #1
	b.lt	LBB0_8
; %bb.1:
	ldr	w8, [x19, #4]
	ldr	x10, [x19, #8]
	cmp	w9, #16
	b.hs	LBB0_3
; %bb.2:
	mov	x11, #0
	b	LBB0_6
LBB0_3:
	and	x11, x9, #0xfffffff0
	dup.4s	v0, w8
	add	x12, x10, #32
	mov	x13, x11
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	stp	q0, q0, [x12, #-32]
	stp	q0, q0, [x12], #64
	subs	x13, x13, #16
	b.ne	LBB0_4
; %bb.5:
	cmp	x11, x9
	b.eq	LBB0_8
LBB0_6:
	add	x10, x10, x11, lsl #2
	sub	x9, x9, x11
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	str	w8, [x10], #4
	subs	x9, x9, #1
	b.ne	LBB0_7
LBB0_8:
	mov	w8, #1
	str	w8, [x19, #20]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh11
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ENIC_LINK_SPEED_10G,4,2        ; @ENIC_LINK_SPEED_10G
	.comm	_ENIC_LINK_40G_INDEX,4,2        ; @ENIC_LINK_40G_INDEX
	.comm	_ENIC_LINK_SPEED_4G,4,2         ; @ENIC_LINK_SPEED_4G
	.comm	_ENIC_LINK_10G_INDEX,4,2        ; @ENIC_LINK_10G_INDEX
	.comm	_ENIC_LINK_4G_INDEX,4,2         ; @ENIC_LINK_4G_INDEX
	.comm	_mod_range,8,3                  ; @mod_range
	.comm	_ENIC_RX_COALESCE_RANGE_END,4,2 ; @ENIC_RX_COALESCE_RANGE_END
	.no_dead_strip	_enic_set_rx_coal_setting
.subsections_via_symbols
