	.file	"extr_airo.c_flashgchar.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	flashgchar, @function
flashgchar:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12d, esi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	ebx, edx
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L17:
	test	ah, -128
	je	.L16
	movzx	ecx, al
	mov	edx, eax
	cmp	r12d, ecx
	je	.L9
.L5:
	cmp	dl, 26
	sete	cl
	cmp	eax, 65535
	sete	al
	or	cl, al
	jne	.L7
	add	edx, 127
	cmp	dl, 2
	jbe	.L7
	mov	esi, DWORD PTR SWS1[rip]
	xor	edx, edx
	mov	rdi, rbp
	call	OUT4500@PLT
	test	ebx, ebx
	jle	.L7
.L8:
	mov	esi, DWORD PTR SWS1[rip]
	mov	rdi, rbp
	call	IN4500@PLT
	test	ebx, ebx
	jne	.L17
	movzx	ecx, al
	mov	edx, eax
	cmp	ecx, r12d
	jne	.L5
	test	ah, -128
	je	.L5
.L9:
	mov	esi, DWORD PTR SWS1[rip]
	mov	rdi, rbp
	xor	edx, edx
	call	OUT4500@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L16:
	.cfi_restore_state
	sub	ebx, 10
	mov	edi, 10
	call	mdelay@PLT
	test	ebx, ebx
	jg	.L8
.L7:
	mov	eax, DWORD PTR EIO[rip]
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.cfi_endproc
.LFE0:
	.size	flashgchar, .-flashgchar
	.comm	SWS1,4,4
	.comm	EIO,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_airo.c_flashgchar.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	flashgchar, %function
flashgchar:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r0
	mov	r7, r1
	mov	r4, r2
	ldr	r6, .L18
	ldr	r8, .L18+4
	b	.L8
.L17:
	tst	r0, #32768
	beq	.L16
	cmp	r7, r2
	beq	.L9
.L5:
	cmp	r0, r8
	cmpne	r2, #26
	moveq	r0, #1
	movne	r0, #0
	add	r2, r2, #127
	and	r2, r2, #255
	cmp	r2, #2
	movhi	r2, r0
	orrls	r2, r0, #1
	cmp	r2, #0
	bne	.L7
	mov	r0, r5
	ldr	r1, [r6]
	bl	OUT4500
	cmp	r4, #0
	ble	.L7
.L8:
	mov	r0, r5
	ldr	r1, [r6]
	bl	IN4500
	cmp	r4, #0
	and	r2, r0, #255
	bne	.L17
	cmp	r2, r7
	bne	.L5
	tst	r0, #32768
	beq	.L5
.L9:
	mov	r0, r5
	mov	r2, #0
	ldr	r1, [r6]
	bl	OUT4500
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L16:
	mov	r0, #10
	sub	r4, r4, #10
	bl	mdelay
	cmp	r4, #0
	bgt	.L8
.L7:
	ldr	r3, .L18+8
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L19:
	.align	2
.L18:
	.word	SWS1
	.word	65535
	.word	EIO
	.size	flashgchar, .-flashgchar
	.comm	SWS1,4,4
	.comm	EIO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
