	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hns_roce_qp_free               ## -- Begin function hns_roce_qp_free
	.p2align	4, 0x90
_hns_roce_qp_free:                      ## @hns_roce_qp_free
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	leaq	20(%rsi), %rdi
	callq	_atomic_dec_and_test
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	16(%rbx), %rdi
	callq	_complete
LBB0_2:
	leaq	16(%rbx), %rdi
	callq	_wait_for_completion
	movq	8(%rbx), %rax
	movq	_IB_QPT_GSI@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.6:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_3:
	cmpq	$0, (%r14)
	je	LBB0_5
## %bb.4:
	leaq	12(%r14), %rsi
	movl	(%rbx), %edx
	movq	%r14, %rdi
	callq	_hns_roce_table_put
LBB0_5:
	leaq	8(%r14), %rsi
	movl	(%rbx), %edx
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_hns_roce_table_put             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IB_QPT_GSI,8,3                 ## @IB_QPT_GSI
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hns_roce_qp_free               ; -- Begin function hns_roce_qp_free
	.p2align	2
_hns_roce_qp_free:                      ; @hns_roce_qp_free
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
	add	x0, x1, #20
	bl	_atomic_dec_and_test
	cbz	x0, LBB0_2
; %bb.1:
	add	x0, x20, #16
	bl	_complete
LBB0_2:
	add	x0, x20, #16
	bl	_wait_for_completion
	ldr	x8, [x20, #8]
Lloh0:
	adrp	x9, _IB_QPT_GSI@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IB_QPT_GSI@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_4:
	ldr	x8, [x19]
	cbz	x8, LBB0_6
; %bb.5:
	add	x1, x19, #12
	ldr	w2, [x20]
	mov	x0, x19
	bl	_hns_roce_table_put
LBB0_6:
	add	x1, x19, #8
	ldr	w2, [x20]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_hns_roce_table_put
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_IB_QPT_GSI,8,3                 ; @IB_QPT_GSI
.subsections_via_symbols
