	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nvkm_ummu_sclass
_nvkm_ummu_sclass:                      ## @nvkm_ummu_sclass
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdx, %r14
	movl	%esi, %ebx
	callq	_nvkm_ummu
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	8(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_5
## %bb.1:
	movq	16(%r14), %rdx
	cmpq	$0, (%rdx)
	je	LBB0_5
## %bb.2:
	subl	$1, %ebx
	jae	LBB0_5
## %bb.3:
	movq	%rcx, 8(%r14)
	movq	_nvkm_umem_new@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_5:
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:
	testl	%ebx, %ebx
	jne	LBB0_8
## %bb.7:
	movq	%rax, 8(%r14)
	movq	_nvkm_uvmm_new@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %eax
	movl	%eax, (%r14)
	xorl	%eax, %eax
	jmp	LBB0_9
LBB0_8:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_9:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_nvkm_umem_new,4,2              ## @nvkm_umem_new
	.comm	_nvkm_uvmm_new,4,2              ## @nvkm_uvmm_new
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_nvkm_ummu_sclass
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nvkm_ummu_sclass
_nvkm_ummu_sclass:                      ; @nvkm_ummu_sclass
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x2
	mov	x20, x1
	bl	_nvkm_ummu
	ldr	x8, [x0]
	ldr	x8, [x8]
	ldr	x9, [x8, #8]
	cbz	x9, LBB0_4
; %bb.1:
	ldr	x10, [x19, #16]
	ldr	x10, [x10]
	cbz	x10, LBB0_4
; %bb.2:
	cbz	w20, LBB0_7
; %bb.3:
	sub	w20, w20, #1
LBB0_4:
	ldr	x8, [x8]
	cmp	x8, #0
	ccmp	w20, #0, #0, ne
	b.eq	LBB0_6
; %bb.5:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_9
LBB0_6:
	mov	w0, #0
	str	x8, [x19, #8]
Lloh3:
	adrp	x8, _nvkm_uvmm_new@GOTPAGE
Lloh4:
	ldr	x8, [x8, _nvkm_uvmm_new@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
	mov	w0, #0
	str	x9, [x19, #8]
Lloh5:
	adrp	x8, _nvkm_umem_new@GOTPAGE
Lloh6:
	ldr	x8, [x8, _nvkm_umem_new@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	str	w8, [x19]
LBB0_9:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_nvkm_umem_new,4,2              ; @nvkm_umem_new
	.comm	_nvkm_uvmm_new,4,2              ; @nvkm_uvmm_new
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_nvkm_ummu_sclass
.subsections_via_symbols
