	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function update_xoff_threshold
_update_xoff_threshold:                 ## @update_xoff_threshold
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_MLX5E_MAX_BUFFER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_8
## %bb.1:
	movq	(%rdi), %rdi
	movq	_MLX5E_BUFFER_CELL_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	$1, %r9d
	shll	%cl, %r9d
	movl	%edx, %r8d
	movslq	%r9d, %r9
	addq	%r8, %r9
	addq	%rsi, %r9
	addq	$24, %rdi
	shlq	$5, %rax
	xorl	%ecx, %ecx
	xorps	%xmm0, %xmm0
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	movups	%xmm0, -16(%rdi,%rcx)
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	addq	$32, %rcx
	cmpq	%rcx, %rax
	je	LBB0_8
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, (%rdi,%rcx)
	jne	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-24(%rdi,%rcx), %rdx
	cmpq	%r9, %rdx
	jl	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	subq	%rsi, %rdx
	movq	%rdx, -16(%rdi,%rcx)
	subq	%r8, %rdx
	movq	%rdx, -8(%rdi,%rcx)
	jmp	LBB0_7
LBB0_8:
	xorl	%eax, %eax
	popq	%rbp
	retq
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MLX5E_MAX_BUFFER,4,2           ## @MLX5E_MAX_BUFFER
	.comm	_MLX5E_BUFFER_CELL_SHIFT,4,2    ## @MLX5E_BUFFER_CELL_SHIFT
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_update_xoff_threshold
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function update_xoff_threshold
_update_xoff_threshold:                 ; @update_xoff_threshold
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _MLX5E_MAX_BUFFER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MLX5E_MAX_BUFFER@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.1:
	ldr	x11, [x0]
	mov	w9, w2
Lloh3:
	adrp	x10, _MLX5E_BUFFER_CELL_SHIFT@GOTPAGE
Lloh4:
	ldr	x10, [x10, _MLX5E_BUFFER_CELL_SHIFT@GOTPAGEOFF]
	add	x12, x9, x1
Lloh5:
	ldr	w10, [x10]
	mov	w13, #1
	lsl	w10, w13, w10
	add	x10, x12, w10, sxtw
	add	x11, x11, #16
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	stp	xzr, xzr, [x11, #-8]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x11, x11, #32
	subs	x8, x8, #1
	b.eq	LBB0_7
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x12, [x11, #8]
	cbnz	x12, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldur	x12, [x11, #-16]
	cmp	x12, x10
	b.lt	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	sub	x12, x12, x1
	sub	x13, x12, x9
	stp	x12, x13, [x11, #-8]
	b	LBB0_3
LBB0_7:
	mov	w0, #0
	ret
LBB0_8:
Lloh6:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_MLX5E_MAX_BUFFER,4,2           ; @MLX5E_MAX_BUFFER
	.comm	_MLX5E_BUFFER_CELL_SHIFT,4,2    ; @MLX5E_BUFFER_CELL_SHIFT
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_update_xoff_threshold
.subsections_via_symbols
