	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function destroy_qp_common
_destroy_qp_common:                     ## @destroy_qp_common
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r15
	cmpq	$0, 48(%rsi)
	je	LBB0_1
## %bb.29:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_destroy_rss_raw_qp_tir         ## TAILCALL
LBB0_1:
	movq	%rdx, %r14
	movq	24(%rbx), %rax
	movq	_IB_QPT_RAW_PACKET@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_3
## %bb.2:
	movq	_MLX5_IB_QP_UNDERLAY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_5
LBB0_3:
	leaq	72(%rbx), %r12
	movq	8(%rbx), %rax
	movq	_IB_QPS_RESET@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_9
## %bb.4:
	movq	_MLX5_CMD_OP_2RST_QP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	leaq	-48(%rbp), %rdx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	xorl	%ecx, %ecx
	callq	_modify_raw_packet_qp
	testl	%eax, %eax
	je	LBB0_9
LBB0_8:
	movl	(%r12), %edx
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_mlx5_ib_warn
	jmp	LBB0_9
LBB0_5:
	leaq	68(%rbx), %r12
	movq	8(%rbx), %rax
	movq	_IB_QPS_RESET@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_9
## %bb.6:
	movl	(%r15), %edi
	movq	_MLX5_CMD_OP_2RST_QP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movq	%r12, %r8
	callq	_mlx5_core_qp_modify
	testl	%eax, %eax
	jne	LBB0_8
LBB0_9:
	movq	24(%rbx), %rdi
	movl	44(%rbx), %esi
	movl	40(%rbx), %edx
	leaq	-48(%rbp), %rcx
	leaq	-56(%rbp), %r8
	callq	_get_cqs
	leaq	4(%r15), %r13
	movq	%r13, %rdi
	callq	_spin_lock_irqsave
	movq	-48(%rbp), %rdi
	movq	-56(%rbp), %rsi
	callq	_mlx5_ib_lock_cqs
	leaq	64(%rbx), %rdi
	callq	_list_del
	cmpq	$0, -48(%rbp)
	je	LBB0_11
## %bb.10:
	leaq	60(%rbx), %rdi
	callq	_list_del
LBB0_11:
	cmpq	$0, -56(%rbp)
	je	LBB0_13
## %bb.12:
	leaq	56(%rbx), %rdi
	callq	_list_del
LBB0_13:
	movq	16(%rbx), %rax
	movq	_MLX5_QP_KERNEL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_19
## %bb.14:
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	movq	-56(%rbp), %r14
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movl	(%r12), %r12d
	movq	32(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_15
## %bb.16:
	callq	_to_msrq
	movq	%rax, %rdx
	jmp	LBB0_17
LBB0_15:
	xorl	%edx, %edx
LBB0_17:
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	___mlx5_ib_cq_clean
	movq	-48(%rbp), %rdi
	cmpq	-56(%rbp), %rdi
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	je	LBB0_19
## %bb.18:
	movl	(%r12), %esi
	xorl	%edx, %edx
	callq	___mlx5_ib_cq_clean
LBB0_19:
	movq	-48(%rbp), %rdi
	movq	-56(%rbp), %rsi
	callq	_mlx5_ib_unlock_cqs
	movq	%r13, %rdi
	callq	_spin_unlock_irqrestore
	movq	24(%rbx), %rax
	movq	_IB_QPT_RAW_PACKET@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_21
## %bb.20:
	movq	_MLX5_IB_QP_UNDERLAY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_22
LBB0_21:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_destroy_raw_packet_qp
	movq	_MLX5_QP_KERNEL@GOTPCREL(%rip), %r13
LBB0_24:
	movq	16(%rbx), %rax
	cmpq	(%r13), %rax
	jne	LBB0_26
## %bb.25:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_destroy_qp_kernel
	jmp	LBB0_28
LBB0_26:
	movq	_MLX5_QP_USER@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_28
## %bb.27:
	movq	%rbx, %rdi
	callq	_get_pd
	movq	%r15, %rdi
	movq	%rax, %rsi
	movq	%rbx, %rdx
	movq	%r12, %rcx
	movq	%r14, %r8
	callq	_destroy_qp_user
LBB0_28:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_22:
	movl	(%r15), %edi
	movq	%r12, %rsi
	callq	_mlx5_core_destroy_qp
	testl	%eax, %eax
	movq	_MLX5_QP_KERNEL@GOTPCREL(%rip), %r13
	je	LBB0_24
## %bb.23:
	movl	(%r12), %edx
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_mlx5_ib_warn
	jmp	LBB0_24
	.cfi_endproc
                                        ## -- End function
	.comm	_IB_QPT_RAW_PACKET,8,3          ## @IB_QPT_RAW_PACKET
	.comm	_MLX5_IB_QP_UNDERLAY,4,2        ## @MLX5_IB_QP_UNDERLAY
	.comm	_IB_QPS_RESET,8,3               ## @IB_QPS_RESET
	.comm	_MLX5_CMD_OP_2RST_QP,4,2        ## @MLX5_CMD_OP_2RST_QP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mlx5_ib: modify QP 0x%06x to RESET failed\n"

	.comm	_MLX5_QP_KERNEL,8,3             ## @MLX5_QP_KERNEL
L_.str.1:                               ## @.str.1
	.asciz	"failed to destroy QP 0x%x\n"

	.comm	_MLX5_QP_USER,8,3               ## @MLX5_QP_USER
	.no_dead_strip	_destroy_qp_common
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function destroy_qp_common
_destroy_qp_common:                     ; @destroy_qp_common
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x19, x1
	mov	x21, x0
	ldr	x8, [x1, #48]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x0, x21
	mov	x1, x19
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_destroy_rss_raw_qp_tir
LBB0_2:
	mov	x20, x2
	ldr	x8, [x19, #24]
Lloh0:
	adrp	x26, _IB_QPT_RAW_PACKET@GOTPAGE
Lloh1:
	ldr	x26, [x26, _IB_QPT_RAW_PACKET@GOTPAGEOFF]
	ldr	x9, [x26]
	cmp	x8, x9
	b.eq	LBB0_4
; %bb.3:
	ldr	w8, [x19]
Lloh2:
	adrp	x9, _MLX5_IB_QP_UNDERLAY@GOTPAGE
Lloh3:
	ldr	x9, [x9, _MLX5_IB_QP_UNDERLAY@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
LBB0_4:
	add	x22, x19, #72
	ldr	x8, [x19, #8]
Lloh5:
	adrp	x9, _IB_QPS_RESET@GOTPAGE
Lloh6:
	ldr	x9, [x9, _IB_QPS_RESET@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_9
; %bb.5:
Lloh8:
	adrp	x8, _MLX5_CMD_OP_2RST_QP@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MLX5_CMD_OP_2RST_QP@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	w8, [sp, #8]
	add	x2, sp, #8
	mov	x0, x21
	mov	x1, x19
	mov	w3, #0
	bl	_modify_raw_packet_qp
	cbz	w0, LBB0_9
LBB0_6:
	ldr	w2, [x22]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_mlx5_ib_warn
	b	LBB0_9
LBB0_7:
	add	x22, x19, #68
	ldr	x8, [x19, #8]
Lloh13:
	adrp	x9, _IB_QPS_RESET@GOTPAGE
Lloh14:
	ldr	x9, [x9, _IB_QPS_RESET@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_9
; %bb.8:
	ldr	w0, [x21]
Lloh16:
	adrp	x8, _MLX5_CMD_OP_2RST_QP@GOTPAGE
Lloh17:
	ldr	x8, [x8, _MLX5_CMD_OP_2RST_QP@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	mov	w2, #0
	mov	x3, #0
	mov	x4, x22
	bl	_mlx5_core_qp_modify
	cbnz	w0, LBB0_6
LBB0_9:
	ldr	x0, [x19, #24]
	ldp	w2, w1, [x19, #40]
	add	x3, sp, #8
	mov	x4, sp
	bl	_get_cqs
	add	x23, x21, #4
	mov	x0, x23
	bl	_spin_lock_irqsave
	ldp	x1, x0, [sp]
	bl	_mlx5_ib_lock_cqs
	add	x0, x19, #64
	bl	_list_del
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_11
; %bb.10:
	add	x0, x19, #60
	bl	_list_del
LBB0_11:
	ldr	x8, [sp]
	cbz	x8, LBB0_13
; %bb.12:
	add	x0, x19, #56
	bl	_list_del
LBB0_13:
	ldr	x8, [x19, #16]
Lloh19:
	adrp	x27, _MLX5_QP_KERNEL@GOTPAGE
Lloh20:
	ldr	x27, [x27, _MLX5_QP_KERNEL@GOTPAGEOFF]
	ldr	x9, [x27]
	cmp	x8, x9
	b.ne	LBB0_19
; %bb.14:
	ldr	x24, [sp]
	ldr	w25, [x22]
	ldr	x0, [x19, #32]
	cbz	x0, LBB0_16
; %bb.15:
	bl	_to_msrq
	mov	x2, x0
	b	LBB0_17
LBB0_16:
	mov	x2, #0
LBB0_17:
	mov	x0, x24
	mov	x1, x25
	bl	___mlx5_ib_cq_clean
	ldp	x8, x0, [sp]
	cmp	x0, x8
	b.eq	LBB0_19
; %bb.18:
	ldr	w1, [x22]
	mov	x2, #0
	bl	___mlx5_ib_cq_clean
LBB0_19:
	ldp	x1, x0, [sp]
	bl	_mlx5_ib_unlock_cqs
	mov	x0, x23
	bl	_spin_unlock_irqrestore
	ldr	x8, [x19, #24]
	ldr	x9, [x26]
	cmp	x8, x9
	b.eq	LBB0_21
; %bb.20:
	ldr	w8, [x19]
Lloh21:
	adrp	x9, _MLX5_IB_QP_UNDERLAY@GOTPAGE
Lloh22:
	ldr	x9, [x9, _MLX5_IB_QP_UNDERLAY@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_27
LBB0_21:
	mov	x0, x21
	mov	x1, x19
	bl	_destroy_raw_packet_qp
LBB0_22:
	ldr	x8, [x19, #16]
	ldr	x9, [x27]
	cmp	x8, x9
	b.ne	LBB0_24
; %bb.23:
	mov	x0, x21
	mov	x1, x19
	bl	_destroy_qp_kernel
	b	LBB0_26
LBB0_24:
Lloh24:
	adrp	x9, _MLX5_QP_USER@GOTPAGE
Lloh25:
	ldr	x9, [x9, _MLX5_QP_USER@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_26
; %bb.25:
	mov	x0, x19
	bl	_get_pd
	mov	x1, x0
	mov	x0, x21
	mov	x2, x19
	mov	x3, x22
	mov	x4, x20
	bl	_destroy_qp_user
LBB0_26:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_27:
	ldr	w0, [x21]
	mov	x1, x22
	bl	_mlx5_core_destroy_qp
	cbz	w0, LBB0_22
; %bb.28:
	ldr	w2, [x22]
Lloh27:
	adrp	x1, l_.str.1@PAGE
Lloh28:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_mlx5_ib_warn
	b	LBB0_22
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_IB_QPT_RAW_PACKET,8,3          ; @IB_QPT_RAW_PACKET
	.comm	_MLX5_IB_QP_UNDERLAY,4,2        ; @MLX5_IB_QP_UNDERLAY
	.comm	_IB_QPS_RESET,8,3               ; @IB_QPS_RESET
	.comm	_MLX5_CMD_OP_2RST_QP,4,2        ; @MLX5_CMD_OP_2RST_QP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mlx5_ib: modify QP 0x%06x to RESET failed\n"

	.comm	_MLX5_QP_KERNEL,8,3             ; @MLX5_QP_KERNEL
l_.str.1:                               ; @.str.1
	.asciz	"failed to destroy QP 0x%x\n"

	.comm	_MLX5_QP_USER,8,3               ; @MLX5_QP_USER
	.no_dead_strip	_destroy_qp_common
.subsections_via_symbols
