	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gv100_vmm_join                 ## -- Begin function gv100_vmm_join
	.p2align	4, 0x90
_gv100_vmm_join:                        ## @gv100_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r13
	callq	_gp100_vmm_join
	testl	%eax, %eax
	jne	LBB0_4
## %bb.1:
	movq	%r13, %rdi
	callq	_nvkm_kmap
	movq	%r13, %rdi
	movl	$512, %esi                      ## imm = 0x200
	callq	_nvkm_ro32
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	%r13, %rdi
	movl	$516, %esi                      ## imm = 0x204
	callq	_nvkm_ro32
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	callq	_BIT_ULL
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%r13, %rdi
	movl	$540, %esi                      ## imm = 0x21C
	xorl	%edx, %edx
	callq	_nvkm_wo32
	movl	$680, %r15d                     ## imm = 0x2A8
	movl	$1, %r12d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	callq	_BIT_ULL
	leal	-4(%r15), %esi
	testl	%eax, -44(%rbp)                 ## 4-byte Folded Reload
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	cmovel	%r12d, %edx
	movl	-52(%rbp), %r14d                ## 4-byte Reload
	cmovel	%r12d, %r14d
	movq	%r13, %rdi
	callq	_nvkm_wo32
	leal	-8(%r15), %esi
	movq	%r13, %rdi
	movl	%r14d, %edx
	callq	_nvkm_wo32
	movq	%r13, %rdi
	movl	%r15d, %esi
	xorl	%edx, %edx
	callq	_nvkm_wo32
	incl	%ebx
	addl	$16, %r15d
	cmpl	$1704, %r15d                    ## imm = 0x6A8
	jne	LBB0_2
## %bb.3:
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %edi
	callq	_lower_32_bits
	movq	%r13, %rdi
	movl	$664, %esi                      ## imm = 0x298
	movl	%eax, %edx
	callq	_nvkm_wo32
	movl	%ebx, %edi
	callq	_upper_32_bits
	movq	%r13, %rdi
	movl	$668, %esi                      ## imm = 0x29C
	movl	%eax, %edx
	callq	_nvkm_wo32
	movq	%r13, %rdi
	callq	_nvkm_done
	xorl	%eax, %eax
LBB0_4:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gv100_vmm_join                 ; -- Begin function gv100_vmm_join
	.p2align	2
_gv100_vmm_join:                        ; @gv100_vmm_join
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x1
	bl	_gp100_vmm_join
	cbnz	w0, LBB0_4
; %bb.1:
	mov	x0, x19
	bl	_nvkm_kmap
	mov	x0, x19
	mov	w1, #512
	bl	_nvkm_ro32
	mov	x21, x0
	mov	x0, x19
	mov	w1, #516
	bl	_nvkm_ro32
	mov	x22, x0
	mov	w0, #0
	bl	_BIT_ULL
	mov	x20, x0
	mov	x0, x19
	mov	w1, #540
	mov	w2, #0
	bl	_nvkm_wo32
	mov	w23, #0
	mov	w24, #680
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x23
	bl	_BIT_ULL
	sub	w1, w24, #4
	tst	w0, w20
	csinc	w2, w22, wzr, ne
	csinc	w25, w21, wzr, ne
	mov	x0, x19
	bl	_nvkm_wo32
	sub	w1, w24, #8
	mov	x0, x19
	mov	x2, x25
	bl	_nvkm_wo32
	mov	x0, x19
	mov	x1, x24
	mov	w2, #0
	bl	_nvkm_wo32
	add	w23, w23, #1
	add	w24, w24, #16
	cmp	w24, #1704
	b.ne	LBB0_2
; %bb.3:
	mov	x0, x20
	bl	_lower_32_bits
	mov	x2, x0
	mov	x0, x19
	mov	w1, #664
	bl	_nvkm_wo32
	mov	x0, x20
	bl	_upper_32_bits
	mov	x2, x0
	mov	x0, x19
	mov	w1, #668
	bl	_nvkm_wo32
	mov	x0, x19
	bl	_nvkm_done
	mov	w0, #0
LBB0_4:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
