	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	8(%rdi), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	%rsi, %r15
	movq	%rdi, %r14
	xorl	%edx, %edx
	callq	*%rax
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testl	%eax, %eax
	jne	LBB0_5
## %bb.2:
	movq	8(%r14), %rax
	movq	%rax, 56(%rbx)
	movq	%r14, 48(%rbx)
	movq	$0, 40(%rbx)
	movl	28(%r15), %eax
	movl	%eax, 36(%rbx)
	movl	24(%r15), %eax
	movl	%eax, 32(%rbx)
	movq	(%r15), %rax
	movq	%rax, (%rbx)
	movq	_IB_SRQT_XRC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.3:
	movq	16(%r15), %rdi
	movq	%rdi, 24(%rbx)
	movq	8(%r15), %rax
	movq	%rax, 16(%rbx)
	callq	_atomic_inc
	movq	16(%rbx), %rdi
	callq	_atomic_inc
LBB0_4:
	movq	%r14, %rdi
	callq	_atomic_inc
	movq	%rbx, %rdi
	addq	$8, %rdi
	xorl	%esi, %esi
	callq	_atomic_set
LBB0_5:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	_ENOSYS@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	subl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOSYS,4,2                     ## @ENOSYS
	.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
	ldr	x8, [x0, #8]
	ldr	x8, [x8]
	cbz	x8, LBB0_6
; %bb.1:
	mov	x21, x1
	mov	x19, x0
	mov	x2, #0
	blr	x8
	mov	x20, x0
	bl	_IS_ERR
	cbnz	w0, LBB0_5
; %bb.2:
	ldr	x8, [x19, #8]
	stp	x19, x8, [x20, #48]
	str	xzr, [x20, #40]
	ldr	d0, [x21, #24]
	str	d0, [x20, #32]
	ldr	x8, [x21]
	str	x8, [x20]
Lloh0:
	adrp	x9, _IB_SRQT_XRC@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IB_SRQT_XRC@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
	ldp	x8, x0, [x21, #8]
	stp	x8, x0, [x20, #16]
	bl	_atomic_inc
	ldr	x0, [x20, #16]
	bl	_atomic_inc
LBB0_4:
	mov	x0, x19
	bl	_atomic_inc
	add	x0, x20, #8
	mov	w1, #0
	bl	_atomic_set
LBB0_5:
	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
	ret
LBB0_6:
Lloh3:
	adrp	x8, _ENOSYS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOSYS@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOSYS,4,2                     ; @ENOSYS
	.comm	_IB_SRQT_XRC,8,3                ; @IB_SRQT_XRC
.subsections_via_symbols
