	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx4_en_auto_moderation
_mlx4_en_auto_moderation:               ## @mlx4_en_auto_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpl	$0, 88(%rdi)
	je	LBB0_32
## %bb.1:
	movq	%rdi, %r12
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	subq	56(%rdi), %r14
	movq	_HZ@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	imulq	(%rdi), %rax
	cmpq	%rax, %r14
	jb	LBB0_32
## %bb.2:
	movl	84(%r12), %edi
	callq	_READ_ONCE
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	80(%r12), %edi
	callq	_READ_ONCE
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	cmpl	$0, 8(%r12)
	jle	LBB0_31
## %bb.3:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	subq	-56(%rbp), %rax                 ## 8-byte Folded Reload
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_30:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	16(%r12), %rax
	movq	%r13, (%rax,%rbx,8)
	movq	24(%r12), %rax
	movq	%r15, (%rax,%rbx,8)
	incq	%rbx
	movslq	8(%r12), %rax
	cmpq	%rax, %rbx
	jge	LBB0_31
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	72(%r12), %rax
	movq	(%rax,%rbx,8), %rax
	movl	4(%rax), %edi
	callq	_READ_ONCE
	movq	%rax, %r13
	movq	72(%r12), %rax
	movq	(%rax,%rbx,8), %rax
	movl	(%rax), %edi
	callq	_READ_ONCE
	movq	%rax, %r15
	movq	16(%r12), %rax
	movq	(%rax,%rbx,8), %rdi
	movq	%r13, %rsi
	subq	%rdi, %rsi
	movq	_HZ@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	imulq	%rsi, %rax
	movq	%rax, %rcx
	orq	%r14, %rcx
	shrq	$32, %rcx
	je	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	xorl	%edx, %edx
	divq	%r14
	movq	%rax, %rcx
	cmpq	%rdi, %r13
	jne	LBB0_9
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	xorl	%esi, %esi
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_4 Depth=1
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%r14d
	movl	%eax, %ecx
	cmpq	%rdi, %r13
	je	LBB0_8
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	24(%r12), %rdx
	movq	%r15, %rax
	subq	(%rdx,%rbx,8), %rax
	movq	%rax, %rdx
	orq	%rsi, %rdx
	shrq	$32, %rdx
	je	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_4 Depth=1
	xorl	%edx, %edx
	divq	%rsi
	movq	%rax, %rsi
	jmp	LBB0_12
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=1
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%esi
	movl	%eax, %esi
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	_MLX4_EN_RX_RATE_THRESH@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	8(%r12), %rdi
	movq	%rax, %rdx
	orq	%rdi, %rdx
	shrq	$32, %rdx
	je	LBB0_13
## %bb.14:                              ##   in Loop: Header=BB0_4 Depth=1
	xorl	%edx, %edx
	divq	%rdi
	cmpq	%rax, %rcx
	ja	LBB0_16
	jmp	LBB0_24
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_4 Depth=1
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%edi
                                        ## kill: def $eax killed $eax def $rax
	cmpq	%rax, %rcx
	jbe	LBB0_24
LBB0_16:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	_MLX4_EN_AVG_PKT_SMALL@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rsi
	jbe	LBB0_24
## %bb.17:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	%rcx, %rax
	subq	-56(%rbp), %rax                 ## 8-byte Folded Reload
	jbe	LBB0_24
## %bb.18:                              ##   in Loop: Header=BB0_4 Depth=1
	cmpq	-48(%rbp), %rcx                 ## 8-byte Folded Reload
	jae	LBB0_19
## %bb.20:                              ##   in Loop: Header=BB0_4 Depth=1
	movslq	36(%r12), %rdx
	movslq	32(%r12), %rcx
	subq	%rcx, %rdx
	imulq	%rdx, %rax
	movq	%rax, %rdx
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	orq	%rsi, %rdx
	shrq	$32, %rdx
	je	LBB0_21
## %bb.22:                              ##   in Loop: Header=BB0_4 Depth=1
	xorl	%edx, %edx
	divq	%rsi
	addl	%ecx, %eax
	jmp	LBB0_25
	.p2align	4, 0x90
LBB0_24:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	32(%r12), %eax
LBB0_25:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	40(%r12), %rcx
	movq	64(%r12), %rdx
	movq	(%rdx,%rbx,8), %rsi
	cmpl	(%rcx,%rbx,4), %eax
	jne	LBB0_26
## %bb.27:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	48(%r12), %rdx
	cmpq	%rdx, (%rsi)
	je	LBB0_30
	jmp	LBB0_28
	.p2align	4, 0x90
LBB0_26:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	48(%r12), %rdx
LBB0_28:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	%eax, (%rcx,%rbx,4)
	movl	%eax, 8(%rsi)
	movq	%rdx, (%rsi)
	movq	%r12, %rdi
	callq	_mlx4_en_set_cq_moder
	testl	%eax, %eax
	je	LBB0_30
## %bb.29:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	%r12, %rdi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	callq	_en_err
	jmp	LBB0_30
LBB0_19:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	36(%r12), %eax
	jmp	LBB0_25
LBB0_21:                                ##   in Loop: Header=BB0_4 Depth=1
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%esi
                                        ## kill: def $eax killed $eax def $rax
	addl	%ecx, %eax
	jmp	LBB0_25
LBB0_31:
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 56(%r12)
LBB0_32:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_HZ,8,3                         ## @HZ
	.comm	_MLX4_EN_RX_RATE_THRESH,8,3     ## @MLX4_EN_RX_RATE_THRESH
	.comm	_MLX4_EN_AVG_PKT_SMALL,8,3      ## @MLX4_EN_AVG_PKT_SMALL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed modifying moderation for cq:%d\n"

	.no_dead_strip	_mlx4_en_auto_moderation
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlx4_en_auto_moderation
_mlx4_en_auto_moderation:               ; @mlx4_en_auto_moderation
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	ldr	w8, [x0, #88]
	cbz	w8, LBB0_20
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x8, _jiffies@GOTPAGE
Lloh1:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x9, [x0, #56]
	ldr	x10, [x0]
Lloh3:
	adrp	x27, _HZ@GOTPAGE
Lloh4:
	ldr	x27, [x27, _HZ@GOTPAGEOFF]
	ldr	x11, [x27]
	mul	x10, x11, x10
	sub	x28, x8, x9
	cmp	x28, x10
	b.lo	LBB0_20
; %bb.2:
	ldr	w0, [x19, #84]
	bl	_READ_ONCE
	mov	x20, x0
	ldr	w0, [x19, #80]
	bl	_READ_ONCE
	str	x0, [sp, #8]                    ; 8-byte Folded Spill
	ldr	w8, [x19, #8]
	cmp	w8, #1
	b.lt	LBB0_19
; %bb.3:
	mov	x22, #0
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	sub	x8, x8, x20
	str	x8, [sp]                        ; 8-byte Folded Spill
Lloh5:
	adrp	x26, _MLX4_EN_RX_RATE_THRESH@GOTPAGE
Lloh6:
	ldr	x26, [x26, _MLX4_EN_RX_RATE_THRESH@GOTPAGEOFF]
Lloh7:
	adrp	x23, _MLX4_EN_AVG_PKT_SMALL@GOTPAGE
Lloh8:
	ldr	x23, [x23, _MLX4_EN_AVG_PKT_SMALL@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldp	x8, x9, [x19, #16]
	str	x24, [x8, x21]
	str	x25, [x9, x21]
	add	x22, x22, #1
	ldrsw	x8, [x19, #8]
	cmp	x22, x8
	b.ge	LBB0_19
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #72]
	lsl	x21, x22, #3
	ldr	x8, [x8, x21]
	ldr	w0, [x8, #4]
	bl	_READ_ONCE
	mov	x24, x0
	ldr	x8, [x19, #72]
	ldr	x8, [x8, x21]
	ldr	w0, [x8]
	bl	_READ_ONCE
	mov	x25, x0
	ldr	x8, [x19, #16]
	ldr	x8, [x8, x21]
	subs	x8, x24, x8
	b.ne	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x9, #0
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x9, [x19, #24]
	ldr	x9, [x9, x22, lsl #3]
	sub	x9, x25, x9
	udiv	x9, x9, x8
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x10, [x27]
	mul	x8, x8, x10
	udiv	x8, x8, x28
	ldr	x10, [x26]
	ldrsw	x11, [x19, #8]
	ldr	x12, [x23]
	udiv	x10, x10, x11
	cmp	x8, x10
	ccmp	x9, x12, #0, hi
	b.ls	LBB0_12
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	subs	x9, x8, x20
	b.ls	LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x10, [sp, #8]                   ; 8-byte Folded Reload
	cmp	x8, x10
	b.hs	LBB0_18
; %bb.11:                               ;   in Loop: Header=BB0_5 Depth=1
	ldpsw	x10, x8, [x19, #32]
	sub	x8, x8, x10
	mul	x8, x9, x8
	ldr	x9, [sp]                        ; 8-byte Folded Reload
	udiv	x8, x8, x9
	add	w8, w10, w8
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x19, #32]
LBB0_13:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x9, [x19, #64]
	ldr	x1, [x9, x22, lsl #3]
	ldr	x9, [x19, #40]
	ldr	w10, [x9, x22, lsl #2]
	cmp	w8, w10
	b.ne	LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x11, [x1]
	ldr	x10, [x19, #48]
	cmp	x11, x10
	b.eq	LBB0_4
	b	LBB0_16
LBB0_15:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x10, [x19, #48]
LBB0_16:                                ;   in Loop: Header=BB0_5 Depth=1
	str	w8, [x9, x22, lsl #2]
	str	w8, [x1, #8]
	str	x10, [x1]
	mov	x0, x19
	bl	_mlx4_en_set_cq_moder
	cbz	w0, LBB0_4
; %bb.17:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x19
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x22
	bl	_en_err
	b	LBB0_4
LBB0_18:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x19, #36]
	b	LBB0_13
LBB0_19:
Lloh11:
	adrp	x8, _jiffies@GOTPAGE
Lloh12:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	str	x8, [x19, #56]
LBB0_20:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_HZ,8,3                         ; @HZ
	.comm	_MLX4_EN_RX_RATE_THRESH,8,3     ; @MLX4_EN_RX_RATE_THRESH
	.comm	_MLX4_EN_AVG_PKT_SMALL,8,3      ; @MLX4_EN_AVG_PKT_SMALL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed modifying moderation for cq:%d\n"

	.no_dead_strip	_mlx4_en_auto_moderation
.subsections_via_symbols
