	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ttm_bo_mem_space_debug
_ttm_bo_mem_space_debug:                ## @ttm_bo_mem_space_debug
	.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	%rsi, %rbx
	movq	%rdi, %r14
	movq	_TTM_PFX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_drm_debug_printer
	movl	%eax, -48(%rbp)
	movl	4(%r14), %r9d
	movl	8(%r14), %ecx
	movl	%r9d, %r8d
	sarl	$10, %r8d
	sarl	$20, %r9d
	leaq	L_.str(%rip), %rsi
	leaq	-48(%rbp), %rdi
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_drm_printf
	cmpl	$0, (%rbx)
	jle	LBB0_4
## %bb.1:
	leaq	-48(%rbp), %r13
	xorl	%r15d, %r15d
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rbx), %rdi
	addq	%r15, %rdi
	leaq	-52(%rbp), %rsi
	callq	_ttm_mem_type_from_place
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%rbx), %rax
	movl	(%rax,%r15), %ecx
	movl	-52(%rbp), %r8d
	movq	%r13, %rdi
	leaq	L_.str.1(%rip), %rsi
	movl	%r12d, %edx
	xorl	%eax, %eax
	callq	_drm_printf
	movl	(%r14), %edi
	movl	-52(%rbp), %edx
	movq	%r13, %rsi
	callq	_ttm_mem_type_debug
	incq	%r12
	movslq	(%rbx), %rax
	addq	$4, %r15
	cmpq	%rax, %r12
	jl	LBB0_2
LBB0_4:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TTM_PFX,4,2                    ## @TTM_PFX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No space for %p (%lu pages, %luK, %luM)\n"

L_.str.1:                               ## @.str.1
	.asciz	"  placement[%d]=0x%08X (%d)\n"

	.no_dead_strip	_ttm_bo_mem_space_debug
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ttm_bo_mem_space_debug
_ttm_bo_mem_space_debug:                ; @ttm_bo_mem_space_debug
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	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
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _TTM_PFX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TTM_PFX@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_drm_debug_printer
	str	w0, [sp, #40]
	ldp	w8, w9, [x20, #4]
	asr	w10, w8, #10
	asr	w8, w8, #20
	stp	x10, x8, [sp, #16]
	stp	x20, x9, [sp]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	add	x0, sp, #40
	bl	_drm_printf
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.1:
	mov	x22, #0
	mov	x23, #0
Lloh5:
	adrp	x21, l_.str.1@PAGE
Lloh6:
	add	x21, x21, l_.str.1@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	add	x0, x8, x22
	add	x1, sp, #36
	bl	_ttm_mem_type_from_place
	cbnz	w0, LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x19, #8]
	ldr	w8, [x8, x22]
	ldr	w9, [sp, #36]
	stp	x8, x9, [sp, #8]
	mov	x9, x23
	str	x9, [sp]
	add	x0, sp, #40
	mov	x1, x21
	bl	_drm_printf
	ldr	w0, [x20]
	ldr	w2, [sp, #36]
	add	x1, sp, #40
	bl	_ttm_mem_type_debug
	add	x23, x23, #1
	ldrsw	x8, [x19]
	add	x22, x22, #4
	cmp	x23, x8
	b.lt	LBB0_2
LBB0_4:
	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
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_TTM_PFX,4,2                    ; @TTM_PFX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No space for %p (%lu pages, %luK, %luM)\n"

l_.str.1:                               ; @.str.1
	.asciz	"  placement[%d]=0x%08X (%d)\n"

	.no_dead_strip	_ttm_bo_mem_space_debug
.subsections_via_symbols
