	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ib_create_srq                  ## -- Begin function ib_create_srq
	.p2align	4, 0x90
_ib_create_srq:                         ## @ib_create_srq
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	8(%rdi), %rdi
	cmpq	$0, (%rdi)
	je	LBB0_1
## %bb.3:
	movq	%rsi, %r14
	movq	_ib_srq@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_rdma_zalloc_drv_obj
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %rbx
	movq	8(%r15), %rax
	movq	%rax, 40(%rbx)
	movq	%r15, 24(%rbx)
	movl	28(%r14), %eax
	movl	%eax, 36(%rbx)
	movl	24(%r14), %eax
	movl	%eax, 32(%rbx)
	movq	(%r14), %rdi
	movq	%rdi, (%rbx)
	callq	_ib_srq_has_cq
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	16(%r14), %rdi
	movq	%rdi, 8(%rbx)
	callq	_atomic_inc
LBB0_7:
	movq	(%rbx), %rax
	movq	_IB_SRQT_XRC@GOTPCREL(%rip), %r12
	cmpq	(%r12), %rax
	jne	LBB0_9
## %bb.8:
	movq	8(%r14), %rdi
	movq	%rdi, 16(%rbx)
	callq	_atomic_inc
LBB0_9:
	movq	%r15, %rdi
	callq	_atomic_inc
	movq	8(%r15), %rax
	movq	%rbx, %rdi
	movq	%r14, %rsi
	xorl	%edx, %edx
	callq	*(%rax)
	testl	%eax, %eax
	je	LBB0_16
## %bb.10:
	movl	%eax, %r14d
	movq	24(%rbx), %rdi
	callq	_atomic_dec
	movq	(%rbx), %rdi
	cmpq	(%r12), %rdi
	jne	LBB0_12
## %bb.11:
	movq	16(%rbx), %rdi
	callq	_atomic_dec
	movq	(%rbx), %rdi
LBB0_12:
	callq	_ib_srq_has_cq
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	movq	8(%rbx), %rdi
	callq	_atomic_dec
LBB0_14:
	movq	%rbx, %rdi
	callq	_kfree
	jmp	LBB0_15
LBB0_1:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_15:
	movl	%r14d, %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
LBB0_16:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_ib_srq,4,2                     ## @ib_srq
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_IB_SRQT_XRC,8,3                ## @IB_SRQT_XRC
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ib_create_srq                  ; -- Begin function ib_create_srq
	.p2align	2
_ib_create_srq:                         ; @ib_create_srq
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x21, x0
	ldr	x0, [x0, #8]
	ldr	x8, [x0]
	cbz	x8, LBB0_12
; %bb.1:
	mov	x20, x1
Lloh0:
	adrp	x8, _ib_srq@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ib_srq@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_rdma_zalloc_drv_obj
	cbz	x0, LBB0_13
; %bb.2:
	mov	x19, x0
	ldr	x8, [x21, #8]
	str	x8, [x0, #40]
	str	x21, [x0, #24]
	ldr	d0, [x20, #24]
	str	d0, [x0, #32]
	ldr	x0, [x20]
	str	x0, [x19]
	bl	_ib_srq_has_cq
	cbz	x0, LBB0_4
; %bb.3:
	ldr	x0, [x20, #16]
	str	x0, [x19, #8]
	bl	_atomic_inc
LBB0_4:
	ldr	x8, [x19]
Lloh3:
	adrp	x22, _IB_SRQT_XRC@GOTPAGE
Lloh4:
	ldr	x22, [x22, _IB_SRQT_XRC@GOTPAGEOFF]
	ldr	x9, [x22]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.5:
	ldr	x0, [x20, #8]
	str	x0, [x19, #16]
	bl	_atomic_inc
LBB0_6:
	mov	x0, x21
	bl	_atomic_inc
	ldr	x8, [x21, #8]
	ldr	x8, [x8]
	mov	x0, x19
	mov	x1, x20
	mov	x2, #0
	blr	x8
	cbz	w0, LBB0_16
; %bb.7:
	mov	x20, x0
	ldr	x0, [x19, #24]
	bl	_atomic_dec
	ldr	x0, [x19]
	ldr	x8, [x22]
	cmp	x0, x8
	b.ne	LBB0_9
; %bb.8:
	ldr	x0, [x19, #16]
	bl	_atomic_dec
	ldr	x0, [x19]
LBB0_9:
	bl	_ib_srq_has_cq
	cbz	x0, LBB0_11
; %bb.10:
	ldr	x0, [x19, #8]
	bl	_atomic_dec
LBB0_11:
	mov	x0, x19
	bl	_kfree
	b	LBB0_15
LBB0_12:
Lloh5:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
	b	LBB0_14
LBB0_13:
Lloh7:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_14:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_15:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_ERR_PTR
LBB0_16:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_ib_srq,4,2                     ; @ib_srq
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_IB_SRQT_XRC,8,3                ; @IB_SRQT_XRC
.subsections_via_symbols
