	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nouveau_ttm_init_host
_nouveau_ttm_init_host:                 ## @nouveau_ttm_init_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
	movl	%esi, %ebx
	movq	%rdi, %r14
	leaq	16(%rdi), %r15
	movq	_NVIF_MEM_HOST@GOTPCREL(%rip), %r13
	movq	_NVIF_MEM_MAPPABLE@GOTPCREL(%rip), %r12
	movq	_NVIF_MEM_COHERENT@GOTPCREL(%rip), %rax
	movl	(%r13), %esi
	orl	%ebx, %esi
	orl	(%r12), %esi
	orl	(%rax), %esi
	movq	%r15, %rdi
	callq	_nvif_mmu_type
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movq	(%r14), %rcx
	movq	%r12, %rdx
	xorl	%r12d, %r12d
	testl	%ebx, %ebx
	setne	%r12b
	movl	%eax, (%rcx,%r12,4)
	orl	(%r13), %ebx
	orl	(%rdx), %ebx
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_nvif_mmu_type
	testl	%eax, %eax
	js	LBB0_1
## %bb.3:
	movq	8(%r14), %rcx
	movl	%eax, (%rcx,%r12,4)
	xorl	%eax, %eax
	jmp	LBB0_4
LBB0_1:
	movq	_ENOSYS@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NVIF_MEM_HOST,4,2              ## @NVIF_MEM_HOST
	.comm	_NVIF_MEM_MAPPABLE,4,2          ## @NVIF_MEM_MAPPABLE
	.comm	_NVIF_MEM_COHERENT,4,2          ## @NVIF_MEM_COHERENT
	.comm	_ENOSYS,4,2                     ## @ENOSYS
	.no_dead_strip	_nouveau_ttm_init_host
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nouveau_ttm_init_host
_nouveau_ttm_init_host:                 ; @nouveau_ttm_init_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	x21, x1
	mov	x19, x0
	add	x20, x0, #16
Lloh0:
	adrp	x22, _NVIF_MEM_HOST@GOTPAGE
Lloh1:
	ldr	x22, [x22, _NVIF_MEM_HOST@GOTPAGEOFF]
	ldr	w8, [x22]
Lloh2:
	adrp	x23, _NVIF_MEM_MAPPABLE@GOTPAGE
Lloh3:
	ldr	x23, [x23, _NVIF_MEM_MAPPABLE@GOTPAGEOFF]
	ldr	w9, [x23]
Lloh4:
	adrp	x10, _NVIF_MEM_COHERENT@GOTPAGE
Lloh5:
	ldr	x10, [x10, _NVIF_MEM_COHERENT@GOTPAGEOFF]
Lloh6:
	ldr	w10, [x10]
	orr	w8, w8, w1
	orr	w8, w8, w9
	orr	w1, w8, w10
	mov	x0, x20
	bl	_nvif_mmu_type
	tbnz	w0, #31, LBB0_3
; %bb.1:
	ldr	x8, [x19]
	cmp	w21, #0
	cset	w24, ne
	str	w0, [x8, w24, uxtw #2]
	ldr	w8, [x22]
	ldr	w9, [x23]
	orr	w8, w8, w21
	orr	w1, w8, w9
	mov	x0, x20
	bl	_nvif_mmu_type
	tbnz	w0, #31, LBB0_3
; %bb.2:
	mov	x8, x0
	mov	w0, #0
	ldr	x9, [x19, #8]
	str	w8, [x9, x24, lsl #2]
	b	LBB0_4
LBB0_3:
Lloh7:
	adrp	x8, _ENOSYS@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOSYS@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_NVIF_MEM_HOST,4,2              ; @NVIF_MEM_HOST
	.comm	_NVIF_MEM_MAPPABLE,4,2          ; @NVIF_MEM_MAPPABLE
	.comm	_NVIF_MEM_COHERENT,4,2          ; @NVIF_MEM_COHERENT
	.comm	_ENOSYS,4,2                     ; @ENOSYS
	.no_dead_strip	_nouveau_ttm_init_host
.subsections_via_symbols
