	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx4_get_umem_mr
_mlx4_get_umem_mr:                      ## @mlx4_get_umem_mr
	.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	%ecx, %r14d
	movq	%rdx, %r13
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movl	%ecx, %edi
	callq	_ib_access_writable
	testl	%eax, %eax
	jne	LBB0_7
## %bb.1:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	callq	_untagged_addr
	movq	%rax, %rbx
	movq	_current@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	movq	(%rax), %rdi
	callq	_down_read
	movq	(%r12), %rax
	movq	(%rax), %rdi
	movq	%rbx, %rsi
	callq	_find_vma
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	leaq	(%rbx,%r13), %rcx
	cmpq	%rcx, (%rax)
	jb	LBB0_5
## %bb.3:
	cmpq	%rbx, 8(%rax)
	ja	LBB0_5
## %bb.4:
	movq	_VM_WRITE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, 16(%rax)
	je	LBB0_6
LBB0_5:
	movq	_IB_ACCESS_LOCAL_WRITE@GOTPCREL(%rip), %rax
	orl	(%rax), %r14d
LBB0_6:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	_current@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %rdi
	callq	_up_read
LBB0_7:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	%r13, %rdx
	movl	%r14d, %ecx
	xorl	%r8d, %r8d
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ib_umem_get                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_current,8,3                    ## @current
	.comm	_VM_WRITE,4,2                   ## @VM_WRITE
	.comm	_IB_ACCESS_LOCAL_WRITE,4,2      ## @IB_ACCESS_LOCAL_WRITE
	.no_dead_strip	_mlx4_get_umem_mr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlx4_get_umem_mr
_mlx4_get_umem_mr:                      ; @mlx4_get_umem_mr
	.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	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	mov	x0, x3
	bl	_ib_access_writable
	cbnz	w0, LBB0_7
; %bb.1:
	mov	x0, x21
	bl	_untagged_addr
	mov	x23, x0
Lloh0:
	adrp	x24, _current@GOTPAGE
Lloh1:
	ldr	x24, [x24, _current@GOTPAGEOFF]
	ldr	x8, [x24]
	ldr	x0, [x8]
	bl	_down_read
	ldr	x8, [x24]
	ldr	x0, [x8]
	mov	x1, x23
	bl	_find_vma
	cbz	x0, LBB0_5
; %bb.2:
	ldr	x8, [x0]
	add	x9, x23, x20
	cmp	x8, x9
	b.lo	LBB0_5
; %bb.3:
	ldr	x8, [x0, #8]
	cmp	x8, x23
	b.hi	LBB0_5
; %bb.4:
	ldr	w8, [x0, #16]
Lloh2:
	adrp	x9, _VM_WRITE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _VM_WRITE@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
LBB0_5:
Lloh5:
	adrp	x8, _IB_ACCESS_LOCAL_WRITE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IB_ACCESS_LOCAL_WRITE@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	orr	w19, w8, w19
LBB0_6:
	ldr	x8, [x24]
	ldr	x0, [x8]
	bl	_up_read
LBB0_7:
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	mov	x3, x19
	mov	w4, #0
	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
	b	_ib_umem_get
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_current,8,3                    ; @current
	.comm	_VM_WRITE,4,2                   ; @VM_WRITE
	.comm	_IB_ACCESS_LOCAL_WRITE,4,2      ; @IB_ACCESS_LOCAL_WRITE
	.no_dead_strip	_mlx4_get_umem_mr
.subsections_via_symbols
