	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tegra_fb_create                ## -- Begin function tegra_fb_create
	.p2align	4, 0x90
_tegra_fb_create:                       ## @tegra_fb_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	$72, %rsp
	.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, -104(%rbp)                ## 8-byte Spill
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	%rdx, %rsi
	callq	_drm_get_format_info
	cmpl	$0, (%rax)
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	%r15, -88(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %r15d
	testq	%r13, %r13
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%r15d, %eax
	cltd
	idivl	4(%rbx)
	movl	8(%rbx), %ebx
	movl	%eax, %r15d
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	$1, %ebx
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	4(%r14), %r12d
	movq	24(%r14), %rax
	movl	(%rax,%r13,4), %esi
	movq	-104(%rbp), %rdi                ## 8-byte Reload
	callq	_drm_gem_object_lookup
	testq	%rax, %rax
	je	LBB0_7
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, %rdi
	movl	%r12d, %eax
	cltd
	idivl	%ebx
	movq	-96(%rbp), %rbx                 ## 8-byte Reload
	movq	16(%rbx), %rcx
	decl	%eax
	movq	8(%r14), %rdx
	imull	(%rdx,%r13,4), %eax
	movq	16(%r14), %rdx
	imull	(%rcx,%r13,4), %r15d
	addl	%eax, %r15d
	addl	(%rdx,%r13,4), %r15d
	cmpl	%r15d, (%rdi)
	jb	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_3 Depth=1
	callq	_to_tegra_bo
	movq	%rax, -80(%rbp,%r13,8)
	incq	%r13
	movl	(%rbx), %eax
	cmpq	%rax, %r13
	jb	LBB0_3
## %bb.12:
	movq	-88(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_13
LBB0_1:
	xorl	%r13d, %r13d
LBB0_13:
	leaq	-80(%rbp), %rdx
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	%r13d, %ecx
	callq	_tegra_fb_alloc
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_19
## %bb.14:
	movq	%r14, %rdi
	callq	_PTR_ERR
	movl	%eax, %r14d
	testl	%r13d, %r13d
	jne	LBB0_16
	jmp	LBB0_18
LBB0_7:
	movq	_ENXIO@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_10:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_8:
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	testl	%r13d, %r13d
	je	LBB0_18
LBB0_16:
	movl	%r13d, %ebx
	.p2align	4, 0x90
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movq	-88(%rbp,%rbx,8), %rdi
	callq	_drm_gem_object_put_unlocked
	decq	%rbx
	jne	LBB0_17
LBB0_18:
	movl	%r14d, %edi
	callq	_ERR_PTR
	movq	%rax, %r14
LBB0_19:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_21
## %bb.20:
	movq	%r14, %rax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_21:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tegra_fb_create                ; -- Begin function tegra_fb_create
	.p2align	2
_tegra_fb_create:                       ; @tegra_fb_create
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x2
	mov	x22, x1
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
	mov	x1, x2
	bl	_drm_get_format_info
	ldr	w8, [x0]
	cbz	w8, LBB0_8
; %bb.1:
	mov	x23, x0
	mov	x19, #0
	add	x24, sp, #8
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w25, [x20]
	cbz	x19, LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldp	w8, w26, [x23, #4]
	sdiv	w25, w25, w8
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	w26, #1
LBB0_5:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	w27, [x20, #4]
	ldr	x8, [x20, #24]
	ldr	w1, [x8, x19, lsl #2]
	mov	x0, x22
	bl	_drm_gem_object_lookup
	cbz	x0, LBB0_11
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	sdiv	w8, w27, w26
	ldr	x9, [x23, #16]
	lsl	x10, x19, #2
	ldr	w9, [x9, x10]
	sub	w8, w8, #1
	ldp	x11, x12, [x20, #8]
	ldr	w11, [x11, x10]
	mul	w9, w9, w25
	madd	w8, w11, w8, w9
	ldr	w9, [x12, x10]
	ldr	w10, [x0]
	add	w8, w8, w9
	cmp	w10, w8
	b.lo	LBB0_12
; %bb.7:                                ;   in Loop: Header=BB0_2 Depth=1
	bl	_to_tegra_bo
	str	x0, [x24, x19, lsl #3]
	add	x19, x19, #1
	ldr	w8, [x23]
	cmp	x19, x8
	b.lo	LBB0_2
	b	LBB0_9
LBB0_8:
	mov	w19, #0
LBB0_9:
	add	x2, sp, #8
	mov	x0, x21
	mov	x1, x20
	mov	x3, x19
	bl	_tegra_fb_alloc
	mov	x20, x0
	bl	_IS_ERR
	cbz	x0, LBB0_17
; %bb.10:
	mov	x0, x20
	bl	_PTR_ERR
	mov	x20, x0
	cbnz	w19, LBB0_14
	b	LBB0_16
LBB0_11:
Lloh3:
	adrp	x8, _ENXIO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
	b	LBB0_13
LBB0_12:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_13:
	ldr	w8, [x8]
	neg	w20, w8
	cbz	w19, LBB0_16
LBB0_14:
	mov	w8, w19
	lsl	x19, x8, #3
	add	x8, sp, #8
	sub	x21, x8, #8
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x21, x19]
	bl	_drm_gem_object_put_unlocked
	subs	x19, x19, #8
	b.ne	LBB0_15
LBB0_16:
	mov	x0, x20
	bl	_ERR_PTR
	mov	x20, x0
LBB0_17:
	ldr	x8, [sp, #40]
Lloh7:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh8:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_19
; %bb.18:
	mov	x0, x20
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_19:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
