	.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	%r8d, %r14d
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	%rdx, %rbx
	movq	%rsi, %r12
	movq	%rdi, %r15
	addq	$72, %rdi
	callq	_rwlock_init
	movq	%rbx, 64(%r15)
	movl	56(%r15), %edi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movq	_TTM_PL_SYSTEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_ttm_bo_init_mm
	movl	%eax, %r13d
	xorl	%edi, %edi
	testl	%eax, %eax
	setne	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_4
## %bb.1:
	movq	_RB_ROOT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 52(%r15)
	leaq	48(%r15), %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	$268435456, %edx                ## imm = 0x10000000
	callq	_drm_mm_init
	movl	%eax, %r13d
	xorl	%edi, %edi
	testl	%eax, %eax
	setne	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_ttm_bo_clean_mm
	jmp	LBB0_4
LBB0_2:
	leaq	44(%r15), %rdi
	movq	_ttm_bo_delayed_workqueue@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_DELAYED_WORK
	leaq	40(%r15), %rdi
	callq	_INIT_LIST_HEAD
	movq	$0, 32(%r15)
	movq	%r12, 24(%r15)
	movl	%r14d, (%r15)
	movq	$0, 16(%r15)
	leaq	8(%r15), %rdi
	callq	_spin_lock_init
	movq	%r12, %rdi
	callq	_mutex_lock
	addq	$4, %r15
	leaq	4(%r12), %rsi
	movq	%r15, %rdi
	callq	_list_add_tail
	movq	%r12, %rdi
	callq	_mutex_unlock
	xorl	%r13d, %r13d
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	_EINVAL,4,2                     ## @EINVAL
	.comm	_TTM_PL_SYSTEM,4,2              ## @TTM_PL_SYSTEM
	.comm	_RB_ROOT,4,2                    ## @RB_ROOT
	.comm	_ttm_bo_delayed_workqueue,4,2   ## @ttm_bo_delayed_workqueue
.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	x21, x4
	mov	x22, x3
	mov	x23, x2
	mov	x19, x1
	mov	x20, x0
	add	x0, x0, #72
	bl	_rwlock_init
	str	x23, [x20, #64]
	ldr	w0, [x20, #56]
	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, x20
	mov	w2, #0
	bl	_ttm_bo_init_mm
	mov	x23, x0
	cmp	w0, #0
	cset	w0, ne
	bl	_unlikely
	cbnz	x0, LBB0_4
; %bb.1:
Lloh3:
	adrp	x8, _RB_ROOT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RB_ROOT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x20, #52]
	add	x0, x20, #48
	mov	x1, x22
	mov	w2, #268435456
	bl	_drm_mm_init
	mov	x23, x0
	cmp	w0, #0
	cset	w0, ne
	bl	_unlikely
	cbz	x0, LBB0_3
; %bb.2:
	mov	x0, x20
	mov	w1, #0
	bl	_ttm_bo_clean_mm
	b	LBB0_4
LBB0_3:
	add	x0, x20, #44
Lloh6:
	adrp	x8, _ttm_bo_delayed_workqueue@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ttm_bo_delayed_workqueue@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_INIT_DELAYED_WORK
	add	x0, x20, #40
	bl	_INIT_LIST_HEAD
	stp	x19, xzr, [x20, #24]
	str	w21, [x20]
	add	x0, x20, #8
	str	xzr, [x20, #16]
	bl	_spin_lock_init
	mov	x0, x19
	bl	_mutex_lock
	add	x0, x20, #4
	add	x1, x19, #4
	bl	_list_add_tail
	mov	x0, x19
	bl	_mutex_unlock
	mov	w23, #0
LBB0_4:
	mov	x0, x23
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_TTM_PL_SYSTEM,4,2              ; @TTM_PL_SYSTEM
	.comm	_RB_ROOT,4,2                    ; @RB_ROOT
	.comm	_ttm_bo_delayed_workqueue,4,2   ; @ttm_bo_delayed_workqueue
.subsections_via_symbols
