	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ib_create_qp                   ## -- Begin function ib_create_qp
	.p2align	4, 0x90
_ib_create_qp:                          ## @ib_create_qp
	.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	%rsi, %rbx
	movq	%rdi, %r14
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	leaq	8(%r14), %rax
	jmp	LBB0_3
LBB0_2:
	movq	72(%rbx), %rax
LBB0_3:
	movq	(%rax), %r12
	cmpq	$0, 32(%rbx)
	je	LBB0_8
## %bb.4:
	cmpq	$0, 56(%rbx)
	jne	LBB0_22
## %bb.5:
	cmpq	$0, 48(%rbx)
	jne	LBB0_22
## %bb.6:
	cmpq	$0, 24(%rbx)
	jne	LBB0_22
## %bb.7:
	cmpq	$0, 16(%rbx)
	je	LBB0_8
LBB0_22:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	subl	(%rax), %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
LBB0_8:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	*8(%r12)
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	jne	LBB0_21
## %bb.9:
	movq	%r12, 96(%r15)
	movq	%r15, 88(%r15)
	movq	$0, 80(%r15)
	movq	(%rbx), %rax
	movq	%rax, (%r15)
	movq	32(%rbx), %rax
	movq	%rax, 16(%r15)
	leaq	76(%r15), %rdi
	xorl	%esi, %esi
	callq	_atomic_set
	movq	%r15, %rdi
	addq	$72, %rdi
	callq	_spin_lock_init
	movq	(%rbx), %rax
	movq	_IB_QPT_XRC_TGT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.23:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ib_create_xrc_qp               ## TAILCALL
LBB0_10:
	movl	68(%rbx), %ecx
	movl	%ecx, 68(%r15)
	movl	64(%rbx), %ecx
	movl	%ecx, 64(%r15)
	movq	_IB_QPT_XRC_INI@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_12
## %bb.11:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 48(%r15)
	jmp	LBB0_16
LBB0_12:
	movq	56(%rbx), %rdi
	movq	%rdi, 56(%r15)
	testq	%rdi, %rdi
	je	LBB0_14
## %bb.13:
	callq	_atomic_inc
LBB0_14:
	movq	48(%rbx), %rdi
	movq	%rdi, 48(%r15)
	testq	%rdi, %rdi
	je	LBB0_16
## %bb.15:
	callq	_atomic_inc
LBB0_16:
	movq	%r14, 40(%r15)
	movq	40(%rbx), %rax
	movq	%rax, 32(%r15)
	movq	$0, 24(%r15)
	movq	%r14, %rdi
	callq	_atomic_inc
	movq	40(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_18
## %bb.17:
	callq	_atomic_inc
LBB0_18:
	cmpq	$0, 32(%rbx)
	je	LBB0_20
## %bb.19:
	movq	16(%r15), %rdi
	callq	_atomic_inc
LBB0_20:
	movl	8(%rbx), %esi
	movl	%esi, 12(%r15)
	movq	_u32@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r12), %edx
	callq	_min_t
	movl	%eax, 8(%r15)
LBB0_21:
	movq	%r15, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_IB_QPT_XRC_TGT,8,3             ## @IB_QPT_XRC_TGT
	.comm	_IB_QPT_XRC_INI,8,3             ## @IB_QPT_XRC_INI
	.comm	_u32,4,2                        ## @u32
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ib_create_qp                   ; -- Begin function ib_create_qp
	.p2align	2
_ib_create_qp:                          ; @ib_create_qp
	.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	x19, x1
	mov	x20, x0
	cbz	x0, LBB0_2
; %bb.1:
	add	x8, x20, #8
	b	LBB0_3
LBB0_2:
	ldr	x8, [x19, #72]
LBB0_3:
	ldr	x22, [x8]
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_9
; %bb.4:
	ldr	x8, [x19, #56]
	cbnz	x8, LBB0_8
; %bb.5:
	ldr	x8, [x19, #48]
	cbnz	x8, LBB0_8
; %bb.6:
	ldr	x8, [x19, #24]
	cbnz	x8, LBB0_8
; %bb.7:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_9
LBB0_8:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	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
LBB0_9:
	ldr	x8, [x22, #8]
	mov	x0, x20
	mov	x1, x19
	mov	x2, #0
	blr	x8
	mov	x21, x0
	bl	_IS_ERR
	cbnz	x0, LBB0_23
; %bb.10:
	stp	x21, x22, [x21, #88]
	str	xzr, [x21, #80]
	ldr	x8, [x19]
	str	x8, [x21]
	ldr	x8, [x19, #32]
	str	x8, [x21, #16]
	add	x0, x21, #76
	mov	w1, #0
	bl	_atomic_set
	add	x0, x21, #72
	bl	_spin_lock_init
	ldr	x8, [x19]
Lloh3:
	adrp	x9, _IB_QPT_XRC_TGT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IB_QPT_XRC_TGT@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_12
; %bb.11:
	mov	x0, x21
	mov	x1, 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
	b	_ib_create_xrc_qp
LBB0_12:
	ldr	d0, [x19, #64]
	str	d0, [x21, #64]
Lloh6:
	adrp	x9, _IB_QPT_XRC_INI@GOTPAGE
Lloh7:
	ldr	x9, [x9, _IB_QPT_XRC_INI@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_14
; %bb.13:
	stp	xzr, xzr, [x21, #48]
	b	LBB0_18
LBB0_14:
	ldr	x0, [x19, #56]
	str	x0, [x21, #56]
	cbz	x0, LBB0_16
; %bb.15:
	bl	_atomic_inc
LBB0_16:
	ldr	x0, [x19, #48]
	str	x0, [x21, #48]
	cbz	x0, LBB0_18
; %bb.17:
	bl	_atomic_inc
LBB0_18:
	str	x20, [x21, #40]
	ldr	x8, [x19, #40]
	stp	xzr, x8, [x21, #24]
	mov	x0, x20
	bl	_atomic_inc
	ldr	x0, [x19, #40]
	cbz	x0, LBB0_20
; %bb.19:
	bl	_atomic_inc
LBB0_20:
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_22
; %bb.21:
	ldr	x0, [x21, #16]
	bl	_atomic_inc
LBB0_22:
	ldr	w1, [x19, #8]
	str	w1, [x21, #12]
Lloh9:
	adrp	x8, _u32@GOTPAGE
Lloh10:
	ldr	x8, [x8, _u32@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	ldr	w2, [x22]
	bl	_min_t
	str	w0, [x21, #8]
LBB0_23:
	mov	x0, x21
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_IB_QPT_XRC_TGT,8,3             ; @IB_QPT_XRC_TGT
	.comm	_IB_QPT_XRC_INI,8,3             ; @IB_QPT_XRC_INI
	.comm	_u32,4,2                        ; @u32
.subsections_via_symbols
