	.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	%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
	testq	%rsi, %rsi
	je	LBB0_1
## %bb.2:
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	_DRM_MEM_DRIVER@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	_M_WAITOK@GOTPCREL(%rip), %rax
	movq	_M_ZERO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movl	$8, %edi
	callq	_malloc
	movq	%rax, %r12
	movq	%rbx, %rdi
	callq	_round_page
	movq	%rax, %r13
	movq	%r15, %rdi
	movq	%r12, %rsi
	movq	%rax, %rdx
	callq	_drm_gem_object_init
	testl	%eax, %eax
	je	LBB0_5
## %bb.3:
	movl	%eax, %ebx
	jmp	LBB0_4
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_10
LBB0_5:
	movq	%r12, %rdi
	callq	_drm_gem_create_mmap_offset
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_drm_gem_object_release
LBB0_4:
	movl	(%r14), %esi
	movq	%r12, %rdi
	callq	_free
LBB0_10:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	_OBJT_MGTDEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%r15), %rax
	movl	(%rax), %edx
	movq	$0, (%rsp)
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	movq	%r13, %rcx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_cdev_pager_allocate
	movl	%eax, 4(%r12)
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_tegra_bo_alloc
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	movl	%eax, %r15d
	movq	%r12, %rdi
	callq	_tegra_bo_free_object
	movl	%r15d, %ebx
	jmp	LBB0_10
LBB0_9:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%r12, (%rax)
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_DRM_MEM_DRIVER,4,2             ## @DRM_MEM_DRIVER
	.comm	_M_WAITOK,4,2                   ## @M_WAITOK
	.comm	_M_ZERO,4,2                     ## @M_ZERO
	.comm	_OBJT_MGTDEVICE,4,2             ## @OBJT_MGTDEVICE
.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	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
	cbz	x1, LBB0_3
; %bb.1:
	mov	x19, x2
	mov	x22, x1
	mov	x21, x0
Lloh0:
	adrp	x24, _DRM_MEM_DRIVER@GOTPAGE
Lloh1:
	ldr	x24, [x24, _DRM_MEM_DRIVER@GOTPAGEOFF]
Lloh2:
	adrp	x8, _M_WAITOK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _M_WAITOK@GOTPAGEOFF]
	ldr	w1, [x24]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _M_ZERO@GOTPAGE
Lloh6:
	ldr	x9, [x9, _M_ZERO@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	w0, #8
	bl	_malloc
	mov	x20, x0
	mov	x0, x22
	bl	_round_page
	mov	x23, x0
	mov	x0, x21
	mov	x1, x20
	mov	x2, x23
	bl	_drm_gem_object_init
	cbz	w0, LBB0_4
; %bb.2:
	mov	x22, x0
	b	LBB0_6
LBB0_3:
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_7
LBB0_4:
	mov	x0, x20
	bl	_drm_gem_create_mmap_offset
	cbz	w0, LBB0_8
; %bb.5:
	mov	x22, x0
	mov	x0, x20
	bl	_drm_gem_object_release
LBB0_6:
	ldr	w1, [x24]
	mov	x0, x20
	bl	_free
LBB0_7:
	mov	x0, x22
	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
LBB0_8:
Lloh11:
	adrp	x8, _OBJT_MGTDEVICE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _OBJT_MGTDEVICE@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	ldr	x8, [x21]
	ldr	w2, [x8]
	mov	x0, x20
	mov	x3, x23
	mov	w4, #0
	mov	w5, #0
	mov	x6, #0
	bl	_cdev_pager_allocate
	str	w0, [x20, #4]
	mov	x0, x21
	mov	x1, x20
	bl	_tegra_bo_alloc
	mov	x22, x0
	cbz	w0, LBB0_10
; %bb.9:
	mov	x0, x20
	bl	_tegra_bo_free_object
	b	LBB0_7
LBB0_10:
	str	x20, [x19]
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_DRM_MEM_DRIVER,4,2             ; @DRM_MEM_DRIVER
	.comm	_M_WAITOK,4,2                   ; @M_WAITOK
	.comm	_M_ZERO,4,2                     ; @M_ZERO
	.comm	_OBJT_MGTDEVICE,4,2             ; @OBJT_MGTDEVICE
.subsections_via_symbols
