	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cirrus_fb_create
_cirrus_fb_create:                      ## @cirrus_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	(%rdx), %rax
	movq	_DRM_FORMAT_RGB565@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_5
## %bb.1:
	movq	_DRM_FORMAT_RGB888@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_5
## %bb.2:
	movq	_DRM_FORMAT_XRGB8888@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_5
## %bb.3:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	subl	(%rax), %edi
	jmp	LBB0_4
LBB0_5:
	movl	8(%rbx), %esi
	movl	12(%rbx), %edi
	xorl	%r12d, %r12d
	xorl	%edx, %edx
	callq	_cirrus_check_size
	testq	%rax, %rax
	js	LBB0_6
## %bb.7:
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_drm_gem_fb_create_with_dirty   ## TAILCALL
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
	movl	%r12d, %edi
LBB0_4:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DRM_FORMAT_RGB565,8,3          ## @DRM_FORMAT_RGB565
	.comm	_DRM_FORMAT_RGB888,8,3          ## @DRM_FORMAT_RGB888
	.comm	_DRM_FORMAT_XRGB8888,8,3        ## @DRM_FORMAT_XRGB8888
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_cirrus_fb_create
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cirrus_fb_create
_cirrus_fb_create:                      ; @cirrus_fb_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
	ldr	x8, [x2]
Lloh0:
	adrp	x9, _DRM_FORMAT_RGB565@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DRM_FORMAT_RGB565@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _DRM_FORMAT_RGB888@GOTPAGE
Lloh4:
	ldr	x10, [x10, _DRM_FORMAT_RGB888@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
Lloh6:
	adrp	x11, _DRM_FORMAT_XRGB8888@GOTPAGE
Lloh7:
	ldr	x11, [x11, _DRM_FORMAT_XRGB8888@GOTPAGEOFF]
Lloh8:
	ldr	x11, [x11]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	ccmp	x8, x11, #4, ne
	b.ne	LBB0_3
; %bb.1:
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldp	w1, w0, [x2, #8]
	mov	x2, #0
	bl	_cirrus_check_size
	tbnz	x0, #63, LBB0_3
; %bb.2:
	mov	x0, x21
	mov	x1, x20
	mov	x2, 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
	b	_drm_gem_fb_create_with_dirty
LBB0_3:
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
	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	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_DRM_FORMAT_RGB565,8,3          ; @DRM_FORMAT_RGB565
	.comm	_DRM_FORMAT_RGB888,8,3          ; @DRM_FORMAT_RGB888
	.comm	_DRM_FORMAT_XRGB8888,8,3        ; @DRM_FORMAT_XRGB8888
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_cirrus_fb_create
.subsections_via_symbols
