	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx5e_build_tc_tx_bw
_mlx5e_build_tc_tx_bw:                  ## @mlx5e_build_tc_tx_bw
	.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
                                        ## kill: def $ecx killed $ecx def $rcx
	testl	%ecx, %ecx
	js	LBB0_25
## %bb.1:
	movq	(%rdi), %r14
	leal	1(%rcx), %r8d
	testl	%ecx, %ecx
	je	LBB0_2
## %bb.3:
	movl	%r8d, %r11d
	andl	$-2, %r11d
	movl	$-1, %r9d
	xorl	%edx, %edx
	xorl	%r10d, %r10d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	addq	$2, %rdx
	cmpq	%rdx, %r11
	je	LBB0_9
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$130, (%r14,%rdx,4)
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	8(%rdi), %rbx
	xorl	%ecx, %ecx
	cmpl	$0, (%rbx,%rdx,4)
	sete	%cl
	cmovel	%edx, %r9d
	addl	%ecx, %r10d
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$130, 4(%r14,%rdx,4)
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	8(%rdi), %rcx
	leal	1(%rdx), %ebx
	xorl	%eax, %eax
	cmpl	$0, 4(%rcx,%rdx,4)
	sete	%al
	cmovel	%ebx, %r9d
	addl	%eax, %r10d
	jmp	LBB0_8
LBB0_2:
	movl	$-1, %r9d
	xorl	%edx, %edx
	xorl	%r10d, %r10d
LBB0_9:
	testb	$1, %r8b
	je	LBB0_12
## %bb.10:
	cmpl	$130, (%r14,%rdx,4)
	jne	LBB0_12
## %bb.11:
	movq	8(%rdi), %rax
	xorl	%ecx, %ecx
	cmpl	$0, (%rax,%rdx,4)
	sete	%cl
	cmovel	%edx, %r9d
	addl	%ecx, %r10d
LBB0_12:
	testl	%r10d, %r10d
	je	LBB0_13
## %bb.14:
	movq	_MLX5E_MAX_BW_ALLOC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cltd
	idivl	%r10d
	jmp	LBB0_15
LBB0_13:
	xorl	%r10d, %r10d
	xorl	%eax, %eax
LBB0_15:
	movq	(%rdi), %rdx
	xorl	%ecx, %ecx
	movq	_MLX5E_MAX_BW_ALLOC@GOTPCREL(%rip), %r11
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_16 Depth=1
	movl	(%r11), %ebx
LBB0_21:                                ##   in Loop: Header=BB0_16 Depth=1
	movl	%ebx, (%rsi,%rcx,4)
LBB0_22:                                ##   in Loop: Header=BB0_16 Depth=1
	incq	%rcx
	cmpq	%rcx, %r8
	je	LBB0_23
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rdx,%rcx,4), %ebx
	cmpl	$130, %ebx
	je	LBB0_20
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=1
	cmpl	$129, %ebx
	je	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_16 Depth=1
	cmpl	$128, %ebx
	je	LBB0_19
	jmp	LBB0_22
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_16 Depth=1
	movq	8(%rdi), %rbx
	movl	(%rbx,%rcx,4), %ebx
	testl	%ebx, %ebx
	cmovel	%eax, %ebx
	jmp	LBB0_21
LBB0_23:
	cmpl	$-1, %r9d
	je	LBB0_25
## %bb.24:
	movl	(%r11), %eax
	cltd
	idivl	%r10d
	movslq	%r9d, %rax
	addl	%edx, (%rsi,%rax,4)
LBB0_25:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MLX5E_MAX_BW_ALLOC,4,2         ## @MLX5E_MAX_BW_ALLOC
	.no_dead_strip	_mlx5e_build_tc_tx_bw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlx5e_build_tc_tx_bw
_mlx5e_build_tc_tx_bw:                  ; @mlx5e_build_tc_tx_bw
	.cfi_startproc
; %bb.0:
	tbnz	w3, #31, LBB0_18
; %bb.1:
	mov	x11, #0
	mov	w9, #0
	ldr	x12, [x0]
	add	w10, w3, #1
	mov	w8, #-1
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x11, x11, #1
	cmp	x10, x11
	b.eq	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w13, [x12, x11, lsl #2]
	cmp	w13, #130
	b.ne	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x13, [x0, #8]
	ldr	w13, [x13, x11, lsl #2]
	cmp	w13, #0
	csel	w8, w11, w8, eq
	cinc	w9, w9, eq
	b	LBB0_2
LBB0_5:
Lloh0:
	adrp	x11, _MLX5E_MAX_BW_ALLOC@GOTPAGE
Lloh1:
	ldr	x11, [x11, _MLX5E_MAX_BW_ALLOC@GOTPAGEOFF]
	cbz	w9, LBB0_7
; %bb.6:
	ldr	w12, [x11]
	sdiv	w12, w12, w9
	b	LBB0_8
LBB0_7:
	mov	w12, #0
LBB0_8:
	mov	x13, #0
	ldr	x14, [x0]
	b	LBB0_12
LBB0_9:                                 ;   in Loop: Header=BB0_12 Depth=1
	ldr	w15, [x11]
LBB0_10:                                ;   in Loop: Header=BB0_12 Depth=1
	str	w15, [x1, x13, lsl #2]
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	add	x13, x13, #1
	cmp	x10, x13
	b.eq	LBB0_16
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	w15, [x14, x13, lsl #2]
	cmp	w15, #130
	b.eq	LBB0_15
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	cmp	w15, #129
	b.eq	LBB0_9
; %bb.14:                               ;   in Loop: Header=BB0_12 Depth=1
	cmp	w15, #128
	b.eq	LBB0_9
	b	LBB0_11
LBB0_15:                                ;   in Loop: Header=BB0_12 Depth=1
	ldr	x15, [x0, #8]
	ldr	w15, [x15, x13, lsl #2]
	cmp	w15, #0
	csel	w15, w12, w15, eq
	b	LBB0_10
LBB0_16:
	cmn	w8, #1
	b.eq	LBB0_18
; %bb.17:
	ldr	w10, [x11]
	sdiv	w11, w10, w9
	msub	w9, w11, w9, w10
	sbfiz	x8, x8, #2, #32
	ldr	w10, [x1, x8]
	add	w9, w10, w9
	str	w9, [x1, x8]
LBB0_18:
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_MLX5E_MAX_BW_ALLOC,4,2         ; @MLX5E_MAX_BW_ALLOC
	.no_dead_strip	_mlx5e_build_tc_tx_bw
.subsections_via_symbols
