	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ttm_bo_init_reserved           ## -- Begin function ttm_bo_init_reserved
	.p2align	4, 0x90
_ttm_bo_init_reserved:                  ## @ttm_bo_init_reserved
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, -56(%rbp)                 ## 4-byte Spill
	movq	%r8, %r12
	movl	%ecx, %r14d
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r15
	movq	48(%rbp), %rbx
	movq	24(%rbp), %rsi
	movq	16(%rbp), %rdx
	movq	(%rdi), %rax
	movq	8(%rax), %r13
	movq	%r13, %rdi
	callq	_ttm_mem_global_alloc
	testl	%eax, %eax
	je	LBB0_6
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_pr_err
	testq	%rbx, %rbx
	je	LBB0_3
## %bb.2:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	*%rbx
	jmp	LBB0_4
LBB0_6:
	movl	%r14d, -52(%rbp)                ## 4-byte Spill
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax), %r14
	decq	%r14
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shrq	%cl, %r14
	testq	%r14, %r14
	je	LBB0_7
## %bb.11:
	testq	%rbx, %rbx
	jne	LBB0_13
## %bb.12:
	movq	_ttm_bo_default_destroy@GOTPCREL(%rip), %rbx
LBB0_13:
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	movq	%rbx, (%r13)
	leaq	164(%r13), %rdi
	callq	_kref_init
	leaq	160(%r13), %rdi
	callq	_kref_init
	leaq	156(%r13), %rdi
	xorl	%esi, %esi
	callq	_atomic_set
	leaq	152(%r13), %rdi
	callq	_INIT_LIST_HEAD
	leaq	148(%r13), %rdi
	callq	_INIT_LIST_HEAD
	leaq	144(%r13), %rdi
	callq	_INIT_LIST_HEAD
	leaq	140(%r13), %rdi
	callq	_INIT_LIST_HEAD
	leaq	136(%r13), %rdi
	callq	_mutex_init
	movq	%r15, 112(%r13)
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 8(%r13)
	movq	%r14, 16(%r13)
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movq	%r14, %rax
	shlq	%cl, %rax
	movq	%rax, 32(%r13)
	movq	_TTM_PL_SYSTEM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 88(%r13)
	movq	%r14, 40(%r13)
	movq	$0, 80(%r13)
	movl	-56(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 72(%r13)
	movl	$0, 56(%r13)
	movq	$0, 64(%r13)
	movq	$0, 128(%r13)
	movq	_TTM_PL_FLAG_SYSTEM@GOTPCREL(%rip), %rax
	movq	_TTM_PL_FLAG_CACHED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, 48(%r13)
	movq	24(%rbp), %rax
	movq	%rax, 24(%r13)
	movq	32(%rbp), %rax
	movq	%rax, 120(%r13)
	movq	40(%rbp), %rdi
	testq	%rdi, %rdi
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	je	LBB0_15
## %bb.14:
	movq	%rdi, 96(%r13)
	movq	%rdi, %r14
	callq	_dma_resv_assert_held
	jmp	LBB0_16
LBB0_3:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_kfree
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_5:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_32:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	leaq	L_.str.1(%rip), %rdi
	callq	_pr_err
	testq	%rbx, %rbx
	je	LBB0_9
## %bb.8:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	*%rbx
	jmp	LBB0_10
LBB0_15:
	movq	%rdi, %r14
	leaq	108(%r13), %rax
	movq	%rax, 96(%r13)
LBB0_16:
	movq	%r12, %r15
	movq	16(%rbp), %r12
	movq	%r13, %rdi
	callq	_ttm_bo_uses_embedded_gem_object
	testl	%eax, %eax
	jne	LBB0_18
## %bb.17:
	leaq	108(%r13), %rdi
	callq	_dma_resv_init
	leaq	104(%r13), %rdi
	callq	_drm_vma_node_reset
LBB0_18:
	movq	112(%r13), %rax
	movq	(%rax), %rdi
	addq	$4, %rdi
	callq	_atomic_inc
	movslq	8(%r13), %rax
	movq	_ttm_bo_type_device@GOTPCREL(%rip), %rcx
	cmpq	%rax, (%rcx)
	je	LBB0_20
## %bb.19:
	xorl	%ebx, %ebx
	movq	_ttm_bo_type_sg@GOTPCREL(%rip), %rcx
	cmpq	%rax, (%rcx)
	jne	LBB0_21
LBB0_20:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	leaq	8(%rax), %rdi
	leaq	104(%r13), %rsi
	movq	40(%r13), %rdx
	callq	_drm_vma_offset_add
	movl	%eax, %ebx
LBB0_21:
	testq	%r14, %r14
	jne	LBB0_23
## %bb.22:
	movq	96(%r13), %rdi
	callq	_dma_resv_trylock
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_WARN_ON
LBB0_23:
	xorl	%edi, %edi
	testl	%ebx, %ebx
	sete	%dil
	callq	_likely
	testq	%rax, %rax
	je	LBB0_25
## %bb.24:
	movq	%r13, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	callq	_ttm_bo_validate
	movl	%eax, %ebx
LBB0_25:
	movl	%ebx, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_29
## %bb.26:
	testq	%r14, %r14
	jne	LBB0_28
## %bb.27:
	movq	%r13, %rdi
	callq	_ttm_bo_unreserve
LBB0_28:
	movq	%r13, %rdi
	callq	_ttm_bo_put
	jmp	LBB0_32
LBB0_29:
	testq	%r14, %r14
	je	LBB0_32
## %bb.30:
	movq	_TTM_PL_FLAG_NO_EVICT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 48(%r13)
	jne	LBB0_32
## %bb.31:
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	(%r14), %rdi
	callq	_spin_lock
	movq	%r13, %rdi
	callq	_ttm_bo_add_to_lru
	movq	(%r14), %rdi
	callq	_spin_unlock
	jmp	LBB0_32
LBB0_9:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_kfree
LBB0_10:
	movq	24(%rbp), %rsi
	movq	%r13, %rdi
	callq	_ttm_mem_global_free
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Out of kernel memory\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_PAGE_SIZE,8,3                  ## @PAGE_SIZE
	.comm	_PAGE_SHIFT,8,3                 ## @PAGE_SHIFT
L_.str.1:                               ## @.str.1
	.asciz	"Illegal buffer object size\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_TTM_PL_SYSTEM,4,2              ## @TTM_PL_SYSTEM
	.comm	_TTM_PL_FLAG_SYSTEM,4,2         ## @TTM_PL_FLAG_SYSTEM
	.comm	_TTM_PL_FLAG_CACHED,4,2         ## @TTM_PL_FLAG_CACHED
	.comm	_ttm_bo_type_device,8,3         ## @ttm_bo_type_device
	.comm	_ttm_bo_type_sg,8,3             ## @ttm_bo_type_sg
	.comm	_TTM_PL_FLAG_NO_EVICT,4,2       ## @TTM_PL_FLAG_NO_EVICT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ttm_bo_init_reserved           ; -- Begin function ttm_bo_init_reserved
	.p2align	2
_ttm_bo_init_reserved:                  ; @ttm_bo_init_reserved
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x24, x7
	mov	x21, x6
	mov	x25, x5
	mov	x28, x4
	mov	x26, x3
	mov	x27, x2
	mov	x19, x1
	mov	x20, x0
	ldr	x22, [x29, #32]
	ldr	x8, [x0]
	ldr	x23, [x8, #8]
	mov	x0, x23
	mov	x1, x7
	mov	x2, x6
	bl	_ttm_mem_global_alloc
	cbz	w0, LBB0_3
; %bb.1:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
	mov	x0, x19
	cbz	x22, LBB0_6
; %bb.2:
	blr	x22
	b	LBB0_7
LBB0_3:
	str	x28, [sp, #8]                   ; 8-byte Folded Spill
Lloh2:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	add	x8, x27, x8
	sub	x8, x8, #1
Lloh5:
	adrp	x28, _PAGE_SHIFT@GOTPAGE
Lloh6:
	ldr	x28, [x28, _PAGE_SHIFT@GOTPAGEOFF]
	ldr	x9, [x28]
	lsr	x27, x8, x9
	cbz	x27, LBB0_10
; %bb.4:
	ldp	x8, x23, [x29, #16]
	str	x8, [sp]                        ; 8-byte Folded Spill
Lloh7:
	adrp	x8, _ttm_bo_default_destroy@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ttm_bo_default_destroy@GOTPAGEOFF]
	cmp	x22, #0
	csel	x8, x8, x22, eq
	str	x8, [x19]
	add	x0, x19, #164
	bl	_kref_init
	add	x0, x19, #160
	bl	_kref_init
	add	x0, x19, #156
	mov	w1, #0
	bl	_atomic_set
	add	x0, x19, #152
	bl	_INIT_LIST_HEAD
	add	x0, x19, #148
	bl	_INIT_LIST_HEAD
	add	x0, x19, #144
	bl	_INIT_LIST_HEAD
	add	x0, x19, #140
	bl	_INIT_LIST_HEAD
	add	x0, x19, #136
	bl	_mutex_init
	str	w26, [x19, #8]
	ldr	x8, [x28]
	lsl	x8, x27, x8
Lloh9:
	adrp	x9, _TTM_PL_SYSTEM@GOTPAGE
Lloh10:
	ldr	x9, [x9, _TTM_PL_SYSTEM@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	str	w9, [x19, #88]
	stp	x8, x27, [x19, #32]
	str	xzr, [x19, #80]
	str	w25, [x19, #72]
	str	wzr, [x19, #56]
	str	xzr, [x19, #64]
	str	xzr, [x19, #128]
Lloh12:
	adrp	x8, _TTM_PL_FLAG_SYSTEM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _TTM_PL_FLAG_SYSTEM@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _TTM_PL_FLAG_CACHED@GOTPAGE
Lloh16:
	ldr	x9, [x9, _TTM_PL_FLAG_CACHED@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x19, #48]
	stp	x27, x24, [x19, #16]
	ldr	x8, [sp]                        ; 8-byte Folded Reload
	stp	x20, x8, [x19, #112]
	cbz	x23, LBB0_12
; %bb.5:
	str	x23, [x19, #96]
	mov	x0, x23
	bl	_dma_resv_assert_held
	b	LBB0_13
LBB0_6:
	bl	_kfree
LBB0_7:
Lloh18:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	neg	w24, w8
LBB0_9:
	mov	x0, x24
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_10:
Lloh20:
	adrp	x0, l_.str.1@PAGE
Lloh21:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_err
	mov	x0, x19
	cbz	x22, LBB0_29
; %bb.11:
	blr	x22
	b	LBB0_30
LBB0_12:
	add	x8, x19, #108
	str	x8, [x19, #96]
LBB0_13:
	ldr	x22, [sp, #8]                   ; 8-byte Folded Reload
	mov	x0, x19
	bl	_ttm_bo_uses_embedded_gem_object
	cbnz	w0, LBB0_15
; %bb.14:
	add	x0, x19, #108
	bl	_dma_resv_init
	add	x0, x19, #104
	bl	_drm_vma_node_reset
LBB0_15:
	ldr	x8, [x19, #112]
	ldr	x8, [x8]
	add	x0, x8, #4
	bl	_atomic_inc
	ldrsw	x8, [x19, #8]
Lloh22:
	adrp	x9, _ttm_bo_type_device@GOTPAGE
Lloh23:
	ldr	x9, [x9, _ttm_bo_type_device@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	cmp	x9, x8
	b.eq	LBB0_18
; %bb.16:
Lloh25:
	adrp	x9, _ttm_bo_type_sg@GOTPAGE
Lloh26:
	ldr	x9, [x9, _ttm_bo_type_sg@GOTPAGEOFF]
Lloh27:
	ldr	x9, [x9]
	cmp	x9, x8
	b.eq	LBB0_18
; %bb.17:
	mov	w24, #0
	cbnz	x23, LBB0_20
	b	LBB0_19
LBB0_18:
	add	x0, x20, #8
	add	x1, x19, #104
	ldr	x2, [x19, #40]
	bl	_drm_vma_offset_add
	mov	x24, x0
	cbnz	x23, LBB0_20
LBB0_19:
	ldr	x0, [x19, #96]
	bl	_dma_resv_trylock
	cmp	w0, #0
	cset	w0, eq
	bl	_WARN_ON
LBB0_20:
	cmp	w24, #0
	cset	w0, eq
	bl	_likely
	cbz	x0, LBB0_22
; %bb.21:
	mov	x0, x19
	mov	x1, x22
	mov	x2, x21
	bl	_ttm_bo_validate
	mov	x24, x0
LBB0_22:
	mov	x0, x24
	bl	_unlikely
	cbz	x0, LBB0_26
; %bb.23:
	cbnz	x23, LBB0_25
; %bb.24:
	mov	x0, x19
	bl	_ttm_bo_unreserve
LBB0_25:
	mov	x0, x19
	bl	_ttm_bo_put
	b	LBB0_9
LBB0_26:
	cbz	x23, LBB0_9
; %bb.27:
	ldr	w8, [x19, #48]
Lloh28:
	adrp	x9, _TTM_PL_FLAG_NO_EVICT@GOTPAGE
Lloh29:
	ldr	x9, [x9, _TTM_PL_FLAG_NO_EVICT@GOTPAGEOFF]
Lloh30:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_9
; %bb.28:
	ldr	x0, [x20]
	bl	_spin_lock
	mov	x0, x19
	bl	_ttm_bo_add_to_lru
	ldr	x0, [x20]
	bl	_spin_unlock
	b	LBB0_9
LBB0_29:
	bl	_kfree
LBB0_30:
	mov	x0, x23
	mov	x1, x24
	bl	_ttm_mem_global_free
Lloh31:
	adrp	x8, _EINVAL@GOTPAGE
Lloh32:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_8
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Out of kernel memory\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_PAGE_SIZE,8,3                  ; @PAGE_SIZE
	.comm	_PAGE_SHIFT,8,3                 ; @PAGE_SHIFT
l_.str.1:                               ; @.str.1
	.asciz	"Illegal buffer object size\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_TTM_PL_SYSTEM,4,2              ; @TTM_PL_SYSTEM
	.comm	_TTM_PL_FLAG_SYSTEM,4,2         ; @TTM_PL_FLAG_SYSTEM
	.comm	_TTM_PL_FLAG_CACHED,4,2         ; @TTM_PL_FLAG_CACHED
	.comm	_ttm_bo_type_device,8,3         ; @ttm_bo_type_device
	.comm	_ttm_bo_type_sg,8,3             ; @ttm_bo_type_sg
	.comm	_TTM_PL_FLAG_NO_EVICT,4,2       ; @TTM_PL_FLAG_NO_EVICT
.subsections_via_symbols
