	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx4_en_set_default_moderation
_mlx4_en_set_default_moderation:        ## @mlx4_en_set_default_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	_MLX4_EN_RX_COAL_TARGET@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movl	%r8d, 100(%rdi)
	movq	_MLX4_EN_RX_COAL_TIME@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movl	%r9d, 96(%rdi)
	movq	_MLX4_EN_TX_COAL_PKTS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 56(%rdi)
	movq	_MLX4_EN_TX_COAL_TIME@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 52(%rdi)
	movq	_INTR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	112(%r14), %rax
	movl	(%rax), %ecx
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rsi
	callq	_en_dbg
	cmpl	$0, (%r14)
	jle	LBB0_3
## %bb.1:
	movq	104(%r14), %rax
	movq	88(%r14), %rcx
	movq	72(%r14), %rdx
	movq	80(%r14), %rsi
	xorl	%edi, %edi
	movq	_MLX4_EN_AUTO_CONF@GOTPCREL(%rip), %r8
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	100(%r14), %ebx
	movl	%ebx, 4(%rax,%rdi,8)
	movl	96(%r14), %ebx
	movl	%ebx, (%rax,%rdi,8)
	movl	(%r8), %ebx
	movl	%ebx, (%rcx,%rdi,4)
	movq	$0, (%rsi,%rdi,8)
	movq	$0, (%rdx,%rdi,8)
	incq	%rdi
	movslq	(%r14), %rbx
	cmpq	%rbx, %rdi
	jl	LBB0_2
LBB0_3:
	movl	4(%r14), %r10d
	testl	%r10d, %r10d
	jle	LBB0_14
## %bb.4:
	movq	64(%r14), %rcx
	movl	52(%r14), %r8d
	movl	56(%r14), %r9d
	cmpl	$4, %r10d
	jae	LBB0_6
## %bb.5:
	xorl	%edi, %edi
	jmp	LBB0_13
LBB0_6:
	movl	%r10d, %edi
	andl	$-4, %edi
	movd	%r8d, %xmm0
	pshufd	$80, %xmm0, %xmm0               ## xmm0 = xmm0[0,0,1,1]
	movd	%r9d, %xmm1
	pshufd	$80, %xmm1, %xmm1               ## xmm1 = xmm1[0,0,1,1]
	punpckldq	%xmm1, %xmm0            ## xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1]
	leaq	-4(%rdi), %rsi
	movq	%rsi, %rdx
	shrq	$2, %rdx
	incq	%rdx
	movl	%edx, %eax
	andl	$3, %eax
	cmpq	$12, %rsi
	jae	LBB0_8
## %bb.7:
	xorl	%esi, %esi
	jmp	LBB0_10
LBB0_8:
	andq	$-4, %rdx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movdqu	%xmm0, (%rcx,%rsi,8)
	movdqu	%xmm0, 16(%rcx,%rsi,8)
	movdqu	%xmm0, 32(%rcx,%rsi,8)
	movdqu	%xmm0, 48(%rcx,%rsi,8)
	movdqu	%xmm0, 64(%rcx,%rsi,8)
	movdqu	%xmm0, 80(%rcx,%rsi,8)
	movdqu	%xmm0, 96(%rcx,%rsi,8)
	movdqu	%xmm0, 112(%rcx,%rsi,8)
	addq	$16, %rsi
	addq	$-4, %rdx
	jne	LBB0_9
LBB0_10:
	testq	%rax, %rax
	je	LBB0_12
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	leaq	(,%rsi,8), %rdx
	orq	$16, %rdx
	movdqu	%xmm0, (%rcx,%rsi,8)
	movdqu	%xmm0, (%rcx,%rdx)
	addq	$4, %rsi
	decq	%rax
	jne	LBB0_11
LBB0_12:
	cmpq	%r10, %rdi
	je	LBB0_14
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movl	%r9d, 4(%rcx,%rdi,8)
	movl	%r8d, (%rcx,%rdi,8)
	incq	%rdi
	cmpq	%rdi, %r10
	jne	LBB0_13
LBB0_14:
	movq	_MLX4_EN_RX_RATE_LOW@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 48(%r14)
	movq	_MLX4_EN_RX_COAL_TIME_LOW@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 44(%r14)
	movq	_MLX4_EN_RX_RATE_HIGH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%r14)
	movq	_MLX4_EN_RX_COAL_TIME_HIGH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%r14)
	movq	_MLX4_EN_SAMPLE_INTERVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%r14)
	movl	$1, 8(%r14)
	pxor	%xmm0, %xmm0
	movdqu	%xmm0, 16(%r14)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MLX4_EN_RX_COAL_TARGET,4,2     ## @MLX4_EN_RX_COAL_TARGET
	.comm	_MLX4_EN_RX_COAL_TIME,4,2       ## @MLX4_EN_RX_COAL_TIME
	.comm	_MLX4_EN_TX_COAL_PKTS,4,2       ## @MLX4_EN_TX_COAL_PKTS
	.comm	_MLX4_EN_TX_COAL_TIME,4,2       ## @MLX4_EN_TX_COAL_TIME
	.comm	_INTR,4,2                       ## @INTR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Default coalesing params for mtu:%d - rx_frames:%d rx_usecs:%d\n"

	.comm	_MLX4_EN_AUTO_CONF,4,2          ## @MLX4_EN_AUTO_CONF
	.comm	_MLX4_EN_RX_RATE_LOW,4,2        ## @MLX4_EN_RX_RATE_LOW
	.comm	_MLX4_EN_RX_COAL_TIME_LOW,4,2   ## @MLX4_EN_RX_COAL_TIME_LOW
	.comm	_MLX4_EN_RX_RATE_HIGH,4,2       ## @MLX4_EN_RX_RATE_HIGH
	.comm	_MLX4_EN_RX_COAL_TIME_HIGH,4,2  ## @MLX4_EN_RX_COAL_TIME_HIGH
	.comm	_MLX4_EN_SAMPLE_INTERVAL,4,2    ## @MLX4_EN_SAMPLE_INTERVAL
	.no_dead_strip	_mlx4_en_set_default_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_set_default_moderation
_mlx4_en_set_default_moderation:        ; @mlx4_en_set_default_moderation
	.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
Lloh0:
	adrp	x8, _MLX4_EN_RX_COAL_TARGET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MLX4_EN_RX_COAL_TARGET@GOTPAGEOFF]
Lloh2:
	ldr	w4, [x8]
Lloh3:
	adrp	x8, _MLX4_EN_RX_COAL_TIME@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MLX4_EN_RX_COAL_TIME@GOTPAGEOFF]
Lloh5:
	ldr	w5, [x8]
Lloh6:
	adrp	x8, _MLX4_EN_TX_COAL_PKTS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MLX4_EN_TX_COAL_PKTS@GOTPAGEOFF]
	stp	w5, w4, [x0, #96]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _MLX4_EN_TX_COAL_TIME@GOTPAGE
Lloh10:
	ldr	x9, [x9, _MLX4_EN_TX_COAL_TIME@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #52]
Lloh12:
	adrp	x8, _INTR@GOTPAGE
Lloh13:
	ldr	x8, [x8, _INTR@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	ldr	x8, [x19, #112]
	ldr	w3, [x8]
Lloh15:
	adrp	x2, l_.str@PAGE
Lloh16:
	add	x2, x2, l_.str@PAGEOFF
	mov	x1, x19
	bl	_en_dbg
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x8, #0
	ldr	x9, [x19, #104]
	ldp	x11, x10, [x19, #80]
	ldr	x12, [x19, #72]
Lloh17:
	adrp	x13, _MLX4_EN_AUTO_CONF@GOTPAGE
Lloh18:
	ldr	x13, [x13, _MLX4_EN_AUTO_CONF@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	d0, [x19, #96]
	lsl	x14, x8, #3
	str	d0, [x9, x14]
	ldr	w15, [x13]
	str	w15, [x10, x8, lsl #2]
	str	xzr, [x11, x14]
	str	xzr, [x12, x14]
	add	x8, x8, #1
	ldrsw	x14, [x19]
	cmp	x8, x14
	b.lt	LBB0_2
LBB0_3:
	ldr	w10, [x19, #4]
	cmp	w10, #1
	b.lt	LBB0_11
; %bb.4:
	ldr	x11, [x19, #64]
	ldp	w9, w8, [x19, #52]
	cmp	w10, #16
	b.hs	LBB0_6
; %bb.5:
	mov	x12, #0
	b	LBB0_9
LBB0_6:
	and	x12, x10, #0xfffffff0
	dup.4s	v0, w9
	dup.4s	v1, w8
	add	x14, x11, #64
	mov	x13, x12
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	sub	x15, x14, #64
	st2.4s	{ v0, v1 }, [x15]
	sub	x15, x14, #32
	st2.4s	{ v0, v1 }, [x15]
	add	x15, x14, #128
	st2.4s	{ v0, v1 }, [x14], #32
	st2.4s	{ v0, v1 }, [x14]
	mov	x14, x15
	subs	x13, x13, #16
	b.ne	LBB0_7
; %bb.8:
	cmp	x12, x10
	b.eq	LBB0_11
LBB0_9:
	add	x11, x11, x12, lsl #3
	add	x11, x11, #4
	sub	x10, x10, x12
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	stp	w9, w8, [x11, #-4]
	add	x11, x11, #8
	subs	x10, x10, #1
	b.ne	LBB0_10
LBB0_11:
Lloh19:
	adrp	x8, _MLX4_EN_RX_RATE_LOW@GOTPAGE
Lloh20:
	ldr	x8, [x8, _MLX4_EN_RX_RATE_LOW@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	str	w8, [x19, #48]
Lloh22:
	adrp	x8, _MLX4_EN_RX_COAL_TIME_LOW@GOTPAGE
Lloh23:
	ldr	x8, [x8, _MLX4_EN_RX_COAL_TIME_LOW@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
Lloh25:
	adrp	x9, _MLX4_EN_RX_RATE_HIGH@GOTPAGE
Lloh26:
	ldr	x9, [x9, _MLX4_EN_RX_RATE_HIGH@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #40]
Lloh28:
	adrp	x8, _MLX4_EN_RX_COAL_TIME_HIGH@GOTPAGE
Lloh29:
	ldr	x8, [x8, _MLX4_EN_RX_COAL_TIME_HIGH@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
Lloh31:
	adrp	x9, _MLX4_EN_SAMPLE_INTERVAL@GOTPAGE
Lloh32:
	ldr	x9, [x9, _MLX4_EN_SAMPLE_INTERVAL@GOTPAGEOFF]
Lloh33:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #32]
	mov	w8, #1
	str	w8, [x19, #8]
	stp	xzr, xzr, [x19, #16]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_MLX4_EN_RX_COAL_TARGET,4,2     ; @MLX4_EN_RX_COAL_TARGET
	.comm	_MLX4_EN_RX_COAL_TIME,4,2       ; @MLX4_EN_RX_COAL_TIME
	.comm	_MLX4_EN_TX_COAL_PKTS,4,2       ; @MLX4_EN_TX_COAL_PKTS
	.comm	_MLX4_EN_TX_COAL_TIME,4,2       ; @MLX4_EN_TX_COAL_TIME
	.comm	_INTR,4,2                       ; @INTR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Default coalesing params for mtu:%d - rx_frames:%d rx_usecs:%d\n"

	.comm	_MLX4_EN_AUTO_CONF,4,2          ; @MLX4_EN_AUTO_CONF
	.comm	_MLX4_EN_RX_RATE_LOW,4,2        ; @MLX4_EN_RX_RATE_LOW
	.comm	_MLX4_EN_RX_COAL_TIME_LOW,4,2   ; @MLX4_EN_RX_COAL_TIME_LOW
	.comm	_MLX4_EN_RX_RATE_HIGH,4,2       ; @MLX4_EN_RX_RATE_HIGH
	.comm	_MLX4_EN_RX_COAL_TIME_HIGH,4,2  ; @MLX4_EN_RX_COAL_TIME_HIGH
	.comm	_MLX4_EN_SAMPLE_INTERVAL,4,2    ; @MLX4_EN_SAMPLE_INTERVAL
	.no_dead_strip	_mlx4_en_set_default_moderation
.subsections_via_symbols
