	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mipi_dbi_buf_copy              ## -- Begin function mipi_dbi_buf_copy
	.p2align	4, 0x90
_mipi_dbi_buf_copy:                     ## @mipi_dbi_buf_copy
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r12d
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	%rsi, %rdi
	xorl	%esi, %esi
	callq	_drm_gem_fb_get_obj
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_to_drm_gem_cma_obj
	movq	(%rbx), %rbx
	movq	(%rax), %r13
	testq	%rbx, %rbx
	je	LBB0_2
## %bb.1:
	movl	(%rbx), %edi
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_dma_buf_begin_cpu_access
	testl	%eax, %eax
	jne	LBB0_12
LBB0_2:
	movq	(%r14), %rax
	movl	(%rax), %edi
	cmpl	$128, %edi
	je	LBB0_6
## %bb.3:
	cmpl	$129, %edi
	jne	LBB0_11
## %bb.4:
	movq	%r15, %rdi
	movq	%r13, %rsi
	movq	%r14, %rdx
	testl	%r12d, %r12d
	je	LBB0_7
## %bb.5:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	callq	_drm_fb_swab16
	testq	%rbx, %rbx
	jne	LBB0_10
	jmp	LBB0_9
LBB0_6:
	movq	%r15, %rdi
	movq	%r13, %rsi
	movq	%r14, %rdx
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%r12d, %r8d
	callq	_drm_fb_xrgb8888_to_rgb565
	testq	%rbx, %rbx
	je	LBB0_9
LBB0_10:
	movl	(%rbx), %edi
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dma_buf_end_cpu_access         ## TAILCALL
LBB0_11:
	movq	8(%r14), %rax
	movl	(%rax), %ebx
	leaq	-56(%rbp), %rsi
	callq	_drm_get_format_name
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edi
	movl	%eax, %edx
	callq	_dev_err_once
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_12
LBB0_7:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	callq	_drm_fb_memcpy
	testq	%rbx, %rbx
	jne	LBB0_10
LBB0_9:
	xorl	%eax, %eax
LBB0_12:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DMA_FROM_DEVICE,4,2            ## @DMA_FROM_DEVICE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Format is not supported: %s\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mipi_dbi_buf_copy              ; -- Begin function mipi_dbi_buf_copy
	.p2align	2
_mipi_dbi_buf_copy:                     ; @mipi_dbi_buf_copy
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x21, x3
	mov	x19, x2
	mov	x20, x1
	mov	x22, x0
	mov	x0, x1
	mov	w1, #0
	bl	_drm_gem_fb_get_obj
	mov	x23, x0
	bl	_to_drm_gem_cma_obj
	ldr	x24, [x23]
	ldr	x23, [x0]
	cbz	x24, LBB0_2
; %bb.1:
	ldr	w0, [x24]
Lloh0:
	adrp	x8, _DMA_FROM_DEVICE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DMA_FROM_DEVICE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_dma_buf_begin_cpu_access
	cbnz	w0, LBB0_11
LBB0_2:
	ldr	x8, [x20]
	ldr	w0, [x8]
	cmp	w0, #128
	b.eq	LBB0_6
; %bb.3:
	cmp	w0, #129
	b.ne	LBB0_8
; %bb.4:
	mov	x0, x22
	mov	x1, x23
	mov	x2, x20
	mov	x3, x19
	cbz	w21, LBB0_9
; %bb.5:
	bl	_drm_fb_swab16
	cbnz	x24, LBB0_7
	b	LBB0_10
LBB0_6:
	mov	x0, x22
	mov	x1, x23
	mov	x2, x20
	mov	x3, x19
	mov	x4, x21
	bl	_drm_fb_xrgb8888_to_rgb565
	cbz	x24, LBB0_10
LBB0_7:
	ldr	w0, [x24]
Lloh3:
	adrp	x8, _DMA_FROM_DEVICE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DMA_FROM_DEVICE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_dma_buf_end_cpu_access
LBB0_8:
	ldr	x8, [x20, #8]
	ldr	w19, [x8]
	add	x1, sp, #8
	bl	_drm_get_format_name
	mov	x2, x0
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err_once
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_11
LBB0_9:
	bl	_drm_fb_memcpy
	cbnz	x24, LBB0_7
LBB0_10:
	mov	w0, #0
LBB0_11:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_DMA_FROM_DEVICE,4,2            ; @DMA_FROM_DEVICE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Format is not supported: %s\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
