	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hns_roce_srq_free
_hns_roce_srq_free:                     ## @hns_roce_srq_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movl	(%rsi), %edx
	xorl	%esi, %esi
	callq	_hns_roce_hw2sw_srq
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	(%r14), %edi
	movl	(%rbx), %ecx
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	callq	_dev_err
LBB0_2:
	leaq	12(%r14), %rdi
	movl	(%rbx), %esi
	callq	_xa_erase
	leaq	8(%rbx), %rdi
	callq	_atomic_dec_and_test
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	leaq	4(%rbx), %rdi
	callq	_complete
LBB0_4:
	leaq	4(%rbx), %rdi
	callq	_wait_for_completion
	leaq	4(%r14), %r15
	leaq	8(%r14), %rsi
	movl	(%rbx), %edx
	movq	%r14, %rdi
	callq	_hns_roce_table_put
	movl	(%rbx), %esi
	movq	_BITMAP_NO_RR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_hns_roce_bitmap_free           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"HW2SW_SRQ failed (%d) for CQN %06lx\n"

	.comm	_BITMAP_NO_RR,4,2               ## @BITMAP_NO_RR
	.no_dead_strip	_hns_roce_srq_free
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hns_roce_srq_free
_hns_roce_srq_free:                     ; @hns_roce_srq_free
	.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
	ldr	w2, [x1]
	mov	x1, #0
	bl	_hns_roce_hw2sw_srq
	cbz	w0, LBB0_2
; %bb.1:
	mov	x2, x0
	ldr	w0, [x20]
	ldr	w3, [x19]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
LBB0_2:
	add	x0, x20, #12
	mov	x21, x19
	ldr	w1, [x21], #8
	bl	_xa_erase
	mov	x0, x21
	bl	_atomic_dec_and_test
	cbz	x0, LBB0_4
; %bb.3:
	add	x0, x19, #4
	bl	_complete
LBB0_4:
	add	x0, x19, #4
	bl	_wait_for_completion
	add	x21, x20, #4
	add	x1, x20, #8
	ldr	w2, [x19]
	mov	x0, x20
	bl	_hns_roce_table_put
	ldr	w1, [x19]
Lloh2:
	adrp	x8, _BITMAP_NO_RR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _BITMAP_NO_RR@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	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
	b	_hns_roce_bitmap_free
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"HW2SW_SRQ failed (%d) for CQN %06lx\n"

	.comm	_BITMAP_NO_RR,4,2               ; @BITMAP_NO_RR
	.no_dead_strip	_hns_roce_srq_free
.subsections_via_symbols
