	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx5_ib_destroy_qp             ## -- Begin function mlx5_ib_destroy_qp
	.p2align	4, 0x90
_mlx5_ib_destroy_qp:                    ## @mlx5_ib_destroy_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, %r14
	movq	%rdi, %rbx
	movl	8(%rdi), %edi
	callq	_to_mdev
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_to_mqp
	movq	%rax, %r12
	movq	(%rbx), %rax
	movq	_IB_QPT_GSI@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mlx5_ib_gsi_destroy_qp         ## TAILCALL
LBB0_1:
	movq	(%r12), %rax
	movq	_MLX5_IB_QPT_DCT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.4:
	movq	%r12, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mlx5_ib_destroy_dct            ## TAILCALL
LBB0_2:
	movq	%r15, %rdi
	movq	%r12, %rsi
	movq	%r14, %rdx
	callq	_destroy_qp_common
	movq	%r12, %rdi
	callq	_kfree
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IB_QPT_GSI,8,3                 ## @IB_QPT_GSI
	.comm	_MLX5_IB_QPT_DCT,8,3            ## @MLX5_IB_QPT_DCT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx5_ib_destroy_qp             ; -- Begin function mlx5_ib_destroy_qp
	.p2align	2
_mlx5_ib_destroy_qp:                    ; @mlx5_ib_destroy_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	x22, x0
	ldr	w0, [x0, #8]
	bl	_to_mdev
	mov	x21, x0
	mov	x0, x22
	bl	_to_mqp
	mov	x20, x0
	ldr	x8, [x22]
Lloh0:
	adrp	x9, _IB_QPT_GSI@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IB_QPT_GSI@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x22
	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	_mlx5_ib_gsi_destroy_qp
LBB0_2:
	ldr	x8, [x20]
Lloh3:
	adrp	x9, _MLX5_IB_QPT_DCT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MLX5_IB_QPT_DCT@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
	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	_mlx5_ib_destroy_dct
LBB0_4:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	bl	_destroy_qp_common
	mov	x0, x20
	bl	_kfree
	mov	w0, #0
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_IB_QPT_GSI,8,3                 ; @IB_QPT_GSI
	.comm	_MLX5_IB_QPT_DCT,8,3            ; @MLX5_IB_QPT_DCT
.subsections_via_symbols
