	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function finish_wqe
_finish_wqe:                            ## @finish_wqe
	.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
	movl	%r9d, %r13d
	movq	%r8, %r14
	movl	%ecx, %r12d
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movl	8(%rdi), %edi
	shll	$8, %edi
	orl	40(%rbp), %edi
	callq	_cpu_to_be32
	movq	%rax, 16(%r15)
	movl	56(%rbx), %edi
	shll	$8, %edi
	orl	%r12d, %edi
	callq	_cpu_to_be32
	movq	%rax, 8(%r15)
	movl	32(%rbp), %eax
	orl	%eax, (%r15)
	movl	(%rbx), %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%r15, %rdi
	callq	_wq_sig
	movl	%eax, 4(%r15)
LBB0_2:
	movq	48(%rbx), %rax
	movl	%r13d, %r15d
	movl	16(%rbp), %ecx
	movl	%ecx, (%rax,%r15,4)
	movq	24(%rbx), %rax
	movl	40(%rbp), %ecx
	movl	%ecx, (%rax,%r15,8)
	movslq	24(%rbp), %rax
	addq	32(%rbx), %rax
	movq	40(%rbx), %rcx
	movq	%rax, (%rcx,%r15,8)
	shll	$4, %r12d
	movq	_MLX5_SEND_WQE_BB@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movl	%r12d, %edi
	callq	_DIV_ROUND_UP
	addl	8(%rbx), %eax
	movl	%eax, 8(%rbx)
	movq	24(%rbx), %rcx
	movl	%eax, 4(%rcx,%r15,8)
	movl	(%r13), %esi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_PTR_ALIGN
	xorl	%edi, %edi
	cmpq	%r14, %rax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	leaq	8(%rbx), %rdi
	movl	12(%rbx), %esi
	decl	%esi
	andl	8(%rbx), %esi
	callq	_get_sq_edge
	movq	%rax, %r14
LBB0_4:
	movq	%r14, 16(%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MLX5_SEND_WQE_BB,4,2           ## @MLX5_SEND_WQE_BB
	.no_dead_strip	_finish_wqe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function finish_wqe
_finish_wqe:                            ; @finish_wqe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x23, x7
	mov	x25, x6
	mov	x26, x5
	mov	x20, x4
	mov	x24, x3
	str	x2, [sp, #8]                    ; 8-byte Folded Spill
	mov	x27, x1
	mov	x19, x0
	ldp	w22, w28, [x29, #16]
	mov	x21, x0
	ldr	w8, [x21, #8]!
	orr	w0, w28, w8, lsl #8
	bl	_cpu_to_be32
	str	x0, [x27, #16]
	ldr	w8, [x19, #56]
	orr	w0, w24, w8, lsl #8
	bl	_cpu_to_be32
	str	x0, [x27, #8]
	ldr	w8, [x27]
	orr	w8, w8, w22
	str	w8, [x27]
	ldr	w0, [x19]
	bl	_unlikely
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x27
	bl	_wq_sig
	str	w0, [x27, #4]
LBB0_2:
	mov	w8, w26
	ldp	x10, x9, [x19, #40]
	str	w25, [x9, w26, uxtw #2]
	lsl	x22, x8, #3
	ldp	x8, x9, [x19, #24]
	str	w28, [x8, x22]
	add	x8, x9, w23, sxtw
	str	x8, [x10, x22]
	lsl	w0, w24, #4
Lloh0:
	adrp	x23, _MLX5_SEND_WQE_BB@GOTPAGE
Lloh1:
	ldr	x23, [x23, _MLX5_SEND_WQE_BB@GOTPAGEOFF]
	ldr	w1, [x23]
	bl	_DIV_ROUND_UP
	ldr	w8, [x19, #8]
	add	w8, w8, w0
	str	w8, [x19, #8]
	ldr	x9, [x19, #24]
	add	x9, x9, x22
	str	w8, [x9, #4]
	ldr	w1, [x23]
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
	bl	_PTR_ALIGN
	cmp	x0, x20
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_4
; %bb.3:
	ldp	w8, w9, [x19, #8]
	sub	w9, w9, #1
	and	w1, w9, w8
	mov	x0, x21
	bl	_get_sq_edge
	mov	x20, x0
LBB0_4:
	str	x20, [x19, #16]
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_MLX5_SEND_WQE_BB,4,2           ; @MLX5_SEND_WQE_BB
	.no_dead_strip	_finish_wqe
.subsections_via_symbols
