	.file	"extr_w100fb.c_w100fb_activate_var.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	w100fb_activate_var, @function
w100fb_activate_var:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	rax, QWORD PTR 8[rdi]
	mov	rbx, QWORD PTR [rax]
	call	w100_pwm_setup@PLT
	mov	rdi, rbp
	call	w100_setup_memory@PLT
	mov	rdi, rbp
	call	w100_init_clocks@PLT
	mov	rdi, rbp
	call	w100fb_clear_screen@PLT
	xor	eax, eax
	call	w100_vsync@PLT
	xor	eax, eax
	call	w100_update_disable@PLT
	mov	rdi, rbp
	call	w100_init_lcd@PLT
	mov	rdi, rbp
	call	w100_set_dispregs@PLT
	xor	eax, eax
	call	w100_update_enable@PLT
	mov	rdi, rbp
	call	w100_init_graphic_engine@PLT
	mov	rdi, rbp
	call	calc_hsync@PLT
	mov	eax, DWORD PTR 0[rbp]
	test	eax, eax
	jne	.L1
	test	rbx, rbx
	je	.L1
	mov	rax, QWORD PTR [rbx]
	test	rax, rax
	je	.L1
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rdi, rbp
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	rax
	.p2align 4,,10
	.p2align 3
.L1:
	.cfi_restore_state
	add	rsp, 8
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	w100fb_activate_var, .-w100fb_activate_var
	.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_w100fb.c_w100fb_activate_var.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	w100fb_activate_var, %function
w100fb_activate_var:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	ldr	r3, [r0, #4]
	ldr	r5, [r3]
	bl	w100_pwm_setup
	mov	r0, r4
	bl	w100_setup_memory
	mov	r0, r4
	bl	w100_init_clocks
	mov	r0, r4
	bl	w100fb_clear_screen
	bl	w100_vsync
	bl	w100_update_disable
	mov	r0, r4
	bl	w100_init_lcd
	mov	r0, r4
	bl	w100_set_dispregs
	bl	w100_update_enable
	mov	r0, r4
	bl	w100_init_graphic_engine
	mov	r0, r4
	bl	calc_hsync
	ldr	r2, [r4]
	subs	r3, r5, #0
	movne	r3, #1
	cmp	r2, #0
	movne	r3, #0
	cmp	r3, #0
	popeq	{r4, r5, r6, pc}
	ldr	r3, [r5]
	cmp	r3, #0
	popeq	{r4, r5, r6, pc}
	mov	r0, r4
	pop	{r4, r5, r6, lr}
	bx	r3
	.size	w100fb_activate_var, .-w100fb_activate_var
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
