	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -80(%rbp)
	movq	(%rsi), %rax
	movq	(%rdi), %rcx
	movq	(%rcx), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_20
## %bb.1:
	movq	%rsi, %rbx
	movq	%rdi, %r13
	movq	_UVERBS_OBJECT_CQ@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-48(%rbp), %rdx
	movq	%r13, %rsi
	callq	_uobj_alloc
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	jne	LBB0_19
## %bb.2:
	movq	8(%rbx), %rdi
	testq	%rdi, %rdi
	js	LBB0_3
## %bb.6:
	movq	%r13, %rsi
	callq	_ib_uverbs_lookup_comp_file
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_4
## %bb.7:
	movq	%r15, %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
	jmp	LBB0_17
LBB0_20:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	subl	(%rax), %edi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
LBB0_3:
	xorl	%r15d, %r15d
LBB0_4:
	movl	24(%rbx), %eax
	movl	%eax, 16(%r14)
	leaq	32(%r14), %rdi
	xorps	%xmm0, %xmm0
	movups	%xmm0, 40(%r14)
	callq	_INIT_LIST_HEAD
	movq	%r14, %rdi
	addq	$28, %rdi
	callq	_INIT_LIST_HEAD
	movl	20(%rbx), %eax
	movl	%eax, -68(%rbp)
	movq	(%rbx), %rax
	movq	%rax, -80(%rbp)
	movl	16(%rbx), %eax
	movl	%eax, -72(%rbp)
	movq	-48(%rbp), %rdi
	movq	_ib_cq@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_rdma_zalloc_drv_obj
	testq	%rax, %rax
	je	LBB0_5
## %bb.8:
	movq	%rax, %r12
	movq	-48(%rbp), %rax
	movq	%rax, 40(%r12)
	movq	%r14, 32(%r12)
	movq	_ib_uverbs_comp_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%r12)
	movq	_ib_uverbs_cq_event_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r12)
	leaq	24(%r15), %rax
	testq	%r15, %r15
	cmoveq	%r15, %rax
	movq	%rax, 16(%r12)
	movq	%r12, %rdi
	addq	$8, %rdi
	xorl	%esi, %esi
	callq	_atomic_set
	movq	-48(%rbp), %rax
	leaq	8(%r13), %rdx
	leaq	-80(%rbp), %rsi
	movq	%r12, %rdi
	callq	*(%rax)
	testl	%eax, %eax
	je	LBB0_10
## %bb.9:
	movl	%eax, %ebx
	jmp	LBB0_14
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_15
LBB0_10:
	movq	%r12, 8(%r14)
	leaq	-64(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$12, %edx
	callq	_memset
	movl	(%r14), %eax
	movl	%eax, -56(%rbp)
	movl	4(%r12), %eax
	movl	%eax, -60(%rbp)
	movq	%r13, %rdi
	movl	$12, %esi
	callq	_uverbs_response_length
	movl	%eax, -64(%rbp)
	movq	_RDMA_RESTRACK_CQ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r12)
	movq	%r12, %rdi
	callq	_rdma_restrack_uadd
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movl	$12, %edx
	callq	_uverbs_response
	testl	%eax, %eax
	je	LBB0_11
## %bb.13:
	movl	%eax, %ebx
	movq	%r13, %rdi
	callq	_uverbs_get_cleared_udata
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_ib_destroy_cq_user
	xorl	%r12d, %r12d
LBB0_14:
	movq	%r12, %rdi
	callq	_kfree
LBB0_15:
	testq	%r15, %r15
	je	LBB0_17
## %bb.16:
	movq	(%r13), %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	_ib_uverbs_release_ucq
LBB0_17:
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_uobj_alloc_abort
	movl	%ebx, %edi
LBB0_18:
	callq	_ERR_PTR
	movq	%rax, %r14
LBB0_19:
	movq	%r14, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_uobj_alloc_commit
	testl	%eax, %eax
	je	LBB0_19
## %bb.12:
	movl	%eax, %edi
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_UVERBS_OBJECT_CQ,4,2           ## @UVERBS_OBJECT_CQ
	.comm	_ib_cq,4,2                      ## @ib_cq
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ib_uverbs_comp_handler,4,2     ## @ib_uverbs_comp_handler
	.comm	_ib_uverbs_cq_event_handler,4,2 ## @ib_uverbs_cq_event_handler
	.comm	_RDMA_RESTRACK_CQ,4,2           ## @RDMA_RESTRACK_CQ
	.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, #112
	.cfi_def_cfa_offset 112
	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
	stp	xzr, xzr, [sp, #16]
	ldr	x8, [x1]
	ldr	x9, [x0]
	ldr	x9, [x9]
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_5
; %bb.1:
	mov	x22, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _UVERBS_OBJECT_CQ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _UVERBS_OBJECT_CQ@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x2, sp, #8
	mov	x1, x19
	bl	_uobj_alloc
	mov	x20, x0
	bl	_IS_ERR
	cbnz	x0, LBB0_18
; %bb.2:
	ldr	x0, [x22, #8]
	tbnz	x0, #63, LBB0_6
; %bb.3:
	mov	x1, x19
	bl	_ib_uverbs_lookup_comp_file
	mov	x21, x0
	bl	_IS_ERR
	cbz	x0, LBB0_7
; %bb.4:
	mov	x0, x21
	bl	_PTR_ERR
	mov	x23, x0
	b	LBB0_16
LBB0_5:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
	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
	add	sp, sp, #112
	b	_ERR_PTR
LBB0_6:
	mov	x21, #0
LBB0_7:
	ldr	w8, [x22, #24]
	str	w8, [x20, #16]
	add	x0, x20, #32
	stp	xzr, xzr, [x20, #40]
	bl	_INIT_LIST_HEAD
	add	x0, x20, #28
	bl	_INIT_LIST_HEAD
	ldr	x8, [x22]
	str	x8, [sp, #16]
	ldr	d0, [x22, #16]
	str	d0, [sp, #24]
	ldr	x0, [sp, #8]
Lloh6:
	adrp	x8, _ib_cq@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ib_cq@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_rdma_zalloc_drv_obj
	cbz	x0, LBB0_10
; %bb.8:
	mov	x22, x0
	ldr	x8, [sp, #8]
Lloh9:
	adrp	x9, _ib_uverbs_comp_handler@GOTPAGE
Lloh10:
	ldr	x9, [x9, _ib_uverbs_comp_handler@GOTPAGEOFF]
	stp	x20, x8, [x0, #32]
Lloh11:
	ldr	w8, [x9]
Lloh12:
	adrp	x9, _ib_uverbs_cq_event_handler@GOTPAGE
Lloh13:
	ldr	x9, [x9, _ib_uverbs_cq_event_handler@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #24]
	add	x8, x21, #24
	cmp	x21, #0
	csel	x8, xzr, x8, eq
	str	x8, [x0, #16]
	add	x0, x0, #8
	mov	w1, #0
	bl	_atomic_set
	ldr	x8, [sp, #8]
	ldr	x8, [x8]
	add	x2, x19, #8
	add	x1, sp, #16
	mov	x0, x22
	blr	x8
	cbz	w0, LBB0_11
; %bb.9:
	mov	x23, x0
	b	LBB0_13
LBB0_10:
Lloh15:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_14
LBB0_11:
	str	x22, [x20, #8]
	add	x0, sp, #32
	mov	w1, #0
	mov	w2, #12
	bl	_memset
	ldr	w8, [x20]
	str	w8, [sp, #40]
	ldr	w8, [x22, #4]
	str	w8, [sp, #36]
	mov	x0, x19
	mov	w1, #12
	bl	_uverbs_response_length
	str	w0, [sp, #32]
Lloh18:
	adrp	x8, _RDMA_RESTRACK_CQ@GOTPAGE
Lloh19:
	ldr	x8, [x8, _RDMA_RESTRACK_CQ@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	str	w8, [x22]
	mov	x0, x22
	bl	_rdma_restrack_uadd
	add	x1, sp, #32
	mov	x0, x19
	mov	w2, #12
	bl	_uverbs_response
	cbz	w0, LBB0_19
; %bb.12:
	mov	x23, x0
	mov	x0, x19
	bl	_uverbs_get_cleared_udata
	mov	x1, x0
	mov	x0, x22
	bl	_ib_destroy_cq_user
	mov	x22, #0
LBB0_13:
	mov	x0, x22
	bl	_kfree
LBB0_14:
	cbz	x21, LBB0_16
; %bb.15:
	ldr	x0, [x19]
	mov	x1, x21
	mov	x2, x20
	bl	_ib_uverbs_release_ucq
LBB0_16:
	mov	x0, x20
	mov	x1, x19
	bl	_uobj_alloc_abort
	mov	x0, x23
LBB0_17:
	bl	_ERR_PTR
	mov	x20, x0
LBB0_18:
	mov	x0, x20
	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
	add	sp, sp, #112
	ret
LBB0_19:
	mov	x0, x20
	mov	x1, x19
	bl	_uobj_alloc_commit
	cbnz	w0, LBB0_17
	b	LBB0_18
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_UVERBS_OBJECT_CQ,4,2           ; @UVERBS_OBJECT_CQ
	.comm	_ib_cq,4,2                      ; @ib_cq
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ib_uverbs_comp_handler,4,2     ; @ib_uverbs_comp_handler
	.comm	_ib_uverbs_cq_event_handler,4,2 ; @ib_uverbs_cq_event_handler
	.comm	_RDMA_RESTRACK_CQ,4,2           ; @RDMA_RESTRACK_CQ
	.no_dead_strip	_create_cq
.subsections_via_symbols
