	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rdma_rw_ctx_destroy            ## -- Begin function rdma_rw_ctx_destroy
	.p2align	4, 0x90
_rdma_rw_ctx_destroy:                   ## @rdma_rw_ctx_destroy
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r14d
	movl	%r8d, %r15d
	movq	%rcx, %r12
	movq	%rsi, %r13
	movl	(%rdi), %eax
	cmpl	$128, %eax
	je	LBB0_9
## %bb.1:
	movq	%rdi, %rbx
	cmpl	$129, %eax
	je	LBB0_7
## %bb.2:
	cmpl	$130, %eax
	jne	LBB0_8
## %bb.3:
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	movl	%r14d, -48(%rbp)                ## 4-byte Spill
	cmpl	$0, 4(%rbx)
	jle	LBB0_6
## %bb.4:
	leaq	8(%r13), %r14
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%rbx), %rax
	movl	(%rax,%r15,4), %edx
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_ib_mr_pool_put
	incq	%r15
	movslq	4(%rbx), %rax
	cmpq	%rax, %r15
	jl	LBB0_5
LBB0_6:
	movq	24(%rbx), %rdi
	callq	_kfree
	movl	-48(%rbp), %r14d                ## 4-byte Reload
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	jmp	LBB0_9
LBB0_7:
	movq	16(%rbx), %rdi
	callq	_kfree
	movq	8(%rbx), %rdi
	callq	_kfree
	jmp	LBB0_9
LBB0_8:
	xorl	%eax, %eax
	callq	_BUG
LBB0_9:
	movq	%r12, %rdi
	callq	_sg_page
	movl	%eax, %edi
	callq	_is_pci_p2pdma_page
	movq	(%r13), %rcx
	movq	(%rcx), %rdi
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movl	(%rdi), %edi
	movq	%r12, %rsi
	movl	%r15d, %edx
	movl	%r14d, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pci_p2pdma_unmap_sg            ## TAILCALL
LBB0_11:
	movq	%r12, %rsi
	movl	%r15d, %edx
	movl	%r14d, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ib_dma_unmap_sg                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rdma_rw_ctx_destroy            ; -- Begin function rdma_rw_ctx_destroy
	.p2align	2
_rdma_rw_ctx_destroy:                   ; @rdma_rw_ctx_destroy
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x5
	mov	x20, x4
	mov	x21, x3
	mov	x22, x1
	ldr	w8, [x0]
	cmp	w8, #128
	b.eq	LBB0_9
; %bb.1:
	mov	x23, x0
	cmp	w8, #129
	b.eq	LBB0_7
; %bb.2:
	cmp	w8, #130
	b.ne	LBB0_8
; %bb.3:
	ldr	w8, [x23, #4]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.4:
	mov	x25, #0
	add	x24, x22, #8
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x23, #24]
	ldr	w2, [x8, x25, lsl #2]
	mov	x0, x22
	mov	x1, x24
	bl	_ib_mr_pool_put
	add	x25, x25, #1
	ldrsw	x8, [x23, #4]
	cmp	x25, x8
	b.lt	LBB0_5
LBB0_6:
	ldr	x0, [x23, #24]
	bl	_kfree
	b	LBB0_9
LBB0_7:
	ldr	x0, [x23, #16]
	bl	_kfree
	ldr	x0, [x23, #8]
	bl	_kfree
	b	LBB0_9
LBB0_8:
	bl	_BUG
LBB0_9:
	mov	x0, x21
	bl	_sg_page
	bl	_is_pci_p2pdma_page
	mov	x8, x0
	ldr	x9, [x22]
	ldr	x0, [x9]
	cbz	x8, LBB0_11
; %bb.10:
	ldr	w0, [x0]
	mov	x1, x21
	mov	x2, x20
	mov	x3, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_pci_p2pdma_unmap_sg
LBB0_11:
	mov	x1, x21
	mov	x2, x20
	mov	x3, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_ib_dma_unmap_sg
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
