	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ttm_bo_global_init
_ttm_bo_global_init:                    ## @ttm_bo_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_ttm_global_mutex@GOTPCREL(%rip), %rdi
	callq	_mutex_lock
	movq	_ttm_bo_glob_use_count@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leal	1(%rcx), %edx
	movl	%edx, (%rax)
	xorl	%ebx, %ebx
	testl	%ecx, %ecx
	jg	LBB0_8
## %bb.1:
	movq	_ttm_mem_glob@GOTPCREL(%rip), %r14
	movq	%r14, %rdi
	callq	_ttm_mem_global_init
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_8
## %bb.2:
	movq	_ttm_bo_glob@GOTPCREL(%rip), %r15
	leaq	40(%r15), %rdi
	callq	_spin_lock_init
	movq	%r14, 32(%r15)
	movq	%r15, (%r14)
	movq	___GFP_ZERO@GOTPCREL(%rip), %rax
	movq	_GFP_DMA32@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	callq	_alloc_page
	movq	%rax, 24(%r15)
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_3
## %bb.9:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_8
LBB0_3:
	movq	_TTM_MAX_BO_PRIORITY@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	je	LBB0_6
## %bb.4:
	xorl	%r12d, %r12d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r15), %rdi
	addq	%r12, %rdi
	callq	_INIT_LIST_HEAD
	incq	%rbx
	movl	(%r14), %eax
	addq	$4, %r12
	cmpq	%rax, %rbx
	jb	LBB0_5
LBB0_6:
	leaq	8(%r15), %rdi
	callq	_INIT_LIST_HEAD
	leaq	4(%r15), %rdi
	xorl	%esi, %esi
	callq	_atomic_set
	xorl	%eax, %eax
	callq	_ttm_get_kobj
	movq	_ttm_bo_glob_kobj_type@GOTPCREL(%rip), %rsi
	leaq	L_.str(%rip), %rcx
	movq	%r15, %rdi
	movl	%eax, %edx
	callq	_kobject_init_and_add
	movl	%eax, %ebx
	xorl	%edi, %edi
	testl	%eax, %eax
	setne	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	_ttm_bo_glob@GOTPCREL(%rip), %rdi
	callq	_kobject_put
LBB0_8:
	movq	_ttm_global_mutex@GOTPCREL(%rip), %rdi
	callq	_mutex_unlock
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ttm_bo_glob,48,3               ## @ttm_bo_glob
	.comm	_ttm_global_mutex,4,2           ## @ttm_global_mutex
	.comm	_ttm_bo_glob_use_count,4,2      ## @ttm_bo_glob_use_count
	.comm	_ttm_mem_glob,8,3               ## @ttm_mem_glob
	.comm	___GFP_ZERO,4,2                 ## @__GFP_ZERO
	.comm	_GFP_DMA32,4,2                  ## @GFP_DMA32
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_TTM_MAX_BO_PRIORITY,4,2        ## @TTM_MAX_BO_PRIORITY
	.comm	_ttm_bo_glob_kobj_type,4,2      ## @ttm_bo_glob_kobj_type
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"buffer_objects"

	.no_dead_strip	_ttm_bo_global_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ttm_bo_global_init
_ttm_bo_global_init:                    ; @ttm_bo_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
Lloh0:
	adrp	x0, _ttm_global_mutex@GOTPAGE
Lloh1:
	ldr	x0, [x0, _ttm_global_mutex@GOTPAGEOFF]
	bl	_mutex_lock
Lloh2:
	adrp	x8, _ttm_bo_glob_use_count@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ttm_bo_glob_use_count@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w10, w9, #1
	str	w10, [x8]
	cmp	w9, #0
	b.le	LBB0_2
; %bb.1:
	mov	w19, #0
	b	LBB0_10
LBB0_2:
Lloh4:
	adrp	x20, _ttm_mem_glob@GOTPAGE
Lloh5:
	ldr	x20, [x20, _ttm_mem_glob@GOTPAGEOFF]
	mov	x0, x20
	bl	_ttm_mem_global_init
	mov	x19, x0
	cbnz	w0, LBB0_10
; %bb.3:
Lloh6:
	adrp	x19, _ttm_bo_glob@GOTPAGE
Lloh7:
	ldr	x19, [x19, _ttm_bo_glob@GOTPAGEOFF]
	add	x0, x19, #40
	bl	_spin_lock_init
	str	x20, [x19, #32]
Lloh8:
	adrp	x8, ___GFP_ZERO@GOTPAGE
Lloh9:
	ldr	x8, [x8, ___GFP_ZERO@GOTPAGEOFF]
	str	x19, [x20]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _GFP_DMA32@GOTPAGE
Lloh12:
	ldr	x9, [x9, _GFP_DMA32@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w0, w9, w8
	bl	_alloc_page
	str	x0, [x19, #24]
	cmp	x0, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_5
; %bb.4:
Lloh14:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w19, w8
	b	LBB0_10
LBB0_5:
Lloh17:
	adrp	x20, _TTM_MAX_BO_PRIORITY@GOTPAGE
Lloh18:
	ldr	x20, [x20, _TTM_MAX_BO_PRIORITY@GOTPAGEOFF]
	ldr	w8, [x20]
	cbz	w8, LBB0_8
; %bb.6:
	mov	x21, #0
	mov	x22, #0
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #16]
	add	x0, x8, x21
	bl	_INIT_LIST_HEAD
	add	x22, x22, #1
	ldr	w8, [x20]
	add	x21, x21, #4
	cmp	x22, x8
	b.lo	LBB0_7
LBB0_8:
	add	x0, x19, #8
	bl	_INIT_LIST_HEAD
	add	x0, x19, #4
	mov	w1, #0
	bl	_atomic_set
	bl	_ttm_get_kobj
	mov	x2, x0
Lloh19:
	adrp	x1, _ttm_bo_glob_kobj_type@GOTPAGE
Lloh20:
	ldr	x1, [x1, _ttm_bo_glob_kobj_type@GOTPAGEOFF]
Lloh21:
	adrp	x3, l_.str@PAGE
Lloh22:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x19
	bl	_kobject_init_and_add
	mov	x19, x0
	cmp	w0, #0
	cset	w0, ne
	bl	_unlikely
	cbz	x0, LBB0_10
; %bb.9:
Lloh23:
	adrp	x0, _ttm_bo_glob@GOTPAGE
Lloh24:
	ldr	x0, [x0, _ttm_bo_glob@GOTPAGEOFF]
	bl	_kobject_put
LBB0_10:
Lloh25:
	adrp	x0, _ttm_global_mutex@GOTPAGE
Lloh26:
	ldr	x0, [x0, _ttm_global_mutex@GOTPAGEOFF]
	bl	_mutex_unlock
	mov	x0, x19
	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	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_ttm_bo_glob,48,3               ; @ttm_bo_glob
	.comm	_ttm_global_mutex,4,2           ; @ttm_global_mutex
	.comm	_ttm_bo_glob_use_count,4,2      ; @ttm_bo_glob_use_count
	.comm	_ttm_mem_glob,8,3               ; @ttm_mem_glob
	.comm	___GFP_ZERO,4,2                 ; @__GFP_ZERO
	.comm	_GFP_DMA32,4,2                  ; @GFP_DMA32
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_TTM_MAX_BO_PRIORITY,4,2        ; @TTM_MAX_BO_PRIORITY
	.comm	_ttm_bo_glob_kobj_type,4,2      ; @ttm_bo_glob_kobj_type
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"buffer_objects"

	.no_dead_strip	_ttm_bo_global_init
.subsections_via_symbols
