	.file	"extr_zx_vga.c_zx_vga_register.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"failed to init encoder: %d\n"
.LC1:
	.string	"failed to init connector: %d\n"
.LC2:
	.string	"failed to attach encoder: %d\n"
	.text
	.p2align 4
	.type	zx_vga_register, @function
zx_vga_register:
.LFB0:
	.cfi_startproc
	endbr64
	mov	eax, DWORD PTR VOU_CRTC_MASK[rip]
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	xor	r8d, r8d
	lea	rdx, zx_vga_encoder_funcs[rip]
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	ecx, DWORD PTR DRM_MODE_ENCODER_DAC[rip]
	mov	r14, rsi
	mov	r15, rdi
	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
	lea	rbp, 16[rsi]
	mov	r13, QWORD PTR 8[rsi]
	mov	DWORD PTR 16[rsi], eax
	mov	rsi, rbp
	call	drm_encoder_init@PLT
	test	eax, eax
	jne	.L11
	lea	rsi, zx_vga_encoder_helper_funcs[rip]
	mov	rdi, rbp
	call	drm_encoder_helper_add@PLT
	mov	eax, DWORD PTR DRM_CONNECTOR_POLL_HPD[rip]
	mov	rsi, r14
	mov	rdi, r15
	mov	ecx, DWORD PTR DRM_MODE_CONNECTOR_VGA[rip]
	lea	rdx, zx_vga_connector_funcs[rip]
	mov	DWORD PTR [r14], eax
	call	drm_connector_init@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L12
	lea	rsi, zx_vga_connector_helper_funcs[rip]
	mov	rdi, r14
	call	drm_connector_helper_add@PLT
	mov	rsi, rbp
	mov	rdi, r14
	call	drm_connector_attach_encoder@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L13
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	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
.L12:
	.cfi_restore_state
	mov	edx, eax
	lea	rsi, .LC1[rip]
	mov	rdi, r13
	call	DRM_DEV_ERROR@PLT
.L5:
	mov	rdi, rbp
	call	drm_encoder_cleanup@PLT
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	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
.L11:
	.cfi_restore_state
	mov	r12d, eax
	mov	rdi, r13
	lea	rsi, .LC0[rip]
	mov	edx, eax
	call	DRM_DEV_ERROR@PLT
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	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
.L13:
	.cfi_restore_state
	mov	rdi, r13
	mov	edx, eax
	lea	rsi, .LC2[rip]
	call	DRM_DEV_ERROR@PLT
	mov	rdi, r14
	call	drm_connector_cleanup@PLT
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	zx_vga_register, .-zx_vga_register
	.comm	zx_vga_encoder_helper_funcs,4,4
	.comm	zx_vga_encoder_funcs,4,4
	.comm	zx_vga_connector_helper_funcs,4,4
	.comm	zx_vga_connector_funcs,4,4
	.comm	VOU_CRTC_MASK,4,4
	.comm	DRM_MODE_ENCODER_DAC,4,4
	.comm	DRM_MODE_CONNECTOR_VGA,4,4
	.comm	DRM_CONNECTOR_POLL_HPD,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_zx_vga.c_zx_vga_register.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"failed to init encoder: %d\012\000"
	.align	2
.LC1:
	.ascii	"failed to init connector: %d\012\000"
	.align	2
.LC2:
	.ascii	"failed to attach encoder: %d\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	zx_vga_register, %function
zx_vga_register:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r2, #0
	mov	r5, r1
	ldr	r1, .L14
	sub	sp, sp, #8
	ldr	r1, [r1]
	ldr	r3, .L14+4
	str	r1, [r5, #8]
	add	r6, r5, #8
	str	r2, [sp]
	mov	r1, r6
	ldr	r3, [r3]
	ldr	r2, .L14+8
	mov	r8, r0
	ldr	r7, [r5, #4]
	bl	drm_encoder_init
	subs	r4, r0, #0
	bne	.L11
	ldr	r1, .L14+12
	mov	r0, r6
	bl	drm_encoder_helper_add
	ldr	r2, .L14+16
	ldr	r3, .L14+20
	ldr	r2, [r2]
	mov	r0, r8
	str	r2, [r5]
	mov	r1, r5
	ldr	r3, [r3]
	ldr	r2, .L14+24
	bl	drm_connector_init
	subs	r4, r0, #0
	bne	.L12
	ldr	r1, .L14+28
	mov	r0, r5
	bl	drm_connector_helper_add
	mov	r1, r6
	mov	r0, r5
	bl	drm_connector_attach_encoder
	subs	r4, r0, #0
	bne	.L13
	mov	r0, r4
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L12:
	mov	r0, r7
	mov	r2, r4
	ldr	r1, .L14+32
	bl	DRM_DEV_ERROR
.L5:
	mov	r0, r6
	bl	drm_encoder_cleanup
	mov	r0, r4
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L11:
	mov	r0, r7
	mov	r2, r4
	ldr	r1, .L14+36
	bl	DRM_DEV_ERROR
	mov	r0, r4
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L13:
	mov	r0, r7
	mov	r2, r4
	ldr	r1, .L14+40
	bl	DRM_DEV_ERROR
	mov	r0, r5
	bl	drm_connector_cleanup
	b	.L5
.L15:
	.align	2
.L14:
	.word	VOU_CRTC_MASK
	.word	DRM_MODE_ENCODER_DAC
	.word	zx_vga_encoder_funcs
	.word	zx_vga_encoder_helper_funcs
	.word	DRM_CONNECTOR_POLL_HPD
	.word	DRM_MODE_CONNECTOR_VGA
	.word	zx_vga_connector_funcs
	.word	zx_vga_connector_helper_funcs
	.word	.LC1
	.word	.LC0
	.word	.LC2
	.size	zx_vga_register, .-zx_vga_register
	.comm	zx_vga_encoder_helper_funcs,4,4
	.comm	zx_vga_encoder_funcs,4,4
	.comm	zx_vga_connector_helper_funcs,4,4
	.comm	zx_vga_connector_funcs,4,4
	.comm	VOU_CRTC_MASK,4,4
	.comm	DRM_MODE_ENCODER_DAC,4,4
	.comm	DRM_MODE_CONNECTOR_VGA,4,4
	.comm	DRM_CONNECTOR_POLL_HPD,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
