	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function create_cq
_create_cq:                             ## @create_cq
	.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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r13
	movl	%edx, %ebx
	movq	%rsi, %r12
	movq	%rdi, %r14
	callq	_to_mctx
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	callq	_to_mctx
	movq	32(%rax), %r15
	cmpl	$0, (%r12)
	je	LBB0_1
## %bb.4:
	movl	4(%r12), %eax
	movq	_CREATE_CQ_SUPPORTED_COMP_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	testl	%ecx, %eax
	je	LBB0_6
## %bb.5:
	movq	_MLX5_DBG_CQ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	jmp	LBB0_2
LBB0_1:
	movq	_MLX5_DBG_CQ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
LBB0_2:
	xorl	%r13d, %r13d
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_mlx5_dbg
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %eax
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
LBB0_43:
	movq	%r13, %rax
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	_IBV_CQ_INIT_ATTR_MASK_FLAGS@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_9
## %bb.7:
	movq	_CREATE_CQ_SUPPORTED_FLAGS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	testl	%eax, 8(%r12)
	je	LBB0_9
## %bb.8:
	movq	_MLX5_DBG_CQ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	jmp	LBB0_2
LBB0_9:
	movq	_CREATE_CQ_SUPPORTED_WC_FLAGS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	testl	%eax, 12(%r12)
	je	LBB0_11
## %bb.10:
	movq	_MLX5_DBG_CQ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %rdx
	xorl	%r13d, %r13d
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_mlx5_dbg
	movq	_ENOTSUP@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_11:
	movq	%r13, -88(%rbp)                 ## 8-byte Spill
	movl	%ebx, -56(%rbp)                 ## 4-byte Spill
	movl	$1, %edi
	movl	$88, %esi
	callq	_calloc
	testq	%rax, %rax
	je	LBB0_12
## %bb.13:
	movq	%rax, %r13
	movq	%rax, %rbx
	leaq	-136(%rbp), %rdi
	xorl	%esi, %esi
	movl	$32, %edx
	callq	_memset
	movq	$0, 80(%r13)
	leaq	8(%r13), %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_mlx5_spinlock_init
	testq	%rax, %rax
	jne	LBB0_23
## %bb.14:
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	movl	(%r12), %edi
	incl	%edi
	callq	_align_queue_size
	movl	%eax, %ecx
	cmpl	$16777216, %eax                 ## imm = 0x1000000
	jg	LBB0_16
## %bb.15:
	cmpl	(%r12), %ecx
	jle	LBB0_16
## %bb.17:
	movl	%ecx, -60(%rbp)                 ## 4-byte Spill
	xorl	%eax, %eax
	callq	_get_cqe_size
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	testl	%eax, %eax
	js	LBB0_18
## %bb.19:
	movq	%r14, %rdi
	callq	_to_mctx
	leaq	16(%r13), %rdx
	movq	%rax, %rdi
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rsi
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	movl	-60(%rbp), %ecx                 ## 4-byte Reload
	movl	-52(%rbp), %r8d                 ## 4-byte Reload
	callq	_mlx5_alloc_cq_buf
	testq	%rax, %rax
	je	LBB0_24
## %bb.20:
	movq	_MLX5_DBG_CQ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %rdx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_mlx5_dbg
	jmp	LBB0_21
LBB0_12:
	movq	_MLX5_DBG_CQ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %rdx
	xorl	%r13d, %r13d
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_mlx5_dbg
	jmp	LBB0_43
LBB0_16:
	movq	_MLX5_DBG_CQ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.4(%rip), %rdx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_mlx5_dbg
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
LBB0_21:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
LBB0_22:
	movq	%rbx, %rdi
	callq	_mlx5_spinlock_destroy
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
LBB0_23:
	movq	%rbx, %rdi
	callq	_free
	xorl	%r13d, %r13d
	jmp	LBB0_43
LBB0_18:
	movq	_MLX5_DBG_CQ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %rdx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_mlx5_dbg
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	negl	%ecx
	movq	_errno@GOTPCREL(%rip), %rax
	movl	%ecx, (%rax)
	jmp	LBB0_21
LBB0_24:
	movq	%r14, %rdi
	callq	_to_mctx
	movq	%rax, %rdi
	callq	_mlx5_alloc_dbrec
	movq	%rax, 24(%rbx)
	testq	%rax, %rax
	je	LBB0_25
## %bb.26:
	movq	_MLX5_CQ_SET_CI@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	$0, (%rax,%rcx,8)
	movq	_MLX5_CQ_ARM_DB@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	$0, (%rax,%rcx,8)
	movq	$0, 72(%rbx)
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	movl	%esi, (%rbx)
	movl	-56(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, 4(%rbx)
	movq	_IBV_CQ_INIT_ATTR_MASK_FLAGS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, 4(%r12)
	je	LBB0_29
## %bb.27:
	movq	_IBV_CREATE_CQ_ATTR_SINGLE_THREADED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, 8(%r12)
	je	LBB0_29
## %bb.28:
	movq	_MLX5_CQ_FLAGS_SINGLE_THREADED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	-56(%rbp), %ecx                 ## 4-byte Folded Reload
	movl	%ecx, 4(%rbx)
LBB0_29:
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rcx
	movq	%rcx, -136(%rbp)
	movq	%rax, -128(%rbp)
	movl	%esi, -120(%rbp)
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	testq	%rax, %rax
	je	LBB0_37
## %bb.30:
	movl	(%rax), %eax
	movq	_MLX5DV_CQ_INIT_ATTR_MASK_RESERVED@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	subl	(%rcx), %edx
	testl	%edx, %eax
	je	LBB0_33
## %bb.31:
	movq	_MLX5_DBG_CQ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.5(%rip), %rdx
LBB0_32:
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_mlx5_dbg
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	jmp	LBB0_39
LBB0_25:
	movq	_MLX5_DBG_CQ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %rdx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_mlx5_dbg
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_40
LBB0_33:
	movq	_MLX5DV_CQ_INIT_ATTR_MASK_COMPRESSED_CQE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_37
## %bb.34:
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	cmpq	$0, 24(%rax)
	je	LBB0_44
## %bb.35:
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movl	4(%rax), %eax
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	testl	%eax, 16(%rcx)
	je	LBB0_44
## %bb.36:
	movl	$1, -116(%rbp)
	movl	%eax, -112(%rbp)
LBB0_37:
	movl	-60(%rbp), %ebx                 ## 4-byte Reload
	decl	%ebx
	movl	16(%r12), %eax
	movl	%eax, -96(%rbp)                 ## 4-byte Spill
	movl	20(%r12), %eax
	movl	%eax, -88(%rbp)                 ## 4-byte Spill
	addq	$32, %r13
	movq	%r13, %rdi
	callq	_ibv_cq_ex_to_cq
	leaq	-108(%rbp), %r9
	leaq	-100(%rbp), %r10
	subq	$8, %rsp
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	-88(%rbp), %edx                 ## 4-byte Reload
	movl	-96(%rbp), %ecx                 ## 4-byte Reload
	movl	%eax, %r8d
	pushq	$8
	pushq	%r10
	pushq	$32
	callq	_ibv_cmd_create_cq
	addq	$32, %rsp
	testl	%eax, %eax
	je	LBB0_41
## %bb.38:
	movq	_MLX5_DBG_CQ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	L_.str.7(%rip), %rdx
	movq	%r15, %rdi
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_mlx5_dbg
LBB0_39:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%r14, %rdi
	callq	_to_mctx
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movq	24(%rcx), %rsi
	movq	%rax, %rdi
	callq	_mlx5_free_db
LBB0_40:
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movq	%r14, %rdi
	callq	_to_mctx
	movq	%rax, %rdi
	movq	%r15, %rsi
	callq	_mlx5_free_cq_buf
	jmp	LBB0_22
LBB0_41:
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 64(%r15)
	movq	$0, 56(%r15)
	movl	-104(%rbp), %eax
	movl	%eax, 48(%r15)
	movq	%r14, %rdi
	callq	_to_mctx
	movl	8(%rax), %eax
	movl	%eax, 44(%r15)
	movq	%r14, %rdi
	callq	_to_mctx
	movl	4(%rax), %eax
	movl	%eax, 40(%r15)
	movq	%r14, %rdi
	callq	_to_mctx
	movl	(%rax), %eax
	movl	%eax, 36(%r15)
	movq	_MLX5_CQ_FLAGS_EXTENDED@GOTPCREL(%rip), %rax
	movl	-56(%rbp), %ecx                 ## 4-byte Reload
	testl	%ecx, (%rax)
	je	LBB0_43
## %bb.42:
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_mlx5_cq_fill_pfns
	jmp	LBB0_43
LBB0_44:
	movq	_MLX5_DBG_CQ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.6(%rip), %rdx
	jmp	LBB0_32
	.cfi_endproc
                                        ## -- End function
	.comm	_MLX5_DBG_CQ,4,2                ## @MLX5_DBG_CQ
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"CQE invalid\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_errno,4,2                      ## @errno
	.comm	_CREATE_CQ_SUPPORTED_COMP_MASK,4,2 ## @CREATE_CQ_SUPPORTED_COMP_MASK
L_.str.1:                               ## @.str.1
	.asciz	"Unsupported comp_mask for create_cq\n"

	.comm	_IBV_CQ_INIT_ATTR_MASK_FLAGS,4,2 ## @IBV_CQ_INIT_ATTR_MASK_FLAGS
	.comm	_CREATE_CQ_SUPPORTED_FLAGS,4,2  ## @CREATE_CQ_SUPPORTED_FLAGS
L_.str.2:                               ## @.str.2
	.asciz	"Unsupported creation flags requested for create_cq\n"

	.comm	_CREATE_CQ_SUPPORTED_WC_FLAGS,4,2 ## @CREATE_CQ_SUPPORTED_WC_FLAGS
L_.str.3:                               ## @.str.3
	.asciz	"\n"

	.comm	_ENOTSUP,4,2                    ## @ENOTSUP
L_.str.4:                               ## @.str.4
	.asciz	"ncqe %d\n"

	.comm	_MLX5_CQ_SET_CI,8,3             ## @MLX5_CQ_SET_CI
	.comm	_MLX5_CQ_ARM_DB,8,3             ## @MLX5_CQ_ARM_DB
	.comm	_IBV_CREATE_CQ_ATTR_SINGLE_THREADED,4,2 ## @IBV_CREATE_CQ_ATTR_SINGLE_THREADED
	.comm	_MLX5_CQ_FLAGS_SINGLE_THREADED,4,2 ## @MLX5_CQ_FLAGS_SINGLE_THREADED
	.comm	_MLX5DV_CQ_INIT_ATTR_MASK_RESERVED,4,2 ## @MLX5DV_CQ_INIT_ATTR_MASK_RESERVED
L_.str.5:                               ## @.str.5
	.asciz	"Unsupported vendor comp_mask for create_cq\n"

	.comm	_MLX5DV_CQ_INIT_ATTR_MASK_COMPRESSED_CQE,4,2 ## @MLX5DV_CQ_INIT_ATTR_MASK_COMPRESSED_CQE
L_.str.6:                               ## @.str.6
	.asciz	"CQE Compression is not supported\n"

L_.str.7:                               ## @.str.7
	.asciz	"ret %d\n"

	.comm	_MLX5_CQ_FLAGS_EXTENDED,4,2     ## @MLX5_CQ_FLAGS_EXTENDED
	.no_dead_strip	_create_cq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function create_cq
_create_cq:                             ; @create_cq
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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	x26, x3
	mov	x24, x2
	mov	x23, x1
	mov	x20, x0
	bl	_to_mctx
	mov	x27, x0
	mov	x0, x20
	bl	_to_mctx
	ldr	x22, [x0, #32]
	ldr	w8, [x23]
	cbz	w8, LBB0_3
; %bb.1:
	ldr	w8, [x23, #4]
Lloh0:
	adrp	x9, _CREATE_CQ_SUPPORTED_COMP_MASK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CREATE_CQ_SUPPORTED_COMP_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	bics	wzr, w8, w9
	b.eq	LBB0_7
; %bb.2:
Lloh3:
	adrp	x8, _MLX5_DBG_CQ@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MLX5_DBG_CQ@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x2, l_.str.1@PAGE
Lloh7:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_4
LBB0_3:
Lloh8:
	adrp	x8, _MLX5_DBG_CQ@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MLX5_DBG_CQ@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x2, l_.str@PAGE
Lloh12:
	add	x2, x2, l_.str@PAGEOFF
LBB0_4:
	mov	x0, x22
	bl	_mlx5_dbg
	mov	x26, #0
Lloh13:
	adrp	x8, _EINVAL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _errno@GOTPAGE
Lloh16:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh17:
	str	w8, [x9]
LBB0_6:
	mov	x0, x26
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_7:
Lloh18:
	adrp	x25, _IBV_CQ_INIT_ATTR_MASK_FLAGS@GOTPAGE
Lloh19:
	ldr	x25, [x25, _IBV_CQ_INIT_ATTR_MASK_FLAGS@GOTPAGEOFF]
	ldr	w9, [x25]
	tst	w9, w8
	b.eq	LBB0_10
; %bb.8:
	ldr	w8, [x23, #8]
Lloh20:
	adrp	x9, _CREATE_CQ_SUPPORTED_FLAGS@GOTPAGE
Lloh21:
	ldr	x9, [x9, _CREATE_CQ_SUPPORTED_FLAGS@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	bics	wzr, w8, w9
	b.eq	LBB0_10
; %bb.9:
Lloh23:
	adrp	x8, _MLX5_DBG_CQ@GOTPAGE
Lloh24:
	ldr	x8, [x8, _MLX5_DBG_CQ@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
Lloh26:
	adrp	x2, l_.str.2@PAGE
Lloh27:
	add	x2, x2, l_.str.2@PAGEOFF
	b	LBB0_4
LBB0_10:
	ldr	w8, [x23, #12]
Lloh28:
	adrp	x9, _CREATE_CQ_SUPPORTED_WC_FLAGS@GOTPAGE
Lloh29:
	ldr	x9, [x9, _CREATE_CQ_SUPPORTED_WC_FLAGS@GOTPAGEOFF]
Lloh30:
	ldr	w9, [x9]
	bics	wzr, w8, w9
	b.eq	LBB0_12
; %bb.11:
Lloh31:
	adrp	x8, _MLX5_DBG_CQ@GOTPAGE
Lloh32:
	ldr	x8, [x8, _MLX5_DBG_CQ@GOTPAGEOFF]
Lloh33:
	ldr	w1, [x8]
Lloh34:
	adrp	x2, l_.str.3@PAGE
Lloh35:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x0, x22
	bl	_mlx5_dbg
	mov	x26, #0
Lloh36:
	adrp	x8, _ENOTSUP@GOTPAGE
Lloh37:
	ldr	x8, [x8, _ENOTSUP@GOTPAGEOFF]
	b	LBB0_5
LBB0_12:
	mov	w0, #1
	mov	w1, #88
	bl	_calloc
	cbz	x0, LBB0_19
; %bb.13:
	mov	x19, x0
	add	x0, sp, #32
	mov	w1, #0
	mov	w2, #32
	bl	_memset
	str	xzr, [x19, #80]
	add	x21, x19, #8
	mov	x0, x21
	bl	_mlx5_spinlock_init
	cbnz	x0, LBB0_23
; %bb.14:
	ldr	w8, [x23]
	add	w0, w8, #1
	bl	_align_queue_size
	mov	x28, x0
	mov	w8, #16777216
	cmp	w0, w8
	b.gt	LBB0_20
; %bb.15:
	ldr	w8, [x23]
	cmp	w28, w8
	b.le	LBB0_20
; %bb.16:
	bl	_get_cqe_size
	str	w0, [sp, #20]                   ; 4-byte Folded Spill
	tbnz	w0, #31, LBB0_24
; %bb.17:
	mov	x0, x20
	bl	_to_mctx
	add	x2, x19, #16
	mov	x1, x19
	str	x2, [sp, #8]                    ; 8-byte Folded Spill
	mov	x3, x28
	ldr	w4, [sp, #20]                   ; 4-byte Folded Reload
	bl	_mlx5_alloc_cq_buf
	cbz	x0, LBB0_25
; %bb.18:
Lloh38:
	adrp	x8, _MLX5_DBG_CQ@GOTPAGE
Lloh39:
	ldr	x8, [x8, _MLX5_DBG_CQ@GOTPAGEOFF]
Lloh40:
	ldr	w1, [x8]
Lloh41:
	adrp	x2, l_.str.3@PAGE
Lloh42:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x0, x22
	bl	_mlx5_dbg
	b	LBB0_22
LBB0_19:
Lloh43:
	adrp	x8, _MLX5_DBG_CQ@GOTPAGE
Lloh44:
	ldr	x8, [x8, _MLX5_DBG_CQ@GOTPAGEOFF]
Lloh45:
	ldr	w1, [x8]
Lloh46:
	adrp	x2, l_.str.3@PAGE
Lloh47:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x0, x22
	bl	_mlx5_dbg
	mov	x26, #0
	b	LBB0_6
LBB0_20:
Lloh48:
	adrp	x8, _MLX5_DBG_CQ@GOTPAGE
Lloh49:
	ldr	x8, [x8, _MLX5_DBG_CQ@GOTPAGEOFF]
Lloh50:
	ldr	w1, [x8]
	str	x28, [sp]
Lloh51:
	adrp	x2, l_.str.4@PAGE
Lloh52:
	add	x2, x2, l_.str.4@PAGEOFF
	mov	x0, x22
	bl	_mlx5_dbg
Lloh53:
	adrp	x8, _EINVAL@GOTPAGE
Lloh54:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh55:
	ldr	w8, [x8]
LBB0_21:
Lloh56:
	adrp	x9, _errno@GOTPAGE
Lloh57:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh58:
	str	w8, [x9]
LBB0_22:
	mov	x0, x21
	bl	_mlx5_spinlock_destroy
LBB0_23:
	mov	x0, x19
	bl	_free
	mov	x26, #0
	b	LBB0_6
LBB0_24:
Lloh59:
	adrp	x8, _MLX5_DBG_CQ@GOTPAGE
Lloh60:
	ldr	x8, [x8, _MLX5_DBG_CQ@GOTPAGEOFF]
Lloh61:
	ldr	w1, [x8]
Lloh62:
	adrp	x2, l_.str.3@PAGE
Lloh63:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x0, x22
	bl	_mlx5_dbg
	ldr	w8, [sp, #20]                   ; 4-byte Folded Reload
	neg	w8, w8
	b	LBB0_21
LBB0_25:
	mov	x0, x20
	bl	_to_mctx
	bl	_mlx5_alloc_dbrec
	str	x0, [x19, #24]
	cbz	x0, LBB0_33
; %bb.26:
Lloh64:
	adrp	x8, _MLX5_CQ_SET_CI@GOTPAGE
Lloh65:
	ldr	x8, [x8, _MLX5_CQ_SET_CI@GOTPAGEOFF]
Lloh66:
	ldr	x8, [x8]
	str	xzr, [x0, x8, lsl #3]
Lloh67:
	adrp	x8, _MLX5_CQ_ARM_DB@GOTPAGE
Lloh68:
	ldr	x8, [x8, _MLX5_CQ_ARM_DB@GOTPAGEOFF]
Lloh69:
	ldr	x8, [x8]
	str	xzr, [x0, x8, lsl #3]
	str	xzr, [x19, #72]
	ldr	w10, [sp, #20]                  ; 4-byte Folded Reload
	stp	w10, w24, [x19]
	ldr	w8, [x23, #4]
	ldr	w9, [x25]
	tst	w9, w8
	b.eq	LBB0_29
; %bb.27:
	ldr	w8, [x23, #8]
Lloh70:
	adrp	x9, _IBV_CREATE_CQ_ATTR_SINGLE_THREADED@GOTPAGE
Lloh71:
	ldr	x9, [x9, _IBV_CREATE_CQ_ATTR_SINGLE_THREADED@GOTPAGEOFF]
Lloh72:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_29
; %bb.28:
Lloh73:
	adrp	x8, _MLX5_CQ_FLAGS_SINGLE_THREADED@GOTPAGE
Lloh74:
	ldr	x8, [x8, _MLX5_CQ_FLAGS_SINGLE_THREADED@GOTPAGEOFF]
Lloh75:
	ldr	w8, [x8]
	orr	w8, w8, w24
	str	w8, [x19, #4]
LBB0_29:
	ldr	x25, [sp, #8]                   ; 8-byte Folded Reload
	ldr	x8, [x25]
	stp	x8, x0, [sp, #32]
	str	w10, [sp, #48]
	cbz	x26, LBB0_38
; %bb.30:
	ldr	w8, [x26]
Lloh76:
	adrp	x9, _MLX5DV_CQ_INIT_ATTR_MASK_RESERVED@GOTPAGE
Lloh77:
	ldr	x9, [x9, _MLX5DV_CQ_INIT_ATTR_MASK_RESERVED@GOTPAGEOFF]
Lloh78:
	ldr	w9, [x9]
	neg	w9, w9
	tst	w8, w9
	b.eq	LBB0_34
; %bb.31:
Lloh79:
	adrp	x8, _MLX5_DBG_CQ@GOTPAGE
Lloh80:
	ldr	x8, [x8, _MLX5_DBG_CQ@GOTPAGEOFF]
Lloh81:
	ldr	w1, [x8]
Lloh82:
	adrp	x2, l_.str.5@PAGE
Lloh83:
	add	x2, x2, l_.str.5@PAGEOFF
LBB0_32:
	mov	x0, x22
	bl	_mlx5_dbg
Lloh84:
	adrp	x8, _EINVAL@GOTPAGE
Lloh85:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh86:
	ldr	w8, [x8]
Lloh87:
	adrp	x9, _errno@GOTPAGE
Lloh88:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh89:
	str	w8, [x9]
	b	LBB0_40
LBB0_33:
Lloh90:
	adrp	x8, _MLX5_DBG_CQ@GOTPAGE
Lloh91:
	ldr	x8, [x8, _MLX5_DBG_CQ@GOTPAGEOFF]
Lloh92:
	ldr	w1, [x8]
Lloh93:
	adrp	x2, l_.str.3@PAGE
Lloh94:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x0, x22
	bl	_mlx5_dbg
	ldr	x25, [sp, #8]                   ; 8-byte Folded Reload
	b	LBB0_41
LBB0_34:
Lloh95:
	adrp	x9, _MLX5DV_CQ_INIT_ATTR_MASK_COMPRESSED_CQE@GOTPAGE
Lloh96:
	ldr	x9, [x9, _MLX5DV_CQ_INIT_ATTR_MASK_COMPRESSED_CQE@GOTPAGEOFF]
Lloh97:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_38
; %bb.35:
	ldr	x8, [x27, #24]
	cbz	x8, LBB0_44
; %bb.36:
	ldr	w8, [x26, #4]
	ldr	w9, [x27, #16]
	tst	w9, w8
	b.eq	LBB0_44
; %bb.37:
	mov	w9, #1
	stp	w9, w8, [sp, #52]
LBB0_38:
	sub	w25, w28, #1
	ldp	w28, w27, [x23, #16]
	add	x26, x19, #32
	mov	x0, x26
	bl	_ibv_cq_ex_to_cq
	mov	x4, x0
	add	x8, sp, #32
	add	x5, x8, #28
	add	x8, sp, #24
	orr	x7, x8, #0x4
	mov	w8, #8
	str	w8, [sp]
	mov	x0, x20
	mov	x1, x25
	mov	x2, x27
	mov	x3, x28
	mov	w6, #32
	bl	_ibv_cmd_create_cq
                                        ; kill: def $w0 killed $w0 def $x0
	cbz	w0, LBB0_42
; %bb.39:
Lloh98:
	adrp	x8, _MLX5_DBG_CQ@GOTPAGE
Lloh99:
	ldr	x8, [x8, _MLX5_DBG_CQ@GOTPAGEOFF]
Lloh100:
	ldr	w1, [x8]
	str	x0, [sp]
Lloh101:
	adrp	x2, l_.str.7@PAGE
Lloh102:
	add	x2, x2, l_.str.7@PAGEOFF
	mov	x0, x22
	bl	_mlx5_dbg
	ldr	x25, [sp, #8]                   ; 8-byte Folded Reload
LBB0_40:
	mov	x0, x20
	bl	_to_mctx
	ldr	x1, [x19, #24]
	bl	_mlx5_free_db
LBB0_41:
	mov	x0, x20
	bl	_to_mctx
	mov	x1, x25
	bl	_mlx5_free_cq_buf
	b	LBB0_22
LBB0_42:
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	stp	xzr, x8, [x19, #56]
	ldr	w8, [sp, #24]
	str	w8, [x19, #48]
	mov	x0, x20
	bl	_to_mctx
	ldr	w8, [x0, #8]
	str	w8, [x19, #44]
	mov	x0, x20
	bl	_to_mctx
	ldr	w8, [x0, #4]
	str	w8, [x19, #40]
	mov	x0, x20
	bl	_to_mctx
	ldr	w8, [x0]
	str	w8, [x19, #36]
Lloh103:
	adrp	x8, _MLX5_CQ_FLAGS_EXTENDED@GOTPAGE
Lloh104:
	ldr	x8, [x8, _MLX5_CQ_FLAGS_EXTENDED@GOTPAGEOFF]
Lloh105:
	ldr	w8, [x8]
	tst	w8, w24
	b.eq	LBB0_6
; %bb.43:
	mov	x0, x19
	mov	x1, x23
	bl	_mlx5_cq_fill_pfns
	b	LBB0_6
LBB0_44:
Lloh106:
	adrp	x8, _MLX5_DBG_CQ@GOTPAGE
Lloh107:
	ldr	x8, [x8, _MLX5_DBG_CQ@GOTPAGEOFF]
Lloh108:
	ldr	w1, [x8]
Lloh109:
	adrp	x2, l_.str.6@PAGE
Lloh110:
	add	x2, x2, l_.str.6@PAGEOFF
	b	LBB0_32
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotStr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpAdd	Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotStr	Lloh56, Lloh57, Lloh58
	.loh AdrpAdd	Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh67, Lloh68, Lloh69
	.loh AdrpLdrGotLdr	Lloh64, Lloh65, Lloh66
	.loh AdrpLdrGotLdr	Lloh70, Lloh71, Lloh72
	.loh AdrpLdrGotLdr	Lloh73, Lloh74, Lloh75
	.loh AdrpLdrGotLdr	Lloh76, Lloh77, Lloh78
	.loh AdrpAdd	Lloh82, Lloh83
	.loh AdrpLdrGotLdr	Lloh79, Lloh80, Lloh81
	.loh AdrpLdrGotStr	Lloh87, Lloh88, Lloh89
	.loh AdrpLdrGotLdr	Lloh84, Lloh85, Lloh86
	.loh AdrpAdd	Lloh93, Lloh94
	.loh AdrpLdrGotLdr	Lloh90, Lloh91, Lloh92
	.loh AdrpLdrGotLdr	Lloh95, Lloh96, Lloh97
	.loh AdrpAdd	Lloh101, Lloh102
	.loh AdrpLdrGotLdr	Lloh98, Lloh99, Lloh100
	.loh AdrpLdrGotLdr	Lloh103, Lloh104, Lloh105
	.loh AdrpAdd	Lloh109, Lloh110
	.loh AdrpLdrGotLdr	Lloh106, Lloh107, Lloh108
	.cfi_endproc
                                        ; -- End function
	.comm	_MLX5_DBG_CQ,4,2                ; @MLX5_DBG_CQ
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"CQE invalid\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_errno,4,2                      ; @errno
	.comm	_CREATE_CQ_SUPPORTED_COMP_MASK,4,2 ; @CREATE_CQ_SUPPORTED_COMP_MASK
l_.str.1:                               ; @.str.1
	.asciz	"Unsupported comp_mask for create_cq\n"

	.comm	_IBV_CQ_INIT_ATTR_MASK_FLAGS,4,2 ; @IBV_CQ_INIT_ATTR_MASK_FLAGS
	.comm	_CREATE_CQ_SUPPORTED_FLAGS,4,2  ; @CREATE_CQ_SUPPORTED_FLAGS
l_.str.2:                               ; @.str.2
	.asciz	"Unsupported creation flags requested for create_cq\n"

	.comm	_CREATE_CQ_SUPPORTED_WC_FLAGS,4,2 ; @CREATE_CQ_SUPPORTED_WC_FLAGS
l_.str.3:                               ; @.str.3
	.asciz	"\n"

	.comm	_ENOTSUP,4,2                    ; @ENOTSUP
l_.str.4:                               ; @.str.4
	.asciz	"ncqe %d\n"

	.comm	_MLX5_CQ_SET_CI,8,3             ; @MLX5_CQ_SET_CI
	.comm	_MLX5_CQ_ARM_DB,8,3             ; @MLX5_CQ_ARM_DB
	.comm	_IBV_CREATE_CQ_ATTR_SINGLE_THREADED,4,2 ; @IBV_CREATE_CQ_ATTR_SINGLE_THREADED
	.comm	_MLX5_CQ_FLAGS_SINGLE_THREADED,4,2 ; @MLX5_CQ_FLAGS_SINGLE_THREADED
	.comm	_MLX5DV_CQ_INIT_ATTR_MASK_RESERVED,4,2 ; @MLX5DV_CQ_INIT_ATTR_MASK_RESERVED
l_.str.5:                               ; @.str.5
	.asciz	"Unsupported vendor comp_mask for create_cq\n"

	.comm	_MLX5DV_CQ_INIT_ATTR_MASK_COMPRESSED_CQE,4,2 ; @MLX5DV_CQ_INIT_ATTR_MASK_COMPRESSED_CQE
l_.str.6:                               ; @.str.6
	.asciz	"CQE Compression is not supported\n"

l_.str.7:                               ; @.str.7
	.asciz	"ret %d\n"

	.comm	_MLX5_CQ_FLAGS_EXTENDED,4,2     ; @MLX5_CQ_FLAGS_EXTENDED
	.no_dead_strip	_create_cq
.subsections_via_symbols
