	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function msm_fbdev_create
_msm_fbdev_create:                      ## @msm_fbdev_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	%rsi, %rbx
	movq	%rdi, %r13
	callq	_to_msm_fbdev
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	8(%r13), %r12
	movq	24(%r12), %r15
	movl	8(%rbx), %edi
	movl	20(%rbx), %esi
	callq	_drm_mode_legacy_fb_format
	movl	%eax, %r14d
	movslq	4(%rbx), %rsi
	movslq	(%rbx), %rdx
	movl	16(%rbx), %r8d
	movl	8(%rbx), %ecx
	movl	12(%rbx), %r9d
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_DBG
	movl	4(%rbx), %edi
	movl	8(%rbx), %esi
	callq	_align_pitch
	movl	(%rbx), %edx
	movl	4(%rbx), %esi
	movq	%r12, %rdi
	movl	%eax, %ecx
	movl	%r14d, %r8d
	callq	_msm_alloc_stolen_fb
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_1
## %bb.9:
	movl	16(%r12), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_DRM_DEV_ERROR
	movq	%r14, %rdi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_msm_framebuffer_bo
	movq	%rax, %r14
	movq	%r12, %rdi
	callq	_mutex_lock
	movq	(%r15), %rax
	movl	(%rax), %esi
	leaq	-64(%rbp), %rdx
	movq	%r14, %rdi
	callq	_msm_gem_get_and_pin_iova
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	movl	%eax, %r15d
	movl	16(%r12), %edi
	leaq	L_.str.2(%rip), %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_DRM_DEV_ERROR
	movl	%r15d, %ebx
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_7
LBB0_3:
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	callq	_drm_fb_helper_alloc_fbi
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movl	16(%r12), %edi
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_DRM_DEV_ERROR
	movq	%r14, %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_7
LBB0_5:
	leaq	L_.str.4(%rip), %rdi
	movq	%r14, %rsi
	movq	%r12, %rdx
	xorl	%eax, %eax
	callq	_DBG
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%r15, (%rax)
	movq	%r15, (%r13)
	movq	_msm_fb_ops@GOTPCREL(%rip), %rax
	movq	%rax, 64(%r14)
	movq	%r14, %rdi
	movq	%r13, %rsi
	movq	%rbx, %rdx
	callq	_drm_fb_helper_fill_info
	movq	-64(%rbp), %rax
	movq	%rax, 8(%r12)
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_msm_gem_get_vaddr
	movq	%r14, %r13
	movq	%rax, 56(%r14)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_10
## %bb.6:
	movq	56(%r13), %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
LBB0_7:
	movq	%r12, %rdi
	callq	_mutex_unlock
	movq	%r15, %rdi
	callq	_drm_framebuffer_remove
LBB0_8:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movl	(%rbx), %eax
	movl	%eax, 48(%r13)
	movq	-64(%rbp), %rcx
	movq	%rcx, 40(%r13)
	movl	%eax, 32(%r13)
	movslq	24(%r13), %rsi
	movslq	20(%r13), %rdx
	movl	16(%r13), %ecx
	leaq	L_.str.5(%rip), %rdi
	xorl	%eax, %eax
	callq	_DBG
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	(%rax), %rdx
	movq	8(%rax), %rsi
	leaq	L_.str.6(%rip), %rdi
	xorl	%eax, %eax
	callq	_DBG
	movq	%r12, %rdi
	callq	_mutex_unlock
	xorl	%ebx, %ebx
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"create fbdev: %dx%d@%d (%dx%d)"

L_.str.1:                               ## @.str.1
	.asciz	"failed to allocate fb\n"

L_.str.2:                               ## @.str.2
	.asciz	"failed to get buffer obj iova: %d\n"

L_.str.3:                               ## @.str.3
	.asciz	"failed to allocate fb info\n"

L_.str.4:                               ## @.str.4
	.asciz	"fbi=%p, dev=%p"

	.comm	_msm_fb_ops,4,2                 ## @msm_fb_ops
L_.str.5:                               ## @.str.5
	.asciz	"par=%p, %dx%d"

L_.str.6:                               ## @.str.6
	.asciz	"allocated %dx%d fb"

	.no_dead_strip	_msm_fbdev_create
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function msm_fbdev_create
_msm_fbdev_create:                      ; @msm_fbdev_create
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x22, x1
	mov	x23, x0
	bl	_to_msm_fbdev
	mov	x20, x0
	ldr	x19, [x23, #8]
	ldr	x25, [x19, #24]
	ldr	w0, [x22, #8]
	ldr	w1, [x22, #20]
	bl	_drm_mode_legacy_fb_format
	mov	x21, x0
	ldpsw	x2, x1, [x22]
	ldp	w10, w8, [x22, #12]
	ldr	w9, [x22, #8]
	stp	x8, x10, [sp, #8]
	str	x9, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DBG
	ldp	w0, w1, [x22, #4]
	bl	_align_pitch
	mov	x3, x0
	ldp	w2, w1, [x22]
	mov	x0, x19
	mov	x4, x21
	bl	_msm_alloc_stolen_fb
	mov	x21, x0
	bl	_IS_ERR
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w0, [x19, #16]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_DRM_DEV_ERROR
	mov	x0, x21
	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
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_PTR_ERR
LBB0_2:
	mov	x0, x21
	mov	w1, #0
	bl	_msm_framebuffer_bo
	mov	x24, x0
	mov	x0, x19
	bl	_mutex_lock
	ldr	x8, [x25]
	ldr	w1, [x8]
	add	x2, sp, #24
	mov	x0, x24
	bl	_msm_gem_get_and_pin_iova
	cbz	w0, LBB0_4
; %bb.3:
	mov	x25, x0
	ldr	w0, [x19, #16]
	str	x25, [sp]
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_DRM_DEV_ERROR
	b	LBB0_9
LBB0_4:
	mov	x0, x23
	bl	_drm_fb_helper_alloc_fbi
	mov	x25, x0
	bl	_IS_ERR
	cbz	x0, LBB0_6
; %bb.5:
	ldr	w0, [x19, #16]
Lloh6:
	adrp	x1, l_.str.3@PAGE
Lloh7:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_DRM_DEV_ERROR
	mov	x0, x25
	b	LBB0_8
LBB0_6:
Lloh8:
	adrp	x0, l_.str.4@PAGE
Lloh9:
	add	x0, x0, l_.str.4@PAGEOFF
	mov	x1, x25
	mov	x2, x19
	bl	_DBG
	str	x21, [x20]
	str	x21, [x23]
Lloh10:
	adrp	x8, _msm_fb_ops@GOTPAGE
Lloh11:
	ldr	x8, [x8, _msm_fb_ops@GOTPAGEOFF]
	str	x8, [x25, #64]
	mov	x0, x25
	mov	x1, x23
	mov	x2, x22
	bl	_drm_fb_helper_fill_info
	ldr	x8, [sp, #24]
	str	x8, [x19, #8]
	mov	x0, x24
	bl	_msm_gem_get_vaddr
	str	x0, [x25, #56]
	bl	_IS_ERR
	cbz	x0, LBB0_11
; %bb.7:
	ldr	x0, [x25, #56]
LBB0_8:
	bl	_PTR_ERR
	mov	x25, x0
LBB0_9:
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x21
	bl	_drm_framebuffer_remove
LBB0_10:
	mov	x0, x25
	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
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_11:
	ldr	w8, [x24]
	str	w8, [x25, #48]
	ldr	x9, [sp, #24]
	str	x9, [x25, #40]
	str	w8, [x25, #32]
	ldpsw	x2, x1, [x25, #20]
	ldr	w8, [x25, #16]
	str	x8, [sp]
Lloh12:
	adrp	x0, l_.str.5@PAGE
Lloh13:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_DBG
	ldr	x8, [x20]
	ldp	x2, x1, [x8]
Lloh14:
	adrp	x0, l_.str.6@PAGE
Lloh15:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_DBG
	mov	x0, x19
	bl	_mutex_unlock
	mov	w25, #0
	b	LBB0_10
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"create fbdev: %dx%d@%d (%dx%d)"

l_.str.1:                               ; @.str.1
	.asciz	"failed to allocate fb\n"

l_.str.2:                               ; @.str.2
	.asciz	"failed to get buffer obj iova: %d\n"

l_.str.3:                               ; @.str.3
	.asciz	"failed to allocate fb info\n"

l_.str.4:                               ; @.str.4
	.asciz	"fbi=%p, dev=%p"

	.comm	_msm_fb_ops,4,2                 ; @msm_fb_ops
l_.str.5:                               ; @.str.5
	.asciz	"par=%p, %dx%d"

l_.str.6:                               ; @.str.6
	.asciz	"allocated %dx%d fb"

	.no_dead_strip	_msm_fbdev_create
.subsections_via_symbols
