	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nvkm_mmu_host
_nvkm_mmu_host:                         ## @nvkm_mmu_host
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	(%rdi), %rax
	movq	8(%rdi), %r13
	movq	_NVKM_MEM_KIND@GOTPCREL(%rip), %r12
	movl	(%rax), %ebx
	testl	%ebx, %ebx
	je	LBB0_2
## %bb.1:
	movl	(%r12), %ebx
LBB0_2:
	movq	_NVKM_MEM_HOST@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movq	$-1, %rdx
	callq	_nvkm_mmu_heap
	movl	%eax, %r15d
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	%ebx, %edx
	callq	_nvkm_mmu_type
	movq	_NVKM_MEM_MAPPABLE@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	8(%r13), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	cmpq	$0, (%rax)
	movl	%ebx, %edx
	je	LBB0_5
LBB0_4:
	movl	(%r12), %edx
	notl	%edx
	andl	%ebx, %edx
LBB0_5:
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_nvkm_mmu_type
	movq	_NVKM_MEM_COHERENT@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	(%r13), %rax
	cmpq	$0, (%rax)
	je	LBB0_7
## %bb.6:
	movl	(%r12), %edx
	notl	%edx
	andl	%ebx, %edx
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_nvkm_mmu_type
LBB0_7:
	movq	_NVKM_MEM_UNCACHED@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%ebx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_nvkm_mmu_type                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_NVKM_MEM_KIND,4,2              ## @NVKM_MEM_KIND
	.comm	_NVKM_MEM_HOST,4,2              ## @NVKM_MEM_HOST
	.comm	_NVKM_MEM_MAPPABLE,4,2          ## @NVKM_MEM_MAPPABLE
	.comm	_NVKM_MEM_COHERENT,4,2          ## @NVKM_MEM_COHERENT
	.comm	_NVKM_MEM_UNCACHED,4,2          ## @NVKM_MEM_UNCACHED
	.no_dead_strip	_nvkm_mmu_host
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nvkm_mmu_host
_nvkm_mmu_host:                         ; @nvkm_mmu_host
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
Lloh0:
	adrp	x22, _NVKM_MEM_KIND@GOTPAGE
Lloh1:
	ldr	x22, [x22, _NVKM_MEM_KIND@GOTPAGEOFF]
	ldr	w8, [x22]
	ldp	x9, x23, [x0]
	ldr	w9, [x9]
	cmp	w9, #0
	csel	w21, wzr, w8, eq
Lloh2:
	adrp	x8, _NVKM_MEM_HOST@GOTPAGE
Lloh3:
	ldr	x8, [x8, _NVKM_MEM_HOST@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x2, #-1
	bl	_nvkm_mmu_heap
	mov	x20, x0
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_nvkm_mmu_type
Lloh5:
	adrp	x8, _NVKM_MEM_MAPPABLE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _NVKM_MEM_MAPPABLE@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	orr	w21, w8, w21
	ldr	x8, [x23, #8]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	x8, [x8]
	cbz	x8, LBB0_3
LBB0_2:
	ldr	w8, [x22]
	bic	w2, w21, w8
	b	LBB0_4
LBB0_3:
	mov	x2, x21
LBB0_4:
	mov	x0, x19
	mov	x1, x20
	bl	_nvkm_mmu_type
Lloh8:
	adrp	x8, _NVKM_MEM_COHERENT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _NVKM_MEM_COHERENT@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	orr	w21, w8, w21
	ldr	x8, [x23]
	ldr	x8, [x8]
	cbz	x8, LBB0_6
; %bb.5:
	ldr	w8, [x22]
	bic	w2, w21, w8
	mov	x0, x19
	mov	x1, x20
	bl	_nvkm_mmu_type
LBB0_6:
Lloh11:
	adrp	x8, _NVKM_MEM_UNCACHED@GOTPAGE
Lloh12:
	ldr	x8, [x8, _NVKM_MEM_UNCACHED@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	orr	w2, w8, w21
	mov	x0, x19
	mov	x1, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_nvkm_mmu_type
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_NVKM_MEM_KIND,4,2              ; @NVKM_MEM_KIND
	.comm	_NVKM_MEM_HOST,4,2              ; @NVKM_MEM_HOST
	.comm	_NVKM_MEM_MAPPABLE,4,2          ; @NVKM_MEM_MAPPABLE
	.comm	_NVKM_MEM_COHERENT,4,2          ; @NVKM_MEM_COHERENT
	.comm	_NVKM_MEM_UNCACHED,4,2          ; @NVKM_MEM_UNCACHED
	.no_dead_strip	_nvkm_mmu_host
.subsections_via_symbols
