	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qedr_destroy_srq               ## -- Begin function qedr_destroy_srq
	.p2align	4, 0x90
_qedr_destroy_srq:                      ## @qedr_destroy_srq
	.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	%rdi, %r15
	movl	8(%rdi), %edi
	callq	_get_qedr_dev
	movq	%rax, %r14
	movq	%r15, %rdi
	callq	_get_qedr_srq
	movq	%rax, %rbx
	leaq	16(%r14), %rdi
	movl	(%rax), %esi
	callq	_xa_erase_irq
	movl	(%rbx), %eax
	movl	%eax, -32(%rbp)
	movq	8(%r14), %rax
	movl	(%r14), %edi
	leaq	-32(%rbp), %rsi
	callq	*(%rax)
	cmpq	$0, (%r15)
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_qedr_free_srq_user_params
	jmp	LBB0_3
LBB0_2:
	movq	%rbx, %rdi
	callq	_qedr_free_srq_kernel_params
LBB0_3:
	movq	_QEDR_MSG_SRQ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %ecx
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	callq	_DP_DEBUG
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QEDR_MSG_SRQ,4,2               ## @QEDR_MSG_SRQ
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"destroy srq: destroyed srq with srq_id=0x%0x\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qedr_destroy_srq               ; -- Begin function qedr_destroy_srq
	.p2align	2
_qedr_destroy_srq:                      ; @qedr_destroy_srq
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x21, x0
	ldr	w0, [x0, #8]
	bl	_get_qedr_dev
	mov	x19, x0
	mov	x0, x21
	bl	_get_qedr_srq
	mov	x20, x0
	add	x0, x19, #16
	ldr	w1, [x20]
	bl	_xa_erase_irq
	ldr	w8, [x20]
	str	w8, [sp, #8]
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	ldr	w0, [x19]
	add	x1, sp, #8
	blr	x8
	ldr	x8, [x21]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_qedr_free_srq_user_params
	b	LBB0_3
LBB0_2:
	mov	x0, x20
	bl	_qedr_free_srq_kernel_params
LBB0_3:
Lloh0:
	adrp	x8, _QEDR_MSG_SRQ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _QEDR_MSG_SRQ@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldr	w3, [x20]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_DP_DEBUG
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_QEDR_MSG_SRQ,4,2               ; @QEDR_MSG_SRQ
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"destroy srq: destroyed srq with srq_id=0x%0x\n"

.subsections_via_symbols
