	.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
	callq	_ib_umem_start
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_ib_umem_end
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	%rax, %rdx
	callq	_ib_umem_odp_unmap_dma_pages
	movq	%r14, %rdi
	callq	_down_write
	movq	%rbx, %rdi
	callq	_ib_umem_start
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_ib_umem_end
	xorl	%edi, %edi
	cmpq	%rax, %r15
	setne	%dil
	callq	_likely
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	(%rbx), %rdi
	addq	$28, %rdi
	leaq	16(%r14), %rsi
	callq	_rbt_ib_umem_remove
LBB0_2:
	decl	12(%r14)
	movq	(%rbx), %rdi
	cmpl	$0, 24(%rdi)
	jne	LBB0_4
## %bb.3:
	addq	$20, %rdi
	callq	_list_del
	movq	(%rbx), %rdi
	addq	$16, %rdi
	callq	_complete_all
LBB0_4:
	movq	%r14, %rdi
	callq	_downgrade_write
	cmpl	$0, 12(%r14)
	jne	LBB0_9
## %bb.5:
	movl	8(%r14), %edi
	movq	_PIDTYPE_PID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_get_pid_task
	testq	%rax, %rax
	je	LBB0_9
## %bb.6:
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_get_task_mm
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	%rax, %r12
	leaq	4(%r14), %rdi
	movq	%rax, %rsi
	callq	_mmu_notifier_unregister
	movq	%r12, %rdi
	callq	_mmput
LBB0_8:
	movq	%r15, %rdi
	callq	_put_task_struct
LBB0_9:
	movq	%r14, %rdi
	callq	_up_read
	movq	(%rbx), %rax
	movl	12(%rax), %edi
	callq	_vfree
	movq	(%rbx), %rax
	movl	8(%rax), %edi
	callq	_vfree
	movq	(%rbx), %rdi
	callq	_kfree
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_kfree                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PIDTYPE_PID,4,2                ## @PIDTYPE_PID
.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]
	bl	_ib_umem_start
	mov	x21, x0
	mov	x0, x19
	bl	_ib_umem_end
	mov	x2, x0
	mov	x0, x19
	mov	x1, x21
	bl	_ib_umem_odp_unmap_dma_pages
	mov	x0, x20
	bl	_down_write
	mov	x0, x19
	bl	_ib_umem_start
	mov	x21, x0
	mov	x0, x19
	bl	_ib_umem_end
	cmp	x21, x0
	cset	w0, ne
	bl	_likely
	cbz	x0, LBB0_2
; %bb.1:
	ldr	x8, [x19]
	add	x0, x8, #28
	add	x1, x20, #16
	bl	_rbt_ib_umem_remove
LBB0_2:
	ldr	w8, [x20, #12]
	sub	w8, w8, #1
	str	w8, [x20, #12]
	ldr	x8, [x19]
	ldr	w9, [x8, #24]
	cbnz	w9, LBB0_4
; %bb.3:
	add	x0, x8, #20
	bl	_list_del
	ldr	x8, [x19]
	add	x0, x8, #16
	bl	_complete_all
LBB0_4:
	mov	x0, x20
	bl	_downgrade_write
	ldr	w8, [x20, #12]
	cbnz	w8, LBB0_9
; %bb.5:
	ldr	w0, [x20, #8]
Lloh0:
	adrp	x8, _PIDTYPE_PID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PIDTYPE_PID@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_get_pid_task
	cbz	x0, LBB0_9
; %bb.6:
	mov	x21, x0
	bl	_get_task_mm
	cbz	x0, LBB0_8
; %bb.7:
	mov	x22, x0
	add	x0, x20, #4
	mov	x1, x22
	bl	_mmu_notifier_unregister
	mov	x0, x22
	bl	_mmput
LBB0_8:
	mov	x0, x21
	bl	_put_task_struct
LBB0_9:
	mov	x0, x20
	bl	_up_read
	ldr	x8, [x19]
	ldr	w0, [x8, #12]
	bl	_vfree
	ldr	x8, [x19]
	ldr	w0, [x8, #8]
	bl	_vfree
	ldr	x0, [x19]
	bl	_kfree
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PIDTYPE_PID,4,2                ; @PIDTYPE_PID
.subsections_via_symbols
