	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ttm_bo_man_get_node
_ttm_bo_man_get_node:                   ## @ttm_bo_man_get_node
	.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	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	8(%rdi), %r15
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	(%rdx), %r12
	testq	%r12, %r12
	jne	LBB0_2
## %bb.1:
	movq	(%rdi), %r12
LBB0_2:
	leaq	4(%r15), %rbx
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_drm_mm_pre_get
	movl	%eax, %r13d
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_9
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r15, %rdi
	callq	_spin_lock
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	movl	16(%r13), %edx
	movl	20(%r13), %esi
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movl	8(%r14), %ecx
	movq	%rbx, %rdi
	movq	%r12, %r8
	movl	$1, %r9d
	callq	_drm_mm_search_free_in_range
	movq	%r15, %rbx
	movq	%rax, %r15
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	16(%r13), %edx
	movl	20(%r13), %esi
	movl	8(%r14), %ecx
	movq	%r15, %rdi
	movq	%r12, %r8
	callq	_drm_mm_get_block_atomic_range
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_spin_unlock
	testq	%r14, %r14
	movq	%rbx, %r15
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_3
## %bb.7:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%r14, 8(%rcx)
	movl	(%r14), %eax
	movl	%eax, (%rcx)
	jmp	LBB0_8
LBB0_5:
	movq	%rbx, %rdi
	callq	_spin_unlock
LBB0_8:
	xorl	%r13d, %r13d
LBB0_9:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_ttm_bo_man_get_node
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ttm_bo_man_get_node
_ttm_bo_man_get_node:                   ; @ttm_bo_man_get_node
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x3
	mov	x21, x2
	ldr	x20, [x0, #8]
	add	x22, x20, #4
	ldr	x23, [x2]
	cbnz	x23, LBB0_2
; %bb.1:
	ldr	x23, [x0]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	bl	_drm_mm_pre_get
	mov	x24, x0
	bl	_unlikely
	cbnz	x0, LBB0_7
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x20
	bl	_spin_lock
	ldp	w2, w1, [x19, #16]
	ldr	w3, [x21, #8]
	mov	x0, x22
	mov	x4, x23
	mov	w5, #1
	bl	_drm_mm_search_free_in_range
	mov	x24, x0
	cmp	x0, #0
	cset	w0, eq
	bl	_unlikely
	cbnz	x0, LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	ldp	w2, w1, [x19, #16]
	ldr	w3, [x21, #8]
	mov	x0, x24
	mov	x4, x23
	bl	_drm_mm_get_block_atomic_range
	mov	x25, x0
	mov	x0, x20
	bl	_spin_unlock
	cbz	x25, LBB0_2
; %bb.5:
	mov	w24, #0
	str	x25, [x19, #8]
	ldr	w8, [x25]
	str	w8, [x19]
	b	LBB0_7
LBB0_6:
	mov	x0, x20
	bl	_spin_unlock
	mov	w24, #0
LBB0_7:
	mov	x0, x24
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_ttm_bo_man_get_node
.subsections_via_symbols
