	.file	"extr_viafbdev.c_retrieve_device_setting.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	retrieve_device_setting, @function
retrieve_device_setting:
.LFB0:
	.cfi_startproc
	endbr64
	cmp	DWORD PTR viafb_CRT_ON[rip], 1
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	mov	rbx, rdi
	jne	.L2
	mov	eax, DWORD PTR CRT_Device[rip]
	mov	DWORD PTR 52[rdi], eax
.L2:
	cmp	DWORD PTR viafb_DVI_ON[rip], 1
	jne	.L3
	mov	eax, DWORD PTR DVI_Device[rip]
	or	DWORD PTR 52[rbx], eax
.L3:
	cmp	DWORD PTR viafb_LCD_ON[rip], 1
	jne	.L4
	mov	eax, DWORD PTR LCD_Device[rip]
	or	DWORD PTR 52[rbx], eax
.L4:
	cmp	DWORD PTR viafb_LCD2_ON[rip], 1
	jne	.L5
	mov	eax, DWORD PTR LCD2_Device[rip]
	or	DWORD PTR 52[rbx], eax
.L5:
	mov	eax, DWORD PTR viafb_SAMM_ON[rip]
	mov	DWORD PTR 48[rbx], eax
	xor	eax, eax
	call	get_primary_device@PLT
	mov	DWORD PTR 44[rbx], eax
	mov	eax, DWORD PTR viafb_bpp[rip]
	mov	DWORD PTR 40[rbx], eax
	mov	eax, DWORD PTR viafb_bpp1[rip]
	mov	DWORD PTR 36[rbx], eax
	mov	eax, DWORD PTR viafb_refresh[rip]
	mov	DWORD PTR 32[rbx], eax
	mov	eax, DWORD PTR viafb_refresh1[rip]
	mov	DWORD PTR 28[rbx], eax
	mov	eax, DWORD PTR viafb_hotplug_Xres[rip]
	mov	DWORD PTR 24[rbx], eax
	mov	eax, DWORD PTR viafb_hotplug_Yres[rip]
	mov	DWORD PTR 20[rbx], eax
	mov	eax, DWORD PTR viafb_second_xres[rip]
	mov	DWORD PTR 16[rbx], eax
	mov	eax, DWORD PTR viafb_second_yres[rip]
	mov	DWORD PTR 12[rbx], eax
	mov	eax, DWORD PTR viafb_lcd_dsp_method[rip]
	mov	DWORD PTR 8[rbx], eax
	mov	eax, DWORD PTR viafb_lcd_panel_id[rip]
	mov	DWORD PTR 4[rbx], eax
	mov	eax, DWORD PTR viafb_lcd_mode[rip]
	mov	DWORD PTR [rbx], eax
	pop	rbx
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	retrieve_device_setting, .-retrieve_device_setting
	.comm	viafb_second_yres,4,4
	.comm	viafb_second_xres,4,4
	.comm	viafb_refresh1,4,4
	.comm	viafb_refresh,4,4
	.comm	viafb_lcd_panel_id,4,4
	.comm	viafb_lcd_mode,4,4
	.comm	viafb_lcd_dsp_method,4,4
	.comm	viafb_hotplug_Yres,4,4
	.comm	viafb_hotplug_Xres,4,4
	.comm	viafb_bpp1,4,4
	.comm	viafb_bpp,4,4
	.comm	viafb_SAMM_ON,4,4
	.comm	viafb_LCD_ON,4,4
	.comm	viafb_LCD2_ON,4,4
	.comm	viafb_DVI_ON,4,4
	.comm	viafb_CRT_ON,4,4
	.comm	LCD_Device,4,4
	.comm	LCD2_Device,4,4
	.comm	DVI_Device,4,4
	.comm	CRT_Device,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_viafbdev.c_retrieve_device_setting.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	retrieve_device_setting, %function
retrieve_device_setting:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L8
	push	{r4, r5, r6, lr}
	ldr	r3, [r3]
	mov	r4, r0
	cmp	r3, #1
	ldreq	r3, .L8+4
	ldreq	r3, [r3]
	streq	r3, [r0, #52]
	ldr	r3, .L8+8
	ldr	r3, [r3]
	cmp	r3, #1
	ldreq	r2, .L8+12
	ldreq	r3, [r0, #52]
	ldreq	r2, [r2]
	orreq	r3, r3, r2
	streq	r3, [r0, #52]
	ldr	r3, .L8+16
	ldr	r3, [r3]
	cmp	r3, #1
	ldreq	r2, .L8+20
	ldreq	r3, [r0, #52]
	ldreq	r2, [r2]
	orreq	r3, r3, r2
	streq	r3, [r0, #52]
	ldr	r3, .L8+24
	ldr	r3, [r3]
	cmp	r3, #1
	ldreq	r2, .L8+28
	ldreq	r3, [r0, #52]
	ldreq	r2, [r2]
	orreq	r3, r3, r2
	streq	r3, [r0, #52]
	ldr	r3, .L8+32
	ldr	r3, [r3]
	str	r3, [r0, #48]
	bl	get_primary_device
	ldr	r3, .L8+36
	ldr	lr, .L8+40
	ldr	r5, [r3]
	ldr	ip, .L8+44
	ldr	r3, .L8+48
	ldr	ip, [ip]
	ldr	r6, [lr]
	ldr	lr, [r3]
	ldr	r3, .L8+52
	ldr	r1, .L8+56
	str	ip, [r4, #40]
	ldr	ip, [r3]
	ldr	r3, .L8+60
	ldr	r1, [r1]
	ldr	r2, .L8+64
	str	r0, [r4, #44]
	ldr	r0, [r3]
	ldr	r3, .L8+68
	ldr	r2, [r2]
	str	r1, [r4, #32]
	ldr	r1, [r3]
	ldr	r3, .L8+72
	str	r2, [r4, #28]
	ldr	r2, [r3]
	ldr	r3, .L8+76
	str	r6, [r4, #36]
	ldr	r3, [r3]
	str	r5, [r4, #24]
	str	lr, [r4, #20]
	str	ip, [r4, #16]
	str	r0, [r4, #12]
	str	r1, [r4, #8]
	str	r2, [r4, #4]
	str	r3, [r4]
	pop	{r4, r5, r6, pc}
.L9:
	.align	2
.L8:
	.word	viafb_CRT_ON
	.word	CRT_Device
	.word	viafb_DVI_ON
	.word	DVI_Device
	.word	viafb_LCD_ON
	.word	LCD_Device
	.word	viafb_LCD2_ON
	.word	LCD2_Device
	.word	viafb_SAMM_ON
	.word	viafb_hotplug_Xres
	.word	viafb_bpp1
	.word	viafb_bpp
	.word	viafb_hotplug_Yres
	.word	viafb_second_xres
	.word	viafb_refresh
	.word	viafb_second_yres
	.word	viafb_refresh1
	.word	viafb_lcd_dsp_method
	.word	viafb_lcd_panel_id
	.word	viafb_lcd_mode
	.size	retrieve_device_setting, .-retrieve_device_setting
	.comm	viafb_second_yres,4,4
	.comm	viafb_second_xres,4,4
	.comm	viafb_refresh1,4,4
	.comm	viafb_refresh,4,4
	.comm	viafb_lcd_panel_id,4,4
	.comm	viafb_lcd_mode,4,4
	.comm	viafb_lcd_dsp_method,4,4
	.comm	viafb_hotplug_Yres,4,4
	.comm	viafb_hotplug_Xres,4,4
	.comm	viafb_bpp1,4,4
	.comm	viafb_bpp,4,4
	.comm	viafb_SAMM_ON,4,4
	.comm	viafb_LCD_ON,4,4
	.comm	viafb_LCD2_ON,4,4
	.comm	viafb_DVI_ON,4,4
	.comm	viafb_CRT_ON,4,4
	.comm	LCD_Device,4,4
	.comm	LCD2_Device,4,4
	.comm	DVI_Device,4,4
	.comm	CRT_Device,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
