	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx5e_build_rq_frags_info
_mlx5e_build_rq_frags_info:             ## @mlx5e_build_rq_frags_info
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, %r13
	movq	%rsi, %rbx
	movl	(%rsi), %esi
	movq	%rbx, %rdi
	callq	_MLX5E_SW2HW_MTU
	movl	%eax, %r15d
	movq	_DEFAULT_FRAG_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_mlx5e_rx_is_linear_skb
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_mlx5e_rx_get_linear_frag_sz
	movl	%eax, %edi
	callq	_roundup_pow_of_two
	movq	%rax, %rcx
	movq	16(%r14), %rax
	movl	%r15d, (%rax)
	movl	%ecx, 4(%rax)
	movl	$1, (%r14)
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cltd
	idivl	%ecx
	movl	%eax, %r13d
	jmp	LBB0_11
LBB0_2:
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_MLX5E_MAX_RX_FRAGS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leal	-1(%rax), %edx
	imull	%r12d, %edx
	addl	%ecx, %edx
	cmpl	%edx, %r15d
	cmovgl	%ecx, %r12d
	testl	%r15d, %r15d
	jle	LBB0_3
## %bb.4:
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	xorl	%r13d, %r13d
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r15d, %ebx
	subl	%r12d, %ebx
	decl	%eax
	cltq
	cmpq	%rax, %r13
	jge	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	%ebx, %edi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_min
	movl	%eax, %ebx
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	16(%r14), %rax
	movl	%ebx, (%rax,%r13,8)
	movl	%ebx, %edi
	callq	_roundup_pow_of_two
	movq	16(%r14), %rcx
	movl	%eax, 4(%rcx,%r13,8)
	addl	%ebx, %r12d
	cmpl	%r12d, %r15d
	jle	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	_MLX5E_MAX_RX_FRAGS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	incq	%r13
	jmp	LBB0_5
LBB0_9:
	incl	%r13d
	jmp	LBB0_10
LBB0_3:
	xorl	%r13d, %r13d
LBB0_10:
	movl	%r13d, (%r14)
	andl	$1, %r13d
	incl	%r13d
LBB0_11:
	movl	%r13d, 4(%r14)
	movq	_u8@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r13d, %esi
	movl	$8, %edx
	callq	_max_t
	movl	%eax, 4(%r14)
	movl	(%r14), %edi
	callq	_order_base_2
	movl	%eax, 8(%r14)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DEFAULT_FRAG_SIZE,4,2          ## @DEFAULT_FRAG_SIZE
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_MLX5E_MAX_RX_FRAGS,4,2         ## @MLX5E_MAX_RX_FRAGS
	.comm	_u8,4,2                         ## @u8
	.comm	_MLX5E_METADATA_ETHER_LEN,8,3   ## @MLX5E_METADATA_ETHER_LEN
	.no_dead_strip	_mlx5e_build_rq_frags_info
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlx5e_build_rq_frags_info
_mlx5e_build_rq_frags_info:             ; @mlx5e_build_rq_frags_info
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x3
	mov	x21, x2
	mov	x22, x1
	ldr	w1, [x1]
	mov	x0, x22
	bl	_MLX5E_SW2HW_MTU
	mov	x20, x0
Lloh0:
	adrp	x8, _DEFAULT_FRAG_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DEFAULT_FRAG_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w24, [x8]
	mov	x0, x22
	mov	x1, x21
	bl	_mlx5e_rx_is_linear_skb
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x22
	mov	x1, x21
	bl	_mlx5e_rx_get_linear_frag_sz
	bl	_roundup_pow_of_two
	ldr	x8, [x19, #16]
	stp	w20, w0, [x8]
	mov	w8, #1
	str	w8, [x19]
Lloh3:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	sdiv	w1, w8, w0
	b	LBB0_11
LBB0_2:
Lloh6:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x8]
Lloh9:
	adrp	x23, _MLX5E_MAX_RX_FRAGS@GOTPAGE
Lloh10:
	ldr	x23, [x23, _MLX5E_MAX_RX_FRAGS@GOTPAGEOFF]
	ldr	w8, [x23]
	sub	w10, w8, #1
	madd	w10, w10, w24, w9
	cmp	w20, w10
	csel	w21, w9, w24, gt
	cmp	w20, #1
	b.lt	LBB0_9
; %bb.3:
	mov	x25, #0
	mov	x24, #0
	mov	w26, #0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	sub	w22, w20, w26
	sub	w8, w8, #1
	cmp	x24, w8, sxtw
	b.ge	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x22
	mov	x1, x21
	bl	_min
	mov	x22, x0
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x19, #16]
	str	w22, [x8, x25]
	mov	x0, x22
	bl	_roundup_pow_of_two
	ldr	x8, [x19, #16]
	add	x8, x8, x25
	str	w0, [x8, #4]
	add	w26, w22, w26
	cmp	w20, w26
	b.le	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x23]
	add	x25, x25, #8
	add	x24, x24, #1
	b	LBB0_4
LBB0_8:
	add	w8, w24, #1
	b	LBB0_10
LBB0_9:
	mov	w8, #0
LBB0_10:
	str	w8, [x19]
	and	w8, w8, #0x1
	add	w1, w8, #1
LBB0_11:
	str	w1, [x19, #4]
Lloh11:
	adrp	x8, _u8@GOTPAGE
Lloh12:
	ldr	x8, [x8, _u8@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	mov	w2, #8
	bl	_max_t
	str	w0, [x19, #4]
	ldr	w0, [x19]
	bl	_order_base_2
	str	w0, [x19, #8]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_DEFAULT_FRAG_SIZE,4,2          ; @DEFAULT_FRAG_SIZE
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_MLX5E_MAX_RX_FRAGS,4,2         ; @MLX5E_MAX_RX_FRAGS
	.comm	_u8,4,2                         ; @u8
	.comm	_MLX5E_METADATA_ETHER_LEN,8,3   ; @MLX5E_METADATA_ETHER_LEN
	.no_dead_strip	_mlx5e_build_rq_frags_info
.subsections_via_symbols
