	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___ib_create_cq                 ## -- Begin function __ib_create_cq
	.p2align	4, 0x90
___ib_create_cq:                        ## @__ib_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -48(%rbp)                  ## 8-byte Spill
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	movq	%rcx, %r13
	movq	%rdx, %r14
	movl	%esi, %r12d
	movq	%rdi, %r15
	movq	_ib_cq@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_rdma_zalloc_drv_obj
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %rbx
	movq	%r15, 40(%rax)
	movq	$0, 32(%rax)
	movl	%r12d, 24(%rax)
	movq	%r14, (%rax)
	movq	%r13, 16(%rax)
	leaq	12(%rax), %rdi
	xorl	%esi, %esi
	callq	_atomic_set
	movq	_RDMA_RESTRACK_CQ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%rbx, %r13
	addq	$8, %r13
	movl	%eax, 8(%rbx)
	movq	%r13, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_rdma_restrack_set_task
	movq	%rbx, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	xorl	%edx, %edx
	callq	*(%r15)
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_kfree
	movl	%r14d, %edi
	jmp	LBB0_2
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	subl	(%rax), %edi
LBB0_2:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
LBB0_5:
	movq	%r13, %rdi
	callq	_rdma_restrack_kadd
	movq	%rbx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ib_cq,4,2                      ## @ib_cq
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_RDMA_RESTRACK_CQ,4,2           ## @RDMA_RESTRACK_CQ
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___ib_create_cq                 ; -- Begin function __ib_create_cq
	.p2align	2
___ib_create_cq:                        ; @__ib_create_cq
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x5
	mov	x20, x4
	mov	x23, x3
	mov	x24, x2
	mov	x25, x1
	mov	x22, x0
Lloh0:
	adrp	x8, _ib_cq@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ib_cq@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_rdma_zalloc_drv_obj
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
	stp	xzr, x22, [x0, #32]
	str	w25, [x0, #24]
	str	x24, [x0], #12
	str	x23, [x19, #16]
	mov	w1, #0
	bl	_atomic_set
Lloh3:
	adrp	x8, _RDMA_RESTRACK_CQ@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RDMA_RESTRACK_CQ@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	mov	x23, x19
	str	w8, [x23, #8]!
	mov	x0, x23
	mov	x1, x21
	bl	_rdma_restrack_set_task
	ldr	x8, [x22]
	mov	x0, x19
	mov	x1, x20
	mov	x2, #0
	blr	x8
	cbz	w0, LBB0_5
; %bb.2:
	mov	x20, x0
	mov	x0, x19
	bl	_kfree
	mov	x0, x20
	b	LBB0_4
LBB0_3:
Lloh6:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_ERR_PTR
LBB0_5:
	mov	x0, x23
	bl	_rdma_restrack_kadd
	mov	x0, x19
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ib_cq,4,2                      ; @ib_cq
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_RDMA_RESTRACK_CQ,4,2           ; @RDMA_RESTRACK_CQ
.subsections_via_symbols
