	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sun4i_backend_update_layer_coord ## -- Begin function sun4i_backend_update_layer_coord
	.p2align	4, 0x90
_sun4i_backend_update_layer_coord:      ## @sun4i_backend_update_layer_coord
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movl	%esi, %r15d
	movq	%rdi, %r14
	movq	8(%rdx), %rbx
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_DRM_DEBUG_DRIVER
	movq	(%r12), %rax
	movq	_DRM_PLANE_TYPE_PRIMARY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movl	8(%rbx), %edx
	movl	12(%rbx), %esi
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_DRM_DEBUG_DRIVER
	movl	(%r14), %r12d
	movq	_SUN4I_BACKEND_DISSIZE_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movl	8(%rbx), %esi
	movl	12(%rbx), %edi
	callq	_SUN4I_BACKEND_DISSIZE
	movl	%r12d, %edi
	movl	%r13d, %esi
	movl	%eax, %edx
	callq	_regmap_write
LBB0_2:
	movl	8(%rbx), %edx
	movl	12(%rbx), %esi
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_DRM_DEBUG_DRIVER
	movl	(%r14), %r12d
	movl	%r15d, %edi
	callq	_SUN4I_BACKEND_LAYSIZE_REG
	movl	%eax, %r13d
	movl	8(%rbx), %esi
	movl	12(%rbx), %edi
	callq	_SUN4I_BACKEND_LAYSIZE
	movl	%r12d, %edi
	movl	%r13d, %esi
	movl	%eax, %edx
	callq	_regmap_write
	movl	(%rbx), %edx
	movl	4(%rbx), %esi
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_DRM_DEBUG_DRIVER
	movl	(%r14), %r14d
	movl	%r15d, %edi
	callq	_SUN4I_BACKEND_LAYCOOR_REG
	movl	%eax, %r15d
	movl	(%rbx), %esi
	movl	4(%rbx), %edi
	callq	_SUN4I_BACKEND_LAYCOOR
	movl	%r14d, %edi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_regmap_write
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Updating layer %d\n"

	.comm	_DRM_PLANE_TYPE_PRIMARY,8,3     ## @DRM_PLANE_TYPE_PRIMARY
L_.str.1:                               ## @.str.1
	.asciz	"Primary layer, updating global size W: %u H: %u\n"

	.comm	_SUN4I_BACKEND_DISSIZE_REG,4,2  ## @SUN4I_BACKEND_DISSIZE_REG
L_.str.2:                               ## @.str.2
	.asciz	"Layer size W: %u H: %u\n"

L_.str.3:                               ## @.str.3
	.asciz	"Layer coordinates X: %d Y: %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sun4i_backend_update_layer_coord ; -- Begin function sun4i_backend_update_layer_coord
	.p2align	2
_sun4i_backend_update_layer_coord:      ; @sun4i_backend_update_layer_coord
	.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, x2
	mov	x19, x1
	mov	x20, x0
	ldr	x23, [x2, #8]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG_DRIVER
	ldr	x8, [x21]
Lloh2:
	adrp	x9, _DRM_PLANE_TYPE_PRIMARY@GOTPAGE
Lloh3:
	ldr	x9, [x9, _DRM_PLANE_TYPE_PRIMARY@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	ldp	w8, w1, [x23, #8]
	str	x8, [sp]
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DRM_DEBUG_DRIVER
	ldr	w21, [x20]
Lloh7:
	adrp	x8, _SUN4I_BACKEND_DISSIZE_REG@GOTPAGE
Lloh8:
	ldr	x8, [x8, _SUN4I_BACKEND_DISSIZE_REG@GOTPAGEOFF]
Lloh9:
	ldr	w22, [x8]
	ldp	w1, w0, [x23, #8]
	bl	_SUN4I_BACKEND_DISSIZE
	mov	x2, x0
	mov	x0, x21
	mov	x1, x22
	bl	_regmap_write
LBB0_2:
	ldp	w8, w1, [x23, #8]
	str	x8, [sp]
Lloh10:
	adrp	x0, l_.str.2@PAGE
Lloh11:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_DRM_DEBUG_DRIVER
	ldr	w21, [x20]
	mov	x0, x19
	bl	_SUN4I_BACKEND_LAYSIZE_REG
	mov	x22, x0
	ldp	w1, w0, [x23, #8]
	bl	_SUN4I_BACKEND_LAYSIZE
	mov	x2, x0
	mov	x0, x21
	mov	x1, x22
	bl	_regmap_write
	ldp	w8, w1, [x23]
	str	x8, [sp]
Lloh12:
	adrp	x0, l_.str.3@PAGE
Lloh13:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_DRM_DEBUG_DRIVER
	ldr	w20, [x20]
	mov	x0, x19
	bl	_SUN4I_BACKEND_LAYCOOR_REG
	mov	x19, x0
	ldp	w1, w0, [x23]
	bl	_SUN4I_BACKEND_LAYCOOR
	mov	x2, x0
	mov	x0, x20
	mov	x1, x19
	bl	_regmap_write
	mov	w0, #0
	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	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Updating layer %d\n"

	.comm	_DRM_PLANE_TYPE_PRIMARY,8,3     ; @DRM_PLANE_TYPE_PRIMARY
l_.str.1:                               ; @.str.1
	.asciz	"Primary layer, updating global size W: %u H: %u\n"

	.comm	_SUN4I_BACKEND_DISSIZE_REG,4,2  ; @SUN4I_BACKEND_DISSIZE_REG
l_.str.2:                               ; @.str.2
	.asciz	"Layer size W: %u H: %u\n"

l_.str.3:                               ; @.str.3
	.asciz	"Layer coordinates X: %d Y: %d\n"

.subsections_via_symbols
