	.file	"extr_ir-rcmm-decoder.c_ir_rcmm_decode.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ir_rcmm_decode, @function
ir_rcmm_decode:
.LFB0:
	.cfi_startproc
	endbr64
	mov	eax, DWORD PTR RC_PROTO_BIT_RCMM32[rip]
	or	eax, DWORD PTR RC_PROTO_BIT_RCMM24[rip]
	or	eax, DWORD PTR RC_PROTO_BIT_RCMM12[rip]
	test	DWORD PTR [rdi], eax
	jne	.L2
	xor	eax, eax
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	sar	r13, 32
	mov	r12, rdx
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rsi
	mov	r14, QWORD PTR 8[rdi]
	mov	rdi, rsi
	mov	rsi, rdx
	call	is_timing_event@PLT
	test	eax, eax
	je	.L49
	mov	eax, DWORD PTR [r14]
	add	eax, -128
	cmp	eax, 4
	ja	.L6
	lea	rdx, .L8[rip]
	movsx	rax, DWORD PTR [rdx+rax*4]
	add	rax, rdx
	test	r13d, r13d
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L8:
	.long	.L12-.L8
	.long	.L11-.L8
	.long	.L10-.L8
	.long	.L9-.L8
	.long	.L7-.L8
	.text
	.p2align 4,,10
	.p2align 3
.L10:
	jne	.L50
	.p2align 4,,10
	.p2align 3
.L6:
	mov	eax, DWORD PTR EINVAL[rip]
	mov	DWORD PTR [r14], 130
	neg	eax
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	je	.L6
	mov	esi, DWORD PTR RCMM_UNIT[rip]
	mov	edi, ebx
	mov	edx, esi
	shr	edx, 31
	add	edx, esi
	sar	edx
	call	eq_margin@PLT
	test	eax, eax
	je	.L6
	mov	rdi, r14
	call	rcmm_mode@PLT
	mov	edx, DWORD PTR 8[r14]
	test	eax, eax
	je	.L18
	mov	ecx, edx
	and	dh, 127
	shr	ecx, 15
	mov	eax, ecx
	and	eax, 1
.L18:
	mov	ecx, DWORD PTR 0[rbp]
	test	DWORD PTR RC_PROTO_BIT_RCMM32[rip], ecx
	je	.L6
	mov	esi, DWORD PTR RC_PROTO_RCMM32[rip]
	mov	ecx, eax
	mov	rdi, rbp
	call	rc_keydown@PLT
	mov	DWORD PTR [r14], 130
	xor	eax, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L11:
	jne	.L6
	mov	eax, DWORD PTR RCMM_UNIT[rip]
	mov	esi, DWORD PTR RCMM_PULSE_0[rip]
	mov	edi, ebx
	mov	edx, eax
	shr	edx, 31
	add	edx, eax
	sar	edx
	call	eq_margin@PLT
	test	eax, eax
	je	.L6
	mov	DWORD PTR [r14], 132
	xor	eax, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L12:
	jne	.L6
	mov	eax, DWORD PTR RCMM_UNIT[rip]
	mov	esi, DWORD PTR RCMM_PULSE_0[rip]
	mov	edi, ebx
	mov	edx, eax
	shr	edx, 31
	add	edx, eax
	sar	edx
	call	eq_margin@PLT
	xor	ecx, ecx
	test	eax, eax
	je	.L51
.L15:
	mov	eax, DWORD PTR 8[r14]
	sal	eax, 2
	or	eax, ecx
	mov	DWORD PTR 8[r14], eax
	mov	eax, DWORD PTR 4[r14]
	add	eax, 2
	mov	DWORD PTR 4[r14], eax
	cmp	eax, 31
	jg	.L16
	mov	DWORD PTR [r14], 132
	mov	eax, r13d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L7:
	je	.L6
	mov	esi, DWORD PTR RCMM_UNIT[rip]
	mov	edi, ebx
	mov	edx, esi
	shr	edx, 31
	add	edx, esi
	sar	edx
	call	eq_margin@PLT
	test	eax, eax
	je	.L6
	mov	DWORD PTR [r14], 128
	xor	eax, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L49:
	test	r12, r12
	je	.L47
	mov	DWORD PTR [r14], 130
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L50:
	mov	eax, DWORD PTR RCMM_UNIT[rip]
	mov	esi, DWORD PTR RCMM_PREFIX_PULSE[rip]
	mov	edi, ebx
	mov	edx, eax
	shr	edx, 31
	add	edx, eax
	sar	edx
	call	eq_margin@PLT
	test	eax, eax
	je	.L6
	mov	QWORD PTR [r14], 129
	mov	DWORD PTR 8[r14], 0
	.p2align 4,,10
	.p2align 3
.L47:
	xor	eax, eax
.L52:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
.L16:
	.cfi_restore_state
	mov	DWORD PTR [r14], 131
	mov	eax, r13d
	jmp	.L1
.L51:
	mov	eax, DWORD PTR RCMM_UNIT[rip]
	mov	esi, DWORD PTR RCMM_PULSE_1[rip]
	mov	edi, ebx
	mov	edx, eax
	shr	edx, 31
	add	edx, eax
	sar	edx
	call	eq_margin@PLT
	mov	ecx, 1
	test	eax, eax
	jne	.L15
	mov	eax, DWORD PTR RCMM_UNIT[rip]
	mov	esi, DWORD PTR RCMM_PULSE_2[rip]
	mov	edi, ebx
	mov	edx, eax
	shr	edx, 31
	add	edx, eax
	sar	edx
	call	eq_margin@PLT
	mov	ecx, 2
	test	eax, eax
	jne	.L15
	mov	eax, DWORD PTR RCMM_UNIT[rip]
	mov	esi, DWORD PTR RCMM_PULSE_3[rip]
	mov	edi, ebx
	cdq
	idiv	ecx
	mov	edx, eax
	call	eq_margin@PLT
	mov	ecx, 3
	test	eax, eax
	jne	.L15
	mov	rsi, r14
	mov	rdi, rbp
	call	rcmm_miscmode@PLT
	test	eax, eax
	jne	.L6
	xor	eax, eax
	jmp	.L52
	.cfi_endproc
.LFE0:
	.size	ir_rcmm_decode, .-ir_rcmm_decode
	.comm	RC_PROTO_RCMM32,4,4
	.comm	RC_PROTO_BIT_RCMM32,4,4
	.comm	RC_PROTO_BIT_RCMM24,4,4
	.comm	RC_PROTO_BIT_RCMM12,4,4
	.comm	RCMM_UNIT,4,4
	.comm	RCMM_PULSE_3,4,4
	.comm	RCMM_PULSE_2,4,4
	.comm	RCMM_PULSE_1,4,4
	.comm	RCMM_PULSE_0,4,4
	.comm	RCMM_PREFIX_PULSE,4,4
	.comm	EINVAL,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_ir-rcmm-decoder.c_ir_rcmm_decode.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ir_rcmm_decode, %function
ir_rcmm_decode:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r0
	ldr	r5, .L55
	ldr	r0, .L55+4
	ldr	lr, .L55+8
	ldr	r0, [r0]
	ldr	ip, [r5]
	ldr	lr, [lr]
	orr	ip, ip, r0
	ldr	r0, [r4]
	orr	ip, ip, lr
	sub	sp, sp, #16
	tst	ip, r0
	add	ip, sp, #4
	stm	ip, {r1, r2, r3}
	bne	.L2
.L5:
	mov	r0, #0
.L1:
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	ldm	ip, {r0, r1, r2}
	ldr	r8, [sp, #4]
	ldr	r7, [sp, #8]
	ldr	r6, [r4, #4]
	bl	is_timing_event
	cmp	r0, #0
	beq	.L52
	ldr	r3, [r6]
	sub	r3, r3, #128
	cmp	r3, #4
	ldrls	pc, [pc, r3, asl #2]
	b	.L6
.L8:
	.word	.L12
	.word	.L11
	.word	.L10
	.word	.L9
	.word	.L7
.L10:
	cmp	r7, #0
	bne	.L53
.L6:
	mov	r2, #130
	ldr	r3, .L55+12
	str	r2, [r6]
	ldr	r0, [r3]
	rsb	r0, r0, #0
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L7:
	cmp	r7, #0
	beq	.L6
	ldr	r3, .L55+16
	mov	r0, r8
	ldr	r1, [r3]
	add	r2, r1, r1, lsr #31
	asr	r2, r2, #1
	bl	eq_margin
	cmp	r0, #0
	beq	.L6
	mov	r3, #128
	mov	r0, #0
	str	r3, [r6]
	b	.L1
.L9:
	cmp	r7, #0
	beq	.L6
	ldr	r3, .L55+16
	mov	r0, r8
	ldr	r1, [r3]
	add	r2, r1, r1, lsr #31
	asr	r2, r2, #1
	bl	eq_margin
	cmp	r0, #0
	beq	.L6
	mov	r0, r6
	bl	rcmm_mode
	ldr	r2, [r6, #8]
	subs	r3, r0, #0
	ldr	r1, [r5]
	ldr	r0, [r4]
	lsrne	r3, r2, #15
	andne	r3, r3, #1
	bicne	r2, r2, #32768
	tst	r0, r1
	beq	.L6
	ldr	r1, .L55+20
	mov	r0, r4
	ldr	r1, [r1]
	bl	rc_keydown
	mov	r3, #130
	mov	r0, #0
	str	r3, [r6]
	b	.L1
.L11:
	cmp	r7, #0
	bne	.L6
	ldr	r2, .L55+16
	ldr	r3, .L55+24
	ldr	r2, [r2]
	mov	r0, r8
	add	r2, r2, r2, lsr #31
	ldr	r1, [r3]
	asr	r2, r2, #1
	bl	eq_margin
	cmp	r0, #0
	beq	.L6
	mov	r3, #132
	mov	r0, r7
	str	r3, [r6]
	b	.L1
.L12:
	cmp	r7, #0
	bne	.L6
	ldr	r5, .L55+16
	ldr	r3, .L55+24
	ldr	r2, [r5]
	mov	r0, r8
	add	r2, r2, r2, lsr #31
	ldr	r1, [r3]
	asr	r2, r2, #1
	bl	eq_margin
	cmp	r0, #0
	beq	.L54
.L15:
	ldr	r3, [r6, #4]
	ldr	r2, [r6, #8]
	add	r3, r3, #2
	cmp	r3, #31
	orr	r7, r7, r2, lsl #2
	stmib	r6, {r3, r7}
	movle	r3, #132
	movgt	r3, #131
	mov	r0, #0
	str	r3, [r6]
	b	.L1
.L52:
	ldr	r3, [sp, #12]
	cmp	r3, #0
	movne	r3, #130
	strne	r3, [r6]
	bne	.L1
	b	.L5
.L53:
	ldr	r2, .L55+16
	ldr	r3, .L55+28
	ldr	r2, [r2]
	mov	r0, r8
	add	r2, r2, r2, lsr #31
	ldr	r1, [r3]
	asr	r2, r2, #1
	bl	eq_margin
	cmp	r0, #0
	beq	.L6
	mov	r0, #0
	mov	r3, #129
	str	r0, [r6, #4]
	str	r3, [r6]
	str	r0, [r6, #8]
	b	.L1
.L54:
	ldr	r2, [r5]
	ldr	r3, .L55+32
	add	r2, r2, r2, lsr #31
	mov	r0, r8
	ldr	r1, [r3]
	asr	r2, r2, #1
	bl	eq_margin
	cmp	r0, #0
	movne	r7, #1
	bne	.L15
	ldr	r2, [r5]
	ldr	r3, .L55+36
	add	r2, r2, r2, lsr #31
	mov	r0, r8
	ldr	r1, [r3]
	asr	r2, r2, #1
	bl	eq_margin
	cmp	r0, #0
	movne	r7, #2
	bne	.L15
	ldr	r2, [r5]
	ldr	r3, .L55+40
	add	r2, r2, r2, lsr #31
	mov	r0, r8
	ldr	r1, [r3]
	asr	r2, r2, #1
	bl	eq_margin
	cmp	r0, #0
	movne	r7, #3
	bne	.L15
	mov	r0, r4
	mov	r1, r6
	bl	rcmm_miscmode
	cmp	r0, #0
	bne	.L6
	b	.L5
.L56:
	.align	2
.L55:
	.word	RC_PROTO_BIT_RCMM32
	.word	RC_PROTO_BIT_RCMM24
	.word	RC_PROTO_BIT_RCMM12
	.word	EINVAL
	.word	RCMM_UNIT
	.word	RC_PROTO_RCMM32
	.word	RCMM_PULSE_0
	.word	RCMM_PREFIX_PULSE
	.word	RCMM_PULSE_1
	.word	RCMM_PULSE_2
	.word	RCMM_PULSE_3
	.size	ir_rcmm_decode, .-ir_rcmm_decode
	.comm	RC_PROTO_RCMM32,4,4
	.comm	RC_PROTO_BIT_RCMM32,4,4
	.comm	RC_PROTO_BIT_RCMM24,4,4
	.comm	RC_PROTO_BIT_RCMM12,4,4
	.comm	RCMM_UNIT,4,4
	.comm	RCMM_PULSE_3,4,4
	.comm	RCMM_PULSE_2,4,4
	.comm	RCMM_PULSE_1,4,4
	.comm	RCMM_PULSE_0,4,4
	.comm	RCMM_PREFIX_PULSE,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
