	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nv50_vmm_join                  ## -- Begin function nv50_vmm_join
	.p2align	4, 0x90
_nv50_vmm_join:                         ## @nv50_vmm_join
	.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, %rbx
	movq	%rdi, %r12
	movq	24(%rdi), %rax
	movq	(%rax), %rax
	movl	(%rax), %r13d
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$16, %edi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	movq	%rbx, (%rax)
	movq	%rax, %rdi
	addq	$8, %rdi
	leaq	16(%r12), %rsi
	callq	_list_add_tail
	movq	(%r14), %rdi
	callq	_nvkm_kmap
	movl	(%r12), %eax
	movl	4(%r12), %ecx
	sarl	$29, %eax
	decl	%ecx
	sarl	$29, %ecx
	xorl	%ebx, %ebx
	cmpl	%ecx, %eax
	jg	LBB0_8
## %bb.3:
	movslq	%eax, %r15
	leal	(%r13,%rax,8), %ebx
	decq	%r15
	leaq	-44(%rbp), %r13
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rax
	movq	(%rax), %rax
	movl	4(%rax,%r15,4), %esi
	movq	%r12, %rdi
	movq	%r13, %rdx
	callq	_nv50_vmm_pde
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	(%r14), %rdi
	movl	-44(%rbp), %edx
	movl	%ebx, %esi
	callq	_nvkm_wo64
	movl	4(%r12), %eax
	decl	%eax
	sarl	$29, %eax
	cltq
	addl	$8, %ebx
	incq	%r15
	cmpq	%rax, %r15
	jl	LBB0_4
## %bb.7:
	xorl	%ebx, %ebx
	jmp	LBB0_8
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_9
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_8:
	movq	(%r14), %rdi
	callq	_nvkm_done
LBB0_9:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nv50_vmm_join                  ; -- Begin function nv50_vmm_join
	.p2align	2
_nv50_vmm_join:                         ; @nv50_vmm_join
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x21, x1
	mov	x20, x0
	ldr	x8, [x0, #24]
	ldr	x8, [x8]
	ldr	w23, [x8]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #16
	bl	_kmalloc
	cbz	x0, LBB0_6
; %bb.1:
	mov	x19, x0
	str	x21, [x0], #8
	add	x1, x20, #16
	bl	_list_add_tail
	ldr	x0, [x19]
	bl	_nvkm_kmap
	ldp	w8, w9, [x20]
	asr	w8, w8, #29
	sub	w9, w9, #1
	cmp	w8, w9, asr #29
	b.gt	LBB0_5
; %bb.2:
	sxtw	x22, w8
	add	w21, w23, w8, lsl #3
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #8]
	ldr	x8, [x8]
	ldr	w1, [x8, x22, lsl #2]
	add	x2, sp, #12
	mov	x0, x20
	bl	_nv50_vmm_pde
	cbz	w0, LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x0, [x19]
	ldr	w2, [sp, #12]
	mov	x1, x21
	bl	_nvkm_wo64
	ldr	w8, [x20, #4]
	sub	w8, w8, #1
	asr	w8, w8, #29
	cmp	x22, w8, sxtw
	add	x22, x22, #1
	add	w21, w21, #8
	b.lt	LBB0_3
LBB0_5:
	mov	w20, #0
	b	LBB0_8
LBB0_6:
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_9
LBB0_7:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_8:
	ldr	x0, [x19]
	bl	_nvkm_done
LBB0_9:
	mov	x0, x20
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
