	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx5e_init_frags_partition
_mlx5e_init_frags_partition:            ## @mlx5e_init_frags_partition
	.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
	movq	%rdi, %r15
	movq	32(%rdi), %rbx
	addq	$24, %rdi
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	callq	_mlx5_wq_cyc_get_size
	testl	%eax, %eax
	jle	LBB0_13
## %bb.1:
	xorl	%r13d, %r13d
	movq	_PAGE_SIZE@GOTPCREL(%rip), %r12
	xorl	%edi, %edi
	xorl	%r14d, %r14d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	addq	$-24, %rdx
	movq	%rdx, %r14
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	incl	%edi
	movl	%edi, -44(%rbp)                 ## 4-byte Spill
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_mlx5_wq_cyc_get_size
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	cmpl	%eax, %edi
	jge	LBB0_11
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	cmpl	$0, 4(%r15)
	jle	LBB0_10
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movb	(%r15), %cl
	movl	%edi, %edx
	shll	%cl, %edx
	movq	8(%r15), %rax
	movslq	%edx, %rcx
	leaq	(%rcx,%rcx,2), %rdx
	shlq	$3, %rdx
	addq	16(%r15), %rdx
	xorl	%ecx, %ecx
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=2
	xorl	%r13d, %r13d
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=2
	movq	%r13, (%r14)
	movq	$0, 8(%r14)
	movq	%rbx, 16(%r14)
	addq	(%rax,%rcx,8), %r13
	incq	%rcx
	leaq	24(%r14), %rdx
	movslq	4(%r15), %rsi
	cmpq	%rsi, %rcx
	jge	LBB0_9
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r14, %rsi
	movq	%rdx, %r14
	movq	(%rax,%rcx,8), %rdx
	addq	%r13, %rdx
	cmpq	(%r12), %rdx
	jle	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	addq	$4, %rbx
	testq	%rsi, %rsi
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=2
	movl	$1, 8(%rsi)
	jmp	LBB0_7
LBB0_11:
	testq	%r14, %r14
	je	LBB0_13
## %bb.12:
	movl	$1, 8(%r14)
LBB0_13:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PAGE_SIZE,8,3                  ## @PAGE_SIZE
	.no_dead_strip	_mlx5e_init_frags_partition
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlx5e_init_frags_partition
_mlx5e_init_frags_partition:            ; @mlx5e_init_frags_partition
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x0
	ldr	x21, [x0, #32]
	add	x20, x0, #24
	mov	x0, x20
	bl	_mlx5_wq_cyc_get_size
	cmp	w0, #1
	b.lt	LBB0_12
; %bb.1:
	mov	x27, #0
	mov	w23, #0
	mov	x22, #0
	mov	w24, #24
Lloh0:
	adrp	x25, _PAGE_SIZE@GOTPAGE
Lloh1:
	ldr	x25, [x25, _PAGE_SIZE@GOTPAGEOFF]
	mov	w26, #1
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	sub	x22, x10, #24
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w23, w23, #1
	mov	x0, x20
	bl	_mlx5_wq_cyc_get_size
	cmp	w23, w0
	b.ge	LBB0_10
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	ldr	w8, [x19, #4]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x8, #0
	ldp	x9, x10, [x19, #8]
	ldr	w11, [x19]
	lsl	w11, w23, w11
	smaddl	x10, w11, w24, x10
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=2
	stp	x27, xzr, [x22]
	str	x21, [x22, #16]
	ldr	x10, [x9, x8, lsl #3]
	add	x27, x10, x27
	add	x8, x8, #1
	add	x10, x22, #24
	ldrsw	x11, [x19, #4]
	cmp	x8, x11
	b.ge	LBB0_2
LBB0_7:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x11, x22
	mov	x22, x10
	ldr	x10, [x9, x8, lsl #3]
	ldr	x12, [x25]
	add	x10, x10, x27
	cmp	x10, x12
	b.le	LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	add	x21, x21, #4
	mov	x27, #0
	cbz	x11, LBB0_6
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=2
	str	w26, [x11, #8]
	b	LBB0_6
LBB0_10:
	cbz	x22, LBB0_12
; %bb.11:
	mov	w8, #1
	str	w8, [x22, #8]
LBB0_12:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_PAGE_SIZE,8,3                  ; @PAGE_SIZE
	.no_dead_strip	_mlx5e_init_frags_partition
.subsections_via_symbols
