	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ib_umem_odp_get                ## -- Begin function ib_umem_odp_get
	.p2align	4, 0x90
_ib_umem_odp_get:                       ## @ib_umem_odp_get
	.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
	movq	%rsi, %r13
	movq	%rdi, %r15
	movq	_current@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_get_task_mm
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	xorl	%eax, %eax
	callq	_rcu_read_lock
	movl	(%rbx), %edi
	callq	_task_pid_group_leader
	movl	%eax, %edi
	callq	_get_pid
	movq	%rax, %rbx
	xorl	%eax, %eax
	callq	_rcu_read_unlock
	movq	%rbx, %rdi
	callq	_put_pid
	cmpq	%rbx, (%r15)
	jne	LBB0_3
## %bb.4:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$48, %edi
	callq	_kzalloc
	movq	%rax, (%r13)
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%r13, 40(%rax)
	addq	$36, %rax
	movq	%rax, %rdi
	callq	_mutex_init
	movq	(%r13), %rdi
	addq	$32, %rdi
	callq	_init_completion
	movq	%r13, %rdi
	callq	_ib_umem_num_pages
	movl	%eax, %edi
	callq	_vzalloc
	movq	(%r13), %rdi
	movq	%rax, 8(%rdi)
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	%r13, %rdi
	callq	_ib_umem_num_pages
	movl	%eax, %edi
	callq	_vzalloc
	movq	(%r13), %rcx
	movq	%rax, 16(%rcx)
	testq	%rax, %rax
	je	LBB0_9
## %bb.10:
	leaq	12(%r15), %r12
	movq	%r12, %rdi
	callq	_down_write
	incl	8(%r15)
	movq	%r13, %rdi
	callq	_ib_umem_start
	movq	%rax, %rbx
	movq	%r13, %rdi
	callq	_ib_umem_end
	xorl	%edi, %edi
	cmpq	%rax, %rbx
	setne	%dil
	callq	_likely
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movq	(%r13), %rdi
	addq	$28, %rdi
	leaq	40(%r15), %rsi
	callq	_rbt_ib_umem_insert
LBB0_12:
	leaq	32(%r15), %rbx
	movq	%rbx, %rdi
	callq	_atomic_read
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_likely
	testq	%rax, %rax
	jne	LBB0_14
## %bb.13:
	cmpl	$1, 8(%r15)
	jne	LBB0_15
LBB0_14:
	movq	(%r13), %rax
	movl	$1, (%rax)
	jmp	LBB0_16
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_22
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_21
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_21
LBB0_7:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_20
LBB0_9:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_19
LBB0_15:
	movq	(%r13), %rdi
	addq	$24, %rdi
	leaq	36(%r15), %rsi
	callq	_list_add
LBB0_16:
	movq	%r12, %rdi
	callq	_downgrade_write
	cmpl	$1, 8(%r15)
	jne	LBB0_23
## %bb.17:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_atomic_set
	leaq	16(%r15), %rbx
	leaq	24(%r15), %rdi
	callq	_INIT_HLIST_NODE
	movq	_ib_umem_notifiers@GOTPCREL(%rip), %rax
	movq	%rax, 16(%r15)
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_mmu_notifier_register
	testl	%eax, %eax
	je	LBB0_23
## %bb.18:
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_pr_err
	movq	_EBUSY@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r12, %rdi
	callq	_up_read
	movq	(%r13), %rax
	movq	16(%rax), %rdi
	callq	_vfree
	movq	(%r13), %rcx
LBB0_19:
	movq	8(%rcx), %rdi
	callq	_vfree
	movq	(%r13), %rdi
LBB0_20:
	callq	_kfree
LBB0_21:
	negl	%ebx
	movq	%r14, %rdi
	callq	_mmput
LBB0_22:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_23:
	movq	%r12, %rdi
	callq	_up_read
	movq	%r14, %rdi
	callq	_mmput
	xorl	%ebx, %ebx
	jmp	LBB0_22
	.cfi_endproc
                                        ## -- End function
	.comm	_current,4,2                    ## @current
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ib_umem_notifiers,4,2          ## @ib_umem_notifiers
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to register mmu_notifier %d\n"

	.comm	_EBUSY,4,2                      ## @EBUSY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ib_umem_odp_get                ; -- Begin function ib_umem_odp_get
	.p2align	2
_ib_umem_odp_get:                       ; @ib_umem_odp_get
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x22, _current@GOTPAGE
Lloh1:
	ldr	x22, [x22, _current@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	_get_task_mm
	cbz	x0, LBB0_10
; %bb.1:
	mov	x19, x0
	bl	_rcu_read_lock
	ldr	w0, [x22]
	bl	_task_pid_group_leader
	bl	_get_pid
	mov	x22, x0
	bl	_rcu_read_unlock
	mov	x0, x22
	bl	_put_pid
	ldr	x8, [x21]
	cmp	x8, x22
	b.ne	LBB0_11
; %bb.2:
Lloh2:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	w0, #48
	bl	_kzalloc
	str	x0, [x20]
	cbz	x0, LBB0_12
; %bb.3:
	str	x20, [x0, #40]
	add	x0, x0, #36
	bl	_mutex_init
	ldr	x8, [x20]
	add	x0, x8, #32
	bl	_init_completion
	mov	x0, x20
	bl	_ib_umem_num_pages
	bl	_vzalloc
	mov	x8, x0
	ldr	x0, [x20]
	str	x8, [x0, #8]
	cbz	x8, LBB0_13
; %bb.4:
	mov	x0, x20
	bl	_ib_umem_num_pages
	bl	_vzalloc
	ldr	x8, [x20]
	str	x0, [x8, #16]
	cbz	x0, LBB0_14
; %bb.5:
	add	x22, x21, #12
	mov	x0, x22
	bl	_down_write
	ldr	w8, [x21, #8]
	add	w8, w8, #1
	str	w8, [x21, #8]
	mov	x0, x20
	bl	_ib_umem_start
	mov	x23, x0
	mov	x0, x20
	bl	_ib_umem_end
	cmp	x23, x0
	cset	w0, ne
	bl	_likely
	cbz	x0, LBB0_7
; %bb.6:
	ldr	x8, [x20]
	add	x0, x8, #28
	add	x1, x21, #40
	bl	_rbt_ib_umem_insert
LBB0_7:
	add	x23, x21, #32
	mov	x0, x23
	bl	_atomic_read
	cmp	w0, #0
	cset	w0, eq
	bl	_likely
	cbnz	x0, LBB0_9
; %bb.8:
	ldr	w8, [x21, #8]
	cmp	w8, #1
	b.ne	LBB0_15
LBB0_9:
	ldr	x8, [x20]
	mov	w9, #1
	str	w9, [x8]
	b	LBB0_16
LBB0_10:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_22
LBB0_11:
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w21, [x8]
	b	LBB0_21
LBB0_12:
Lloh11:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh13:
	ldr	w21, [x8]
	b	LBB0_21
LBB0_13:
Lloh14:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh16:
	ldr	w21, [x8]
	b	LBB0_20
LBB0_14:
Lloh17:
	adrp	x9, _ENOMEM@GOTPAGE
Lloh18:
	ldr	x9, [x9, _ENOMEM@GOTPAGEOFF]
Lloh19:
	ldr	w21, [x9]
	b	LBB0_19
LBB0_15:
	ldr	x8, [x20]
	add	x0, x8, #24
	add	x1, x21, #36
	bl	_list_add
LBB0_16:
	mov	x0, x22
	bl	_downgrade_write
	ldr	w8, [x21, #8]
	cmp	w8, #1
	b.ne	LBB0_23
; %bb.17:
	mov	x0, x23
	mov	w1, #0
	bl	_atomic_set
	add	x0, x21, #24
	bl	_INIT_HLIST_NODE
Lloh20:
	adrp	x8, _ib_umem_notifiers@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ib_umem_notifiers@GOTPAGEOFF]
	str	x8, [x21, #16]!
	mov	x0, x21
	mov	x1, x19
	bl	_mmu_notifier_register
	cbz	w0, LBB0_23
; %bb.18:
	mov	x1, x0
Lloh22:
	adrp	x0, l_.str@PAGE
Lloh23:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
Lloh24:
	adrp	x8, _EBUSY@GOTPAGE
Lloh25:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh26:
	ldr	w21, [x8]
	mov	x0, x22
	bl	_up_read
	ldr	x8, [x20]
	ldr	x0, [x8, #16]
	bl	_vfree
	ldr	x8, [x20]
LBB0_19:
	ldr	x0, [x8, #8]
	bl	_vfree
	ldr	x0, [x20]
LBB0_20:
	bl	_kfree
LBB0_21:
	neg	w20, w21
	mov	x0, x19
	bl	_mmput
LBB0_22:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_23:
	mov	x0, x22
	bl	_up_read
	mov	x0, x19
	bl	_mmput
	mov	w20, #0
	b	LBB0_22
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_current,4,2                    ; @current
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ib_umem_notifiers,4,2          ; @ib_umem_notifiers
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to register mmu_notifier %d\n"

	.comm	_EBUSY,4,2                      ; @EBUSY
.subsections_via_symbols
