	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sun4i_backend_update_yuv_buffer
_sun4i_backend_update_yuv_buffer:       ## @sun4i_backend_update_yuv_buffer
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movl	%edx, -28(%rbp)
	leaq	L_.str(%rip), %rdi
	leaq	-28(%rbp), %rsi
	xorl	%eax, %eax
	callq	_DRM_DEBUG_DRIVER
	movl	(%r15), %ebx
	xorl	%edi, %edi
	callq	_SUN4I_BACKEND_IYUVADD_REG
	movl	-28(%rbp), %edx
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_regmap_write
	movq	(%r14), %rax
	movl	(%rax), %esi
	shll	$3, %esi
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_DRM_DEBUG_DRIVER
	movl	(%r15), %ebx
	xorl	%edi, %edi
	callq	_SUN4I_BACKEND_IYUVLINEWIDTH_REG
	movq	(%r14), %rcx
	movl	(%rcx), %edx
	shll	$3, %edx
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_regmap_write
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Setting packed YUV buffer address to %pad\n"

L_.str.1:                               ## @.str.1
	.asciz	"Layer line width: %d bits\n"

	.no_dead_strip	_sun4i_backend_update_yuv_buffer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sun4i_backend_update_yuv_buffer
_sun4i_backend_update_yuv_buffer:       ; @sun4i_backend_update_yuv_buffer
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x19, x1
	mov	x20, x0
	str	w2, [sp, #12]
	add	x8, sp, #12
	str	x8, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG_DRIVER
	ldr	w21, [x20]
	mov	w0, #0
	bl	_SUN4I_BACKEND_IYUVADD_REG
	mov	x1, x0
	ldr	w2, [sp, #12]
	mov	x0, x21
	bl	_regmap_write
	ldr	x8, [x19]
	ldr	w8, [x8]
	lsl	w8, w8, #3
	str	x8, [sp]
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DRM_DEBUG_DRIVER
	ldr	w20, [x20]
	mov	w0, #0
	bl	_SUN4I_BACKEND_IYUVLINEWIDTH_REG
	mov	x1, x0
	ldr	x8, [x19]
	ldr	w8, [x8]
	lsl	w2, w8, #3
	mov	x0, x20
	bl	_regmap_write
	mov	w0, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Setting packed YUV buffer address to %pad\n"

l_.str.1:                               ; @.str.1
	.asciz	"Layer line width: %d bits\n"

	.no_dead_strip	_sun4i_backend_update_yuv_buffer
.subsections_via_symbols
