	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nv50_vm_map
_nv50_vm_map:                           ## @nv50_vm_map
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r15d
	movl	%r8d, %r14d
	movl	%ecx, %ebx
	movq	%rsi, %r12
	movq	%rdi, %r13
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movl	(%rdx), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	8(%rdi), %rax
	movl	(%rax), %edi
	callq	_nouveau_fb
	cmpq	$0, (%rax)
	je	LBB0_1
## %bb.2:
	movq	8(%r13), %rax
	movl	(%rax), %edi
	callq	_nouveau_fb
	addl	(%rax), %r15d
	movl	$3, %ecx
	jmp	LBB0_3
LBB0_1:
	xorl	%ecx, %ecx
LBB0_3:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edx
	movq	%r13, -80(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	movl	%r15d, %esi
	callq	_vm_addr
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	shll	$3, %r14d
	testl	%r14d, %r14d
	je	LBB0_37
## %bb.4:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	shrl	$7, %eax
	movl	16(%rbp), %ecx
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	andl	$3, %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	shll	$3, %ebx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_36 Depth 2
	movl	-48(%rbp), %r15d                ## 4-byte Reload
	movl	%r15d, %edi
	callq	_upper_32_bits
	movl	%eax, %r13d
	movl	%r15d, %edi
	callq	_lower_32_bits
	cmpl	$1024, %r14d                    ## imm = 0x400
	movl	%r14d, -52(%rbp)                ## 4-byte Spill
	jge	LBB0_7
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	cmpl	$512, %r14d                     ## imm = 0x200
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	jge	LBB0_10
## %bb.12:                              ##   in Loop: Header=BB0_6 Depth=1
	cmpl	$256, %r14d                     ## imm = 0x100
	jge	LBB0_13
## %bb.15:                              ##   in Loop: Header=BB0_6 Depth=1
	cmpl	$128, %r14d
	jge	LBB0_16
## %bb.18:                              ##   in Loop: Header=BB0_6 Depth=1
	cmpl	$64, %r14d
	jge	LBB0_19
## %bb.21:                              ##   in Loop: Header=BB0_6 Depth=1
	cmpl	$32, %r14d
	jge	LBB0_22
## %bb.24:                              ##   in Loop: Header=BB0_6 Depth=1
	cmpl	$16, %r14d
	jge	LBB0_25
## %bb.27:                              ##   in Loop: Header=BB0_6 Depth=1
	cmpl	$8, %r14d
	jl	LBB0_31
## %bb.28:                              ##   in Loop: Header=BB0_6 Depth=1
	movl	%ebx, %ecx
	andl	$7, %ecx
	jne	LBB0_31
LBB0_29:                                ##   in Loop: Header=BB0_6 Depth=1
	xorl	%r15d, %r15d
	jmp	LBB0_32
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_6 Depth=1
	testl	$1023, %ebx                     ## imm = 0x3FF
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	je	LBB0_8
LBB0_10:                                ##   in Loop: Header=BB0_6 Depth=1
	testl	$511, %ebx                      ## imm = 0x1FF
	je	LBB0_11
LBB0_13:                                ##   in Loop: Header=BB0_6 Depth=1
	testb	%bl, %bl
	je	LBB0_14
LBB0_16:                                ##   in Loop: Header=BB0_6 Depth=1
	testb	$127, %bl
	je	LBB0_17
LBB0_19:                                ##   in Loop: Header=BB0_6 Depth=1
	testb	$63, %bl
	je	LBB0_20
LBB0_22:                                ##   in Loop: Header=BB0_6 Depth=1
	testb	$31, %bl
	je	LBB0_23
LBB0_25:                                ##   in Loop: Header=BB0_6 Depth=1
	testb	$15, %bl
	je	LBB0_26
## %bb.30:                              ##   in Loop: Header=BB0_6 Depth=1
	testb	$7, %bl
	je	LBB0_29
LBB0_31:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	$-128, %r15d
LBB0_32:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	$8, %r14d
	jmp	LBB0_33
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	$768, %r15d                     ## imm = 0x300
	movl	$512, %r14d                     ## imm = 0x200
	jmp	LBB0_33
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	movl	$896, %r15d                     ## imm = 0x380
	movl	$1024, %r14d                    ## imm = 0x400
	jmp	LBB0_33
LBB0_14:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	$640, %r15d                     ## imm = 0x280
	movl	$256, %r14d                     ## imm = 0x100
	jmp	LBB0_33
LBB0_17:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	$512, %r15d                     ## imm = 0x200
	movl	$128, %r14d
	jmp	LBB0_33
LBB0_20:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	$384, %r15d                     ## imm = 0x180
	movl	$64, %r14d
	jmp	LBB0_33
LBB0_23:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	$256, %r15d                     ## imm = 0x100
	movl	$32, %r14d
	jmp	LBB0_33
LBB0_26:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	$128, %r15d
	movl	$16, %r14d
	.p2align	4, 0x90
LBB0_33:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rcx
	movb	(%rcx), %cl
	addb	$-3, %cl
	movl	%r14d, %edx
	shll	%cl, %edx
	testl	%r8d, %r8d
	je	LBB0_35
## %bb.34:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	8(%rcx), %rcx
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	leal	(%rdx,%rdi), %esi
	shrl	$16, %edi
	imull	%r8d, %edi
	addl	(%rcx), %edi
	shll	$17, %edi
	orl	%edi, %r13d
	movl	%esi, %ecx
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
LBB0_35:                                ##   in Loop: Header=BB0_6 Depth=1
	orl	%eax, %r15d
	addl	%edx, -48(%rbp)                 ## 4-byte Folded Spill
	subl	%r14d, -52(%rbp)                ## 4-byte Folded Spill
	.p2align	4, 0x90
LBB0_36:                                ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r12, %rdi
	movl	%ebx, %esi
	movl	%r15d, %edx
	callq	_nv_wo32
	leal	4(%rbx), %esi
	movq	%r12, %rdi
	movl	%r13d, %edx
	callq	_nv_wo32
	addl	$8, %ebx
	addl	$-8, %r14d
	jne	LBB0_36
## %bb.5:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	-52(%rbp), %r14d                ## 4-byte Reload
	testl	%r14d, %r14d
	jne	LBB0_6
LBB0_37:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_nv50_vm_map
.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
_nv50_vm_map:                           ; @nv50_vm_map
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x6
	mov	x23, x5
	mov	x25, x4
	mov	x24, x3
	mov	x21, x1
	mov	x22, x0
	str	x2, [sp, #8]                    ; 8-byte Folded Spill
	ldr	w20, [x2]
	ldr	x8, [x0, #8]
	ldr	w0, [x8]
	bl	_nouveau_fb
	ldr	x8, [x0]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	x8, [x22, #8]
	ldr	w0, [x8]
	bl	_nouveau_fb
	ldr	w8, [x0]
	add	w23, w8, w23
	mov	w3, #3
	b	LBB0_3
LBB0_2:
	mov	w3, #0
LBB0_3:
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	ldr	w2, [x8]
	mov	x0, x22
	mov	x1, x23
	bl	_vm_addr
	lsl	w27, w25, #3
	cbz	w27, LBB0_37
; %bb.4:
	mov	x23, x0
	ubfx	w28, w20, #7, #2
	lsl	w24, w24, #3
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_35 Depth 2
	mov	x0, x23
	bl	_upper_32_bits
	mov	x25, x0
	mov	x0, x23
	bl	_lower_32_bits
	cmp	w27, #1024
	b.ge	LBB0_14
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	w27, #512
	b.ge	LBB0_15
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	w27, #256
	b.ge	LBB0_16
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	w27, #128
	b.ge	LBB0_17
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	w27, #64
	b.ge	LBB0_18
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	cmp	w27, #32
	b.ge	LBB0_19
; %bb.11:                               ;   in Loop: Header=BB0_5 Depth=1
	cmp	w27, #16
	b.ge	LBB0_20
; %bb.12:                               ;   in Loop: Header=BB0_5 Depth=1
	cmp	w27, #8
	b.lt	LBB0_22
; %bb.13:                               ;   in Loop: Header=BB0_5 Depth=1
	and	w8, w24, #0x7
	cbz	w8, LBB0_31
	b	LBB0_22
LBB0_14:                                ;   in Loop: Header=BB0_5 Depth=1
	tst	w24, #0x3ff
	b.eq	LBB0_24
LBB0_15:                                ;   in Loop: Header=BB0_5 Depth=1
	tst	w24, #0x1ff
	b.eq	LBB0_23
LBB0_16:                                ;   in Loop: Header=BB0_5 Depth=1
	tst	w24, #0xff
	b.eq	LBB0_25
LBB0_17:                                ;   in Loop: Header=BB0_5 Depth=1
	tst	w24, #0x7f
	b.eq	LBB0_26
LBB0_18:                                ;   in Loop: Header=BB0_5 Depth=1
	tst	w24, #0x3f
	b.eq	LBB0_27
LBB0_19:                                ;   in Loop: Header=BB0_5 Depth=1
	tst	w24, #0x1f
	b.eq	LBB0_28
LBB0_20:                                ;   in Loop: Header=BB0_5 Depth=1
	tst	w24, #0xf
	b.eq	LBB0_29
; %bb.21:                               ;   in Loop: Header=BB0_5 Depth=1
	tst	w24, #0x7
	b.eq	LBB0_30
LBB0_22:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w8, #-128
	b	LBB0_31
LBB0_23:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w8, #768
	mov	w20, #512
	b	LBB0_32
LBB0_24:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w8, #896
	mov	w20, #1024
	b	LBB0_32
LBB0_25:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w8, #640
	mov	w20, #256
	b	LBB0_32
LBB0_26:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w8, #512
	mov	w20, #128
	b	LBB0_32
LBB0_27:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w8, #384
	mov	w20, #64
	b	LBB0_32
LBB0_28:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w8, #256
	mov	w20, #32
	b	LBB0_32
LBB0_29:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w8, #128
	mov	w20, #16
	b	LBB0_32
LBB0_30:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w8, #0
LBB0_31:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w20, #8
LBB0_32:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x9, [x22]
	ldr	w9, [x9]
	sub	w9, w9, #3
	lsl	w9, w20, w9
	cbz	w28, LBB0_34
; %bb.33:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x10, [sp, #8]                   ; 8-byte Folded Reload
	ldr	x10, [x10, #8]
	ldr	w10, [x10]
	lsr	w11, w19, #16
	madd	w10, w11, w28, w10
	orr	w25, w25, w10, lsl #17
	add	w19, w9, w19
LBB0_34:                                ;   in Loop: Header=BB0_5 Depth=1
	orr	w26, w8, w0
	add	w23, w9, w23
	sub	w27, w27, w20
LBB0_35:                                ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x21
	mov	x1, x24
	mov	x2, x26
	bl	_nv_wo32
	add	w1, w24, #4
	mov	x0, x21
	mov	x2, x25
	bl	_nv_wo32
	add	w24, w24, #8
	subs	w20, w20, #8
	b.ne	LBB0_35
; %bb.36:                               ;   in Loop: Header=BB0_5 Depth=1
	cbnz	w27, LBB0_5
LBB0_37:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_nv50_vm_map
.subsections_via_symbols
