	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ib_destroy_srq_user            ## -- Begin function ib_destroy_srq_user
	.p2align	4, 0x90
_ib_destroy_srq_user:                   ## @ib_destroy_srq_user
	.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, %r14
	movq	%rdi, %rbx
	addq	$40, %rdi
	callq	_atomic_read
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_EBUSY@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_7
LBB0_2:
	movq	32(%rbx), %rax
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	*(%rax)
	movq	24(%rbx), %rdi
	callq	_atomic_dec
	movq	(%rbx), %rdi
	movq	_IB_SRQT_XRC@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	jne	LBB0_4
## %bb.3:
	movq	16(%rbx), %rdi
	callq	_atomic_dec
	movq	(%rbx), %rdi
LBB0_4:
	callq	_ib_srq_has_cq
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	8(%rbx), %rdi
	callq	_atomic_dec
LBB0_6:
	movq	%rbx, %rdi
	callq	_kfree
	xorl	%eax, %eax
LBB0_7:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_IB_SRQT_XRC,8,3                ## @IB_SRQT_XRC
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ib_destroy_srq_user            ; -- Begin function ib_destroy_srq_user
	.p2align	2
_ib_destroy_srq_user:                   ; @ib_destroy_srq_user
	.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, x0, #40
	bl	_atomic_read
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EBUSY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_7
LBB0_2:
	ldr	x8, [x19, #32]
	ldr	x8, [x8]
	mov	x0, x19
	mov	x1, x20
	blr	x8
	ldr	x0, [x19, #24]
	bl	_atomic_dec
	ldr	x0, [x19]
Lloh3:
	adrp	x8, _IB_SRQT_XRC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IB_SRQT_XRC@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_4
; %bb.3:
	ldr	x0, [x19, #16]
	bl	_atomic_dec
	ldr	x0, [x19]
LBB0_4:
	bl	_ib_srq_has_cq
	cbz	x0, LBB0_6
; %bb.5:
	ldr	x0, [x19, #8]
	bl	_atomic_dec
LBB0_6:
	mov	x0, x19
	bl	_kfree
	mov	w0, #0
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_IB_SRQT_XRC,8,3                ; @IB_SRQT_XRC
.subsections_via_symbols
