	.file	"extr_osdcore.c_OSDDisplayMessages.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	OSDDisplayMessages
	.type	OSDDisplayMessages, @function
OSDDisplayMessages:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	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
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	cmp	QWORD PTR OSD[rip], 0
	je	.L7
	mov	eax, DWORD PTR OSDMSG_COUNT[rip]
	test	eax, eax
	jle	.L7
	mov	rbp, rdi
	mov	r12d, esi
	mov	r13d, edx
	xor	ebx, ebx
	xor	r15d, r15d
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L3:
	add	rbx, 1
	cmp	DWORD PTR OSDMSG_COUNT[rip], ebx
	jle	.L1
.L5:
	mov	rdi, QWORD PTR osdmessages[rip]
	lea	r14, [rbx+rbx*2]
	sal	r14, 3
	add	rdi, r14
	mov	rax, QWORD PTR [rdi]
	test	rax, rax
	jle	.L3
	cmp	QWORD PTR 8[rdi], 0
	jne	.L4
	mov	rax, QWORD PTR OSD[rip]
	mov	ecx, r13d
	mov	edx, r12d
	mov	rsi, rbp
	mov	r15d, 1
	call	[QWORD PTR [rax]]
	mov	rdi, QWORD PTR osdmessages[rip]
	add	rdi, r14
	mov	rax, QWORD PTR [rdi]
.L4:
	sub	rax, 1
	mov	QWORD PTR [rdi], rax
	jne	.L3
	mov	edi, DWORD PTR 16[rdi]
	add	rbx, 1
	call	free@PLT
	cmp	DWORD PTR OSDMSG_COUNT[rip], ebx
	jg	.L5
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r15d
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	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
.L7:
	.cfi_restore_state
	xor	r15d, r15d
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	OSDDisplayMessages, .-OSDDisplayMessages
	.comm	osdmessages,8,8
	.comm	OSDMSG_COUNT,4,4
	.comm	OSD,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_osdcore.c_OSDDisplayMessages.c"
	.text
	.align	2
	.global	OSDDisplayMessages
	.syntax unified
	.arm
	.fpu softvfp
	.type	OSDDisplayMessages, %function
OSDDisplayMessages:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r10, .L12
	sub	sp, sp, #20
	ldr	r9, [r10]
	str	r1, [sp, #8]
	cmp	r9, #0
	str	r2, [sp, #12]
	beq	.L1
	ldr	r8, .L12+4
	ldr	r3, [r8]
	cmp	r3, #0
	ble	.L7
	mov	r9, #0
	mov	fp, r0
	mov	r4, r9
	ldr	r6, .L12+8
	str	r9, [sp, #4]
	b	.L5
.L3:
	ldr	r3, [r8]
	cmp	r3, r4
	ble	.L11
.L5:
	ldr	r0, [r6]
	add	r5, r4, r4, lsl #1
	ldr	r3, [r0, r5, lsl #2]
	add	r4, r4, #1
	cmp	r3, #0
	add	r0, r0, r5, lsl #2
	lsl	r7, r5, #2
	ble	.L3
	ldr	r2, [r0, #4]
	cmp	r2, #0
	bne	.L4
	mov	r3, #1
	str	r3, [sp, #4]
	ldr	r3, [r10]
	mov	r1, fp
	ldr	r9, [r3]
	ldr	r2, [sp, #8]
	ldr	r3, [sp, #12]
	blx	r9
	ldr	r0, [r6]
	ldr	r3, [r0, r5, lsl #2]
	add	r0, r0, r7
.L4:
	sub	r3, r3, #1
	cmp	r3, #0
	str	r3, [r0]
	bne	.L3
	ldr	r0, [r0, #8]
	bl	free
	ldr	r3, [r8]
	cmp	r3, r4
	bgt	.L5
.L11:
	ldr	r9, [sp, #4]
.L1:
	mov	r0, r9
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L7:
	mov	r9, #0
	b	.L1
.L13:
	.align	2
.L12:
	.word	OSD
	.word	OSDMSG_COUNT
	.word	osdmessages
	.size	OSDDisplayMessages, .-OSDDisplayMessages
	.comm	osdmessages,4,4
	.comm	OSDMSG_COUNT,4,4
	.comm	OSD,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
