	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ib_umem_odp_release            ## -- Begin function ib_umem_odp_release
	.p2align	4, 0x90
_ib_umem_odp_release:                   ## @ib_umem_odp_release
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	32(%rdi), %r14
	cmpl	$0, 12(%rdi)
	jne	LBB0_2
## %bb.1:
	leaq	24(%rbx), %r15
	movq	%r15, %rdi
	callq	_mutex_lock
	movq	%rbx, %rdi
	callq	_ib_umem_start
	movl	%eax, %r12d
	movq	%rbx, %rdi
	callq	_ib_umem_end
	movq	%rbx, %rdi
	movl	%r12d, %esi
	movl	%eax, %edx
	callq	_ib_umem_odp_unmap_dma_pages
	movq	%r15, %rdi
	callq	_mutex_unlock
	movl	20(%rbx), %edi
	callq	_kvfree
	movl	16(%rbx), %edi
	callq	_kvfree
LBB0_2:
	movq	%r14, %rdi
	callq	_down_write
	cmpl	$0, 12(%rbx)
	jne	LBB0_4
## %bb.3:
	leaq	8(%rbx), %rdi
	leaq	8(%r14), %rsi
	callq	_interval_tree_remove
	leaq	4(%rbx), %rdi
	callq	_complete_all
LBB0_4:
	leaq	4(%r14), %rdi
	callq	_mmu_notifier_put
	movq	%r14, %rdi
	callq	_up_write
	movl	(%rbx), %edi
	callq	_mmdrop
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_kfree                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ib_umem_odp_release            ; -- Begin function ib_umem_odp_release
	.p2align	2
_ib_umem_odp_release:                   ; @ib_umem_odp_release
	.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	x19, x0
	ldr	x20, [x0, #32]
	ldr	w8, [x0, #12]
	cbnz	w8, LBB0_2
; %bb.1:
	add	x21, x19, #24
	mov	x0, x21
	bl	_mutex_lock
	mov	x0, x19
	bl	_ib_umem_start
	mov	x22, x0
	mov	x0, x19
	bl	_ib_umem_end
	mov	x2, x0
	mov	x0, x19
	mov	x1, x22
	bl	_ib_umem_odp_unmap_dma_pages
	mov	x0, x21
	bl	_mutex_unlock
	ldr	w0, [x19, #20]
	bl	_kvfree
	ldr	w0, [x19, #16]
	bl	_kvfree
LBB0_2:
	mov	x0, x20
	bl	_down_write
	ldr	w8, [x19, #12]
	cbnz	w8, LBB0_4
; %bb.3:
	add	x0, x19, #8
	add	x1, x20, #8
	bl	_interval_tree_remove
	add	x0, x19, #4
	bl	_complete_all
LBB0_4:
	add	x0, x20, #4
	bl	_mmu_notifier_put
	mov	x0, x20
	bl	_up_write
	ldr	w0, [x19]
	bl	_mmdrop
	mov	x0, x19
	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
	b	_kfree
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
