	.file	"extr_drm_edid.c_drm_do_get_edid.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"%s: Ignoring invalid EDID block %d.\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"%s: EDID block %d invalid.\n"
	.text
	.p2align 4
	.type	drm_do_get_edid, @function
drm_do_get_edid:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15d, 1
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rsi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	eax, DWORD PTR [rdi]
	mov	QWORD PTR 8[rsp], rdi
	test	eax, eax
	je	.L2
	xor	r15d, r15d
	mov	eax, DWORD PTR drm_debug[rip]
	test	DWORD PTR DRM_UT_KMS[rip], eax
	setne	r15b
.L2:
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	mov	edi, DWORD PTR EDID_LENGTH[rip]
	call	kmalloc@PLT
	mov	r13, rax
	test	rax, rax
	je	.L1
	mov	ebx, 1
.L9:
	mov	ecx, DWORD PTR EDID_LENGTH[rip]
	xor	edx, edx
	mov	rsi, r13
	mov	rdi, r14
	call	drm_do_probe_ddc_edid@PLT
	test	rax, rax
	jne	.L18
	xor	esi, esi
	mov	edx, r15d
	mov	rdi, r13
	call	drm_edid_block_valid@PLT
	test	rax, rax
	jne	.L5
	cmp	ebx, 1
	je	.L49
	cmp	ebx, 4
	je	.L8
.L7:
	add	ebx, 1
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L49:
	mov	esi, DWORD PTR EDID_LENGTH[rip]
	mov	rdi, r13
	call	drm_edid_is_zero@PLT
	test	rax, rax
	je	.L7
	mov	rax, QWORD PTR 8[rsp]
	add	DWORD PTR 16[rax], 1
	.p2align 4,,10
	.p2align 3
.L8:
	test	r15d, r15d
	jne	.L50
.L14:
	mov	rax, QWORD PTR 8[rsp]
	mov	r12, r13
	add	DWORD PTR [rax], 1
.L4:
	mov	rdi, r12
	xor	r13d, r13d
	call	kfree@PLT
.L1:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rax, r13
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	eax, DWORD PTR 504[r13]
	test	eax, eax
	je	.L1
	lea	esi, 1[rax]
	mov	edx, DWORD PTR GFP_KERNEL[rip]
	mov	rdi, r13
	imul	esi, DWORD PTR EDID_LENGTH[rip]
	call	krealloc@PLT
	mov	r12, rax
	test	rax, rax
	je	.L18
	mov	eax, DWORD PTR 504[rax]
	mov	DWORD PTR 4[rsp], 0
	test	eax, eax
	jle	.L10
	mov	ebp, 1
	.p2align 4,,10
	.p2align 3
.L13:
	mov	eax, DWORD PTR 4[rsp]
	mov	ebx, 4
	lea	r13d, 1[rax]
.L12:
	mov	ecx, DWORD PTR EDID_LENGTH[rip]
	mov	edx, ebp
	mov	rdi, r14
	mov	eax, ecx
	imul	eax, r13d
	cdqe
	lea	rsi, [r12+rax*4]
	call	drm_do_probe_ddc_edid@PLT
	test	rax, rax
	jne	.L4
	mov	eax, DWORD PTR EDID_LENGTH[rip]
	mov	edx, r15d
	mov	esi, ebp
	imul	eax, r13d
	cdqe
	lea	rdi, [r12+rax*4]
	call	drm_edid_block_valid@PLT
	test	rax, rax
	jne	.L20
	sub	ebx, 1
	jne	.L12
	test	r15d, r15d
	je	.L11
	mov	rbx, QWORD PTR 8[rsp]
	mov	rdi, rbx
	call	drm_get_connector_name@PLT
	mov	ecx, ebp
	lea	rsi, .LC0[rip]
	mov	edx, eax
	mov	rax, QWORD PTR 8[rbx]
	mov	edi, DWORD PTR [rax]
	call	dev_warn@PLT
	add	DWORD PTR [rbx], 1
.L11:
	mov	eax, DWORD PTR 504[r12]
	add	ebp, 1
	cmp	eax, ebp
	jge	.L13
.L10:
	mov	ebx, DWORD PTR 4[rsp]
	mov	r13, r12
	cmp	eax, ebx
	je	.L1
	movsx	rdx, DWORD PTR EDID_LENGTH[rip]
	sub	eax, ebx
	lea	esi, 1[rbx]
	mov	rdi, r12
	add	DWORD PTR -4[r12+rdx*4], eax
	imul	esi, DWORD PTR EDID_LENGTH[rip]
	mov	DWORD PTR 504[r12], ebx
	mov	edx, DWORD PTR GFP_KERNEL[rip]
	call	krealloc@PLT
	mov	r13, rax
	test	rax, rax
	jne	.L1
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L20:
	mov	DWORD PTR 4[rsp], r13d
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L18:
	mov	r12, r13
	xor	r13d, r13d
	mov	rdi, r12
	call	kfree@PLT
	jmp	.L1
.L50:
	mov	rbx, QWORD PTR 8[rsp]
	mov	rdi, rbx
	call	drm_get_connector_name@PLT
	xor	ecx, ecx
	lea	rsi, .LC1[rip]
	mov	edx, eax
	mov	rax, QWORD PTR 8[rbx]
	mov	edi, DWORD PTR [rax]
	call	dev_warn@PLT
	jmp	.L14
	.cfi_endproc
.LFE0:
	.size	drm_do_get_edid, .-drm_do_get_edid
	.comm	drm_debug,4,4
	.comm	GFP_KERNEL,4,4
	.comm	EDID_LENGTH,4,4
	.comm	DRM_UT_KMS,4,4
	.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_edid.c_drm_do_get_edid.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"%s: Ignoring invalid EDID block %d.\012\000"
	.align	2
.LC1:
	.ascii	"%s: EDID block %d invalid.\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	drm_do_get_edid, %function
drm_do_get_edid:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, [r0]
	mov	r9, r0
	cmp	r3, #0
	mov	r10, r1
	moveq	fp, #1
	sub	sp, sp, #12
	beq	.L2
	ldr	r2, .L51
	ldr	r3, .L51+4
	ldr	r2, [r2]
	ldr	r3, [r3]
	tst	r2, r3
	movne	fp, #1
	moveq	fp, #0
.L2:
	ldr	r3, .L51+8
	ldr	r5, .L51+12
	ldr	r1, [r3]
	ldr	r0, [r5]
	bl	kmalloc
	subs	r4, r0, #0
	beq	.L1
	mov	r6, #1
.L9:
	mov	r2, #0
	mov	r1, r4
	mov	r0, r10
	ldr	r3, [r5]
	bl	drm_do_probe_ddc_edid
	subs	r7, r0, #0
	bne	.L18
	mov	r2, fp
	mov	r1, r7
	mov	r0, r4
	bl	drm_edid_block_valid
	cmp	r0, #0
	bne	.L5
	cmp	r6, #1
	beq	.L49
	cmp	r6, #4
	beq	.L8
.L7:
	add	r6, r6, #1
	b	.L9
.L49:
	mov	r0, r4
	ldr	r1, [r5]
	bl	drm_edid_is_zero
	cmp	r0, #0
	beq	.L7
	ldr	r3, [r9, #8]
	add	r3, r3, #1
	str	r3, [r9, #8]
.L8:
	cmp	fp, #0
	bne	.L50
.L14:
	mov	r8, r4
	ldr	r3, [r9]
	add	r3, r3, #1
	str	r3, [r9]
.L4:
	mov	r0, r8
	bl	kfree
	mov	r4, #0
.L1:
	mov	r0, r4
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L5:
	ldr	r3, [r4, #504]
	cmp	r3, #0
	beq	.L1
	ldr	r1, [r5]
	add	r3, r3, #1
	mul	r1, r3, r1
	ldr	r3, .L51+8
	mov	r0, r4
	ldr	r2, [r3]
	bl	krealloc
	subs	r8, r0, #0
	beq	.L18
	ldr	r3, [r8, #504]
	cmp	r3, #0
	ble	.L10
	mov	r6, #1
	str	r7, [sp, #4]
.L13:
	mov	r4, #4
	ldr	r3, [sp, #4]
	add	r7, r3, #1
.L12:
	ldr	r3, [r5]
	mov	r2, r6
	mul	r1, r7, r3
	mov	r0, r10
	add	r1, r8, r1, lsl #2
	bl	drm_do_probe_ddc_edid
	cmp	r0, #0
	bne	.L4
	ldr	r0, [r5]
	mov	r2, fp
	mul	r0, r7, r0
	mov	r1, r6
	add	r0, r8, r0, lsl #2
	bl	drm_edid_block_valid
	cmp	r0, #0
	bne	.L19
	subs	r4, r4, #1
	bne	.L12
	cmp	fp, #0
	beq	.L11
	ldr	r3, [r9, #4]
	mov	r0, r9
	ldr	r4, [r3]
	bl	drm_get_connector_name
	mov	r3, r6
	mov	r2, r0
	ldr	r1, .L51+16
	mov	r0, r4
	bl	dev_warn
	ldr	r3, [r9]
	add	r3, r3, #1
	str	r3, [r9]
.L11:
	ldr	r3, [r8, #504]
	add	r6, r6, #1
	cmp	r3, r6
	bge	.L13
	ldr	r7, [sp, #4]
.L10:
	cmp	r3, r7
	moveq	r4, r8
	beq	.L1
	ldr	r2, [r5]
	sub	r3, r3, r7
	sub	r2, r2, #-1073741823
	ldr	r0, [r8, r2, lsl #2]
	add	r1, r7, #1
	add	r3, r0, r3
	str	r3, [r8, r2, lsl #2]
	ldr	r3, [r5]
	ldr	r2, .L51+8
	mov	r0, r8
	mul	r1, r3, r1
	ldr	r2, [r2]
	str	r7, [r8, #504]
	bl	krealloc
	subs	r4, r0, #0
	bne	.L1
	b	.L4
.L19:
	str	r7, [sp, #4]
	b	.L11
.L18:
	mov	r8, r4
	mov	r0, r8
	bl	kfree
	mov	r4, #0
	b	.L1
.L50:
	ldr	r3, [r9, #4]
	mov	r0, r9
	ldr	r5, [r3]
	bl	drm_get_connector_name
	mov	r3, #0
	mov	r2, r0
	ldr	r1, .L51+20
	mov	r0, r5
	bl	dev_warn
	b	.L14
.L52:
	.align	2
.L51:
	.word	drm_debug
	.word	DRM_UT_KMS
	.word	GFP_KERNEL
	.word	EDID_LENGTH
	.word	.LC0
	.word	.LC1
	.size	drm_do_get_edid, .-drm_do_get_edid
	.comm	drm_debug,4,4
	.comm	GFP_KERNEL,4,4
	.comm	EDID_LENGTH,4,4
	.comm	DRM_UT_KMS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
