	.file	"extr_visualizer.c_update_lcd_text.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	update_lcd_text, @function
update_lcd_text:
.LFB0:
	.cfi_startproc
	endbr64
	sub	rsp, 8
	.cfi_def_cfa_offset 16
	mov	rax, QWORD PTR [rdi]
	mov	rdx, QWORD PTR lcd_state[rip]
	test	rax, rax
	je	.L2
	cmp	QWORD PTR LCD_STATE_BITMAP_AND_LEDS[rip], rdx
	jne	.L3
	cmp	rax, QWORD PTR [rsi]
	je	.L8
.L3:
	lea	rdi, lcd_bitmap_animation[rip]
	call	stop_keyframe_animation@PLT
	mov	rax, QWORD PTR LCD_STATE_BITMAP_AND_LEDS[rip]
	lea	rdi, lcd_bitmap_leds_animation[rip]
	mov	QWORD PTR lcd_state[rip], rax
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	jmp	start_keyframe_animation@PLT
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	cmp	QWORD PTR LCD_STATE_LAYER_BITMAP[rip], rdx
	jne	.L5
	mov	rax, QWORD PTR 8[rsi]
	cmp	QWORD PTR 8[rdi], rax
	je	.L9
.L5:
	lea	rdi, lcd_bitmap_leds_animation[rip]
	call	stop_keyframe_animation@PLT
	mov	rax, QWORD PTR LCD_STATE_LAYER_BITMAP[rip]
	lea	rdi, lcd_bitmap_animation[rip]
	mov	QWORD PTR lcd_state[rip], rax
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	jmp	start_keyframe_animation@PLT
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	rax, QWORD PTR 8[rsi]
	cmp	QWORD PTR 8[rdi], rax
	jne	.L3
	mov	rax, QWORD PTR 16[rsi]
	cmp	QWORD PTR 16[rdi], rax
	jne	.L3
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	mov	rax, QWORD PTR 16[rsi]
	cmp	QWORD PTR 16[rdi], rax
	jne	.L5
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	update_lcd_text, .-update_lcd_text
	.comm	lcd_state,8,8
	.comm	lcd_bitmap_leds_animation,4,4
	.comm	lcd_bitmap_animation,4,4
	.comm	LCD_STATE_LAYER_BITMAP,8,8
	.comm	LCD_STATE_BITMAP_AND_LEDS,8,8
	.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_visualizer.c_update_lcd_text.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	update_lcd_text, %function
update_lcd_text:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r0]
	push	{r4, r5, r6, lr}
	ldr	r4, .L10
	cmp	r3, #0
	ldr	r2, [r4]
	beq	.L2
	ldr	r5, .L10+4
	ldr	ip, [r5]
	cmp	ip, r2
	bne	.L3
	ldr	r2, [r1]
	cmp	r3, r2
	beq	.L8
.L3:
	ldr	r0, .L10+8
	bl	stop_keyframe_animation
	ldr	r3, [r5]
	ldr	r0, .L10+12
	str	r3, [r4]
	pop	{r4, r5, r6, lr}
	b	start_keyframe_animation
.L2:
	ldr	r5, .L10+16
	ldr	r3, [r5]
	cmp	r3, r2
	bne	.L5
	ldr	r2, [r0, #4]
	ldr	r3, [r1, #4]
	cmp	r2, r3
	beq	.L9
.L5:
	ldr	r0, .L10+12
	bl	stop_keyframe_animation
	ldr	r3, [r5]
	ldr	r0, .L10+8
	str	r3, [r4]
	pop	{r4, r5, r6, lr}
	b	start_keyframe_animation
.L8:
	ldr	r2, [r0, #4]
	ldr	r3, [r1, #4]
	cmp	r2, r3
	bne	.L3
	ldr	r2, [r0, #8]
	ldr	r3, [r1, #8]
	cmp	r2, r3
	bne	.L3
	pop	{r4, r5, r6, pc}
.L9:
	ldr	r2, [r0, #8]
	ldr	r3, [r1, #8]
	cmp	r2, r3
	bne	.L5
	pop	{r4, r5, r6, pc}
.L11:
	.align	2
.L10:
	.word	lcd_state
	.word	LCD_STATE_BITMAP_AND_LEDS
	.word	lcd_bitmap_animation
	.word	lcd_bitmap_leds_animation
	.word	LCD_STATE_LAYER_BITMAP
	.size	update_lcd_text, .-update_lcd_text
	.comm	lcd_state,4,4
	.comm	lcd_bitmap_leds_animation,4,4
	.comm	lcd_bitmap_animation,4,4
	.comm	LCD_STATE_LAYER_BITMAP,4,4
	.comm	LCD_STATE_BITMAP_AND_LEDS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
