	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __begin_wqe
___begin_wqe:                           ## @__begin_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r13
	movq	%r8, %r14
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r12
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movl	24(%rbp), %esi
	addq	$8, %rdi
	movl	32(%rbx), %edx
	callq	_mlx5_wq_overflow
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_7
LBB0_2:
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	movl	32(%rbp), %r13d
	movl	12(%rbx), %esi
	decl	%esi
	andl	8(%rbx), %esi
	movl	%esi, (%r14)
	leaq	24(%rbx), %rdi
	callq	_mlx5_frag_buf_get_wqe
	movq	%rax, (%r15)
	movq	%rax, (%r12)
	movq	(%r15), %rax
	movq	$0, 8(%rax)
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_send_ieth
	movq	(%r12), %rcx
	movl	%eax, 4(%rcx)
	testl	%r13d, %r13d
	je	LBB0_4
## %bb.3:
	movq	_MLX5_WQE_CTRL_CQ_UPDATE@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
LBB0_4:
	movq	16(%rbp), %rax
	orl	(%rbx), %r13d
	movl	40(%rbp), %edx
	testl	%edx, %edx
	je	LBB0_6
## %bb.5:
	movq	_MLX5_WQE_CTRL_SOLICITED@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
LBB0_6:
	orl	%edx, %r13d
	movl	%r13d, (%rcx)
	addq	$8, (%r15)
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	$0, (%rcx)
	movq	16(%rbx), %rcx
	movq	%rcx, (%rax)
	xorl	%eax, %eax
LBB0_7:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_MLX5_WQE_CTRL_CQ_UPDATE,4,2    ## @MLX5_WQE_CTRL_CQ_UPDATE
	.comm	_MLX5_WQE_CTRL_SOLICITED,4,2    ## @MLX5_WQE_CTRL_SOLICITED
	.no_dead_strip	___begin_wqe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __begin_wqe
___begin_wqe:                           ; @__begin_wqe
	.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, x6
	mov	x20, x5
	mov	x25, x4
	mov	x24, x3
	mov	x23, x2
	mov	x22, x1
	mov	x21, x0
	ldr	w2, [x0, #32]
	add	x0, x0, #8
	mov	x1, x7
	bl	_mlx5_wq_overflow
	bl	_unlikely
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_3
LBB0_2:
	ldp	w27, w26, [x29, #16]
	ldp	w8, w9, [x21, #8]
	sub	w9, w9, #1
	and	w1, w9, w8
	str	w1, [x25]
	add	x0, x21, #24
	bl	_mlx5_frag_buf_get_wqe
	str	x0, [x22]
	str	x0, [x23]
	ldr	x8, [x22]
	str	xzr, [x8, #8]
	mov	x0, x24
	bl	_send_ieth
	mov	x8, x0
	mov	w0, #0
	ldr	x9, [x23]
	ldr	w10, [x21]
Lloh3:
	adrp	x11, _MLX5_WQE_CTRL_CQ_UPDATE@GOTPAGE
Lloh4:
	ldr	x11, [x11, _MLX5_WQE_CTRL_CQ_UPDATE@GOTPAGEOFF]
Lloh5:
	ldr	w11, [x11]
	cmp	w27, #0
	csel	w11, wzr, w11, eq
	orr	w10, w11, w10
Lloh6:
	adrp	x11, _MLX5_WQE_CTRL_SOLICITED@GOTPAGE
Lloh7:
	ldr	x11, [x11, _MLX5_WQE_CTRL_SOLICITED@GOTPAGEOFF]
Lloh8:
	ldr	w11, [x11]
	cmp	w26, #0
	csel	w11, wzr, w11, eq
	orr	w10, w10, w11
	stp	w10, w8, [x9]
	ldr	x8, [x22]
	add	x8, x8, #8
	str	x8, [x22]
	str	wzr, [x20]
	ldr	x8, [x21, #16]
	str	x8, [x19]
LBB0_3:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_MLX5_WQE_CTRL_CQ_UPDATE,4,2    ; @MLX5_WQE_CTRL_CQ_UPDATE
	.comm	_MLX5_WQE_CTRL_SOLICITED,4,2    ; @MLX5_WQE_CTRL_SOLICITED
	.no_dead_strip	___begin_wqe
.subsections_via_symbols
