	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ds_free_qp
_ds_free_qp:                            ## @ds_free_qp
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	40(%rdi), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	callq	_rdma_dereg_mr
LBB0_2:
	movq	24(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.3:
	movq	32(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	%rax, %rdi
	callq	_rdma_dereg_mr
	movq	24(%rbx), %rdi
LBB0_5:
	callq	_free
LBB0_6:
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.7:
	cmpq	$0, 8(%rdi)
	je	LBB0_9
## %bb.8:
	leaq	16(%rbx), %rdi
	movq	8(%rbx), %rsi
	addq	$4, %rsi
	movq	_ds_compare_addr@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_tdelete
	movq	(%rbx), %rax
	movq	8(%rbx), %rcx
	movl	(%rcx), %edi
	movq	_EPOLL_CTL_DEL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	(%rax), %rax
	movl	(%rax), %edx
	xorl	%ecx, %ecx
	callq	_epoll_ctl
	movq	(%rbx), %rdi
	callq	_rdma_destroy_qp
	movq	(%rbx), %rdi
LBB0_9:
	callq	_rdma_destroy_id
LBB0_10:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_free                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ds_compare_addr,4,2            ## @ds_compare_addr
	.comm	_EPOLL_CTL_DEL,4,2              ## @EPOLL_CTL_DEL
	.no_dead_strip	_ds_free_qp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ds_free_qp
_ds_free_qp:                            ; @ds_free_qp
	.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	x19, x0
	ldr	x0, [x0, #40]
	cbz	x0, LBB0_2
; %bb.1:
	bl	_rdma_dereg_mr
LBB0_2:
	ldr	x0, [x19, #24]
	cbz	x0, LBB0_6
; %bb.3:
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_5
; %bb.4:
	mov	x0, x8
	bl	_rdma_dereg_mr
	ldr	x0, [x19, #24]
LBB0_5:
	bl	_free
LBB0_6:
	ldr	x0, [x19]
	cbz	x0, LBB0_10
; %bb.7:
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_9
; %bb.8:
	add	x0, x19, #16
	ldr	x8, [x19, #8]
	add	x1, x8, #4
Lloh0:
	adrp	x8, _ds_compare_addr@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ds_compare_addr@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	bl	_tdelete
	ldp	x9, x8, [x19]
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _EPOLL_CTL_DEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EPOLL_CTL_DEL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	ldr	x8, [x9]
	ldr	w2, [x8]
	mov	x3, #0
	bl	_epoll_ctl
	ldr	x0, [x19]
	bl	_rdma_destroy_qp
	ldr	x0, [x19]
LBB0_9:
	bl	_rdma_destroy_id
LBB0_10:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_free
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ds_compare_addr,4,2            ; @ds_compare_addr
	.comm	_EPOLL_CTL_DEL,4,2              ; @EPOLL_CTL_DEL
	.no_dead_strip	_ds_free_qp
.subsections_via_symbols
