	.file	"extr_sun4i_layer.c_sun4i_backend_layer_atomic_disable.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	sun4i_backend_layer_atomic_disable, @function
sun4i_backend_layer_atomic_disable:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	mov	rdi, rsi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	state_to_sun4i_layer_state@PLT
	mov	rdi, rbp
	mov	rbx, rax
	call	plane_to_sun4i_layer@PLT
	xor	edx, edx
	mov	rbp, QWORD PTR 8[rax]
	mov	esi, DWORD PTR [rax]
	mov	rdi, rbp
	call	sun4i_backend_layer_enable@PLT
	cmp	QWORD PTR [rbx], 0
	jne	.L5
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	lea	r12, 4[rbp]
	xor	r13d, r13d
	mov	rsi, r13
	mov	rdi, r12
	call	spin_lock_irqsave@PLT
	mov	DWORD PTR 0[rbp], 1
	add	rsp, 8
	.cfi_def_cfa_offset 40
	mov	rsi, r13
	pop	rbx
	.cfi_def_cfa_offset 32
	mov	rdi, r12
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	spin_unlock_irqrestore@PLT
	.cfi_endproc
.LFE0:
	.size	sun4i_backend_layer_atomic_disable, .-sun4i_backend_layer_atomic_disable
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_sun4i_layer.c_sun4i_backend_layer_atomic_disable.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	sun4i_backend_layer_atomic_disable, %function
sun4i_backend_layer_atomic_disable:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r5, r0
	mov	r0, r1
	bl	state_to_sun4i_layer_state
	mov	r4, r0
	mov	r0, r5
	bl	plane_to_sun4i_layer
	mov	r2, #0
	ldm	r0, {r1, r5}
	mov	r0, r5
	bl	sun4i_backend_layer_enable
	ldr	r3, [r4]
	cmp	r3, #0
	popeq	{r4, r5, r6, pc}
	mov	r6, #0
	add	r4, r5, #4
	mov	r1, r6
	mov	r0, r4
	bl	spin_lock_irqsave
	mov	r3, #1
	mov	r1, r6
	mov	r0, r4
	str	r3, [r5]
	pop	{r4, r5, r6, lr}
	b	spin_unlock_irqrestore
	.size	sun4i_backend_layer_atomic_disable, .-sun4i_backend_layer_atomic_disable
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
