	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nv50_vmm_pde
_nv50_vmm_pde:                          ## @nv50_vmm_pde
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	xorl	%ebx, %ebx
	testq	%rsi, %rsi
	je	LBB0_21
## %bb.1:
	movq	8(%rsi), %rax
	movq	(%rax), %r15
	testq	%r15, %r15
	je	LBB0_21
## %bb.2:
	movl	(%rsi), %eax
	cmpl	$16, %eax
	je	LBB0_3
## %bb.4:
	cmpl	$12, %eax
	jne	LBB0_18
## %bb.5:
	movl	4(%r15), %edi
	callq	_nvkm_memory_size
	cmpl	$262143, %eax                   ## imm = 0x3FFFF
	jg	LBB0_9
## %bb.6:
	cmpl	$65536, %eax                    ## imm = 0x10000
	je	LBB0_13
## %bb.7:
	cmpl	$131072, %eax                   ## imm = 0x20000
	jne	LBB0_18
## %bb.8:
	movl	$67, %ebx
	jmp	LBB0_14
LBB0_3:
	movl	$1, %ebx
LBB0_14:
	movl	4(%r15), %edi
	callq	_nvkm_memory_target
	cmpl	$128, %eax
	je	LBB0_20
## %bb.15:
	cmpl	$129, %eax
	je	LBB0_19
## %bb.16:
	cmpl	$130, %eax
	jne	LBB0_18
## %bb.17:
	orl	$8, %ebx
	jmp	LBB0_20
LBB0_9:
	cmpl	$1048576, %eax                  ## imm = 0x100000
	je	LBB0_10
## %bb.11:
	cmpl	$262144, %eax                   ## imm = 0x40000
	jne	LBB0_18
## %bb.12:
	movl	$35, %ebx
	jmp	LBB0_14
LBB0_18:
	movl	$1, %edi
	callq	_WARN_ON
	xorl	%eax, %eax
	jmp	LBB0_22
LBB0_19:
	orl	$12, %ebx
LBB0_20:
	orl	(%r15), %ebx
LBB0_21:
	movl	%ebx, (%r14)
	movl	$1, %eax
LBB0_22:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movl	$99, %ebx
	jmp	LBB0_14
LBB0_10:
	movl	$3, %ebx
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_nv50_vmm_pde
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nv50_vmm_pde
_nv50_vmm_pde:                          ; @nv50_vmm_pde
	.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	x19, x2
	cbz	x1, LBB0_8
; %bb.1:
	ldr	x8, [x1, #8]
	ldr	x20, [x8]
	cbz	x20, LBB0_8
; %bb.2:
	ldr	w8, [x1]
	cmp	w8, #16
	b.eq	LBB0_9
; %bb.3:
	cmp	w8, #12
	b.ne	LBB0_17
; %bb.4:
	ldr	w0, [x20, #4]
	bl	_nvkm_memory_size
	cmp	w0, #64, lsl #12                ; =262144
	b.ge	LBB0_14
; %bb.5:
	cmp	w0, #16, lsl #12                ; =65536
	b.eq	LBB0_22
; %bb.6:
	cmp	w0, #32, lsl #12                ; =131072
	b.ne	LBB0_17
; %bb.7:
	mov	w21, #67
	b	LBB0_10
LBB0_8:
	mov	w8, #0
	b	LBB0_20
LBB0_9:
	mov	w21, #1
LBB0_10:
	ldr	w0, [x20, #4]
	bl	_nvkm_memory_target
	cmp	w0, #128
	b.eq	LBB0_19
; %bb.11:
	cmp	w0, #129
	b.eq	LBB0_18
; %bb.12:
	cmp	w0, #130
	b.ne	LBB0_17
; %bb.13:
	orr	w21, w21, #0x8
	b	LBB0_19
LBB0_14:
	cmp	w0, #256, lsl #12               ; =1048576
	b.eq	LBB0_23
; %bb.15:
	cmp	w0, #64, lsl #12                ; =262144
	b.ne	LBB0_17
; %bb.16:
	mov	w21, #35
	b	LBB0_10
LBB0_17:
	mov	w0, #1
	bl	_WARN_ON
	mov	w0, #0
	b	LBB0_21
LBB0_18:
	orr	w21, w21, #0xc
LBB0_19:
	ldr	w8, [x20]
	orr	w8, w8, w21
LBB0_20:
	str	w8, [x19]
	mov	w0, #1
LBB0_21:
	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
LBB0_22:
	mov	w21, #99
	b	LBB0_10
LBB0_23:
	mov	w21, #3
	b	LBB0_10
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_nv50_vmm_pde
.subsections_via_symbols
