	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nv50_vm_map_pgt
_nv50_vm_map_pgt:                       ## @nv50_vm_map_pgt
	.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
	movl	%esi, %r15d
	movq	%rdi, %r14
	movq	(%rdx), %rax
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	$-4096, %edx                    ## imm = 0xF000
	movl	$9, %ecx
	movl	$3, %ebx
	jmp	LBB0_4
LBB0_2:
	movq	8(%rdx), %rax
	testq	%rax, %rax
	je	LBB0_10
## %bb.3:
	movl	$-65536, %edx                   ## imm = 0xFFFF0000
	movl	$13, %ecx
	movl	$1, %ebx
LBB0_4:
	movl	4(%rax), %esi
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %esi
	orl	(%rax), %ebx
	andl	%edx, %esi
	cmpl	$33554432, %esi                 ## imm = 0x2000000
	jg	LBB0_6
## %bb.5:
	orl	$96, %ebx
	jmp	LBB0_9
LBB0_6:
	cmpl	$67108864, %esi                 ## imm = 0x4000000
	ja	LBB0_8
## %bb.7:
	orl	$64, %ebx
	jmp	LBB0_9
LBB0_8:
	movl	%ebx, %eax
	orl	$32, %eax
	cmpl	$134217729, %esi                ## imm = 0x8000001
	cmovbl	%eax, %ebx
	jmp	LBB0_9
LBB0_10:
	xorl	%ebx, %ebx
LBB0_9:
	leal	(,%r15,8), %r12d
	movl	%ebx, %edi
	callq	_lower_32_bits
	movq	%r14, %rdi
	movl	%r12d, %esi
	movl	%eax, %edx
	callq	_nv_wo32
	leal	4(,%r15,8), %r15d
	movl	%ebx, %edi
	callq	_upper_32_bits
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_nv_wo32                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_nv50_vm_map_pgt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nv50_vm_map_pgt
_nv50_vm_map_pgt:                       ; @nv50_vm_map_pgt
	.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	x20, x1
	mov	x19, x0
	ldr	x8, [x2]
	cbz	x8, LBB0_2
; %bb.1:
	mov	w9, #-4096
	mov	w10, #9
	mov	w11, #3
	b	LBB0_4
LBB0_2:
	ldr	x8, [x2, #8]
	cbz	x8, LBB0_9
; %bb.3:
	mov	w9, #-65536
	mov	w10, #13
	mov	w11, #1
LBB0_4:
	ldp	w12, w13, [x8]
	orr	w8, w12, w11
	lsl	w10, w13, w10
	and	w9, w10, w9
	mov	w10, #33554432
	cmp	w9, w10
	b.gt	LBB0_6
; %bb.5:
	orr	w21, w8, #0x60
	b	LBB0_10
LBB0_6:
	mov	w10, #67108864
	cmp	w9, w10
	b.hi	LBB0_8
; %bb.7:
	orr	w21, w8, #0x40
	b	LBB0_10
LBB0_8:
	orr	w10, w8, #0x20
	mov	w11, #1
	movk	w11, #2048, lsl #16
	cmp	w9, w11
	csel	w21, w10, w8, lo
	b	LBB0_10
LBB0_9:
	mov	w21, #0
LBB0_10:
	lsl	w22, w20, #3
	mov	x0, x21
	bl	_lower_32_bits
	mov	x2, x0
	mov	x0, x19
	mov	x1, x22
	bl	_nv_wo32
	mov	w22, #4
	bfi	w22, w20, #3, #29
	mov	x0, x21
	bl	_upper_32_bits
	mov	x2, x0
	mov	x0, x19
	mov	x1, x22
	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
	b	_nv_wo32
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_nv50_vm_map_pgt
.subsections_via_symbols
