	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx4_srq_free                  ## -- Begin function mlx4_srq_free
	.p2align	4, 0x90
_mlx4_srq_free:                         ## @mlx4_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
	callq	_mlx4_priv
	movq	%rax, %r15
	movl	(%rbx), %edx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_mlx4_HW2SW_SRQ
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	(%rbx), %ecx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_mlx4_warn
LBB0_2:
	movq	%r15, %rdi
	callq	_spin_lock_irq
	movq	%r15, %rdi
	addq	$4, %rdi
	movl	(%rbx), %esi
	callq	_radix_tree_delete
	movq	%r15, %rdi
	callq	_spin_unlock_irq
	leaq	8(%rbx), %rdi
	callq	_refcount_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
	movl	(%rbx), %esi
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mlx4_srq_free_icm              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"HW2SW_SRQ failed (%d) for SRQN %06x\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx4_srq_free                  ; -- Begin function mlx4_srq_free
	.p2align	2
_mlx4_srq_free:                         ; @mlx4_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	x20, x1
	mov	x19, x0
	bl	_mlx4_priv
	mov	x21, x0
	ldr	w2, [x20]
	mov	x0, x19
	mov	x1, #0
	bl	_mlx4_HW2SW_SRQ
	cbz	w0, LBB0_2
; %bb.1:
	mov	x2, x0
	ldr	w3, [x20]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_mlx4_warn
LBB0_2:
	mov	x0, x21
	bl	_spin_lock_irq
	add	x0, x21, #4
	mov	x22, x20
	ldr	w1, [x22], #8
	bl	_radix_tree_delete
	mov	x0, x21
	bl	_spin_unlock_irq
	mov	x0, x22
	bl	_refcount_dec_and_test
	cbz	x0, LBB0_4
; %bb.3:
	add	x0, x20, #4
	bl	_complete
LBB0_4:
	add	x0, x20, #4
	bl	_wait_for_completion
	ldr	w1, [x20]
	mov	x0, x19
	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	_mlx4_srq_free_icm
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"HW2SW_SRQ failed (%d) for SRQN %06x\n"

.subsections_via_symbols
