	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gf100_vmm_join_                ## -- Begin function gf100_vmm_join_
	.p2align	4, 0x90
_gf100_vmm_join_:                       ## @gf100_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	8(%rdi), %rax
	movq	(%rax), %rax
	movq	(%rax), %r12
	movl	8(%r12), %edi
	callq	_nvkm_memory_target
	cmpl	$128, %eax
	je	LBB0_6
## %bb.1:
	cmpl	$129, %eax
	je	LBB0_5
## %bb.2:
	cmpl	$130, %eax
	jne	LBB0_4
## %bb.3:
	movl	$2, %edi
	callq	_BIT_ULL
	orq	%rbx, %rax
	orq	$2, %rax
	movq	%rax, %rbx
	jmp	LBB0_6
LBB0_5:
	orq	$3, %rbx
LBB0_6:
	orq	(%r12), %rbx
	movq	%r15, %rdi
	callq	_nvkm_kmap
	movq	%r15, %rdi
	movl	$512, %esi                      ## imm = 0x200
	movq	%rbx, %rdx
	callq	_nvkm_wo64
	movq	(%r14), %rdx
	decq	%rdx
	movq	%r15, %rdi
	movl	$520, %esi                      ## imm = 0x208
	callq	_nvkm_wo64
	movq	%r15, %rdi
	callq	_nvkm_done
	xorl	%eax, %eax
	jmp	LBB0_7
LBB0_4:
	movl	$1, %edi
	callq	_WARN_ON
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_7:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gf100_vmm_join_                ; -- Begin function gf100_vmm_join_
	.p2align	2
_gf100_vmm_join_:                       ; @gf100_vmm_join_
	.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	x21, x2
	mov	x19, x1
	mov	x20, x0
	ldr	x8, [x0, #8]
	ldr	x8, [x8]
	ldr	x22, [x8]
	ldr	w0, [x22, #8]
	bl	_nvkm_memory_target
	cmp	w0, #128
	b.eq	LBB0_5
; %bb.1:
	cmp	w0, #129
	b.eq	LBB0_4
; %bb.2:
	cmp	w0, #130
	b.ne	LBB0_6
; %bb.3:
	mov	w0, #2
	bl	_BIT_ULL
	orr	x8, x0, x21
	orr	x21, x8, #0x2
	b	LBB0_5
LBB0_4:
	orr	x21, x21, #0x3
LBB0_5:
	ldr	x8, [x22]
	orr	x21, x8, x21
	mov	x0, x19
	bl	_nvkm_kmap
	mov	x0, x19
	mov	w1, #512
	mov	x2, x21
	bl	_nvkm_wo64
	ldr	x8, [x20]
	sub	x2, x8, #1
	mov	x0, x19
	mov	w1, #520
	bl	_nvkm_wo64
	mov	x0, x19
	bl	_nvkm_done
	mov	w0, #0
	b	LBB0_7
LBB0_6:
	mov	w0, #1
	bl	_WARN_ON
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
