	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx5e_xdp_mpwqe_add_dseg
_mlx5e_xdp_mpwqe_add_dseg:              ## @mlx5e_xdp_mpwqe_add_dseg
	.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	%rsi, %r12
	movq	%rdi, %rbx
	movq	32(%rdi), %r14
	movslq	8(%rdi), %rax
	movl	(%rsi), %r15d
	incl	24(%rdi)
	leaq	(%rax,%rax,2), %r13
	leaq	(%r14,%r13,8), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	cmpq	$0, 16(%rdi)
	je	LBB0_3
## %bb.1:
	movq	_MLX5E_XDP_INLINE_WQE_SZ_THRSD@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r15d
	jg	LBB0_3
## %bb.2:
	leal	16(%r15), %edi
	movq	_MLX5_SEND_WQE_DS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	callq	_DIV_ROUND_UP
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_MLX5_INLINE_SEG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	orl	%r15d, %edi
	callq	_cpu_to_be32
	movq	%rax, 8(%r14,%r13,8)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	movl	8(%r12), %esi
	movl	%r15d, %edx
	callq	_memcpy
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	addl	%eax, 8(%rbx)
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	incl	(%rax)
	jmp	LBB0_4
LBB0_3:
	movl	4(%r12), %edi
	callq	_cpu_to_be64
	movl	%eax, 16(%r14,%r13,8)
	movl	%r15d, %edi
	callq	_cpu_to_be32
	movq	%rax, 8(%r14,%r13,8)
	movl	(%rbx), %eax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	incl	8(%rbx)
LBB0_4:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MLX5E_XDP_INLINE_WQE_SZ_THRSD,4,2 ## @MLX5E_XDP_INLINE_WQE_SZ_THRSD
	.comm	_MLX5_SEND_WQE_DS,4,2           ## @MLX5_SEND_WQE_DS
	.comm	_MLX5_INLINE_SEG,4,2            ## @MLX5_INLINE_SEG
	.no_dead_strip	_mlx5e_xdp_mpwqe_add_dseg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlx5e_xdp_mpwqe_add_dseg
_mlx5e_xdp_mpwqe_add_dseg:              ; @mlx5e_xdp_mpwqe_add_dseg
	.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	x22, x1
	mov	x19, x0
	ldr	x25, [x0, #32]
	ldrsw	x26, [x0, #8]
	mov	w8, #24
	madd	x24, x26, x8, x25
	ldr	w21, [x1]
	ldr	w8, [x0, #24]
	add	w8, w8, #1
	str	w8, [x0, #24]
	ldr	x8, [x0, #16]
Lloh0:
	adrp	x9, _MLX5E_XDP_INLINE_WQE_SZ_THRSD@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MLX5E_XDP_INLINE_WQE_SZ_THRSD@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	x8, #0
	ccmp	w21, w9, #0, ne
	b.le	LBB0_2
; %bb.1:
	ldr	w0, [x22, #4]
	bl	_cpu_to_be64
	mov	w8, #24
	madd	x20, x26, x8, x25
	str	w0, [x20, #16]
	mov	x0, x21
	bl	_cpu_to_be32
	str	x0, [x20, #8]
	ldr	w8, [x19]
	str	w8, [x24]
	ldr	w8, [x19, #8]
	add	w8, w8, #1
	str	w8, [x19, #8]
	b	LBB0_3
LBB0_2:
	mov	x20, x2
	add	w0, w21, #16
Lloh3:
	adrp	x8, _MLX5_SEND_WQE_DS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MLX5_SEND_WQE_DS@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_DIV_ROUND_UP
	mov	x23, x0
Lloh6:
	adrp	x8, _MLX5_INLINE_SEG@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MLX5_INLINE_SEG@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	orr	w0, w8, w21
	bl	_cpu_to_be32
	mov	w8, #24
	madd	x8, x26, x8, x25
	str	x0, [x8, #8]
	ldr	w0, [x24]
	ldr	w1, [x22, #8]
	mov	x2, x21
	bl	_memcpy
	ldr	w8, [x19, #8]
	add	w8, w8, w23
	str	w8, [x19, #8]
	ldr	w8, [x20]
	add	w8, w8, #1
	str	w8, [x20]
LBB0_3:
	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	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_MLX5E_XDP_INLINE_WQE_SZ_THRSD,4,2 ; @MLX5E_XDP_INLINE_WQE_SZ_THRSD
	.comm	_MLX5_SEND_WQE_DS,4,2           ; @MLX5_SEND_WQE_DS
	.comm	_MLX5_INLINE_SEG,4,2            ; @MLX5_INLINE_SEG
	.no_dead_strip	_mlx5e_xdp_mpwqe_add_dseg
.subsections_via_symbols
