	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nouveau_ttm_global_init        ## -- Begin function nouveau_ttm_global_init
	.p2align	4, 0x90
_nouveau_ttm_global_init:               ## @nouveau_ttm_global_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	_DRM_GLOBAL_TTM_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rdi)
	movl	$4, (%rdi)
	movq	_nouveau_ttm_mem_global_init@GOTPCREL(%rip), %rax
	movq	%rax, 16(%rdi)
	movq	_nouveau_ttm_mem_global_release@GOTPCREL(%rip), %rax
	movq	%rax, 8(%rdi)
	callq	_drm_global_item_ref
	movl	%eax, %r14d
	xorl	%edi, %edi
	testl	%eax, %eax
	setne	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_DRM_ERROR
	jmp	LBB0_5
LBB0_2:
	movl	28(%rbx), %eax
	leaq	32(%rbx), %rdi
	movl	%eax, 64(%rbx)
	movq	_DRM_GLOBAL_TTM_BO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 56(%rbx)
	movl	$4, 32(%rbx)
	movq	_ttm_bo_global_init@GOTPCREL(%rip), %rax
	movq	%rax, 48(%rbx)
	movq	_ttm_bo_global_release@GOTPCREL(%rip), %rax
	movq	%rax, 40(%rbx)
	callq	_drm_global_item_ref
	movl	%eax, %r14d
	xorl	%edi, %edi
	testl	%eax, %eax
	setne	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	leaq	L_.str.1(%rip), %rdi
	callq	_DRM_ERROR
	movq	%rbx, %rdi
	callq	_drm_global_item_unref
LBB0_5:
	movq	$0, 8(%rbx)
LBB0_6:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_3:
	xorl	%r14d, %r14d
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_DRM_GLOBAL_TTM_MEM,4,2         ## @DRM_GLOBAL_TTM_MEM
	.comm	_nouveau_ttm_mem_global_init,4,2 ## @nouveau_ttm_mem_global_init
	.comm	_nouveau_ttm_mem_global_release,4,2 ## @nouveau_ttm_mem_global_release
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed setting up TTM memory accounting\n"

	.comm	_DRM_GLOBAL_TTM_BO,4,2          ## @DRM_GLOBAL_TTM_BO
	.comm	_ttm_bo_global_init,4,2         ## @ttm_bo_global_init
	.comm	_ttm_bo_global_release,4,2      ## @ttm_bo_global_release
L_.str.1:                               ## @.str.1
	.asciz	"Failed setting up TTM BO subsystem\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nouveau_ttm_global_init        ; -- Begin function nouveau_ttm_global_init
	.p2align	2
_nouveau_ttm_global_init:               ; @nouveau_ttm_global_init
	.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, x0
Lloh0:
	adrp	x8, _DRM_GLOBAL_TTM_MEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DRM_GLOBAL_TTM_MEM@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x0, #24]
	mov	w21, #4
	str	w21, [x0]
Lloh3:
	adrp	x8, _nouveau_ttm_mem_global_init@GOTPAGE
Lloh4:
	ldr	x8, [x8, _nouveau_ttm_mem_global_init@GOTPAGEOFF]
Lloh5:
	adrp	x9, _nouveau_ttm_mem_global_release@GOTPAGE
Lloh6:
	ldr	x9, [x9, _nouveau_ttm_mem_global_release@GOTPAGEOFF]
	stp	x9, x8, [x0, #8]
	bl	_drm_global_item_ref
	mov	x20, x0
	cmp	w0, #0
	cset	w0, ne
	bl	_unlikely
	cbz	x0, LBB0_2
; %bb.1:
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_ERROR
	b	LBB0_4
LBB0_2:
	mov	x0, x19
	str	w21, [x0, #32]!
	ldur	w8, [x0, #-4]
	str	w8, [x0, #32]
Lloh9:
	adrp	x8, _DRM_GLOBAL_TTM_BO@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DRM_GLOBAL_TTM_BO@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	str	w8, [x0, #24]
Lloh12:
	adrp	x8, _ttm_bo_global_init@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ttm_bo_global_init@GOTPAGEOFF]
Lloh14:
	adrp	x9, _ttm_bo_global_release@GOTPAGE
Lloh15:
	ldr	x9, [x9, _ttm_bo_global_release@GOTPAGEOFF]
	stp	x9, x8, [x0, #8]
	bl	_drm_global_item_ref
	mov	x20, x0
	cmp	w0, #0
	cset	w0, ne
	bl	_unlikely
	cbz	x0, LBB0_6
; %bb.3:
Lloh16:
	adrp	x0, l_.str.1@PAGE
Lloh17:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DRM_ERROR
	mov	x0, x19
	bl	_drm_global_item_unref
LBB0_4:
	str	xzr, [x19, #8]
LBB0_5:
	mov	x0, x20
	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_6:
	mov	w20, #0
	b	LBB0_5
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_DRM_GLOBAL_TTM_MEM,4,2         ; @DRM_GLOBAL_TTM_MEM
	.comm	_nouveau_ttm_mem_global_init,4,2 ; @nouveau_ttm_mem_global_init
	.comm	_nouveau_ttm_mem_global_release,4,2 ; @nouveau_ttm_mem_global_release
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed setting up TTM memory accounting\n"

	.comm	_DRM_GLOBAL_TTM_BO,4,2          ; @DRM_GLOBAL_TTM_BO
	.comm	_ttm_bo_global_init,4,2         ; @ttm_bo_global_init
	.comm	_ttm_bo_global_release,4,2      ; @ttm_bo_global_release
l_.str.1:                               ; @.str.1
	.asciz	"Failed setting up TTM BO subsystem\n"

.subsections_via_symbols
