	.file	"extr_m0110.c_m0110_recv_key.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"(4)\n"
.LC1:
	.string	"(3)\n"
.LC2:
	.string	"(2)\n"
.LC3:
	.string	"(1)\n"
	.text
	.p2align 4
	.globl	m0110_recv_key
	.type	m0110_recv_key, @function
m0110_recv_key:
.LFB0:
	.cfi_startproc
	endbr64
	mov	eax, DWORD PTR keybuf.1930[rip]
	test	eax, eax
	jne	.L26
	mov	eax, DWORD PTR keybuf2.1931[rip]
	test	eax, eax
	jne	.L27
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	ebp, DWORD PTR rawbuf.1932[rip]
	test	ebp, ebp
	je	.L5
	mov	DWORD PTR rawbuf.1932[rip], 0
.L6:
	mov	edi, ebp
	call	KEY@PLT
	cmp	eax, 128
	je	.L7
	cmp	eax, 129
	jne	.L8
	xor	eax, eax
	call	instant@PLT
	mov	edi, eax
	mov	ebp, eax
	call	KEY@PLT
	sub	eax, 130
	cmp	eax, 3
	jbe	.L28
.L9:
	mov	edi, ebp
	call	raw2scan@PLT
	or	eax, DWORD PTR M0110_KEYPAD_OFFSET[rip]
.L1:
	add	rsp, 8
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L27:
	.cfi_restore 6
	.cfi_restore 12
	mov	DWORD PTR keybuf2.1931[rip], 0
	ret
	.p2align 4,,10
	.p2align 3
.L26:
	mov	DWORD PTR keybuf.1930[rip], 0
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -24
	.cfi_offset 12, -16
	xor	eax, eax
	call	instant@PLT
	mov	edi, eax
	mov	r12d, eax
	call	KEY@PLT
	cmp	eax, 128
	je	.L10
	cmp	eax, 129
	je	.L11
	mov	edi, r12d
	call	raw2scan@PLT
	mov	DWORD PTR keybuf.1930[rip], eax
.L8:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	edi, ebp
	pop	rbp
	.cfi_restore 6
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_restore 12
	.cfi_def_cfa_offset 8
	jmp	raw2scan@PLT
	.p2align 4,,10
	.p2align 3
.L28:
	.cfi_restore_state
	mov	edi, ebp
	call	IS_BREAK@PLT
	test	eax, eax
	je	.L9
	mov	edi, ebp
	call	raw2scan@PLT
	mov	edi, ebp
	or	eax, DWORD PTR M0110_CALC_OFFSET[rip]
	mov	DWORD PTR keybuf.1930[rip], eax
	call	raw2scan@PLT
	or	eax, DWORD PTR M0110_KEYPAD_OFFSET[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L5:
	xor	eax, eax
	call	instant@PLT
	mov	ebp, eax
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L11:
	xor	eax, eax
	call	instant@PLT
	mov	edi, eax
	mov	r12d, eax
	call	KEY@PLT
	sub	eax, 130
	cmp	eax, 3
	ja	.L13
	mov	edi, ebp
	call	IS_BREAK@PLT
	mov	edi, r12d
	test	eax, eax
	je	.L14
	call	IS_BREAK@PLT
	test	eax, eax
	je	.L15
	lea	rdi, .LC0[rip]
	call	print@PLT
	mov	edi, ebp
	call	raw2scan@PLT
	mov	DWORD PTR keybuf2.1931[rip], eax
.L24:
	mov	edi, r12d
	call	raw2scan@PLT
	mov	edi, r12d
	or	eax, DWORD PTR M0110_CALC_OFFSET[rip]
	mov	DWORD PTR keybuf.1930[rip], eax
	call	raw2scan@PLT
	or	eax, DWORD PTR M0110_KEYPAD_OFFSET[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L10:
	mov	DWORD PTR rawbuf.1932[rip], r12d
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L13:
	mov	edi, r12d
	call	raw2scan@PLT
	or	eax, DWORD PTR M0110_KEYPAD_OFFSET[rip]
	mov	DWORD PTR keybuf.1930[rip], eax
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L14:
	call	IS_BREAK@PLT
	test	eax, eax
	je	.L16
	lea	rdi, .LC2[rip]
	call	print@PLT
	jmp	.L24
.L15:
	lea	rdi, .LC1[rip]
	call	print@PLT
	jmp	.L8
.L16:
	lea	rdi, .LC3[rip]
	call	print@PLT
	mov	edi, r12d
	call	raw2scan@PLT
	or	eax, DWORD PTR M0110_CALC_OFFSET[rip]
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	m0110_recv_key, .-m0110_recv_key
	.local	rawbuf.1932
	.comm	rawbuf.1932,4,4
	.local	keybuf2.1931
	.comm	keybuf2.1931,4,4
	.local	keybuf.1930
	.comm	keybuf.1930,4,4
	.comm	M0110_KEYPAD_OFFSET,4,4
	.comm	M0110_CALC_OFFSET,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_m0110.c_m0110_recv_key.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"(4)\012\000"
	.align	2
.LC1:
	.ascii	"(3)\012\000"
	.align	2
.LC2:
	.ascii	"(2)\012\000"
	.align	2
.LC3:
	.ascii	"(1)\012\000"
	.text
	.align	2
	.global	m0110_recv_key
	.syntax unified
	.arm
	.fpu softvfp
	.type	m0110_recv_key, %function
m0110_recv_key:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r4, .L29
	ldr	r0, [r4]
	cmp	r0, #0
	bne	.L25
	ldr	r0, [r4, #4]
	cmp	r0, #0
	bne	.L26
	ldr	r5, [r4, #8]
	cmp	r5, #0
	strne	r0, [r4, #8]
	beq	.L27
.L6:
	mov	r0, r5
	bl	KEY
	cmp	r0, #128
	beq	.L7
	cmp	r0, #129
	bne	.L8
	bl	instant
	mov	r5, r0
	bl	KEY
	sub	r0, r0, #130
	cmp	r0, #3
	bls	.L28
.L9:
	mov	r0, r5
	bl	raw2scan
	ldr	r3, .L29+4
	ldr	r3, [r3]
	orr	r0, r0, r3
	pop	{r4, r5, r6, pc}
.L26:
	mov	r3, #0
	str	r3, [r4, #4]
	pop	{r4, r5, r6, pc}
.L25:
	mov	r3, #0
	str	r3, [r4]
	pop	{r4, r5, r6, pc}
.L28:
	mov	r0, r5
	bl	IS_BREAK
	cmp	r0, #0
	beq	.L9
	mov	r0, r5
	bl	raw2scan
	mov	r2, r0
	mov	r0, r5
	ldr	r3, .L29+8
.L22:
	ldr	r3, [r3]
	orr	r3, r3, r2
	str	r3, [r4]
	bl	raw2scan
	ldr	r3, .L29+4
	ldr	r3, [r3]
	orr	r0, r0, r3
	pop	{r4, r5, r6, pc}
.L8:
	mov	r0, r5
	pop	{r4, r5, r6, lr}
	b	raw2scan
.L7:
	bl	instant
	mov	r6, r0
	bl	KEY
	cmp	r0, #128
	beq	.L10
	cmp	r0, #129
	beq	.L11
	mov	r0, r6
	bl	raw2scan
	mov	r3, r0
	mov	r0, r5
	str	r3, [r4]
	pop	{r4, r5, r6, lr}
	b	raw2scan
.L27:
	bl	instant
	mov	r5, r0
	b	.L6
.L11:
	bl	instant
	mov	r6, r0
	bl	KEY
	sub	r0, r0, #130
	cmp	r0, #3
	bhi	.L13
	mov	r0, r5
	bl	IS_BREAK
	cmp	r0, #0
	mov	r0, r6
	beq	.L14
	bl	IS_BREAK
	cmp	r0, #0
	beq	.L15
	ldr	r0, .L29+12
	bl	print
	mov	r0, r5
	bl	raw2scan
	mov	r3, r0
	mov	r0, r6
	str	r3, [r4, #4]
.L23:
	bl	raw2scan
	ldr	r3, .L29+8
	mov	r2, r0
	mov	r0, r6
	b	.L22
.L10:
	mov	r0, r5
	str	r6, [r4, #8]
	pop	{r4, r5, r6, lr}
	b	raw2scan
.L13:
	mov	r0, r6
	bl	raw2scan
	mov	r2, r0
	ldr	r3, .L29+4
	mov	r0, r5
	ldr	r3, [r3]
	orr	r3, r3, r2
	str	r3, [r4]
	pop	{r4, r5, r6, lr}
	b	raw2scan
.L14:
	bl	IS_BREAK
	cmp	r0, #0
	beq	.L16
	ldr	r0, .L29+16
	bl	print
	mov	r0, r6
	b	.L23
.L15:
	ldr	r0, .L29+20
	bl	print
	mov	r0, r5
	pop	{r4, r5, r6, lr}
	b	raw2scan
.L16:
	ldr	r0, .L29+24
	bl	print
	mov	r0, r6
	bl	raw2scan
	ldr	r3, .L29+8
	ldr	r3, [r3]
	orr	r0, r0, r3
	pop	{r4, r5, r6, pc}
.L30:
	.align	2
.L29:
	.word	.LANCHOR0
	.word	M0110_KEYPAD_OFFSET
	.word	M0110_CALC_OFFSET
	.word	.LC0
	.word	.LC2
	.word	.LC1
	.word	.LC3
	.size	m0110_recv_key, .-m0110_recv_key
	.comm	M0110_KEYPAD_OFFSET,4,4
	.comm	M0110_CALC_OFFSET,4,4
	.bss
	.align	2
	.set	.LANCHOR0,. + 0
	.type	keybuf.4214, %object
	.size	keybuf.4214, 4
keybuf.4214:
	.space	4
	.type	keybuf2.4215, %object
	.size	keybuf2.4215, 4
keybuf2.4215:
	.space	4
	.type	rawbuf.4216, %object
	.size	rawbuf.4216, 4
rawbuf.4216:
	.space	4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
