	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ttm_bo_device_init             ## -- Begin function ttm_bo_device_init
	.p2align	4, 0x90
_ttm_bo_device_init:                    ## @ttm_bo_device_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r15d
	movq	%rdx, %r12
	movq	%rsi, %rbx
	movq	%rdi, %r14
	xorl	%eax, %eax
	callq	_ttm_bo_global_init
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_4
## %bb.1:
	movq	%rbx, 40(%r14)
	movl	36(%r14), %edi
	xorl	%r13d, %r13d
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movq	_TTM_PL_SYSTEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_ttm_bo_init_mm
	movl	%eax, %ebx
	xorl	%edi, %edi
	testl	%eax, %eax
	setne	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	xorl	%eax, %eax
	callq	_ttm_bo_global_release
	movl	%ebx, %r13d
	jmp	LBB0_4
LBB0_2:
	leaq	32(%r14), %rdi
	movq	_DRM_FILE_PAGE_OFFSET_START@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DRM_FILE_PAGE_OFFSET_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_drm_vma_offset_manager_init
	leaq	28(%r14), %rdi
	movq	_ttm_bo_delayed_workqueue@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_DELAYED_WORK
	leaq	24(%r14), %rdi
	callq	_INIT_LIST_HEAD
	movq	%r12, 16(%r14)
	movq	_ttm_bo_glob@GOTPCREL(%rip), %rbx
	movq	%rbx, 8(%r14)
	movl	%r15d, (%r14)
	movq	_ttm_global_mutex@GOTPCREL(%rip), %r15
	movq	%r15, %rdi
	callq	_mutex_lock
	addq	$4, %r14
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_list_add_tail
	movq	%r15, %rdi
	callq	_mutex_unlock
LBB0_4:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ttm_bo_glob,4,2                ## @ttm_bo_glob
	.comm	_TTM_PL_SYSTEM,4,2              ## @TTM_PL_SYSTEM
	.comm	_DRM_FILE_PAGE_OFFSET_START,4,2 ## @DRM_FILE_PAGE_OFFSET_START
	.comm	_DRM_FILE_PAGE_OFFSET_SIZE,4,2  ## @DRM_FILE_PAGE_OFFSET_SIZE
	.comm	_ttm_bo_delayed_workqueue,4,2   ## @ttm_bo_delayed_workqueue
	.comm	_ttm_global_mutex,4,2           ## @ttm_global_mutex
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ttm_bo_device_init             ; -- Begin function ttm_bo_device_init
	.p2align	2
_ttm_bo_device_init:                    ; @ttm_bo_device_init
	.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	x20, x3
	mov	x21, x2
	mov	x23, x1
	mov	x19, x0
	bl	_ttm_bo_global_init
	mov	x22, x0
	cbnz	w0, LBB0_4
; %bb.1:
	str	x23, [x19, #40]
	ldr	w0, [x19, #36]
	mov	w1, #0
	mov	w2, #4
	bl	_memset
Lloh0:
	adrp	x8, _TTM_PL_SYSTEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TTM_PL_SYSTEM@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_ttm_bo_init_mm
	mov	x22, x0
	cmp	w0, #0
	cset	w0, ne
	bl	_unlikely
	cbz	x0, LBB0_3
; %bb.2:
	bl	_ttm_bo_global_release
	b	LBB0_4
LBB0_3:
	add	x0, x19, #32
Lloh3:
	adrp	x8, _DRM_FILE_PAGE_OFFSET_START@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DRM_FILE_PAGE_OFFSET_START@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _DRM_FILE_PAGE_OFFSET_SIZE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DRM_FILE_PAGE_OFFSET_SIZE@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	bl	_drm_vma_offset_manager_init
	add	x0, x19, #28
Lloh9:
	adrp	x8, _ttm_bo_delayed_workqueue@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ttm_bo_delayed_workqueue@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	bl	_INIT_DELAYED_WORK
	add	x0, x19, #24
	bl	_INIT_LIST_HEAD
Lloh12:
	adrp	x22, _ttm_bo_glob@GOTPAGE
Lloh13:
	ldr	x22, [x22, _ttm_bo_glob@GOTPAGEOFF]
	stp	x22, x21, [x19, #8]
	str	w20, [x19]
Lloh14:
	adrp	x20, _ttm_global_mutex@GOTPAGE
Lloh15:
	ldr	x20, [x20, _ttm_global_mutex@GOTPAGEOFF]
	mov	x0, x20
	bl	_mutex_lock
	add	x0, x19, #4
	mov	x1, x22
	bl	_list_add_tail
	mov	x0, x20
	bl	_mutex_unlock
	mov	w22, #0
LBB0_4:
	mov	x0, x22
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ttm_bo_glob,4,2                ; @ttm_bo_glob
	.comm	_TTM_PL_SYSTEM,4,2              ; @TTM_PL_SYSTEM
	.comm	_DRM_FILE_PAGE_OFFSET_START,4,2 ; @DRM_FILE_PAGE_OFFSET_START
	.comm	_DRM_FILE_PAGE_OFFSET_SIZE,4,2  ; @DRM_FILE_PAGE_OFFSET_SIZE
	.comm	_ttm_bo_delayed_workqueue,4,2   ; @ttm_bo_delayed_workqueue
	.comm	_ttm_global_mutex,4,2           ; @ttm_global_mutex
.subsections_via_symbols
