	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function create_qp
_create_qp:                             ## @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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$232, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r12
	callq	_to_mctx
	movq	%rax, %rbx
	movl	(%r14), %eax
	movq	_MLX5_CREATE_QP_SUP_COMP_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	testl	%ecx, %eax
	je	LBB0_1
LBB0_58:
	xorl	%r13d, %r13d
LBB0_59:
	movq	%r13, %rax
	addq	$232, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	24(%rbx), %rdx
	movq	_IBV_QP_INIT_ATTR_MAX_TSO_HEADER@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_3
## %bb.2:
	movq	8(%r14), %rax
	movq	_IBV_QPT_RAW_PACKET@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_58
LBB0_3:
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movl	$1, %edi
	movl	$136, %esi
	callq	_calloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r15
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	leaq	104(%rax), %r13
	movq	%r13, 128(%rax)
	leaq	-144(%rbp), %rdi
	xorl	%esi, %esi
	movl	$64, %edx
	callq	_memset
	movq	%r15, %rbx
	leaq	-208(%rbp), %rdi
	xorl	%esi, %esi
	movl	$64, %edx
	callq	_memset
	leaq	-272(%rbp), %r15
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$64, %edx
	callq	_memset
	movq	_IBV_QP_INIT_ATTR_RX_HASH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	je	LBB0_7
## %bb.6:
	movq	%r12, %rdi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	callq	_mlx5_cmd_create_rss_qp
	testl	%eax, %eax
	movq	%rbx, %rdi
	jne	LBB0_57
	jmp	LBB0_59
LBB0_4:
	movq	_MLX5_DBG_QP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	xorl	%r13d, %r13d
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_mlx5_dbg
	jmp	LBB0_59
LBB0_7:
	xorl	%eax, %eax
	callq	_qp_sig_enabled
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%rax, 120(%rbx)
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	_MLX5_QP_FLAG_SIGNATURE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, -88(%rbp)
LBB0_9:
	xorl	%eax, %eax
	callq	_use_scatter_to_cqe
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movq	_MLX5_QP_FLAG_SCATTER_CQE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, -88(%rbp)
LBB0_11:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	callq	_mlx5_calc_wq_size
	testl	%eax, %eax
	js	LBB0_12
## %bb.13:
	movq	8(%r14), %rsi
	movq	_IBV_QPT_RAW_PACKET@GOTPCREL(%rip), %rbx
	xorl	%ecx, %ecx
	movl	%eax, %edi
	cmpq	(%rbx), %rsi
	jne	LBB0_15
## %bb.14:
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movl	72(%rdx), %edi
	movl	%eax, %ecx
	subl	%edi, %ecx
	movl	$0, 72(%rdx)
LBB0_15:
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movl	%edi, (%rdx)
	movl	%ecx, 4(%rdx)
	movq	%r12, %rdi
	movq	%r14, %rsi
	movl	%eax, %ecx
	callq	_mlx5_alloc_qp_buf
	testq	%rax, %rax
	je	LBB0_17
## %bb.16:
	movq	_MLX5_DBG_QP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_mlx5_dbg
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_57
LBB0_12:
	negl	%eax
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_57
LBB0_17:
	movq	8(%r14), %rax
	cmpq	(%rbx), %rax
	jne	LBB0_19
## %bb.18:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movl	108(%rbx), %eax
	jmp	LBB0_20
LBB0_19:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movl	72(%rbx), %eax
	addl	112(%rbx), %eax
LBB0_20:
	movl	80(%rbx), %edx
	movb	84(%rbx), %cl
	shll	%cl, %edx
	addl	%eax, %edx
	movl	%eax, 8(%rbx)
	movl	%edx, 76(%rbx)
	movq	%rbx, %rdi
	callq	_mlx5_init_qp_indices
	leaq	92(%rbx), %rdi
	callq	_mlx5_spinlock_init
	testq	%rax, %rax
	jne	LBB0_56
## %bb.21:
	movq	%rbx, %rdi
	addq	$68, %rdi
	callq	_mlx5_spinlock_init
	testq	%rax, %rax
	jne	LBB0_56
## %bb.22:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_mlx5_alloc_dbrec
	movq	%rax, 16(%rbx)
	testq	%rax, %rax
	je	LBB0_23
## %bb.24:
	movq	_MLX5_RCV_DBR@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	$0, (%rax,%rcx,8)
	movq	_MLX5_SND_DBR@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	$0, (%rax,%rcx,8)
	movslq	112(%rbx), %rcx
	movq	%rcx, -144(%rbp)
	movq	8(%r14), %rdi
	movq	_IBV_QPT_RAW_PACKET@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rdi
	jne	LBB0_25
## %bb.26:
	movslq	108(%rbx), %rcx
	jmp	LBB0_27
LBB0_23:
	movq	_MLX5_DBG_QP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_mlx5_dbg
	jmp	LBB0_56
LBB0_25:
	xorl	%ecx, %ecx
LBB0_27:
	movq	%rcx, -136(%rbp)
	movq	%rax, -128(%rbp)
	movl	80(%rbx), %eax
	movl	%eax, -120(%rbp)
	movq	56(%rbx), %rax
	movq	%rax, -96(%rbp)
	movl	64(%rbx), %eax
	movl	%eax, -100(%rbp)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	_IBV_ATOMIC_HCA@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_29
## %bb.28:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	$1, 12(%rax)
LBB0_29:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	cmpq	$0, 16(%rax)
	je	LBB0_30
## %bb.31:
	callq	_is_xrc_tgt
	testl	%eax, %eax
	jne	LBB0_32
## %bb.33:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_mlx5_store_uidx
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movl	%eax, -116(%rbp)
	jmp	LBB0_34
LBB0_30:
	movl	$16777215, -116(%rbp)           ## imm = 0xFFFFFF
	leaq	8(%rax), %rdi
	callq	_pthread_mutex_lock
LBB0_32:
	xorl	%eax, %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
LBB0_34:
	movq	_MLX5_CREATE_QP_EX2_COMP_MASK@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	testl	%eax, (%r14)
	je	LBB0_36
## %bb.35:
	leaq	-144(%rbp), %rdx
	leaq	-272(%rbp), %r8
	movq	%r12, %rdi
	movq	%r14, %rsi
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	callq	_mlx5_cmd_create_qp_ex
	jmp	LBB0_37
LBB0_36:
	leaq	-104(%rbp), %r8
	leaq	-172(%rbp), %rax
	movq	%r12, %rdi
	movq	%r13, %rsi
	movl	$4, %edx
	movq	%r14, %rcx
	movl	$64, %r9d
	pushq	$64
	pushq	%rax
	callq	_ibv_cmd_create_qp_ex
	addq	$16, %rsp
LBB0_37:
	testl	%eax, %eax
	leaq	-208(%rbp), %rcx
	je	LBB0_41
## %bb.38:
	movq	_MLX5_DBG_QP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	L_.str.2(%rip), %rdx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_mlx5_dbg
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	cmpq	$0, 16(%r15)
	je	LBB0_40
LBB0_53:
	movq	8(%r14), %rdi
	callq	_is_xrc_tgt
	testl	%eax, %eax
	jne	LBB0_55
## %bb.54:
	movq	%r15, %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	callq	_mlx5_clear_uidx
	jmp	LBB0_55
LBB0_41:
	movl	(%rbx), %eax
	testl	%eax, (%r14)
	cmoveq	%rcx, %r15
	movl	32(%r15), %edx
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	cmpq	$0, 16(%r15)
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	jne	LBB0_47
## %bb.42:
	movl	%edx, -76(%rbp)                 ## 4-byte Spill
	cmpl	$0, 80(%rbx)
	jne	LBB0_44
## %bb.43:
	cmpq	$0, 56(%rbx)
	je	LBB0_46
LBB0_44:
	movq	104(%rbx), %rsi
	movq	%r15, %rdi
	movq	%rbx, %rdx
	callq	_mlx5_store_qp
	testl	%eax, %eax
	je	LBB0_46
## %bb.45:
	movq	_MLX5_DBG_QP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	L_.str.2(%rip), %rdx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_mlx5_dbg
	movq	%r13, %rdi
	callq	_ibv_cmd_destroy_qp
	cmpq	$0, 16(%r15)
	jne	LBB0_53
LBB0_40:
	movq	%r12, %rdi
	callq	_to_mctx
	leaq	8(%rax), %rdi
	callq	_pthread_mutex_unlock
LBB0_55:
	movq	%r12, %rdi
	callq	_to_mctx
	movq	16(%rbx), %rsi
	movq	%rax, %rdi
	callq	_mlx5_free_db
LBB0_56:
	movq	%rbx, %rdi
	callq	_mlx5_free_qp_buf
	movq	%rbx, %rdi
LBB0_57:
	callq	_free
	jmp	LBB0_58
LBB0_46:
	movq	%r15, %rdi
	addq	$8, %rdi
	callq	_pthread_mutex_unlock
	movl	-76(%rbp), %edx                 ## 4-byte Reload
LBB0_47:
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_map_uuar
	movq	56(%rbx), %rax
	movq	%rax, 48(%rbx)
	movq	40(%r14), %rcx
	testq	%rcx, %rcx
	je	LBB0_49
## %bb.48:
	movq	_MLX5_WQE_CTRL_CQ_UPDATE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
LBB0_49:
	movq	%rcx, 96(%rbx)
	movl	88(%rbx), %ecx
	movl	%ecx, 32(%r14)
	movq	%rax, 24(%r14)
	movl	40(%rbx), %eax
	movl	%eax, 16(%r14)
	movq	_MLX5_RSC_TYPE_QP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rbx)
	cmpq	$0, 16(%r15)
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	je	LBB0_51
## %bb.50:
	movq	8(%r14), %rdi
	callq	_is_xrc_tgt
	testl	%eax, %eax
	je	LBB0_52
LBB0_51:
	movq	(%r13), %r15
LBB0_52:
	movq	%r15, 24(%rbx)
	jmp	LBB0_59
	.cfi_endproc
                                        ## -- End function
	.comm	_MLX5_CREATE_QP_SUP_COMP_MASK,4,2 ## @MLX5_CREATE_QP_SUP_COMP_MASK
	.comm	_IBV_QP_INIT_ATTR_MAX_TSO_HEADER,4,2 ## @IBV_QP_INIT_ATTR_MAX_TSO_HEADER
	.comm	_IBV_QPT_RAW_PACKET,8,3         ## @IBV_QPT_RAW_PACKET
	.comm	_MLX5_DBG_QP,4,2                ## @MLX5_DBG_QP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\n"

	.comm	_IBV_QP_INIT_ATTR_RX_HASH,4,2   ## @IBV_QP_INIT_ATTR_RX_HASH
	.comm	_MLX5_QP_FLAG_SIGNATURE,4,2     ## @MLX5_QP_FLAG_SIGNATURE
	.comm	_MLX5_QP_FLAG_SCATTER_CQE,4,2   ## @MLX5_QP_FLAG_SCATTER_CQE
	.comm	_errno,4,2                      ## @errno
	.comm	_MLX5_RCV_DBR,8,3               ## @MLX5_RCV_DBR
	.comm	_MLX5_SND_DBR,8,3               ## @MLX5_SND_DBR
	.comm	_IBV_ATOMIC_HCA,8,3             ## @IBV_ATOMIC_HCA
	.comm	_MLX5_CREATE_QP_EX2_COMP_MASK,4,2 ## @MLX5_CREATE_QP_EX2_COMP_MASK
L_.str.2:                               ## @.str.2
	.asciz	"ret %d\n"

	.comm	_MLX5_WQE_CTRL_CQ_UPDATE,8,3    ## @MLX5_WQE_CTRL_CQ_UPDATE
	.comm	_MLX5_RSC_TYPE_QP,4,2           ## @MLX5_RSC_TYPE_QP
	.no_dead_strip	_create_qp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function create_qp
_create_qp:                             ; @create_qp
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #304
	.cfi_def_cfa_offset 304
	stp	x28, x27, [sp, #208]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #224]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #240]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #256]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #272]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #288]            ; 16-byte Folded Spill
	add	x29, sp, #288
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x1
	mov	x20, x0
	bl	_to_mctx
	ldr	w8, [x21]
Lloh0:
	adrp	x9, _MLX5_CREATE_QP_SUP_COMP_MASK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MLX5_CREATE_QP_SUP_COMP_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	bics	wzr, w8, w9
	b.eq	LBB0_3
LBB0_1:
	mov	x23, #0
LBB0_2:
	mov	x0, x23
	ldp	x29, x30, [sp, #288]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #272]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #256]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #240]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #224]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #208]            ; 16-byte Folded Reload
	add	sp, sp, #304
	ret
LBB0_3:
	mov	x22, x0
	ldr	x24, [x0, #24]
Lloh3:
	adrp	x9, _IBV_QP_INIT_ATTR_MAX_TSO_HEADER@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IBV_QP_INIT_ATTR_MAX_TSO_HEADER@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.4:
	ldr	x8, [x21, #8]
Lloh6:
	adrp	x9, _IBV_QPT_RAW_PACKET@GOTPAGE
Lloh7:
	ldr	x9, [x9, _IBV_QPT_RAW_PACKET@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_1
LBB0_5:
	mov	w0, #1
	mov	w1, #136
	bl	_calloc
	cbz	x0, LBB0_8
; %bb.6:
	mov	x19, x0
	add	x23, x0, #104
	str	x23, [x0, #128]
	add	x0, sp, #144
	mov	w1, #0
	mov	w2, #64
	bl	_memset
	add	x0, sp, #80
	mov	w1, #0
	mov	w2, #64
	bl	_memset
	add	x0, sp, #16
	mov	w1, #0
	mov	w2, #64
	bl	_memset
	ldr	w8, [x21]
Lloh9:
	adrp	x9, _IBV_QP_INIT_ATTR_RX_HASH@GOTPAGE
Lloh10:
	ldr	x9, [x9, _IBV_QP_INIT_ATTR_RX_HASH@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_9
; %bb.7:
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	bl	_mlx5_cmd_create_rss_qp
	cbnz	w0, LBB0_51
	b	LBB0_2
LBB0_8:
Lloh12:
	adrp	x8, _MLX5_DBG_QP@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MLX5_DBG_QP@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
Lloh15:
	adrp	x2, l_.str@PAGE
Lloh16:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x24
	bl	_mlx5_dbg
	b	LBB0_1
LBB0_9:
	bl	_qp_sig_enabled
	str	x0, [x19, #120]
	cbz	x0, LBB0_11
; %bb.10:
Lloh17:
	adrp	x8, _MLX5_QP_FLAG_SIGNATURE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _MLX5_QP_FLAG_SIGNATURE@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	ldr	w9, [sp, #200]
	orr	w8, w9, w8
	str	w8, [sp, #200]
LBB0_11:
	bl	_use_scatter_to_cqe
	cbz	x0, LBB0_13
; %bb.12:
Lloh20:
	adrp	x8, _MLX5_QP_FLAG_SCATTER_CQE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _MLX5_QP_FLAG_SCATTER_CQE@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	ldr	w9, [sp, #200]
	orr	w8, w9, w8
	str	w8, [sp, #200]
LBB0_13:
	mov	x0, x22
	mov	x1, x21
	mov	x2, x19
	bl	_mlx5_calc_wq_size
	mov	x3, x0
	tbnz	w0, #31, LBB0_16
; %bb.14:
	ldr	x8, [x21, #8]
Lloh23:
	adrp	x25, _IBV_QPT_RAW_PACKET@GOTPAGE
Lloh24:
	ldr	x25, [x25, _IBV_QPT_RAW_PACKET@GOTPAGEOFF]
	ldr	x9, [x25]
	cmp	x8, x9
	b.ne	LBB0_17
; %bb.15:
	ldr	w9, [x19, #72]
	sub	w8, w3, w9
	str	wzr, [x19, #72]
	b	LBB0_18
LBB0_16:
	neg	w8, w3
Lloh25:
	adrp	x9, _errno@GOTPAGE
Lloh26:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh27:
	str	w8, [x9]
	b	LBB0_51
LBB0_17:
	mov	w8, #0
	mov	x9, x3
LBB0_18:
	stp	w9, w8, [x19]
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	bl	_mlx5_alloc_qp_buf
	cbz	x0, LBB0_20
; %bb.19:
Lloh28:
	adrp	x8, _MLX5_DBG_QP@GOTPAGE
Lloh29:
	ldr	x8, [x8, _MLX5_DBG_QP@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
Lloh31:
	adrp	x2, l_.str@PAGE
Lloh32:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x24
	bl	_mlx5_dbg
	b	LBB0_51
LBB0_20:
	ldr	x8, [x21, #8]
	ldr	x9, [x25]
	cmp	x8, x9
	b.ne	LBB0_22
; %bb.21:
	ldr	w8, [x19, #108]
	b	LBB0_23
LBB0_22:
	ldr	w8, [x19, #112]
	ldr	w9, [x19, #72]
	add	w8, w9, w8
LBB0_23:
	ldp	w9, w10, [x19, #80]
	lsl	w9, w9, w10
	add	w9, w9, w8
	str	w8, [x19, #8]
	str	w9, [x19, #76]
	mov	x0, x19
	bl	_mlx5_init_qp_indices
	add	x0, x19, #92
	bl	_mlx5_spinlock_init
	cbnz	x0, LBB0_50
; %bb.24:
	add	x0, x19, #68
	bl	_mlx5_spinlock_init
	cbnz	x0, LBB0_50
; %bb.25:
	mov	x0, x22
	bl	_mlx5_alloc_dbrec
	str	x0, [x19, #16]
	cbz	x0, LBB0_33
; %bb.26:
	mov	x8, x0
	mov	x9, #0
Lloh33:
	adrp	x10, _MLX5_RCV_DBR@GOTPAGE
Lloh34:
	ldr	x10, [x10, _MLX5_RCV_DBR@GOTPAGEOFF]
Lloh35:
	ldr	x10, [x10]
	str	xzr, [x0, x10, lsl #3]
Lloh36:
	adrp	x10, _MLX5_SND_DBR@GOTPAGE
Lloh37:
	ldr	x10, [x10, _MLX5_SND_DBR@GOTPAGEOFF]
Lloh38:
	ldr	x10, [x10]
	str	xzr, [x0, x10, lsl #3]
	ldrsw	x10, [x19, #112]
	str	x10, [sp, #144]
	ldr	x0, [x21, #8]
	ldr	x10, [x25]
	cmp	x0, x10
	b.ne	LBB0_28
; %bb.27:
	ldrsw	x9, [x19, #108]
LBB0_28:
	stp	x9, x8, [sp, #152]
	ldr	w8, [x19, #80]
	ldr	x9, [x19, #56]
	str	x9, [sp, #192]
	ldr	w9, [x19, #64]
	str	w8, [sp, #168]
	str	w9, [sp, #188]
	ldr	x8, [x22]
Lloh39:
	adrp	x9, _IBV_ATOMIC_HCA@GOTPAGE
Lloh40:
	ldr	x9, [x9, _IBV_ATOMIC_HCA@GOTPAGEOFF]
Lloh41:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_30
; %bb.29:
	mov	w8, #1
	str	w8, [x19, #12]
LBB0_30:
	ldr	x8, [x22, #16]
	cbz	x8, LBB0_34
; %bb.31:
	bl	_is_xrc_tgt
	cbz	w0, LBB0_35
; %bb.32:
	mov	x25, #0
	b	LBB0_36
LBB0_33:
Lloh42:
	adrp	x8, _MLX5_DBG_QP@GOTPAGE
Lloh43:
	ldr	x8, [x8, _MLX5_DBG_QP@GOTPAGEOFF]
Lloh44:
	ldr	w1, [x8]
Lloh45:
	adrp	x2, l_.str@PAGE
Lloh46:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x24
	bl	_mlx5_dbg
	b	LBB0_50
LBB0_34:
	mov	w8, #16777215
	str	w8, [sp, #172]
	add	x0, x22, #8
	bl	_pthread_mutex_lock
	mov	x25, #0
	b	LBB0_36
LBB0_35:
	mov	x0, x22
	mov	x1, x19
	bl	_mlx5_store_uidx
	mov	x25, x0
	str	w25, [sp, #172]
LBB0_36:
	ldr	w8, [x21]
Lloh47:
	adrp	x26, _MLX5_CREATE_QP_EX2_COMP_MASK@GOTPAGE
Lloh48:
	ldr	x26, [x26, _MLX5_CREATE_QP_EX2_COMP_MASK@GOTPAGEOFF]
	ldr	w9, [x26]
	tst	w9, w8
	b.eq	LBB0_38
; %bb.37:
	add	x2, sp, #144
	add	x4, sp, #16
	mov	x0, x20
	mov	x1, x21
	mov	x3, x19
	bl	_mlx5_cmd_create_qp_ex
	b	LBB0_39
LBB0_38:
	add	x8, sp, #144
	add	x4, x8, #40
	add	x8, sp, #80
	add	x6, x8, #36
	mov	x0, x20
	mov	x1, x23
	mov	w2, #4
	mov	x3, x21
	mov	w5, #64
	mov	w7, #64
	bl	_ibv_cmd_create_qp_ex
LBB0_39:
                                        ; kill: def $w0 killed $w0 def $x0
	cbz	w0, LBB0_43
; %bb.40:
Lloh49:
	adrp	x8, _MLX5_DBG_QP@GOTPAGE
Lloh50:
	ldr	x8, [x8, _MLX5_DBG_QP@GOTPAGEOFF]
Lloh51:
	ldr	w1, [x8]
	str	x0, [sp]
Lloh52:
	adrp	x2, l_.str.2@PAGE
Lloh53:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x24
	bl	_mlx5_dbg
	ldr	x8, [x22, #16]
	cbz	x8, LBB0_48
LBB0_41:
	ldr	x0, [x21, #8]
	bl	_is_xrc_tgt
	cbnz	w0, LBB0_49
; %bb.42:
	mov	x0, x22
	mov	x1, x25
	bl	_mlx5_clear_uidx
	b	LBB0_49
LBB0_43:
	ldr	w8, [x21]
	ldr	w9, [x26]
	add	x10, sp, #16
	add	x10, x10, #32
	add	x11, sp, #80
	add	x11, x11, #32
	tst	w9, w8
	csel	x8, x11, x10, eq
	ldr	w2, [x8]
	ldr	x8, [x22, #16]
	cbnz	x8, LBB0_53
; %bb.44:
	mov	x26, x2
	ldr	w8, [x19, #80]
	cbnz	w8, LBB0_46
; %bb.45:
	ldr	x8, [x19, #56]
	cbz	x8, LBB0_52
LBB0_46:
	ldr	x1, [x19, #104]
	mov	x0, x22
	mov	x2, x19
	bl	_mlx5_store_qp
                                        ; kill: def $w0 killed $w0 def $x0
	cbz	w0, LBB0_52
; %bb.47:
Lloh54:
	adrp	x8, _MLX5_DBG_QP@GOTPAGE
Lloh55:
	ldr	x8, [x8, _MLX5_DBG_QP@GOTPAGEOFF]
Lloh56:
	ldr	w1, [x8]
	str	x0, [sp]
Lloh57:
	adrp	x2, l_.str.2@PAGE
Lloh58:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x24
	bl	_mlx5_dbg
	mov	x0, x23
	bl	_ibv_cmd_destroy_qp
	ldr	x8, [x22, #16]
	cbnz	x8, LBB0_41
LBB0_48:
	mov	x0, x20
	bl	_to_mctx
	add	x0, x0, #8
	bl	_pthread_mutex_unlock
LBB0_49:
	mov	x0, x20
	bl	_to_mctx
	ldr	x1, [x19, #16]
	bl	_mlx5_free_db
LBB0_50:
	mov	x0, x19
	bl	_mlx5_free_qp_buf
LBB0_51:
	mov	x0, x19
	bl	_free
	b	LBB0_1
LBB0_52:
	add	x0, x22, #8
	bl	_pthread_mutex_unlock
	mov	x2, x26
LBB0_53:
	mov	x0, x20
	mov	x1, x19
	bl	_map_uuar
	ldr	x8, [x19, #56]
	str	x8, [x19, #48]
	ldr	x9, [x21, #40]
Lloh59:
	adrp	x10, _MLX5_WQE_CTRL_CQ_UPDATE@GOTPAGE
Lloh60:
	ldr	x10, [x10, _MLX5_WQE_CTRL_CQ_UPDATE@GOTPAGEOFF]
Lloh61:
	ldr	x10, [x10]
	cmp	x9, #0
	csel	x9, xzr, x10, eq
	str	x9, [x19, #96]
	ldr	w9, [x19, #88]
	str	w9, [x21, #32]
	str	x8, [x21, #24]
	ldr	w8, [x19, #40]
	str	w8, [x21, #16]
Lloh62:
	adrp	x8, _MLX5_RSC_TYPE_QP@GOTPAGE
Lloh63:
	ldr	x8, [x8, _MLX5_RSC_TYPE_QP@GOTPAGEOFF]
Lloh64:
	ldr	w8, [x8]
	str	w8, [x19, #32]
	ldr	x8, [x22, #16]
	cbz	x8, LBB0_55
; %bb.54:
	ldr	x0, [x21, #8]
	bl	_is_xrc_tgt
	cbz	w0, LBB0_56
LBB0_55:
	ldr	x25, [x23]
LBB0_56:
	str	x25, [x19, #24]
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotStr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGot	Lloh47, Lloh48
	.loh AdrpAdd	Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpAdd	Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.cfi_endproc
                                        ; -- End function
	.comm	_MLX5_CREATE_QP_SUP_COMP_MASK,4,2 ; @MLX5_CREATE_QP_SUP_COMP_MASK
	.comm	_IBV_QP_INIT_ATTR_MAX_TSO_HEADER,4,2 ; @IBV_QP_INIT_ATTR_MAX_TSO_HEADER
	.comm	_IBV_QPT_RAW_PACKET,8,3         ; @IBV_QPT_RAW_PACKET
	.comm	_MLX5_DBG_QP,4,2                ; @MLX5_DBG_QP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\n"

	.comm	_IBV_QP_INIT_ATTR_RX_HASH,4,2   ; @IBV_QP_INIT_ATTR_RX_HASH
	.comm	_MLX5_QP_FLAG_SIGNATURE,4,2     ; @MLX5_QP_FLAG_SIGNATURE
	.comm	_MLX5_QP_FLAG_SCATTER_CQE,4,2   ; @MLX5_QP_FLAG_SCATTER_CQE
	.comm	_errno,4,2                      ; @errno
	.comm	_MLX5_RCV_DBR,8,3               ; @MLX5_RCV_DBR
	.comm	_MLX5_SND_DBR,8,3               ; @MLX5_SND_DBR
	.comm	_IBV_ATOMIC_HCA,8,3             ; @IBV_ATOMIC_HCA
	.comm	_MLX5_CREATE_QP_EX2_COMP_MASK,4,2 ; @MLX5_CREATE_QP_EX2_COMP_MASK
l_.str.2:                               ; @.str.2
	.asciz	"ret %d\n"

	.comm	_MLX5_WQE_CTRL_CQ_UPDATE,8,3    ; @MLX5_WQE_CTRL_CQ_UPDATE
	.comm	_MLX5_RSC_TYPE_QP,4,2           ; @MLX5_RSC_TYPE_QP
	.no_dead_strip	_create_qp
.subsections_via_symbols
