	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ttm_bo_move_ttm                ## -- Begin function ttm_bo_move_ttm
	.p2align	4, 0x90
_ttm_bo_move_ttm:                       ## @ttm_bo_move_ttm
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %r13
	movq	(%rdi), %rax
	movq	24(%rdi), %r12
	movq	_TTM_PL_SYSTEM@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_5
## %bb.1:
	movl	(%r15), %edx
	movl	4(%r15), %esi
	movq	%r13, %rdi
	callq	_ttm_bo_wait
	movl	%eax, %ebx
	xorl	%edi, %edi
	testl	%eax, %eax
	setne	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	_ERESTARTSYS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%ebx, %eax
	je	LBB0_9
## %bb.3:
	leaq	L_.str(%rip), %rdi
	callq	_pr_err
	jmp	LBB0_9
LBB0_4:
	movq	%r12, %rdi
	callq	_ttm_tt_unbind
	movq	%r13, %rdi
	callq	_ttm_bo_free_old_node
	leaq	16(%r13), %rdi
	movq	_TTM_PL_FLAG_SYSTEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_TTM_PL_MASK_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_ttm_flag_masked
	movq	_TTM_PL_SYSTEM@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r13)
LBB0_5:
	movl	16(%r14), %esi
	movq	%r12, %rdi
	callq	_ttm_tt_set_placement_caching
	movl	%eax, %ebx
	xorl	%edi, %edi
	testl	%eax, %eax
	setne	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_9
## %bb.6:
	movq	(%r14), %rax
	movq	_TTM_PL_SYSTEM@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_8
## %bb.7:
	movq	%r12, %rdi
	movq	%r14, %rsi
	movq	%r15, %rdx
	callq	_ttm_tt_bind
	movl	%eax, %ebx
	xorl	%edi, %edi
	testl	%eax, %eax
	setne	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_9
LBB0_8:
	movq	16(%r14), %rax
	movq	%rax, 16(%r13)
	movups	(%r14), %xmm0
	movups	%xmm0, (%r13)
	movq	$0, 8(%r14)
	xorl	%ebx, %ebx
LBB0_9:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TTM_PL_SYSTEM,8,3              ## @TTM_PL_SYSTEM
	.comm	_ERESTARTSYS,4,2                ## @ERESTARTSYS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to expire sync object before unbinding TTM\n"

	.comm	_TTM_PL_FLAG_SYSTEM,4,2         ## @TTM_PL_FLAG_SYSTEM
	.comm	_TTM_PL_MASK_MEM,4,2            ## @TTM_PL_MASK_MEM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ttm_bo_move_ttm                ; -- Begin function ttm_bo_move_ttm
	.p2align	2
_ttm_bo_move_ttm:                       ; @ttm_bo_move_ttm
	.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	x20, x0
	ldr	x22, [x0, #24]
	ldr	x8, [x0]
Lloh0:
	adrp	x24, _TTM_PL_SYSTEM@GOTPAGE
Lloh1:
	ldr	x24, [x24, _TTM_PL_SYSTEM@GOTPAGEOFF]
	ldr	x9, [x24]
	cmp	x8, x9
	b.eq	LBB0_5
; %bb.1:
	ldp	w2, w1, [x21]
	mov	x0, x20
	bl	_ttm_bo_wait
	mov	x23, x0
	cmp	w0, #0
	cset	w0, ne
	bl	_unlikely
	cbz	x0, LBB0_4
; %bb.2:
Lloh2:
	adrp	x8, _ERESTARTSYS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ERESTARTSYS@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmn	w23, w8
	b.eq	LBB0_9
; %bb.3:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
	b	LBB0_9
LBB0_4:
	mov	x0, x22
	bl	_ttm_tt_unbind
	mov	x0, x20
	bl	_ttm_bo_free_old_node
	add	x0, x20, #16
Lloh7:
	adrp	x8, _TTM_PL_FLAG_SYSTEM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _TTM_PL_FLAG_SYSTEM@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
Lloh10:
	adrp	x8, _TTM_PL_MASK_MEM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _TTM_PL_MASK_MEM@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
	bl	_ttm_flag_masked
	ldr	x8, [x24]
	str	x8, [x20]
LBB0_5:
	ldr	w1, [x19, #16]
	mov	x0, x22
	bl	_ttm_tt_set_placement_caching
	mov	x23, x0
	cmp	w0, #0
	cset	w0, ne
	bl	_unlikely
	cbnz	x0, LBB0_9
; %bb.6:
	ldr	x8, [x19]
	ldr	x9, [x24]
	cmp	x8, x9
	b.eq	LBB0_8
; %bb.7:
	mov	x0, x22
	mov	x1, x19
	mov	x2, x21
	bl	_ttm_tt_bind
	mov	x23, x0
	cmp	w0, #0
	cset	w0, ne
	bl	_unlikely
	cbnz	x0, LBB0_9
LBB0_8:
	mov	w23, #0
	ldr	q0, [x19]
	ldr	x8, [x19, #16]
	str	x8, [x20, #16]
	str	q0, [x20]
	str	xzr, [x19, #8]
LBB0_9:
	mov	x0, x23
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_TTM_PL_SYSTEM,8,3              ; @TTM_PL_SYSTEM
	.comm	_ERESTARTSYS,4,2                ; @ERESTARTSYS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to expire sync object before unbinding TTM\n"

	.comm	_TTM_PL_FLAG_SYSTEM,4,2         ; @TTM_PL_FLAG_SYSTEM
	.comm	_TTM_PL_MASK_MEM,4,2            ; @TTM_PL_MASK_MEM
.subsections_via_symbols
