	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dr_rdma_segments
_dr_rdma_segments:                      ## @dr_rdma_segments
	.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
	movl	%r9d, -52(%rbp)                 ## 4-byte Spill
	movl	%r8d, %r14d
	movq	%rcx, %r13
	movl	%edx, -48(%rbp)                 ## 4-byte Spill
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r12
	movl	4(%rdi), %r15d
	decl	%r15d
	andl	(%rdi), %r15d
	addq	$20, %rdi
	movl	%r15d, %esi
	callq	_mlx5_wq_cyc_get_wqe
	movq	%rax, %rbx
	movq	$0, 24(%rax)
	xorl	%eax, %eax
	cmpq	$0, 16(%r13)
	je	LBB0_2
## %bb.1:
	movq	_MLX5_WQE_CTRL_CQ_UPDATE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_2:
	movl	%eax, 16(%rbx)
	movl	(%r12), %eax
	movzwl	%ax, %edi
	shll	$8, %edi
	orl	%r14d, %edi
	callq	_cpu_to_be32
	movq	%rax, 8(%rbx)
	movl	16(%r12), %edi
	shll	$8, %edi
	orl	$4, %edi
	callq	_cpu_to_be32
	movq	%rax, (%rbx)
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_cpu_to_be64
	movq	%rax, 48(%rbx)
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	callq	_cpu_to_be32
	movq	%rax, 40(%rbx)
	movq	$0, 32(%rbx)
	movl	(%r13), %edi
	callq	_cpu_to_be32
	movq	%rax, 72(%rbx)
	movl	4(%r13), %edi
	callq	_cpu_to_be32
	movq	%rax, 64(%rbx)
	movl	8(%r13), %edi
	callq	_cpu_to_be64
	movq	%rax, 56(%rbx)
	movl	(%r12), %eax
	leal	1(%rax), %ecx
	movl	%ecx, (%r12)
	movq	8(%r12), %rcx
	movl	%eax, (%rcx,%r15,4)
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_3
## %bb.4:
	movq	%r12, %rdi
	movq	%rbx, %rsi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dr_cmd_notify_hw               ## TAILCALL
LBB0_3:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MLX5_WQE_CTRL_CQ_UPDATE,4,2    ## @MLX5_WQE_CTRL_CQ_UPDATE
	.no_dead_strip	_dr_rdma_segments
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dr_rdma_segments
_dr_rdma_segments:                      ; @dr_rdma_segments
	.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, x5
	mov	x24, x4
	mov	x23, x3
	mov	x25, x2
	mov	x26, x1
	mov	x20, x0
	ldp	w8, w9, [x0], #20
	sub	w9, w9, #1
	and	w21, w9, w8
	mov	x1, x21
	bl	_mlx5_wq_cyc_get_wqe
	mov	x22, x0
	str	xzr, [x0, #24]
	ldr	x8, [x23, #16]
Lloh0:
	adrp	x9, _MLX5_WQE_CTRL_CQ_UPDATE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MLX5_WQE_CTRL_CQ_UPDATE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	x8, #0
	csel	w8, wzr, w9, eq
	str	w8, [x0, #16]
	ldr	w8, [x20]
	ubfiz	w8, w8, #8, #16
	orr	w0, w8, w24
	bl	_cpu_to_be32
	str	x0, [x22, #8]
	ldr	w8, [x20, #16]
	mov	w0, #4
	bfi	w0, w8, #8, #24
	bl	_cpu_to_be32
	str	x0, [x22]
	mov	x0, x26
	bl	_cpu_to_be64
	str	x0, [x22, #48]
	mov	x0, x25
	bl	_cpu_to_be32
	stp	xzr, x0, [x22, #32]
	ldr	w0, [x23]
	bl	_cpu_to_be32
	str	x0, [x22, #72]
	ldr	w0, [x23, #4]
	bl	_cpu_to_be32
	str	x0, [x22, #64]
	ldr	w0, [x23, #8]
	bl	_cpu_to_be64
	str	x0, [x22, #56]
	ldr	w8, [x20]
	add	w9, w8, #1
	str	w9, [x20]
	ldr	x9, [x20, #8]
	str	w8, [x9, w21, uxtw #2]
	cbz	w19, LBB0_2
; %bb.1:
	mov	x0, x20
	mov	x1, x22
	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
	b	_dr_cmd_notify_hw
LBB0_2:
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_MLX5_WQE_CTRL_CQ_UPDATE,4,2    ; @MLX5_WQE_CTRL_CQ_UPDATE
	.no_dead_strip	_dr_rdma_segments
.subsections_via_symbols
