	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx5_destroy_srq               ## -- Begin function mlx5_destroy_srq
	.p2align	4, 0x90
_mlx5_destroy_srq:                      ## @mlx5_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, %rbx
	callq	_to_msrq
	movq	%rax, %r14
	movl	(%rbx), %edi
	callq	_to_mctx
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_ibv_cmd_destroy_srq
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_6
## %bb.1:
	cmpq	$0, (%r15)
	je	LBB0_4
## %bb.2:
	movq	24(%r14), %rax
	movq	_MLX5_RSC_TYPE_XSRQ@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.3:
	movl	32(%r14), %esi
	movq	%r15, %rdi
	callq	_mlx5_clear_uidx
	jmp	LBB0_5
LBB0_4:
	movl	16(%r14), %esi
	movq	%r15, %rdi
	callq	_mlx5_clear_srq
LBB0_5:
	movl	12(%r14), %esi
	movq	%r15, %rdi
	callq	_mlx5_free_db
	movq	%r14, %rdi
	addq	$8, %rdi
	callq	_mlx5_free_buf
	movq	(%r14), %rdi
	callq	_free
	movq	%r14, %rdi
	callq	_free
LBB0_6:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MLX5_RSC_TYPE_XSRQ,8,3         ## @MLX5_RSC_TYPE_XSRQ
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx5_destroy_srq               ; -- Begin function mlx5_destroy_srq
	.p2align	2
_mlx5_destroy_srq:                      ; @mlx5_destroy_srq
	.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, x0
	bl	_to_msrq
	mov	x19, x0
	ldr	w0, [x20]
	bl	_to_mctx
	mov	x21, x0
	mov	x0, x20
	bl	_ibv_cmd_destroy_srq
	mov	x20, x0
	cbnz	w0, LBB0_6
; %bb.1:
	ldr	x8, [x21]
	cbz	x8, LBB0_4
; %bb.2:
	ldr	x8, [x19, #24]
Lloh0:
	adrp	x9, _MLX5_RSC_TYPE_XSRQ@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MLX5_RSC_TYPE_XSRQ@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
	ldr	w1, [x19, #32]
	mov	x0, x21
	bl	_mlx5_clear_uidx
	b	LBB0_5
LBB0_4:
	ldr	w1, [x19, #16]
	mov	x0, x21
	bl	_mlx5_clear_srq
LBB0_5:
	ldr	w1, [x19, #12]
	mov	x0, x21
	bl	_mlx5_free_db
	add	x0, x19, #8
	bl	_mlx5_free_buf
	ldr	x0, [x19]
	bl	_free
	mov	x0, x19
	bl	_free
LBB0_6:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MLX5_RSC_TYPE_XSRQ,8,3         ; @MLX5_RSC_TYPE_XSRQ
.subsections_via_symbols
