	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ttm_buffer_object_transfer
_ttm_buffer_object_transfer:            ## @ttm_buffer_object_transfer
	.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, %r14
	movq	%rdi, %r12
	movq	72(%rdi), %r15
	movq	8(%r15), %r13
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$80, %edi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movups	64(%r12), %xmm0
	movups	%xmm0, 64(%rax)
	movups	(%r12), %xmm0
	movups	16(%r12), %xmm1
	movups	32(%r12), %xmm2
	movups	48(%r12), %xmm3
	movups	%xmm3, 48(%rax)
	movups	%xmm2, 32(%rax)
	movups	%xmm1, 16(%rax)
	movups	%xmm0, (%rax)
	leaq	32(%rax), %r14
	leaq	48(%rax), %r13
	leaq	64(%rax), %rdi
	callq	_init_waitqueue_head
	leaq	60(%rbx), %rdi
	callq	_INIT_LIST_HEAD
	leaq	56(%rbx), %rdi
	callq	_INIT_LIST_HEAD
	leaq	52(%rbx), %rdi
	callq	_INIT_LIST_HEAD
	movq	%r13, %rdi
	callq	_INIT_LIST_HEAD
	movq	$0, 40(%rbx)
	xorl	%r13d, %r13d
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_atomic_set
	movq	%r15, %rdi
	callq	_spin_lock
	movq	24(%r12), %rdi
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.4:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	callq	*(%rax)
	jmp	LBB0_5
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	jmp	LBB0_6
LBB0_3:
	xorl	%eax, %eax
LBB0_5:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	%rax, 24(%rbx)
	movq	%r15, %rdi
	callq	_spin_unlock
	leaq	20(%rbx), %rdi
	callq	_kref_init
	movq	%rbx, %rdi
	addq	$16, %rdi
	callq	_kref_init
	movq	_ttm_transfered_destroy@GOTPCREL(%rip), %rax
	movq	%rax, 8(%rbx)
	movq	$0, (%rbx)
	movq	%rbx, (%r14)
LBB0_6:
	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	_ttm_transfered_destroy,4,2     ## @ttm_transfered_destroy
	.no_dead_strip	_ttm_buffer_object_transfer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ttm_buffer_object_transfer
_ttm_buffer_object_transfer:            ; @ttm_buffer_object_transfer
	.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, x1
	mov	x22, x0
	ldr	x21, [x0, #72]
	ldr	x25, [x21, #8]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #80
	bl	_kmalloc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x20, x0
	ldr	q0, [x22]
	str	q0, [x0]
	ldp	q0, q1, [x22, #16]
	ldp	q2, q3, [x22, #48]
	stp	q2, q3, [x0, #48]
	stp	q0, q1, [x0, #16]
	add	x23, x0, #32
	add	x24, x0, #48
	add	x0, x0, #64
	bl	_init_waitqueue_head
	add	x0, x20, #60
	bl	_INIT_LIST_HEAD
	add	x0, x20, #56
	bl	_INIT_LIST_HEAD
	add	x0, x20, #52
	bl	_INIT_LIST_HEAD
	mov	x0, x24
	bl	_INIT_LIST_HEAD
	str	xzr, [x20, #40]
	mov	x0, x23
	mov	w1, #0
	bl	_atomic_set
	mov	x0, x21
	bl	_spin_lock
	ldr	x0, [x22, #24]
	cbz	x0, LBB0_3
; %bb.2:
	ldr	x8, [x25]
	blr	x8
LBB0_3:
	str	x0, [x20, #24]
	mov	x0, x21
	bl	_spin_unlock
	add	x0, x20, #20
	bl	_kref_init
	add	x0, x20, #16
	bl	_kref_init
	mov	w0, #0
Lloh3:
	adrp	x8, _ttm_transfered_destroy@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ttm_transfered_destroy@GOTPAGEOFF]
	stp	xzr, x8, [x20]
	str	x20, [x19]
	b	LBB0_5
LBB0_4:
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	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	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ttm_transfered_destroy,4,2     ; @ttm_transfered_destroy
	.no_dead_strip	_ttm_buffer_object_transfer
.subsections_via_symbols
