	.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, %r13
	movq	%rdx, %rbx
	movq	(%rdx), %r14
	testq	%r14, %r14
	jne	LBB0_2
## %bb.1:
	movq	(%rdi), %r14
LBB0_2:
	movq	8(%rdi), %r15
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$4, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r12
	leaq	4(%r15), %rcx
	movq	_TTM_PL_FLAG_TOPDOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	8(%rbx), %eax
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	jne	LBB0_5
## %bb.6:
	movq	_DRM_MM_INSERT_BEST@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	jmp	LBB0_10
LBB0_5:
	movq	_DRM_MM_INSERT_HIGH@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	callq	_spin_lock
	movl	16(%r13), %ecx
	movl	20(%r13), %edx
	movl	12(%rbx), %r9d
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	xorl	%r8d, %r8d
	pushq	-56(%rbp)                       ## 8-byte Folded Reload
	pushq	%r14
	callq	_drm_mm_insert_node_in_range
	addq	$16, %rsp
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_spin_unlock
	movl	%ebx, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	%r12, %rdi
	callq	_kfree
	jmp	LBB0_10
LBB0_9:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%r12, 8(%rcx)
	movl	(%r12), %eax
	movl	%eax, (%rcx)
LBB0_10:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_DRM_MM_INSERT_BEST,4,2         ## @DRM_MM_INSERT_BEST
	.comm	_TTM_PL_FLAG_TOPDOWN,4,2        ## @TTM_PL_FLAG_TOPDOWN
	.comm	_DRM_MM_INSERT_HIGH,4,2         ## @DRM_MM_INSERT_HIGH
	.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	x23, x2
	ldr	x21, [x2]
	cbnz	x21, LBB0_2
; %bb.1:
	ldr	x21, [x0]
LBB0_2:
	ldr	x22, [x0, #8]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #4
	bl	_kzalloc
	cbz	x0, LBB0_5
; %bb.3:
	mov	x20, x0
	add	x24, x22, #4
	ldr	w8, [x23, #8]
Lloh3:
	adrp	x9, _TTM_PL_FLAG_TOPDOWN@GOTPAGE
Lloh4:
	ldr	x9, [x9, _TTM_PL_FLAG_TOPDOWN@GOTPAGEOFF]
Lloh5:
	adrp	x10, _DRM_MM_INSERT_BEST@GOTPAGE
Lloh6:
	ldr	x10, [x10, _DRM_MM_INSERT_BEST@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
Lloh8:
	adrp	x11, _DRM_MM_INSERT_HIGH@GOTPAGE
Lloh9:
	ldr	x11, [x11, _DRM_MM_INSERT_HIGH@GOTPAGEOFF]
	tst	w9, w8
	csel	x8, x10, x11, eq
	ldr	w25, [x8]
	mov	x0, x22
	bl	_spin_lock
	ldp	w3, w2, [x19, #16]
	ldr	w5, [x23, #12]
	mov	x0, x24
	mov	x1, x20
	mov	w4, #0
	mov	x6, x21
	mov	x7, x25
	bl	_drm_mm_insert_node_in_range
	mov	x21, x0
	mov	x0, x22
	bl	_spin_unlock
	mov	x0, x21
	bl	_unlikely
	cbz	x0, LBB0_6
; %bb.4:
	mov	x0, x20
	bl	_kfree
	mov	w0, #0
	b	LBB0_7
LBB0_5:
Lloh10:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_7
LBB0_6:
	str	x20, [x19, #8]
	ldr	w8, [x20]
	str	w8, [x19]
LBB0_7:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_DRM_MM_INSERT_BEST,4,2         ; @DRM_MM_INSERT_BEST
	.comm	_TTM_PL_FLAG_TOPDOWN,4,2        ; @TTM_PL_FLAG_TOPDOWN
	.comm	_DRM_MM_INSERT_HIGH,4,2         ; @DRM_MM_INSERT_HIGH
	.no_dead_strip	_ttm_bo_man_get_node
.subsections_via_symbols
