	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function enic_calc_int_moderation
_enic_calc_int_moderation:              ## @enic_calc_int_moderation
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	(%rdi), %r13
	movl	(%rsi), %esi
	callq	_enic_cq_rq
	movq	%rax, %r15
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_ktime_get
	movl	%eax, %r12d
	shlq	$4, %r15
	movl	4(%r13,%r15), %esi
	movl	%eax, %edi
	callq	_ktime_us_delta
	movq	%rax, %rcx
	movq	_ENIC_AIC_TS_BREAK@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	jl	LBB0_8
## %bb.1:
	leaq	(%r15,%r13), %rsi
	addq	$4, %rsi
	movl	%r12d, (%rsi)
	movq	_UINT_MAX@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	jg	LBB0_3
## %bb.2:
	movl	8(%rsi), %eax
	addl	4(%rsi), %eax
	shll	$3, %eax
	cltd
	idivl	%ecx
	movl	%eax, %ebx
LBB0_3:
	movq	_ENIC_MAX_COALESCE_TIMERS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_mod_table@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	xorl	%ecx, %ecx
	testl	%edx, %edx
	jle	LBB0_7
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	(%rax,%rcx,8), %ebx
	jl	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	incq	%rcx
	cmpq	%rcx, %rdx
	jne	LBB0_4
## %bb.6:
	movl	%edx, %ecx
LBB0_7:
	movl	4(%rsi), %edx
	addl	%edx, %edx
	xorl	%edi, %edi
	cmpl	%edx, 8(%rsi)
	setle	%dil
	movl	8(%r14,%rdi,4), %edx
	movl	16(%r14), %edi
	subl	%edx, %edi
	movl	%ecx, %ecx
	imull	4(%rax,%rcx,8), %edi
	movslq	%edi, %rax
	imulq	$1374389535, %rax, %rax         ## imm = 0x51EB851F
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$37, %rax
	addl	%ecx, %eax
	addl	(%r13,%r15), %edx
	addl	%eax, %edx
	sarl	%edx
	movl	%edx, (%r13,%r15)
	movl	$0, 4(%rsi)
	movl	$0, 8(%rsi)
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENIC_AIC_TS_BREAK,8,3          ## @ENIC_AIC_TS_BREAK
	.comm	_UINT_MAX,8,3                   ## @UINT_MAX
	.comm	_ENIC_MAX_COALESCE_TIMERS,4,2   ## @ENIC_MAX_COALESCE_TIMERS
	.comm	_mod_table,8,3                  ## @mod_table
	.no_dead_strip	_enic_calc_int_moderation
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function enic_calc_int_moderation
_enic_calc_int_moderation:              ; @enic_calc_int_moderation
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x20, x0
	ldr	x22, [x0]
	ldr	w1, [x1]
	bl	_enic_cq_rq
	mov	x19, x0
	bl	_ktime_get
	mov	x21, x0
	add	x23, x22, x19, lsl #4
	mov	x24, x23
	ldr	w1, [x24, #4]!
	bl	_ktime_us_delta
Lloh0:
	adrp	x8, _ENIC_AIC_TS_BREAK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENIC_AIC_TS_BREAK@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.lt	LBB0_11
; %bb.1:
	str	w21, [x24]
	add	x8, x23, #8
	add	x9, x23, #12
Lloh3:
	adrp	x10, _UINT_MAX@GOTPAGE
Lloh4:
	ldr	x10, [x10, _UINT_MAX@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x0, x10
	b.le	LBB0_3
; %bb.2:
	mov	w12, #0
	b	LBB0_4
LBB0_3:
	ldr	w10, [x8]
	ldr	w11, [x9]
	add	w10, w11, w10
	lsl	w10, w10, #3
	sdiv	w12, w10, w0
LBB0_4:
Lloh6:
	adrp	x10, _ENIC_MAX_COALESCE_TIMERS@GOTPAGE
Lloh7:
	ldr	x10, [x10, _ENIC_MAX_COALESCE_TIMERS@GOTPAGEOFF]
Lloh8:
	ldr	w13, [x10]
Lloh9:
	adrp	x10, _mod_table@GOTPAGE
Lloh10:
	ldr	x10, [x10, _mod_table@GOTPAGEOFF]
Lloh11:
	ldr	x10, [x10]
	cmp	w13, #1
	b.lt	LBB0_9
; %bb.5:
	mov	x11, #0
	mov	x14, x10
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w15, [x14]
	cmp	w12, w15
	b.lt	LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x11, x11, #1
	add	x14, x14, #8
	cmp	x13, x11
	b.ne	LBB0_6
; %bb.8:
	mov	x11, x13
	b	LBB0_10
LBB0_9:
	mov	w11, #0
LBB0_10:
	ldr	w9, [x9]
	ldr	w12, [x8]
	cmp	w9, w12, lsl #1
	mov	w9, #12
	mov	w12, #8
	csel	x9, x12, x9, gt
	ldr	w9, [x20, x9]
	ldr	w12, [x20, #16]
	sub	w12, w12, w9
	add	x10, x10, w11, uxtw #3
	ldr	w10, [x10, #4]
	mul	w10, w10, w12
	mov	w11, #34079
	movk	w11, #20971, lsl #16
	smull	x10, w10, w11
	lsr	x11, x10, #63
	asr	x10, x10, #37
	add	w10, w10, w11
	lsl	x11, x19, #4
	ldr	w12, [x22, x11]
	add	w9, w12, w9
	add	w9, w9, w10
	asr	w9, w9, #1
	str	w9, [x22, x11]
	str	xzr, [x8]
LBB0_11:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ENIC_AIC_TS_BREAK,8,3          ; @ENIC_AIC_TS_BREAK
	.comm	_UINT_MAX,8,3                   ; @UINT_MAX
	.comm	_ENIC_MAX_COALESCE_TIMERS,4,2   ; @ENIC_MAX_COALESCE_TIMERS
	.comm	_mod_table,8,3                  ; @mod_table
	.no_dead_strip	_enic_calc_int_moderation
.subsections_via_symbols
