	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function radeon_ttm_global_init
_radeon_ttm_global_init:                ## @radeon_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movl	$0, (%rdi)
	leaq	8(%rdi), %r14
	movq	_DRM_GLOBAL_TTM_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rdi)
	movl	$4, 8(%rdi)
	movq	_radeon_ttm_mem_global_init@GOTPCREL(%rip), %rax
	movq	%rax, 24(%rdi)
	movq	_radeon_ttm_mem_global_release@GOTPCREL(%rip), %rax
	movq	%rax, 16(%rdi)
	movq	%r14, %rdi
	callq	_drm_global_item_ref
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %r15d
	leaq	L_.str(%rip), %rdi
	callq	_DRM_ERROR
	jmp	LBB0_5
LBB0_2:
	movl	36(%rbx), %eax
	leaq	40(%rbx), %rdi
	movl	%eax, 72(%rbx)
	movq	_DRM_GLOBAL_TTM_BO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 64(%rbx)
	movl	$4, 40(%rbx)
	movq	_ttm_bo_global_init@GOTPCREL(%rip), %rax
	movq	%rax, 56(%rbx)
	movq	_ttm_bo_global_release@GOTPCREL(%rip), %rax
	movq	%rax, 48(%rbx)
	callq	_drm_global_item_ref
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %r15d
	leaq	L_.str.1(%rip), %rdi
	callq	_DRM_ERROR
	movq	%r14, %rdi
	callq	_drm_global_item_unref
	jmp	LBB0_5
LBB0_4:
	movl	$1, (%rbx)
	xorl	%r15d, %r15d
LBB0_5:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DRM_GLOBAL_TTM_MEM,4,2         ## @DRM_GLOBAL_TTM_MEM
	.comm	_radeon_ttm_mem_global_init,4,2 ## @radeon_ttm_mem_global_init
	.comm	_radeon_ttm_mem_global_release,4,2 ## @radeon_ttm_mem_global_release
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed setting up TTM memory accounting subsystem.\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"

	.no_dead_strip	_radeon_ttm_global_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function radeon_ttm_global_init
_radeon_ttm_global_init:                ; @radeon_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	x20, x0
	str	wzr, [x0]
	mov	w22, #4
	mov	x19, x0
	str	w22, [x19, #8]!
Lloh0:
	adrp	x8, _DRM_GLOBAL_TTM_MEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DRM_GLOBAL_TTM_MEM@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x0, #32]
Lloh3:
	adrp	x8, _radeon_ttm_mem_global_init@GOTPAGE
Lloh4:
	ldr	x8, [x8, _radeon_ttm_mem_global_init@GOTPAGEOFF]
Lloh5:
	adrp	x9, _radeon_ttm_mem_global_release@GOTPAGE
Lloh6:
	ldr	x9, [x9, _radeon_ttm_mem_global_release@GOTPAGEOFF]
	stp	x9, x8, [x0, #16]
	mov	x0, x19
	bl	_drm_global_item_ref
	cbz	w0, LBB0_2
; %bb.1:
	mov	x21, x0
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_ERROR
	b	LBB0_5
LBB0_2:
	mov	x0, x20
	str	w22, [x0, #40]!
	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	x21, x0
	cbz	w0, LBB0_4
; %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
	b	LBB0_5
LBB0_4:
	mov	w8, #1
	str	w8, [x20]
LBB0_5:
	mov	x0, x21
	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
	.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	_radeon_ttm_mem_global_init,4,2 ; @radeon_ttm_mem_global_init
	.comm	_radeon_ttm_mem_global_release,4,2 ; @radeon_ttm_mem_global_release
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed setting up TTM memory accounting subsystem.\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"

	.no_dead_strip	_radeon_ttm_global_init
.subsections_via_symbols
