	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tegra_bo_create                ## -- Begin function tegra_bo_create
	.p2align	4, 0x90
_tegra_bo_create:                       ## @tegra_bo_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
	movq	%rdx, %r14
	movq	%rdi, %rbx
	callq	_tegra_bo_alloc_object
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_1
LBB0_6:
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_tegra_bo_alloc
	testl	%eax, %eax
	js	LBB0_7
## %bb.2:
	movq	_DRM_TEGRA_GEM_CREATE_TILED@GOTPCREL(%rip), %rax
	testq	%r14, (%rax)
	je	LBB0_4
## %bb.3:
	movq	_TEGRA_BO_TILING_MODE_TILED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r15)
LBB0_4:
	movq	_DRM_TEGRA_GEM_CREATE_BOTTOM_UP@GOTPCREL(%rip), %rax
	testq	%r14, (%rax)
	je	LBB0_6
## %bb.5:
	movq	_TEGRA_BO_BOTTOM_UP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 4(%r15)
	jmp	LBB0_6
LBB0_7:
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_drm_gem_object_release
	movq	%r15, %rdi
	callq	_kfree
	movl	%ebx, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DRM_TEGRA_GEM_CREATE_TILED,8,3 ## @DRM_TEGRA_GEM_CREATE_TILED
	.comm	_TEGRA_BO_TILING_MODE_TILED,4,2 ## @TEGRA_BO_TILING_MODE_TILED
	.comm	_DRM_TEGRA_GEM_CREATE_BOTTOM_UP,8,3 ## @DRM_TEGRA_GEM_CREATE_BOTTOM_UP
	.comm	_TEGRA_BO_BOTTOM_UP,4,2         ## @TEGRA_BO_BOTTOM_UP
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tegra_bo_create                ; -- Begin function tegra_bo_create
	.p2align	2
_tegra_bo_create:                       ; @tegra_bo_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, x2
	mov	x21, x0
	bl	_tegra_bo_alloc_object
	mov	x19, x0
	bl	_IS_ERR
	cbz	x0, LBB0_2
LBB0_1:
	mov	x0, x19
	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
LBB0_2:
	mov	x0, x21
	mov	x1, x19
	bl	_tegra_bo_alloc
	tbnz	w0, #31, LBB0_7
; %bb.3:
Lloh0:
	adrp	x8, _DRM_TEGRA_GEM_CREATE_TILED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DRM_TEGRA_GEM_CREATE_TILED@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	tst	x8, x20
	b.eq	LBB0_5
; %bb.4:
Lloh3:
	adrp	x8, _TEGRA_BO_TILING_MODE_TILED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TEGRA_BO_TILING_MODE_TILED@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x19, #8]
LBB0_5:
Lloh6:
	adrp	x8, _DRM_TEGRA_GEM_CREATE_BOTTOM_UP@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DRM_TEGRA_GEM_CREATE_BOTTOM_UP@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	tst	x8, x20
	b.eq	LBB0_1
; %bb.6:
Lloh9:
	adrp	x8, _TEGRA_BO_BOTTOM_UP@GOTPAGE
Lloh10:
	ldr	x8, [x8, _TEGRA_BO_BOTTOM_UP@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	ldr	w9, [x19, #4]
	orr	w8, w9, w8
	str	w8, [x19, #4]
	b	LBB0_1
LBB0_7:
	mov	x21, x0
	mov	x0, x19
	bl	_drm_gem_object_release
	mov	x0, x19
	bl	_kfree
	mov	x0, x21
	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
	b	_ERR_PTR
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_DRM_TEGRA_GEM_CREATE_TILED,8,3 ; @DRM_TEGRA_GEM_CREATE_TILED
	.comm	_TEGRA_BO_TILING_MODE_TILED,4,2 ; @TEGRA_BO_TILING_MODE_TILED
	.comm	_DRM_TEGRA_GEM_CREATE_BOTTOM_UP,8,3 ; @DRM_TEGRA_GEM_CREATE_BOTTOM_UP
	.comm	_TEGRA_BO_BOTTOM_UP,4,2         ; @TEGRA_BO_BOTTOM_UP
.subsections_via_symbols
