	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ttm_tt_create                  ## -- Begin function ttm_tt_create
	.p2align	4, 0x90
_ttm_tt_create:                         ## @ttm_tt_create
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	24(%rdi), %r15
	movl	16(%rdi), %edi
	callq	_dma_resv_assert_held
	xorl	%esi, %esi
	cmpq	$0, 16(%r15)
	movl	$0, %eax
	je	LBB0_2
## %bb.1:
	movq	_TTM_PAGE_FLAG_DMA32@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_2:
	cmpq	$0, 8(%r15)
	je	LBB0_4
## %bb.3:
	movq	_TTM_PAGE_FLAG_NO_RETRY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
LBB0_4:
	orl	%eax, %esi
	movl	(%rbx), %eax
	cmpl	$128, %eax
	je	LBB0_10
## %bb.5:
	cmpl	$129, %eax
	je	LBB0_12
## %bb.6:
	cmpl	$130, %eax
	jne	LBB0_9
## %bb.7:
	testl	%r14d, %r14d
	je	LBB0_12
## %bb.8:
	movq	_TTM_PAGE_FLAG_ZERO_ALLOC@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_10:
	movq	_TTM_PAGE_FLAG_SG@GOTPCREL(%rip), %rax
LBB0_11:
	orl	(%rax), %esi
LBB0_12:
	movq	(%r15), %rax
	movq	%rbx, %rdi
	callq	*(%rax)
	movq	%rax, 8(%rbx)
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_13
## %bb.14:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	jmp	LBB0_15
LBB0_13:
	xorl	%eax, %eax
	jmp	LBB0_16
LBB0_9:
	movq	$0, 8(%rbx)
	leaq	L_.str(%rip), %rdi
	callq	_pr_err
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_15:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_16:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TTM_PAGE_FLAG_DMA32,4,2        ## @TTM_PAGE_FLAG_DMA32
	.comm	_TTM_PAGE_FLAG_NO_RETRY,4,2     ## @TTM_PAGE_FLAG_NO_RETRY
	.comm	_TTM_PAGE_FLAG_ZERO_ALLOC,4,2   ## @TTM_PAGE_FLAG_ZERO_ALLOC
	.comm	_TTM_PAGE_FLAG_SG,4,2           ## @TTM_PAGE_FLAG_SG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Illegal buffer object type\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ttm_tt_create                  ; -- Begin function ttm_tt_create
	.p2align	2
_ttm_tt_create:                         ; @ttm_tt_create
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x1
	mov	x19, x0
	ldr	x21, [x0, #24]
	ldr	w0, [x0, #16]
	bl	_dma_resv_assert_held
Lloh0:
	adrp	x8, _TTM_PAGE_FLAG_DMA32@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TTM_PAGE_FLAG_DMA32@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldp	x10, x9, [x21, #8]
	cmp	x9, #0
	csel	w8, wzr, w8, eq
Lloh3:
	adrp	x9, _TTM_PAGE_FLAG_NO_RETRY@GOTPAGE
Lloh4:
	ldr	x9, [x9, _TTM_PAGE_FLAG_NO_RETRY@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	x10, #0
	csel	w9, wzr, w9, eq
	orr	w1, w9, w8
	ldr	w8, [x19]
	cmp	w8, #128
	b.eq	LBB0_5
; %bb.1:
	cmp	w8, #129
	b.eq	LBB0_7
; %bb.2:
	cmp	w8, #130
	b.ne	LBB0_9
; %bb.3:
	cbz	w20, LBB0_7
; %bb.4:
Lloh6:
	adrp	x8, _TTM_PAGE_FLAG_ZERO_ALLOC@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TTM_PAGE_FLAG_ZERO_ALLOC@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh8:
	adrp	x8, _TTM_PAGE_FLAG_SG@GOTPAGE
Lloh9:
	ldr	x8, [x8, _TTM_PAGE_FLAG_SG@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	orr	w1, w8, w1
LBB0_7:
	ldr	x8, [x21]
	ldr	x8, [x8]
	mov	x0, x19
	blr	x8
	str	x0, [x19, #8]
	cmp	x0, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_11
; %bb.8:
Lloh10:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:
	str	xzr, [x19, #8]
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
Lloh14:
	adrp	x8, _EINVAL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_11:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_TTM_PAGE_FLAG_DMA32,4,2        ; @TTM_PAGE_FLAG_DMA32
	.comm	_TTM_PAGE_FLAG_NO_RETRY,4,2     ; @TTM_PAGE_FLAG_NO_RETRY
	.comm	_TTM_PAGE_FLAG_ZERO_ALLOC,4,2   ; @TTM_PAGE_FLAG_ZERO_ALLOC
	.comm	_TTM_PAGE_FLAG_SG,4,2           ; @TTM_PAGE_FLAG_SG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Illegal buffer object type\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
.subsections_via_symbols
