	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_msm_framebuffer_create         ## -- Begin function msm_framebuffer_create
	.p2align	4, 0x90
_msm_framebuffer_create:                ## @msm_framebuffer_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	%rdx, %rsi
	callq	_drm_get_format_info
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -64(%rbp)
	movaps	%xmm0, -80(%rbp)
	movl	(%rax), %r13d
	testl	%r13d, %r13d
	jle	LBB0_5
## %bb.1:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rax
	movl	(%rax,%rbx,4), %esi
	movq	%r15, %rdi
	callq	_drm_gem_object_lookup
	movq	%rax, -80(%rbp,%rbx,8)
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	%rbx
	cmpq	%rbx, %r13
	jne	LBB0_3
LBB0_5:
	leaq	-80(%rbp), %rdx
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_msm_framebuffer_init
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_11
## %bb.6:
	movq	%r14, %rdi
	callq	_PTR_ERR
	movl	%eax, %r14d
	testl	%r13d, %r13d
	jg	LBB0_8
	jmp	LBB0_10
LBB0_4:
	movq	_ENXIO@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	testl	%r13d, %r13d
	jle	LBB0_10
LBB0_8:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	-80(%rbp,%rbx,8), %rdi
	callq	_drm_gem_object_put_unlocked
	incq	%rbx
	cmpq	%rbx, %r13
	jne	LBB0_9
LBB0_10:
	movl	%r14d, %edi
	callq	_ERR_PTR
	movq	%rax, %r14
LBB0_11:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_13
## %bb.12:
	movq	%r14, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ENXIO,4,2                      ## @ENXIO
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_msm_framebuffer_create         ; -- Begin function msm_framebuffer_create
	.p2align	2
_msm_framebuffer_create:                ; @msm_framebuffer_create
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x19, x2
	mov	x21, x1
	mov	x20, 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
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [sp]
	ldr	w22, [x0]
	cmp	w22, #1
	b.lt	LBB0_4
; %bb.1:
	mov	x23, #0
	mov	x24, sp
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	ldr	w1, [x8, x23, lsl #2]
	mov	x0, x21
	bl	_drm_gem_object_lookup
	str	x0, [x24, x23, lsl #3]
	cbz	x0, LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x23, x23, #1
	cmp	x22, x23
	b.ne	LBB0_2
LBB0_4:
	mov	x2, sp
	mov	x0, x20
	mov	x1, x19
	bl	_msm_framebuffer_init
	mov	x19, x0
	bl	_IS_ERR
	cbz	x0, LBB0_10
; %bb.5:
	mov	x0, x19
	bl	_PTR_ERR
	mov	x19, x0
	cmp	w22, #1
	b.ge	LBB0_7
	b	LBB0_9
LBB0_6:
Lloh3:
	adrp	x8, _ENXIO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w19, w8
	cmp	w22, #1
	b.lt	LBB0_9
LBB0_7:
	mov	x20, sp
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x20], #8
	bl	_drm_gem_object_put_unlocked
	subs	x22, x22, #1
	b.ne	LBB0_8
LBB0_9:
	mov	x0, x19
	bl	_ERR_PTR
	mov	x19, x0
LBB0_10:
	ldr	x8, [sp, #40]
Lloh6:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh7:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.11:
	mov	x0, x19
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_12:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ENXIO,4,2                      ; @ENXIO
.subsections_via_symbols
