	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cirrus_fb_blit_rect
_cirrus_fb_blit_rect:                   ## @cirrus_fb_blit_rect
	.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	%rsi, %r15
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	16(%rdi), %rcx
	movq	(%rcx), %r12
	movl	(%rax), %edi
	callq	_drm_gem_shmem_vmap
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	movl	(%r12), %eax
	movq	8(%rbx), %rcx
	movq	(%rcx), %rcx
	movl	(%rcx), %ecx
	cmpl	%ecx, %eax
	jne	LBB0_4
## %bb.3:
	movl	8(%r12), %edi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	movq	%r15, %rcx
	callq	_drm_fb_memcpy_dstclip
	jmp	LBB0_11
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_12
LBB0_4:
	cmpl	$4, %ecx
	jne	LBB0_7
## %bb.5:
	cmpl	$2, %eax
	jne	LBB0_7
## %bb.6:
	movl	4(%r12), %esi
	movl	8(%r12), %edi
	movq	%r14, %rdx
	movq	%rbx, %rcx
	movq	%r15, %r8
	xorl	%r9d, %r9d
	callq	_drm_fb_xrgb8888_to_rgb565_dstclip
	jmp	LBB0_11
LBB0_7:
	cmpl	$4, %ecx
	jne	LBB0_10
## %bb.8:
	cmpl	$3, %eax
	jne	LBB0_10
## %bb.9:
	movl	4(%r12), %esi
	movl	8(%r12), %edi
	movq	%r14, %rdx
	movq	%rbx, %rcx
	movq	%r15, %r8
	callq	_drm_fb_xrgb8888_to_rgb888_dstclip
	jmp	LBB0_11
LBB0_10:
	leaq	L_.str(%rip), %rdi
	callq	_WARN_ON_ONCE
LBB0_11:
	movq	(%rbx), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_drm_gem_shmem_vunmap
	xorl	%eax, %eax
LBB0_12:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cpp mismatch"

	.no_dead_strip	_cirrus_fb_blit_rect
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cirrus_fb_blit_rect
_cirrus_fb_blit_rect:                   ; @cirrus_fb_blit_rect
	.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
	mov	x21, x1
	mov	x19, x0
	ldr	x8, [x0, #16]
	ldr	x22, [x8]
	ldr	x8, [x0]
	ldr	w0, [x8]
	bl	_drm_gem_shmem_vmap
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
	ldr	w8, [x22]
	ldr	x9, [x19, #8]
	ldr	x9, [x9]
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_4
; %bb.2:
	ldr	w0, [x22, #8]
	mov	x1, x20
	mov	x2, x19
	mov	x3, x21
	bl	_drm_fb_memcpy_dstclip
	b	LBB0_9
LBB0_3:
Lloh0:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_10
LBB0_4:
	cmp	w9, #4
	ccmp	w8, #2, #0, eq
	b.eq	LBB0_7
; %bb.5:
	cmp	w9, #4
	ccmp	w8, #3, #0, eq
	b.eq	LBB0_8
; %bb.6:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_WARN_ON_ONCE
	b	LBB0_9
LBB0_7:
	ldp	w1, w0, [x22, #4]
	mov	x2, x20
	mov	x3, x19
	mov	x4, x21
	mov	w5, #0
	bl	_drm_fb_xrgb8888_to_rgb565_dstclip
	b	LBB0_9
LBB0_8:
	ldp	w1, w0, [x22, #4]
	mov	x2, x20
	mov	x3, x19
	mov	x4, x21
	bl	_drm_fb_xrgb8888_to_rgb888_dstclip
LBB0_9:
	ldr	x8, [x19]
	ldr	w0, [x8]
	mov	x1, x20
	bl	_drm_gem_shmem_vunmap
	mov	w0, #0
LBB0_10:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cpp mismatch"

	.no_dead_strip	_cirrus_fb_blit_rect
.subsections_via_symbols
