	.file	"extr_drm_atomic.c_drm_atomic_state_default_clear.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Clearing atomic state %p\n"
	.text
	.p2align 4
	.globl	drm_atomic_state_default_clear
	.type	drm_atomic_state_default_clear, @function
drm_atomic_state_default_clear:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	rsi, rdi
	xor	r14d, r14d
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rdi
	mov	r12, QWORD PTR 48[rdi]
	lea	rdi, .LC0[rip]
	call	DRM_DEBUG_ATOMIC@PLT
	mov	esi, DWORD PTR [rbx]
	test	esi, esi
	jle	.L6
	.p2align 4,,10
	.p2align 3
.L2:
	mov	rax, QWORD PTR 40[rbx]
	mov	rbp, r14
	sal	rbp, 5
	add	rax, rbp
	mov	r13, QWORD PTR 24[rax]
	test	r13, r13
	je	.L5
	mov	rsi, QWORD PTR 16[rax]
	mov	rax, QWORD PTR 0[r13]
	mov	rdi, r13
	call	[QWORD PTR [rax]]
	mov	rax, QWORD PTR 40[rbx]
	mov	rdi, r13
	add	rax, rbp
	mov	QWORD PTR 24[rax], 0
	mov	QWORD PTR 16[rax], 0
	mov	QWORD PTR 8[rax], 0
	mov	QWORD PTR [rax], 0
	call	drm_connector_put@PLT
.L5:
	add	r14, 1
	cmp	DWORD PTR [rbx], r14d
	jg	.L2
.L6:
	mov	ecx, DWORD PTR [r12]
	test	ecx, ecx
	jle	.L4
	mov	rdx, QWORD PTR 32[rbx]
	xor	r13d, r13d
	.p2align 4,,10
	.p2align 3
.L3:
	lea	r14, 0[r13+r13*4]
	lea	rbp, 0[0+r14*8]
	lea	rax, [rdx+rbp]
	mov	rdi, QWORD PTR 32[rax]
	test	rdi, rdi
	je	.L10
	mov	rsi, QWORD PTR 24[rax]
	mov	rax, QWORD PTR [rdi]
	call	[QWORD PTR [rax]]
	mov	rdx, QWORD PTR 32[rbx]
	lea	rax, [rdx+rbp]
	mov	rdi, QWORD PTR [rax]
	mov	QWORD PTR 32[rax], 0
	mov	QWORD PTR 24[rax], 0
	mov	QWORD PTR 16[rax], 0
	mov	QWORD PTR 8[rax], 0
	test	rdi, rdi
	je	.L10
	call	drm_crtc_commit_put@PLT
	mov	rdx, QWORD PTR 32[rbx]
	mov	QWORD PTR [rdx+r14*8], 0
.L10:
	add	r13, 1
	cmp	DWORD PTR [r12], r13d
	jg	.L3
.L4:
	mov	edx, DWORD PTR 4[r12]
	test	edx, edx
	jle	.L8
	mov	rdx, QWORD PTR 24[rbx]
	xor	r13d, r13d
	.p2align 4,,10
	.p2align 3
.L7:
	mov	rbp, r13
	sal	rbp, 5
	lea	rax, [rdx+rbp]
	mov	rdi, QWORD PTR 24[rax]
	test	rdi, rdi
	je	.L14
	mov	rsi, QWORD PTR 16[rax]
	mov	rax, QWORD PTR [rdi]
	call	[QWORD PTR [rax]]
	mov	rdx, QWORD PTR 24[rbx]
	lea	rax, [rdx+rbp]
	mov	QWORD PTR 24[rax], 0
	mov	QWORD PTR 16[rax], 0
	mov	QWORD PTR 8[rax], 0
	mov	QWORD PTR [rax], 0
.L14:
	add	r13, 1
	cmp	DWORD PTR 4[r12], r13d
	jg	.L7
.L8:
	mov	eax, DWORD PTR 4[rbx]
	test	eax, eax
	jle	.L13
	mov	rdx, QWORD PTR 16[rbx]
	xor	r12d, r12d
	.p2align 4,,10
	.p2align 3
.L17:
	mov	rbp, r12
	add	r12, 1
	sal	rbp, 5
	add	rdx, rbp
	mov	rdi, QWORD PTR 24[rdx]
	mov	rsi, QWORD PTR 16[rdx]
	mov	rax, QWORD PTR [rdi]
	call	[QWORD PTR [rax]]
	mov	rdx, QWORD PTR 16[rbx]
	lea	rax, [rdx+rbp]
	mov	QWORD PTR 24[rax], 0
	mov	QWORD PTR 16[rax], 0
	mov	QWORD PTR 8[rax], 0
	mov	QWORD PTR [rax], 0
	cmp	DWORD PTR 4[rbx], r12d
	jg	.L17
.L13:
	mov	rdi, QWORD PTR 8[rbx]
	mov	DWORD PTR 4[rbx], 0
	test	rdi, rdi
	je	.L1
	call	drm_crtc_commit_put@PLT
	mov	QWORD PTR 8[rbx], 0
.L1:
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	drm_atomic_state_default_clear, .-drm_atomic_state_default_clear
	.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_drm_atomic.c_drm_atomic_state_default_clear.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Clearing atomic state %p\012\000"
	.text
	.align	2
	.global	drm_atomic_state_default_clear
	.syntax unified
	.arm
	.fpu softvfp
	.type	drm_atomic_state_default_clear, %function
drm_atomic_state_default_clear:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r4, r0
	ldr	r0, .L37
	mov	r1, r4
	ldr	r7, [r4, #28]
	bl	DRM_DEBUG_ATOMIC
	ldr	r2, [r4]
	cmp	r2, #0
	movgt	r5, #0
	movgt	r9, r5
	ble	.L6
.L2:
	ldr	r3, [r4, #24]
	lsl	r6, r5, #4
	add	r3, r3, r5, lsl #4
	ldr	r8, [r3, #12]
	cmp	r8, #0
	beq	.L5
	ldr	r2, [r8]
	ldr	r1, [r3, #8]
	mov	r0, r8
	ldr	r3, [r2]
	blx	r3
	ldr	r2, [r4, #24]
	mov	r0, r8
	add	r3, r2, r6
	str	r9, [r3, #12]
	str	r9, [r3, #8]
	str	r9, [r3, #4]
	str	r9, [r2, r5, lsl #4]
	bl	drm_connector_put
	ldr	r2, [r4]
.L5:
	add	r5, r5, #1
	cmp	r2, r5
	bgt	.L2
.L6:
	ldr	r1, [r7]
	cmp	r1, #0
	ble	.L4
	mov	r5, #0
	ldr	r3, [r4, #20]
	mov	r8, r5
	mov	r6, r5
	b	.L3
.L33:
	bl	drm_crtc_commit_put
	ldr	r3, [r4, #20]
	ldr	r1, [r7]
	str	r6, [r3, r5]
.L10:
	add	r8, r8, #1
	cmp	r1, r8
	add	r5, r5, #20
	ble	.L4
.L3:
	add	r2, r3, r5
	ldr	r0, [r2, #16]
	cmp	r0, #0
	beq	.L10
	ldr	r3, [r0]
	ldr	r1, [r2, #12]
	ldr	r3, [r3]
	blx	r3
	ldr	r3, [r4, #20]
	ldr	r0, [r3, r5]
	add	r2, r3, r5
	cmp	r0, #0
	str	r6, [r2, #16]
	str	r6, [r2, #12]
	str	r6, [r2, #8]
	str	r6, [r2, #4]
	bne	.L33
	ldr	r1, [r7]
	add	r8, r8, #1
	cmp	r1, r8
	add	r5, r5, #20
	bgt	.L3
.L4:
	ldr	r1, [r7, #4]
	cmp	r1, #0
	ble	.L8
	mov	r5, #0
	mov	r8, r5
	ldr	r2, [r4, #16]
.L7:
	add	r3, r2, r5, lsl #4
	ldr	r0, [r3, #12]
	lsl	r6, r5, #4
	cmp	r0, #0
	beq	.L14
	ldr	r2, [r0]
	ldr	r1, [r3, #8]
	ldr	r3, [r2]
	blx	r3
	ldr	r2, [r4, #16]
	ldr	r1, [r7, #4]
	add	r3, r2, r6
	str	r8, [r3, #12]
	str	r8, [r3, #8]
	str	r8, [r3, #4]
	str	r8, [r2, r5, lsl #4]
.L14:
	add	r5, r5, #1
	cmp	r1, r5
	bgt	.L7
.L8:
	ldr	r3, [r4, #4]
	cmp	r3, #0
	ble	.L13
	mov	r5, #0
	mov	r6, r5
	ldr	r3, [r4, #12]
.L17:
	add	r3, r3, r5, lsl #4
	ldr	r0, [r3, #12]
	ldr	r1, [r3, #8]
	ldr	r3, [r0]
	ldr	r3, [r3]
	blx	r3
	ldr	r3, [r4, #12]
	lsl	r2, r5, #4
	ldr	r1, [r4, #4]
	add	r2, r3, r2
	str	r6, [r2, #12]
	str	r6, [r2, #8]
	str	r6, [r2, #4]
	str	r6, [r3, r5, lsl #4]
	add	r5, r5, #1
	cmp	r1, r5
	bgt	.L17
.L13:
	mov	r5, #0
	ldr	r0, [r4, #8]
	str	r5, [r4, #4]
	cmp	r0, r5
	popeq	{r4, r5, r6, r7, r8, r9, r10, pc}
	bl	drm_crtc_commit_put
	str	r5, [r4, #8]
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L38:
	.align	2
.L37:
	.word	.LC0
	.size	drm_atomic_state_default_clear, .-drm_atomic_state_default_clear
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
