	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ib_alloc_cq                    ## -- Begin function ib_alloc_cq
	.p2align	4, 0x90
_ib_alloc_cq:                           ## @ib_alloc_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r14d
	movl	%edx, -48(%rbp)
	movl	%ecx, -44(%rbp)
	leal	-128(%r14), %r13d
	cmpl	$3, %r13d
	jae	LBB0_7
## %bb.1:
	movq	%rsi, %r15
	movq	%rdi, %rbx
	leaq	-48(%rbp), %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	*(%rdi)
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	jne	LBB0_6
## %bb.2:
	movq	%rbx, 48(%r12)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 32(%r12)
	movq	%r15, 24(%r12)
	movl	%r14d, (%r12)
	leaq	16(%r12), %rdi
	xorl	%esi, %esi
	callq	_atomic_set
	cmpl	$2, %r13d
	jae	LBB0_3
## %bb.5:
	movq	_ib_cq_completion_workqueue@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%r12)
	movq	%r12, %rdi
	addq	$4, %rdi
	movq	_ib_cq_poll_work@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_WORK
	movq	_IB_CQ_NEXT_COMP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_ib_req_notify_cq
	jmp	LBB0_6
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	subl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
LBB0_3:
	cmpl	$130, %r14d
	jne	LBB0_6
## %bb.4:
	movq	$0, 8(%r12)
LBB0_6:
	movq	%r12, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ib_cq_completion_workqueue,8,3 ## @ib_cq_completion_workqueue
	.comm	_ib_cq_poll_work,4,2            ## @ib_cq_poll_work
	.comm	_IB_CQ_NEXT_COMP,4,2            ## @IB_CQ_NEXT_COMP
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ib_alloc_cq                    ; -- Begin function ib_alloc_cq
	.p2align	2
_ib_alloc_cq:                           ; @ib_alloc_cq
	.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
	stp	w2, w3, [sp, #8]
	sub	w23, w4, #128
	cmp	w23, #3
	b.hs	LBB0_4
; %bb.1:
	mov	x20, x4
	mov	x21, x1
	mov	x22, x0
	ldr	x8, [x0]
	add	x1, sp, #8
	mov	x2, #0
	mov	x3, #0
	blr	x8
	mov	x19, x0
	bl	_IS_ERR
	cbnz	x0, LBB0_7
; %bb.2:
	stp	xzr, x22, [x19, #40]
	stp	x21, xzr, [x19, #24]
	add	x0, x19, #16
	str	w20, [x19]
	mov	w1, #0
	bl	_atomic_set
	cmp	w23, #2
	b.hs	LBB0_5
; %bb.3:
Lloh0:
	adrp	x8, _ib_cq_completion_workqueue@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ib_cq_completion_workqueue@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [x19, #8]
	add	x0, x19, #4
Lloh3:
	adrp	x8, _ib_cq_poll_work@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ib_cq_poll_work@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_INIT_WORK
Lloh6:
	adrp	x8, _IB_CQ_NEXT_COMP@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IB_CQ_NEXT_COMP@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ib_req_notify_cq
	b	LBB0_7
LBB0_4:
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
	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
	b	_ERR_PTR
LBB0_5:
	cmp	w20, #130
	b.ne	LBB0_7
; %bb.6:
	str	xzr, [x19, #8]
LBB0_7:
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ib_cq_completion_workqueue,8,3 ; @ib_cq_completion_workqueue
	.comm	_ib_cq_poll_work,4,2            ; @ib_cq_poll_work
	.comm	_IB_CQ_NEXT_COMP,4,2            ; @IB_CQ_NEXT_COMP
.subsections_via_symbols
