	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ir_rcmm_decode
_ir_rcmm_decode:                        ## @ir_rcmm_decode
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_RC_PROTO_BIT_RCMM32@GOTPCREL(%rip), %r14
	movq	_RC_PROTO_BIT_RCMM24@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%r14), %eax
	movq	_RC_PROTO_BIT_RCMM12@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	xorl	%r15d, %r15d
	testl	%eax, (%rdi)
	je	LBB0_28
## %bb.1:
	movq	%rdx, %rbx
	movq	%rsi, %r12
	movq	%rdi, %r13
	movq	8(%rdi), %r15
	movq	%rsi, %rdi
	movq	%rdx, %rsi
	callq	_is_timing_event
	testl	%eax, %eax
	je	LBB0_10
## %bb.2:
	movl	(%r15), %ecx
	addl	$-128, %ecx
	cmpl	$4, %ecx
	movq	%r15, %rbx
	movl	$0, %r15d
	ja	LBB0_27
## %bb.3:
	movq	%r12, %rax
	shrq	$32, %rax
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rcx,4), %rcx
	addq	%rdx, %rcx
	jmpq	*%rcx
LBB0_4:
	testl	%eax, %eax
	jne	LBB0_27
## %bb.5:
	movq	_RCMM_PULSE_0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_RCMM_UNIT@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%eax, %edx
	sarl	%edx
	movl	%r12d, %edi
	callq	_eq_margin
	xorl	%r15d, %r15d
	movl	$0, %ecx
	testl	%eax, %eax
	jne	LBB0_9
## %bb.6:
	movq	_RCMM_PULSE_1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r14), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%eax, %edx
	sarl	%edx
	movl	%r12d, %edi
	callq	_eq_margin
	movl	$1, %ecx
	testl	%eax, %eax
	jne	LBB0_9
## %bb.7:
	movq	_RCMM_PULSE_2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r14), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%eax, %edx
	sarl	%edx
	movl	%r12d, %edi
	callq	_eq_margin
	movl	$2, %ecx
	testl	%eax, %eax
	jne	LBB0_9
## %bb.8:
	movq	_RCMM_PULSE_3@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r14), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%eax, %edx
	sarl	%edx
	movl	%r12d, %edi
	callq	_eq_margin
	movl	$3, %ecx
	testl	%eax, %eax
	je	LBB0_26
LBB0_9:
	movl	4(%rbx), %eax
	movl	8(%rbx), %edx
	leal	(%rcx,%rdx,4), %ecx
	movl	%ecx, 8(%rbx)
	leal	2(%rax), %ecx
	movl	%ecx, 4(%rbx)
	xorl	%ecx, %ecx
	cmpl	$30, %eax
	setl	%cl
	addl	$131, %ecx
	movl	%ecx, (%rbx)
	jmp	LBB0_28
LBB0_10:
	testq	%rbx, %rbx
	je	LBB0_12
## %bb.11:
	movl	$130, (%r15)
LBB0_12:
	xorl	%r15d, %r15d
	jmp	LBB0_28
LBB0_13:
	testl	%eax, %eax
	jne	LBB0_27
## %bb.14:
	movq	_RCMM_PULSE_0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_RCMM_UNIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%eax, %edx
	sarl	%edx
	movl	%r12d, %edi
	callq	_eq_margin
	testl	%eax, %eax
	je	LBB0_27
## %bb.15:
	movl	$132, (%rbx)
	jmp	LBB0_28
LBB0_16:
	testl	%eax, %eax
	je	LBB0_27
## %bb.17:
	movq	_RCMM_PREFIX_PULSE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_RCMM_UNIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%eax, %edx
	sarl	%edx
	movl	%r12d, %edi
	callq	_eq_margin
	testl	%eax, %eax
	je	LBB0_27
## %bb.18:
	movq	$129, (%rbx)
	movl	$0, 8(%rbx)
	jmp	LBB0_28
LBB0_19:
	testl	%eax, %eax
	je	LBB0_27
## %bb.20:
	movq	_RCMM_UNIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%esi, %edx
	shrl	$31, %edx
	addl	%esi, %edx
	sarl	%edx
	movl	%r12d, %edi
	callq	_eq_margin
	testl	%eax, %eax
	je	LBB0_27
## %bb.21:
	movq	%rbx, %rdi
	callq	_rcmm_mode
	movl	(%r14), %ecx
	testl	%ecx, (%r13)
	je	LBB0_27
## %bb.22:
	movl	8(%rbx), %esi
	movl	%esi, %ecx
	shrl	$15, %ecx
	andl	$1, %ecx
	movl	%esi, %edx
	andl	$-32769, %edx                   ## imm = 0xFFFF7FFF
	testl	%eax, %eax
	cmovel	%eax, %ecx
	cmovel	%esi, %edx
	movq	_RC_PROTO_RCMM32@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_rc_keydown
	movl	$130, (%rbx)
	jmp	LBB0_28
LBB0_23:
	testl	%eax, %eax
	je	LBB0_27
## %bb.24:
	movq	_RCMM_UNIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%esi, %edx
	shrl	$31, %edx
	addl	%esi, %edx
	sarl	%edx
	movl	%r12d, %edi
	callq	_eq_margin
	testl	%eax, %eax
	je	LBB0_27
## %bb.25:
	movl	$128, (%rbx)
	jmp	LBB0_28
LBB0_26:
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_rcmm_miscmode
	testl	%eax, %eax
	je	LBB0_28
LBB0_27:
	movl	$130, (%rbx)
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_28:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_19, LBB0_19-LJTI0_0
.set L0_0_set_23, LBB0_23-LJTI0_0
LJTI0_0:
	.long	L0_0_set_4
	.long	L0_0_set_13
	.long	L0_0_set_16
	.long	L0_0_set_19
	.long	L0_0_set_23
	.end_data_region
                                        ## -- End function
	.comm	_RC_PROTO_BIT_RCMM32,4,2        ## @RC_PROTO_BIT_RCMM32
	.comm	_RC_PROTO_BIT_RCMM24,4,2        ## @RC_PROTO_BIT_RCMM24
	.comm	_RC_PROTO_BIT_RCMM12,4,2        ## @RC_PROTO_BIT_RCMM12
	.comm	_RCMM_PREFIX_PULSE,4,2          ## @RCMM_PREFIX_PULSE
	.comm	_RCMM_UNIT,4,2                  ## @RCMM_UNIT
	.comm	_RCMM_PULSE_0,4,2               ## @RCMM_PULSE_0
	.comm	_RCMM_PULSE_1,4,2               ## @RCMM_PULSE_1
	.comm	_RCMM_PULSE_2,4,2               ## @RCMM_PULSE_2
	.comm	_RCMM_PULSE_3,4,2               ## @RCMM_PULSE_3
	.comm	_RC_PROTO_RCMM32,4,2            ## @RC_PROTO_RCMM32
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_ir_rcmm_decode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function ir_rcmm_decode
lCPI0_0:
	.long	129                             ; 0x81
	.long	0                               ; 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_ir_rcmm_decode:                        ; @ir_rcmm_decode
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	ldr	w8, [x0]
Lloh0:
	adrp	x23, _RC_PROTO_BIT_RCMM32@GOTPAGE
Lloh1:
	ldr	x23, [x23, _RC_PROTO_BIT_RCMM32@GOTPAGEOFF]
	ldr	w9, [x23]
Lloh2:
	adrp	x10, _RC_PROTO_BIT_RCMM24@GOTPAGE
Lloh3:
	ldr	x10, [x10, _RC_PROTO_BIT_RCMM24@GOTPAGEOFF]
Lloh4:
	ldr	w10, [x10]
	orr	w9, w10, w9
Lloh5:
	adrp	x10, _RC_PROTO_BIT_RCMM12@GOTPAGE
Lloh6:
	ldr	x10, [x10, _RC_PROTO_BIT_RCMM12@GOTPAGEOFF]
Lloh7:
	ldr	w10, [x10]
	orr	w9, w9, w10
	tst	w9, w8
	b.eq	LBB0_10
; %bb.1:
	mov	x22, x2
	mov	x21, x1
	mov	x20, x0
	ldr	x19, [x0, #8]
	mov	x0, x1
	mov	x1, x2
	bl	_is_timing_event
	cbz	w0, LBB0_7
; %bb.2:
	ldr	w8, [x19]
	sub	w9, w8, #128
	cmp	w9, #4
	b.hi	LBB0_32
; %bb.3:
	lsr	x8, x21, #32
Lloh8:
	adrp	x10, lJTI0_0@PAGE
Lloh9:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_4
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_4:
	cbnz	w8, LBB0_32
; %bb.5:
Lloh10:
	adrp	x8, _RCMM_PULSE_0@GOTPAGE
Lloh11:
	ldr	x8, [x8, _RCMM_PULSE_0@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
Lloh13:
	adrp	x22, _RCMM_UNIT@GOTPAGE
Lloh14:
	ldr	x22, [x22, _RCMM_UNIT@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w2, w8, #1
	mov	x0, x21
	bl	_eq_margin
	cbz	w0, LBB0_24
; %bb.6:
	mov	w8, #0
	b	LBB0_30
LBB0_7:
	cbz	x22, LBB0_10
LBB0_8:
	mov	w0, #0
	mov	w8, #130
LBB0_9:
	str	w8, [x19]
	b	LBB0_33
LBB0_10:
	mov	w0, #0
	b	LBB0_33
LBB0_11:
	cbnz	w8, LBB0_32
; %bb.12:
Lloh15:
	adrp	x8, _RCMM_PULSE_0@GOTPAGE
Lloh16:
	ldr	x8, [x8, _RCMM_PULSE_0@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
Lloh18:
	adrp	x8, _RCMM_UNIT@GOTPAGE
Lloh19:
	ldr	x8, [x8, _RCMM_UNIT@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w2, w8, #1
	mov	x0, x21
	bl	_eq_margin
	cbz	w0, LBB0_32
; %bb.13:
	mov	w0, #0
	mov	w8, #132
	b	LBB0_9
LBB0_14:
	cbz	w8, LBB0_32
; %bb.15:
Lloh21:
	adrp	x8, _RCMM_PREFIX_PULSE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _RCMM_PREFIX_PULSE@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
Lloh24:
	adrp	x8, _RCMM_UNIT@GOTPAGE
Lloh25:
	ldr	x8, [x8, _RCMM_UNIT@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w2, w8, #1
	mov	x0, x21
	bl	_eq_margin
	cbz	w0, LBB0_32
; %bb.16:
	mov	w0, #0
Lloh27:
	adrp	x8, lCPI0_0@PAGE
Lloh28:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x19]
	str	wzr, [x19, #8]
	b	LBB0_33
LBB0_17:
	cbz	w8, LBB0_32
; %bb.18:
Lloh29:
	adrp	x8, _RCMM_UNIT@GOTPAGE
Lloh30:
	ldr	x8, [x8, _RCMM_UNIT@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
	cmp	w1, #0
	cinc	w8, w1, lt
	asr	w2, w8, #1
	mov	x0, x21
	bl	_eq_margin
	cbz	w0, LBB0_32
; %bb.19:
	mov	x0, x19
	bl	_rcmm_mode
	ldr	w8, [x20]
	ldr	w9, [x23]
	tst	w9, w8
	b.eq	LBB0_32
; %bb.20:
	ldr	w8, [x19, #8]
	ubfx	w9, w8, #15, #1
	cmp	w0, #0
	csel	w3, wzr, w9, eq
	and	w9, w8, #0xffff7fff
	csel	w2, w8, w9, eq
Lloh32:
	adrp	x8, _RC_PROTO_RCMM32@GOTPAGE
Lloh33:
	ldr	x8, [x8, _RC_PROTO_RCMM32@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_rc_keydown
	b	LBB0_8
LBB0_21:
	cbz	w8, LBB0_32
; %bb.22:
Lloh35:
	adrp	x8, _RCMM_UNIT@GOTPAGE
Lloh36:
	ldr	x8, [x8, _RCMM_UNIT@GOTPAGEOFF]
Lloh37:
	ldr	w1, [x8]
	cmp	w1, #0
	cinc	w8, w1, lt
	asr	w2, w8, #1
	mov	x0, x21
	bl	_eq_margin
	cbz	w0, LBB0_32
; %bb.23:
	mov	w0, #0
	mov	w8, #128
	b	LBB0_9
LBB0_24:
Lloh38:
	adrp	x8, _RCMM_PULSE_1@GOTPAGE
Lloh39:
	ldr	x8, [x8, _RCMM_PULSE_1@GOTPAGEOFF]
Lloh40:
	ldr	w1, [x8]
	ldr	w8, [x22]
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w2, w8, #1
	mov	x0, x21
	bl	_eq_margin
	cbz	w0, LBB0_26
; %bb.25:
	mov	w8, #1
	b	LBB0_30
LBB0_26:
Lloh41:
	adrp	x8, _RCMM_PULSE_2@GOTPAGE
Lloh42:
	ldr	x8, [x8, _RCMM_PULSE_2@GOTPAGEOFF]
Lloh43:
	ldr	w1, [x8]
	ldr	w8, [x22]
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w2, w8, #1
	mov	x0, x21
	bl	_eq_margin
	cbz	w0, LBB0_28
; %bb.27:
	mov	w8, #2
	b	LBB0_30
LBB0_28:
Lloh44:
	adrp	x8, _RCMM_PULSE_3@GOTPAGE
Lloh45:
	ldr	x8, [x8, _RCMM_PULSE_3@GOTPAGEOFF]
Lloh46:
	ldr	w1, [x8]
	ldr	w8, [x22]
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w2, w8, #1
	mov	x0, x21
	bl	_eq_margin
	cbz	w0, LBB0_31
; %bb.29:
	mov	w8, #3
LBB0_30:
	mov	w0, #0
	ldp	w10, w9, [x19, #4]
	bfi	w8, w9, #2, #30
	str	w8, [x19, #8]
	add	w8, w10, #2
	cmp	w10, #30
	mov	w9, #131
	cinc	w9, w9, lt
	stp	w9, w8, [x19]
	b	LBB0_33
LBB0_31:
	mov	x0, x20
	mov	x1, x19
	bl	_rcmm_miscmode
	cbz	w0, LBB0_33
LBB0_32:
	mov	w8, #130
	str	w8, [x19]
Lloh47:
	adrp	x8, _EINVAL@GOTPAGE
Lloh48:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh49:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_33:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdr	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_11-LBB0_4)>>2
	.byte	(LBB0_14-LBB0_4)>>2
	.byte	(LBB0_17-LBB0_4)>>2
	.byte	(LBB0_21-LBB0_4)>>2
                                        ; -- End function
	.comm	_RC_PROTO_BIT_RCMM32,4,2        ; @RC_PROTO_BIT_RCMM32
	.comm	_RC_PROTO_BIT_RCMM24,4,2        ; @RC_PROTO_BIT_RCMM24
	.comm	_RC_PROTO_BIT_RCMM12,4,2        ; @RC_PROTO_BIT_RCMM12
	.comm	_RCMM_PREFIX_PULSE,4,2          ; @RCMM_PREFIX_PULSE
	.comm	_RCMM_UNIT,4,2                  ; @RCMM_UNIT
	.comm	_RCMM_PULSE_0,4,2               ; @RCMM_PULSE_0
	.comm	_RCMM_PULSE_1,4,2               ; @RCMM_PULSE_1
	.comm	_RCMM_PULSE_2,4,2               ; @RCMM_PULSE_2
	.comm	_RCMM_PULSE_3,4,2               ; @RCMM_PULSE_3
	.comm	_RC_PROTO_RCMM32,4,2            ; @RC_PROTO_RCMM32
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_ir_rcmm_decode
.subsections_via_symbols
