	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nouveau_bo_init                ## -- Begin function nouveau_bo_init
	.p2align	4, 0x90
_nouveau_bo_init:                       ## @nouveau_bo_init
	.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
	movq	%r9, -72(%rbp)                  ## 8-byte Spill
	movq	%r8, %r15
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movl	%edx, %r12d
	movl	%esi, %r13d
	movq	%rdi, %rbx
	testq	%r8, %r8
	jne	LBB0_1
## %bb.2:
	movq	_ttm_bo_type_device@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_ttm_bo_type_sg@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	leaq	4(%rbx), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	4(%rbx), %edi
	movl	%r13d, %esi
	movl	$12, %edx
	callq	_ttm_bo_dma_acc_size
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %r14
	movb	(%r14), %cl
	movl	%r13d, %eax
	sarl	%cl, %eax
	movl	%eax, 8(%rbx)
	movq	%rbx, %rdi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	xorl	%edx, %edx
	callq	_nouveau_bo_placement_set
	movb	(%r14), %cl
	sarl	%cl, %r12d
	movl	4(%rbx), %edi
	movq	_nouveau_bo_del_ttm@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	subq	$8, %rsp
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movl	%r13d, %edx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movq	%rbx, %r8
	movl	%r12d, %r9d
	pushq	%rax
	pushq	-72(%rbp)                       ## 8-byte Folded Reload
	pushq	%r15
	pushq	-56(%rbp)                       ## 8-byte Folded Reload
	pushq	$0
	callq	_ttm_bo_init
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ttm_bo_type_sg,4,2             ## @ttm_bo_type_sg
	.comm	_ttm_bo_type_device,4,2         ## @ttm_bo_type_device
	.comm	_PAGE_SHIFT,4,2                 ## @PAGE_SHIFT
	.comm	_nouveau_bo_del_ttm,4,2         ## @nouveau_bo_del_ttm
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nouveau_bo_init                ; -- Begin function nouveau_bo_init
	.p2align	2
_nouveau_bo_init:                       ; @nouveau_bo_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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, x5
	mov	x20, x4
	mov	x21, x3
	mov	x22, x2
	mov	x23, x1
	mov	x24, x0
Lloh0:
	adrp	x8, _ttm_bo_type_sg@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ttm_bo_type_sg@GOTPAGEOFF]
Lloh2:
	adrp	x9, _ttm_bo_type_device@GOTPAGE
Lloh3:
	ldr	x9, [x9, _ttm_bo_type_device@GOTPAGEOFF]
	cmp	x4, #0
	csel	x8, x9, x8, eq
	ldr	w25, [x8]
	mov	x26, x0
	ldr	w0, [x26, #4]!
	mov	w2, #12
	bl	_ttm_bo_dma_acc_size
	mov	x27, x0
Lloh4:
	adrp	x28, _PAGE_SHIFT@GOTPAGE
Lloh5:
	ldr	x28, [x28, _PAGE_SHIFT@GOTPAGEOFF]
	ldr	w8, [x28]
	asr	w8, w23, w8
	str	w8, [x24, #8]
	mov	x0, x24
	mov	x1, x21
	mov	w2, #0
	bl	_nouveau_bo_placement_set
	ldr	w0, [x26]
	ldr	w8, [x28]
	asr	w5, w22, w8
Lloh6:
	adrp	x8, _nouveau_bo_del_ttm@GOTPAGE
Lloh7:
	ldr	x8, [x8, _nouveau_bo_del_ttm@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [sp, #16]
	stp	x20, x19, [sp]
	mov	x1, x26
	mov	x2, x23
	mov	x3, x25
	mov	x4, x24
	mov	w6, #0
	mov	x7, x27
	bl	_ttm_bo_init
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_ttm_bo_type_sg,4,2             ; @ttm_bo_type_sg
	.comm	_ttm_bo_type_device,4,2         ; @ttm_bo_type_device
	.comm	_PAGE_SHIFT,4,2                 ; @PAGE_SHIFT
	.comm	_nouveau_bo_del_ttm,4,2         ; @nouveau_bo_del_ttm
.subsections_via_symbols
