	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx5e_alloc_cq_common
_mlx5e_alloc_cq_common:                 ## @mlx5e_alloc_cq_common
	.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	%rdx, %r15
	movq	%rsi, %r12
	movq	%rdi, %r14
	movl	(%rsi), %esi
	leaq	-48(%rbp), %rdx
	leaq	-44(%rbp), %rcx
	callq	_mlx5_vector2eqn
	testl	%eax, %eax
	jne	LBB0_6
## %bb.1:
	leaq	8(%r12), %rsi
	movl	4(%r12), %edx
	leaq	8(%r15), %r13
	leaq	16(%r15), %r8
	movq	%r14, %rdi
	movq	%r13, %rcx
	callq	_mlx5_cqwq_create
	testl	%eax, %eax
	jne	LBB0_6
## %bb.2:
	movl	$64, 24(%r15)
	movq	16(%r15), %rax
	movq	%rax, 56(%r15)
	leaq	8(%rax), %rcx
	movq	%rcx, 48(%r15)
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rax)
	movl	(%r12), %eax
	movl	%eax, 40(%r15)
	movq	_mlx5e_completion_event@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%r15)
	movq	_mlx5e_cq_error_event@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%r15)
	movl	-44(%rbp), %eax
	movl	%eax, 28(%r15)
	movq	%r13, %rdi
	callq	_mlx5_cqwq_get_size
	testq	%rax, %rax
	jle	LBB0_5
## %bb.3:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_mlx5_cqwq_get_wqe
	movl	$241, (%rax)
	incq	%rbx
	movq	%r13, %rdi
	callq	_mlx5_cqwq_get_size
	cmpq	%rax, %rbx
	jl	LBB0_4
LBB0_5:
	movq	%r14, (%r15)
	xorl	%eax, %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_mlx5e_completion_event,4,2     ## @mlx5e_completion_event
	.comm	_mlx5e_cq_error_event,4,2       ## @mlx5e_cq_error_event
	.no_dead_strip	_mlx5e_alloc_cq_common
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlx5e_alloc_cq_common
_mlx5e_alloc_cq_common:                 ; @mlx5e_alloc_cq_common
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x2
	mov	x22, x1
	mov	x20, x0
	ldr	w1, [x1]
	add	x2, sp, #12
	add	x3, sp, #8
	bl	_mlx5_vector2eqn
	cbnz	w0, LBB0_6
; %bb.1:
	add	x1, x22, #8
	ldr	w2, [x22, #4]
	add	x21, x19, #8
	add	x4, x19, #16
	mov	x0, x20
	mov	x3, x21
	bl	_mlx5_cqwq_create
	cbnz	w0, LBB0_6
; %bb.2:
	mov	w8, #64
	str	w8, [x19, #24]
	ldr	x8, [x19, #16]
	add	x9, x8, #8
	stp	x9, x8, [x19, #48]
	stp	xzr, xzr, [x8]
	ldr	w8, [x22]
Lloh0:
	adrp	x9, _mlx5e_completion_event@GOTPAGE
Lloh1:
	ldr	x9, [x9, _mlx5e_completion_event@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #36]
Lloh3:
	adrp	x8, _mlx5e_cq_error_event@GOTPAGE
Lloh4:
	ldr	x8, [x8, _mlx5e_cq_error_event@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	w9, [sp, #8]
	stp	w9, w8, [x19, #28]
	mov	x0, x21
	bl	_mlx5_cqwq_get_size
	cmp	x0, #1
	b.lt	LBB0_5
; %bb.3:
	mov	x22, #0
	mov	w23, #241
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	mov	x1, x22
	bl	_mlx5_cqwq_get_wqe
	str	w23, [x0]
	add	x22, x22, #1
	mov	x0, x21
	bl	_mlx5_cqwq_get_size
	cmp	x22, x0
	b.lt	LBB0_4
LBB0_5:
	mov	w0, #0
	str	x20, [x19]
LBB0_6:
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_mlx5e_completion_event,4,2     ; @mlx5e_completion_event
	.comm	_mlx5e_cq_error_event,4,2       ; @mlx5e_cq_error_event
	.no_dead_strip	_mlx5e_alloc_cq_common
.subsections_via_symbols
