	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ttm_bo_init_mm                 ## -- Begin function ttm_bo_init_mm
	.p2align	4, 0x90
_ttm_bo_init_mm:                        ## @ttm_bo_init_mm
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movl	%esi, %r12d
	movq	%rdi, %r13
	movq	_TTM_NUM_MEM_TYPES@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpl	%esi, (%rax)
	setbe	%dil
	callq	_BUG_ON
	movq	8(%r13), %rbx
	movl	%r12d, %eax
	leaq	(%rax,%rax,8), %r14
	leaq	(%rbx,%r14,8), %r15
	movl	(%rbx,%r14,8), %edi
	callq	_BUG_ON
	movq	$1, 4(%rbx,%r14,8)
	leaq	(%rbx,%r14,8), %rdi
	addq	$64, %rdi
	callq	_mutex_init
	leaq	(%rbx,%r14,8), %rdi
	addq	$60, %rdi
	callq	_spin_lock_init
	leaq	(%rbx,%r14,8), %rdi
	addq	$56, %rdi
	callq	_INIT_LIST_HEAD
	movq	(%r13), %rax
	movq	%r13, %rdi
	movl	%r12d, %esi
	movq	%r15, %rdx
	callq	*(%rax)
	testl	%eax, %eax
	jne	LBB0_7
## %bb.1:
	movq	%r13, 48(%rbx,%r14,8)
	movq	_TTM_PL_SYSTEM@GOTPCREL(%rip), %rax
	cmpl	%r12d, (%rax)
	je	LBB0_3
## %bb.2:
	movq	40(%rbx,%r14,8), %rax
	movq	%r15, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	*(%rax)
	testl	%eax, %eax
	jne	LBB0_7
LBB0_3:
	movl	$1, (%r15)
	movl	$1, 12(%rbx,%r14,8)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%rax, 16(%rbx,%r14,8)
	movq	_TTM_MAX_BO_PRIORITY@GOTPCREL(%rip), %r15
	cmpl	$0, (%r15)
	je	LBB0_6
## %bb.4:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%r14,8), %r13
	addq	$32, %r13
	xorl	%ebx, %ebx
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rdi
	addq	%rbx, %rdi
	callq	_INIT_LIST_HEAD
	incq	%r12
	movl	(%r15), %eax
	addq	$4, %rbx
	cmpq	%rax, %r12
	jb	LBB0_5
LBB0_6:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	$0, 24(%rax,%r14,8)
	xorl	%eax, %eax
LBB0_7:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TTM_NUM_MEM_TYPES,4,2          ## @TTM_NUM_MEM_TYPES
	.comm	_TTM_PL_SYSTEM,4,2              ## @TTM_PL_SYSTEM
	.comm	_TTM_MAX_BO_PRIORITY,4,2        ## @TTM_MAX_BO_PRIORITY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function ttm_bo_init_mm
lCPI0_0:
	.long	1                               ; 0x1
	.long	0                               ; 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_ttm_bo_init_mm
	.p2align	2
_ttm_bo_init_mm:                        ; @ttm_bo_init_mm
	.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	x19, x2
	mov	x21, x1
	mov	x22, x0
Lloh0:
	adrp	x8, _TTM_NUM_MEM_TYPES@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TTM_NUM_MEM_TYPES@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w1
	cset	w0, ls
	bl	_BUG_ON
	ldr	x23, [x22, #8]
	mov	w8, #72
	umaddl	x20, w21, w8, x23
	ldr	w0, [x20]
	bl	_BUG_ON
Lloh3:
	adrp	x8, lCPI0_0@PAGE
Lloh4:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	stur	d0, [x20, #4]
	add	x0, x20, #64
	bl	_mutex_init
	add	x0, x20, #60
	bl	_spin_lock_init
	add	x0, x20, #56
	bl	_INIT_LIST_HEAD
	ldr	x8, [x22]
	ldr	x8, [x8]
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	blr	x8
	cbnz	w0, LBB0_7
; %bb.1:
	mov	w24, w21
	mov	w8, #72
	madd	x8, x24, x8, x23
	str	x22, [x8, #48]
Lloh5:
	adrp	x8, _TTM_PL_SYSTEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _TTM_PL_SYSTEM@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmp	w8, w21
	b.eq	LBB0_3
; %bb.2:
	mov	w8, #72
	madd	x8, x24, x8, x23
	ldr	x8, [x8, #40]
	ldr	x8, [x8]
	mov	x0, x20
	mov	x1, x19
	blr	x8
	cbnz	w0, LBB0_7
LBB0_3:
	mov	w8, #1
	str	w8, [x20]
	mov	w9, #72
	madd	x9, x24, x9, x23
	str	w8, [x9, #12]
	str	x19, [x9, #16]
Lloh8:
	adrp	x19, _TTM_MAX_BO_PRIORITY@GOTPAGE
Lloh9:
	ldr	x19, [x19, _TTM_MAX_BO_PRIORITY@GOTPAGEOFF]
	ldr	w8, [x19]
	cbz	w8, LBB0_6
; %bb.4:
	mov	x20, #0
	mov	x21, #0
	mov	w8, #72
	madd	x8, x24, x8, x23
	add	x22, x8, #32
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22]
	add	x0, x8, x20
	bl	_INIT_LIST_HEAD
	add	x21, x21, #1
	ldr	w8, [x19]
	add	x20, x20, #4
	cmp	x21, x8
	b.lo	LBB0_5
LBB0_6:
	mov	w0, #0
	mov	w8, #72
	madd	x8, x24, x8, x23
	str	xzr, [x8, #24]
LBB0_7:
	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 AdrpLdr	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_TTM_NUM_MEM_TYPES,4,2          ; @TTM_NUM_MEM_TYPES
	.comm	_TTM_PL_SYSTEM,4,2              ; @TTM_PL_SYSTEM
	.comm	_TTM_MAX_BO_PRIORITY,4,2        ; @TTM_MAX_BO_PRIORITY
.subsections_via_symbols
