	.file	"extr_sun4i_rgb.c_sun4i_rgb_init.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"No panel or bridge found... RGB output disabled\n"
	.align 8
.LC1:
	.string	"Couldn't initialise the rgb encoder\n"
	.align 8
.LC2:
	.string	"Couldn't initialise the rgb connector\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC3:
	.string	"Couldn't attach our panel\n"
.LC4:
	.string	"Couldn't attach our bridge\n"
	.text
	.p2align 4
	.globl	sun4i_rgb_init
	.type	sun4i_rgb_init, @function
sun4i_rgb_init:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	edx, DWORD PTR GFP_KERNEL[rip]
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rsi
	mov	esi, 40
	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	edi, DWORD PTR [rdi]
	call	devm_kzalloc@PLT
	mov	r12d, DWORD PTR ENOMEM[rip]
	neg	r12d
	test	rax, rax
	je	.L1
	mov	rbp, rax
	mov	QWORD PTR 32[rax], r13
	lea	rcx, 24[rax]
	mov	rax, QWORD PTR 8[r13]
	xor	edx, edx
	lea	r8, 8[rbp]
	mov	esi, 1
	mov	edi, DWORD PTR [rax]
	call	drm_of_find_panel_or_bridge@PLT
	test	eax, eax
	jne	.L19
	lea	rsi, sun4i_rgb_enc_helper_funcs[rip]
	mov	rdi, rbp
	call	drm_encoder_helper_add@PLT
	xor	r8d, r8d
	mov	rsi, rbp
	mov	rdi, rbx
	mov	ecx, DWORD PTR DRM_MODE_ENCODER_NONE[rip]
	lea	rdx, sun4i_rgb_enc_funcs[rip]
	call	drm_encoder_init@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L20
	mov	rdi, QWORD PTR 0[r13]
	call	drm_crtc_mask@PLT
	cmp	QWORD PTR 24[rbp], 0
	mov	DWORD PTR 0[rbp], eax
	jne	.L21
.L6:
	mov	rsi, QWORD PTR 8[rbp]
	test	rsi, rsi
	jne	.L22
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	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
	.p2align 4,,10
	.p2align 3
.L19:
	.cfi_restore_state
	mov	edi, DWORD PTR [rbx]
	xor	r12d, r12d
	lea	rsi, .LC0[rip]
	call	dev_info@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	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
	.p2align 4,,10
	.p2align 3
.L22:
	.cfi_restore_state
	xor	edx, edx
	mov	rdi, rbp
	call	drm_bridge_attach@PLT
	mov	r13d, eax
	test	eax, eax
	je	.L1
	mov	edi, DWORD PTR [rbx]
	lea	rsi, .LC4[rip]
	mov	r12d, r13d
	call	dev_err@PLT
.L8:
	mov	rdi, rbp
	call	drm_encoder_cleanup@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L20:
	mov	edi, DWORD PTR [rbx]
	lea	rsi, .LC1[rip]
	call	dev_err@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	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
	.p2align 4,,10
	.p2align 3
.L21:
	.cfi_restore_state
	lea	r14, 16[rbp]
	lea	rsi, sun4i_rgb_con_helper_funcs[rip]
	mov	rdi, r14
	call	drm_connector_helper_add@PLT
	mov	ecx, DWORD PTR DRM_MODE_CONNECTOR_Unknown[rip]
	mov	rsi, r14
	mov	rdi, rbx
	lea	rdx, sun4i_rgb_con_funcs[rip]
	call	drm_connector_init@PLT
	mov	r13d, eax
	test	eax, eax
	jne	.L23
	mov	rsi, rbp
	mov	rdi, r14
	call	drm_connector_attach_encoder@PLT
	mov	rdi, QWORD PTR 24[rbp]
	mov	rsi, r14
	call	drm_panel_attach@PLT
	mov	r13d, eax
	test	eax, eax
	je	.L6
	mov	edi, DWORD PTR [rbx]
	lea	rsi, .LC3[rip]
	mov	r12d, r13d
	call	dev_err@PLT
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L23:
	mov	edi, DWORD PTR [rbx]
	lea	rsi, .LC2[rip]
	mov	r12d, r13d
	call	dev_err@PLT
	jmp	.L8
	.cfi_endproc
.LFE0:
	.size	sun4i_rgb_init, .-sun4i_rgb_init
	.comm	sun4i_rgb_enc_helper_funcs,4,4
	.comm	sun4i_rgb_enc_funcs,4,4
	.comm	sun4i_rgb_con_helper_funcs,4,4
	.comm	sun4i_rgb_con_funcs,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.comm	DRM_MODE_ENCODER_NONE,4,4
	.comm	DRM_MODE_CONNECTOR_Unknown,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_sun4i_rgb.c_sun4i_rgb_init.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"No panel or bridge found... RGB output disabled\012"
	.ascii	"\000"
	.align	2
.LC1:
	.ascii	"Couldn't initialise the rgb encoder\012\000"
	.align	2
.LC2:
	.ascii	"Couldn't initialise the rgb connector\012\000"
	.align	2
.LC3:
	.ascii	"Couldn't attach our panel\012\000"
	.align	2
.LC4:
	.ascii	"Couldn't attach our bridge\012\000"
	.text
	.align	2
	.global	sun4i_rgb_init
	.syntax unified
	.arm
	.fpu softvfp
	.type	sun4i_rgb_init, %function
sun4i_rgb_init:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	ldr	r3, .L27
	mov	r6, r0
	mov	r7, r1
	ldr	r0, [r0]
	mov	r1, #20
	ldr	r2, [r3]
	sub	sp, sp, #12
	bl	devm_kzalloc
	subs	r4, r0, #0
	beq	.L22
	ldr	r2, [r7, #4]
	add	r3, r4, #4
	ldr	r0, [r2]
	mov	r1, #1
	str	r7, [r4, #16]
	mov	r2, #0
	str	r3, [sp]
	add	r3, r4, #12
	bl	drm_of_find_panel_or_bridge
	subs	r5, r0, #0
	bne	.L23
	ldr	r1, .L27+4
	mov	r0, r4
	bl	drm_encoder_helper_add
	ldr	r3, .L27+8
	str	r5, [sp]
	mov	r1, r4
	mov	r0, r6
	ldr	r3, [r3]
	ldr	r2, .L27+12
	bl	drm_encoder_init
	subs	r5, r0, #0
	bne	.L24
	ldr	r0, [r7]
	bl	drm_crtc_mask
	ldr	r3, [r4, #12]
	str	r0, [r4]
	cmp	r3, #0
	bne	.L25
.L6:
	ldr	r1, [r4, #4]
	cmp	r1, #0
	beq	.L1
	mov	r2, #0
	mov	r0, r4
	bl	drm_bridge_attach
	subs	r3, r0, #0
	beq	.L1
	ldr	r0, [r6]
	ldr	r1, .L27+16
	mov	r5, r3
	bl	dev_err
.L8:
	mov	r0, r4
	bl	drm_encoder_cleanup
	b	.L1
.L23:
	ldr	r0, [r6]
	ldr	r1, .L27+20
	bl	dev_info
	mov	r5, #0
.L1:
	mov	r0, r5
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L22:
	ldr	r3, .L27+24
	ldr	r5, [r3]
	rsb	r5, r5, #0
	mov	r0, r5
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L24:
	ldr	r0, [r6]
	ldr	r1, .L27+28
	bl	dev_err
	mov	r0, r5
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L25:
	add	r7, r4, #8
	ldr	r1, .L27+32
	mov	r0, r7
	bl	drm_connector_helper_add
	ldr	r3, .L27+36
	mov	r1, r7
	ldr	r3, [r3]
	mov	r0, r6
	ldr	r2, .L27+40
	bl	drm_connector_init
	subs	r3, r0, #0
	bne	.L26
	mov	r1, r4
	mov	r0, r7
	bl	drm_connector_attach_encoder
	mov	r1, r7
	ldr	r0, [r4, #12]
	bl	drm_panel_attach
	subs	r3, r0, #0
	beq	.L6
	ldr	r0, [r6]
	ldr	r1, .L27+44
	mov	r5, r3
	bl	dev_err
	b	.L8
.L26:
	ldr	r0, [r6]
	ldr	r1, .L27+48
	mov	r5, r3
	bl	dev_err
	b	.L8
.L28:
	.align	2
.L27:
	.word	GFP_KERNEL
	.word	sun4i_rgb_enc_helper_funcs
	.word	DRM_MODE_ENCODER_NONE
	.word	sun4i_rgb_enc_funcs
	.word	.LC4
	.word	.LC0
	.word	ENOMEM
	.word	.LC1
	.word	sun4i_rgb_con_helper_funcs
	.word	DRM_MODE_CONNECTOR_Unknown
	.word	sun4i_rgb_con_funcs
	.word	.LC3
	.word	.LC2
	.size	sun4i_rgb_init, .-sun4i_rgb_init
	.comm	sun4i_rgb_enc_helper_funcs,4,4
	.comm	sun4i_rgb_enc_funcs,4,4
	.comm	sun4i_rgb_con_helper_funcs,4,4
	.comm	sun4i_rgb_con_funcs,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.comm	DRM_MODE_ENCODER_NONE,4,4
	.comm	DRM_MODE_CONNECTOR_Unknown,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
