	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ir_rc5_decode
_ir_rc5_decode:                         ## @ir_rc5_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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %rbx
	movq	%rsi, -56(%rbp)
	movq	%rdx, -48(%rbp)
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movq	8(%rdi), %r12
	movq	%rsi, %rdi
	movq	%rdx, %rsi
	callq	_is_timing_event
	testl	%eax, %eax
	je	LBB0_18
## %bb.1:
	shrq	$32, %rbx
	movq	_RC5_UNIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%esi, %edx
	shrl	$31, %edx
	addl	%esi, %edx
	sarl	%edx
	movl	%ebx, %edi
	callq	_geq_margin
	testq	%rax, %rax
	je	LBB0_25
## %bb.2:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	addq	$4, %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	leaq	LJTI0_0(%rip), %r15
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_5 Depth=1
	movl	4(%r12), %eax
	xorl	%ecx, %ecx
	movq	_CHECK_RC5X_NBITS@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %eax
	sete	%cl
	xorl	$131, %ecx
	movl	%ecx, (%r12)
	movq	_RC5_BIT_END@GOTPCREL(%rip), %rax
LBB0_4:                                 ##   in Loop: Header=BB0_5 Depth=1
	movl	(%rax), %esi
	leaq	-56(%rbp), %rdi
	callq	_decrease_duration
	movl	-52(%rbp), %ebx
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %r14d
	movl	%ebx, %edi
	callq	_TO_US
	movl	%eax, %r13d
	movl	-56(%rbp), %edi
	callq	_TO_STR
	xorl	%ebx, %ebx
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edx
	movl	%r13d, %ecx
	movl	%eax, %r8d
	xorl	%eax, %eax
	callq	_dev_dbg
	movl	-52(%rbp), %edi
	movq	_RC5_UNIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%esi, %edx
	shrl	$31, %edx
	addl	%esi, %edx
	sarl	%edx
	callq	_geq_margin
	testq	%rax, %rax
	je	LBB0_26
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	(%r12), %eax
	addl	$-128, %eax
	cmpl	$4, %eax
	ja	LBB0_25
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movslq	(%r15,%rax,4), %rax
	addq	%r15, %rax
	jmpq	*%rax
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	cmpl	$0, -56(%rbp)
	je	LBB0_25
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	movabsq	$4294967427, %rax               ## imm = 0x100000083
	movq	%rax, (%r12)
	movq	_RC5_BIT_START@GOTPCREL(%rip), %rax
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_5 Depth=1
	cmpl	$0, -56(%rbp)
	je	LBB0_15
LBB0_11:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	$0, 12(%r12)
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_5 Depth=1
	cmpl	$0, -56(%rbp)
	jne	LBB0_20
## %bb.13:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	-52(%rbp), %edi
	movq	_RC5_TRAILER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_RC5_UNIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%eax, %edx
	sarl	%edx
	callq	_geq_margin
	testq	%rax, %rax
	je	LBB0_20
## %bb.14:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	$129, (%r12)
	movl	-52(%rbp), %ebx
	jmp	LBB0_5
LBB0_15:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	-52(%rbp), %edi
	movq	_RC5X_SPACE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_RC5_UNIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%eax, %edx
	sarl	%edx
	callq	_geq_margin
	testq	%rax, %rax
	je	LBB0_11
## %bb.16:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	$1, 12(%r12)
	movq	_RC5X_SPACE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-56(%rbp), %rdi
	callq	_decrease_duration
LBB0_17:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	$131, (%r12)
	movl	-52(%rbp), %ebx
	jmp	LBB0_5
LBB0_18:
	xorl	%ebx, %ebx
	testq	%r15, %r15
	je	LBB0_26
LBB0_19:
	movl	$128, (%r12)
	jmp	LBB0_26
LBB0_20:
	movl	-52(%rbp), %edi
	movq	_RC5_BIT_START@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_RC5_UNIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%eax, %edx
	sarl	%edx
	callq	_eq_margin
	testl	%eax, %eax
	je	LBB0_25
## %bb.21:
	movl	8(%r12), %eax
	addl	%eax, %eax
	movl	%eax, 8(%r12)
	cmpl	$0, -56(%rbp)
	jne	LBB0_23
## %bb.22:
	orl	$1, %eax
	movl	%eax, 8(%r12)
LBB0_23:
	incl	4(%r12)
	movl	$132, (%r12)
	jmp	LBB0_26
LBB0_24:
	cmpl	$0, -56(%rbp)
	je	LBB0_27
LBB0_25:
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	addq	$4, %r14
	movl	(%r12), %eax
	movl	%eax, -72(%rbp)                 ## 4-byte Spill
	movl	4(%r12), %r15d
	movl	-52(%rbp), %edi
	callq	_TO_US
	movl	%eax, %r13d
	movl	-56(%rbp), %edi
	callq	_TO_STR
	leaq	L_.str.2(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	movl	-72(%rbp), %edx                 ## 4-byte Reload
	movl	%r15d, %ecx
	movl	%r13d, %r8d
	movl	%eax, %r9d
	xorl	%eax, %eax
	callq	_dev_dbg
	movl	$128, (%r12)
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
LBB0_26:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_27:
	cmpl	$0, 12(%r12)
	movl	4(%r12), %eax
	je	LBB0_31
## %bb.28:
	movq	_RC5X_NBITS@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_25
## %bb.29:
	movq	_RC_PROTO_BIT_RC5X_20@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	testl	%eax, (%rcx)
	je	LBB0_19
## %bb.30:
	movl	8(%r12), %eax
	movl	%eax, %ecx
	andl	$63, %ecx
	movl	%eax, %edx
	shrl	$6, %edx
	andl	$63, %edx
	movl	%eax, %r15d
	shrl	$17, %r15d
	movl	%eax, %r13d
	shrl	$12, %r13d
	andl	$64, %r13d
	orl	%edx, %r13d
	shll	$4, %eax
	andl	$2031616, %eax                  ## imm = 0x1F0000
	shll	$8, %r13d
	orl	%eax, %r13d
	orl	%ecx, %r13d
	xorl	$16384, %r13d                   ## imm = 0x4000
	movq	_RC_PROTO_RC5X_20@GOTPCREL(%rip), %rax
	jmp	LBB0_37
LBB0_31:
	movq	_RC5_NBITS@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_34
## %bb.32:
	movq	_RC_PROTO_BIT_RC5@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	testl	%eax, (%rcx)
	je	LBB0_19
## %bb.33:
	movl	8(%r12), %eax
	movl	%eax, %ecx
	andl	$63, %ecx
	movl	%eax, %r15d
	shrl	$11, %r15d
	movl	%eax, %edx
	shrl	$6, %edx
	andl	$64, %edx
	orl	%ecx, %edx
	andl	$1984, %eax                     ## imm = 0x7C0
	leal	(%rdx,%rax,4), %r13d
	xorl	$64, %r13d
	movq	_RC_PROTO_RC5@GOTPCREL(%rip), %rax
	jmp	LBB0_37
LBB0_34:
	movq	_RC5_SZ_NBITS@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_25
## %bb.35:
	movq	_RC_PROTO_BIT_RC5_SZ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	testl	%eax, (%rcx)
	je	LBB0_19
## %bb.36:
	movl	8(%r12), %r13d
	movl	%r13d, %r15d
	shrl	$12, %r15d
	andl	$12287, %r13d                   ## imm = 0x2FFF
	movq	_RC_PROTO_RC5_SZ@GOTPCREL(%rip), %rax
LBB0_37:
	andl	$1, %r15d
	movl	(%rax), %r14d
	leaq	L_.str.1(%rip), %rsi
	xorl	%ebx, %ebx
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movl	%r13d, %edx
	movl	%r14d, %ecx
	movl	%r15d, %r8d
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	%r14d, %esi
	movl	%r13d, %edx
	movl	%r15d, %ecx
	callq	_rc_keydown
	jmp	LBB0_19
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_24, LBB0_24-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
LJTI0_0:
	.long	L0_0_set_8
	.long	L0_0_set_24
	.long	L0_0_set_10
	.long	L0_0_set_12
	.long	L0_0_set_3
	.end_data_region
                                        ## -- End function
	.comm	_RC5_UNIT,4,2                   ## @RC5_UNIT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"RC5(x/sz) decode started at state %i (%uus %s)\n"

	.comm	_RC5_BIT_START,4,2              ## @RC5_BIT_START
	.comm	_RC5_TRAILER,4,2                ## @RC5_TRAILER
	.comm	_CHECK_RC5X_NBITS,4,2           ## @CHECK_RC5X_NBITS
	.comm	_RC5_BIT_END,4,2                ## @RC5_BIT_END
	.comm	_RC5X_SPACE,4,2                 ## @RC5X_SPACE
	.comm	_RC5X_NBITS,4,2                 ## @RC5X_NBITS
	.comm	_RC_PROTO_BIT_RC5X_20,4,2       ## @RC_PROTO_BIT_RC5X_20
	.comm	_RC_PROTO_RC5X_20,4,2           ## @RC_PROTO_RC5X_20
	.comm	_RC5_NBITS,4,2                  ## @RC5_NBITS
	.comm	_RC_PROTO_BIT_RC5,4,2           ## @RC_PROTO_BIT_RC5
	.comm	_RC_PROTO_RC5,4,2               ## @RC_PROTO_RC5
	.comm	_RC5_SZ_NBITS,4,2               ## @RC5_SZ_NBITS
	.comm	_RC_PROTO_BIT_RC5_SZ,4,2        ## @RC_PROTO_BIT_RC5_SZ
	.comm	_RC_PROTO_RC5_SZ,4,2            ## @RC_PROTO_RC5_SZ
L_.str.1:                               ## @.str.1
	.asciz	"RC5(x/sz) scancode 0x%06x (p: %u, t: %u)\n"

L_.str.2:                               ## @.str.2
	.asciz	"RC5(x/sz) decode failed at state %i count %d (%uus %s)\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_ir_rc5_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_rc5_decode
lCPI0_0:
	.long	131                             ; 0x83
	.long	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_ir_rc5_decode:                         ; @ir_rc5_decode
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	d9, d8, [sp, #32]               ; 16-byte Folded Spill
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	.cfi_offset b8, -104
	.cfi_offset b9, -112
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	stp	x1, x2, [sp, #16]
	ldr	x24, [x0, #8]
	mov	x0, x1
	mov	x1, x2
	bl	_is_timing_event
	cbz	w0, LBB0_18
; %bb.1:
	lsr	x22, x21, #32
Lloh0:
	adrp	x25, _RC5_UNIT@GOTPAGE
Lloh1:
	ldr	x25, [x25, _RC5_UNIT@GOTPAGEOFF]
	ldr	w1, [x25]
	cmp	w1, #0
	cinc	w8, w1, lt
	asr	w2, w8, #1
	mov	x0, x22
	bl	_geq_margin
	cbz	x0, LBB0_26
; %bb.2:
	add	x20, x19, #4
Lloh2:
	adrp	x21, l_.str@PAGE
Lloh3:
	add	x21, x21, l_.str@PAGEOFF
Lloh4:
	adrp	x8, lCPI0_0@PAGE
Lloh5:
	ldr	d8, [x8, lCPI0_0@PAGEOFF]
	mov	w26, #130
Lloh6:
	adrp	x28, _RC5_BIT_END@GOTPAGE
Lloh7:
	ldr	x28, [x28, _RC5_BIT_END@GOTPAGEOFF]
Lloh8:
	adrp	x27, lJTI0_0@PAGE
Lloh9:
	add	x27, x27, lJTI0_0@PAGEOFF
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x24, #4]
Lloh10:
	adrp	x9, _CHECK_RC5X_NBITS@GOTPAGE
Lloh11:
	ldr	x9, [x9, _CHECK_RC5X_NBITS@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	cmp	w8, w9
	cinc	w8, w26, ne
	str	w8, [x24]
	ldr	w1, [x28]
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x0, sp, #16
	bl	_decrease_duration
	ldr	w22, [sp, #20]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w23, [x24]
	mov	x0, x22
	bl	_TO_US
	mov	x22, x0
	ldr	w0, [sp, #16]
	bl	_TO_STR
	mov	x4, x0
	mov	x0, x20
	mov	x1, x21
	mov	x2, x23
	mov	x3, x22
	bl	_dev_dbg
	ldr	w0, [sp, #20]
	ldr	w1, [x25]
	cmp	w1, #0
	cinc	w8, w1, lt
	asr	w2, w8, #1
	bl	_geq_margin
	cbz	x0, LBB0_27
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x24]
	sub	w8, w8, #128
	cmp	w8, #4
	b.hi	LBB0_26
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	adr	x9, LBB0_3
	ldrb	w10, [x27, x8]
	add	x9, x9, x10, lsl #2
	br	x9
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [sp, #16]
	cbz	w8, LBB0_26
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	str	d8, [x24]
Lloh13:
	adrp	x8, _RC5_BIT_START@GOTPAGE
Lloh14:
	ldr	x8, [x8, _RC5_BIT_START@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	b	LBB0_4
LBB0_10:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [sp, #16]
	cbz	w8, LBB0_15
LBB0_11:                                ;   in Loop: Header=BB0_5 Depth=1
	str	wzr, [x24, #12]
	b	LBB0_17
LBB0_12:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [sp, #16]
	cbnz	w8, LBB0_21
; %bb.13:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [sp, #20]
Lloh16:
	adrp	x8, _RC5_TRAILER@GOTPAGE
Lloh17:
	ldr	x8, [x8, _RC5_TRAILER@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	ldr	w8, [x25]
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w2, w8, #1
	bl	_geq_margin
	cbz	x0, LBB0_21
; %bb.14:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	w8, #129
	str	w8, [x24]
	ldr	w22, [sp, #20]
	b	LBB0_5
LBB0_15:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [sp, #20]
Lloh19:
	adrp	x8, _RC5X_SPACE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _RC5X_SPACE@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	ldr	w8, [x25]
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w2, w8, #1
	bl	_geq_margin
	cbz	x0, LBB0_11
; %bb.16:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	w8, #1
	str	w8, [x24, #12]
Lloh22:
	adrp	x8, _RC5X_SPACE@GOTPAGE
Lloh23:
	ldr	x8, [x8, _RC5X_SPACE@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	add	x0, sp, #16
	bl	_decrease_duration
LBB0_17:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w8, #131
	str	w8, [x24]
	ldr	w22, [sp, #20]
	b	LBB0_5
LBB0_18:
	cbz	x20, LBB0_20
LBB0_19:
	mov	w0, #0
	mov	w8, #128
	str	w8, [x24]
	b	LBB0_27
LBB0_20:
	mov	w0, #0
	b	LBB0_27
LBB0_21:
	ldr	w0, [sp, #20]
Lloh25:
	adrp	x8, _RC5_BIT_START@GOTPAGE
Lloh26:
	ldr	x8, [x8, _RC5_BIT_START@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
	ldr	w8, [x25]
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w2, w8, #1
	bl	_eq_margin
	cbz	w0, LBB0_26
; %bb.22:
	ldr	w8, [x24, #8]
	lsl	w8, w8, #1
	str	w8, [x24, #8]
	ldr	w9, [sp, #16]
	cbnz	w9, LBB0_24
; %bb.23:
	orr	w8, w8, #0x1
	str	w8, [x24, #8]
LBB0_24:
	mov	w0, #0
	ldr	w8, [x24, #4]
	add	w8, w8, #1
	mov	w9, #132
	stp	w9, w8, [x24]
	b	LBB0_27
LBB0_25:
	ldr	w8, [sp, #16]
	cbz	w8, LBB0_28
LBB0_26:
	add	x19, x19, #4
	ldp	w20, w21, [x24]
	ldr	w0, [sp, #20]
	bl	_TO_US
	mov	x22, x0
	ldr	w0, [sp, #16]
	bl	_TO_STR
                                        ; kill: def $w0 killed $w0 def $x0
Lloh28:
	adrp	x1, l_.str.2@PAGE
Lloh29:
	add	x1, x1, l_.str.2@PAGEOFF
	str	x0, [sp]
	mov	x0, x19
	mov	x2, x20
	mov	x3, x21
	mov	x4, x22
	bl	_dev_dbg
	mov	w8, #128
	str	w8, [x24]
Lloh30:
	adrp	x8, _EINVAL@GOTPAGE
Lloh31:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_27:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #32]               ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_28:
	ldr	w9, [x24, #12]
	ldr	w8, [x24, #4]
	cbz	w9, LBB0_32
; %bb.29:
Lloh33:
	adrp	x9, _RC5X_NBITS@GOTPAGE
Lloh34:
	ldr	x9, [x9, _RC5X_NBITS@GOTPAGEOFF]
Lloh35:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_26
; %bb.30:
	ldr	w8, [x19]
Lloh36:
	adrp	x9, _RC_PROTO_BIT_RC5X_20@GOTPAGE
Lloh37:
	ldr	x9, [x9, _RC_PROTO_BIT_RC5X_20@GOTPAGEOFF]
Lloh38:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_19
; %bb.31:
	ldr	w9, [x24, #8]
	lsr	w8, w9, #17
	lsr	w10, w9, #12
	bfxil	w10, w9, #6, #6
	lsl	w11, w9, #4
	and	w11, w11, #0x1f0000
	bfi	w11, w10, #8, #7
	bfxil	w11, w9, #0, #6
	eor	w21, w11, #0x4000
Lloh39:
	adrp	x9, _RC_PROTO_RC5X_20@GOTPAGE
Lloh40:
	ldr	x9, [x9, _RC_PROTO_RC5X_20@GOTPAGEOFF]
	b	LBB0_38
LBB0_32:
Lloh41:
	adrp	x9, _RC5_NBITS@GOTPAGE
Lloh42:
	ldr	x9, [x9, _RC5_NBITS@GOTPAGEOFF]
Lloh43:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_35
; %bb.33:
	ldr	w8, [x19]
Lloh44:
	adrp	x9, _RC_PROTO_BIT_RC5@GOTPAGE
Lloh45:
	ldr	x9, [x9, _RC_PROTO_BIT_RC5@GOTPAGEOFF]
Lloh46:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_19
; %bb.34:
	ldr	w9, [x24, #8]
	lsr	w10, w9, #6
	lsr	w8, w9, #11
	and	w11, w10, #0x40
	bfxil	w11, w9, #0, #6
	bfi	w11, w10, #8, #5
	eor	w21, w11, #0x40
Lloh47:
	adrp	x9, _RC_PROTO_RC5@GOTPAGE
Lloh48:
	ldr	x9, [x9, _RC_PROTO_RC5@GOTPAGEOFF]
	b	LBB0_38
LBB0_35:
Lloh49:
	adrp	x9, _RC5_SZ_NBITS@GOTPAGE
Lloh50:
	ldr	x9, [x9, _RC5_SZ_NBITS@GOTPAGEOFF]
Lloh51:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_26
; %bb.36:
	ldr	w8, [x19]
Lloh52:
	adrp	x9, _RC_PROTO_BIT_RC5_SZ@GOTPAGE
Lloh53:
	ldr	x9, [x9, _RC_PROTO_BIT_RC5_SZ@GOTPAGEOFF]
Lloh54:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_19
; %bb.37:
	ldr	w9, [x24, #8]
	lsr	w8, w9, #12
	mov	w10, #12287
	and	w21, w9, w10
Lloh55:
	adrp	x9, _RC_PROTO_RC5_SZ@GOTPAGE
Lloh56:
	ldr	x9, [x9, _RC_PROTO_RC5_SZ@GOTPAGEOFF]
LBB0_38:
	and	w22, w8, #0x1
	ldr	w23, [x9]
Lloh57:
	adrp	x1, l_.str.1@PAGE
Lloh58:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x2, x21
	mov	x3, x23
	mov	x4, x22
	bl	_dev_dbg
	mov	x0, x19
	mov	x1, x23
	mov	x2, x21
	mov	x3, x22
	bl	_rc_keydown
	b	LBB0_19
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdr	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGot	Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGot	Lloh55, Lloh56
	.loh AdrpAdd	Lloh57, Lloh58
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_8-LBB0_3)>>2
	.byte	(LBB0_25-LBB0_3)>>2
	.byte	(LBB0_10-LBB0_3)>>2
	.byte	(LBB0_12-LBB0_3)>>2
	.byte	(LBB0_3-LBB0_3)>>2
                                        ; -- End function
	.comm	_RC5_UNIT,4,2                   ; @RC5_UNIT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"RC5(x/sz) decode started at state %i (%uus %s)\n"

	.comm	_RC5_BIT_START,4,2              ; @RC5_BIT_START
	.comm	_RC5_TRAILER,4,2                ; @RC5_TRAILER
	.comm	_CHECK_RC5X_NBITS,4,2           ; @CHECK_RC5X_NBITS
	.comm	_RC5_BIT_END,4,2                ; @RC5_BIT_END
	.comm	_RC5X_SPACE,4,2                 ; @RC5X_SPACE
	.comm	_RC5X_NBITS,4,2                 ; @RC5X_NBITS
	.comm	_RC_PROTO_BIT_RC5X_20,4,2       ; @RC_PROTO_BIT_RC5X_20
	.comm	_RC_PROTO_RC5X_20,4,2           ; @RC_PROTO_RC5X_20
	.comm	_RC5_NBITS,4,2                  ; @RC5_NBITS
	.comm	_RC_PROTO_BIT_RC5,4,2           ; @RC_PROTO_BIT_RC5
	.comm	_RC_PROTO_RC5,4,2               ; @RC_PROTO_RC5
	.comm	_RC5_SZ_NBITS,4,2               ; @RC5_SZ_NBITS
	.comm	_RC_PROTO_BIT_RC5_SZ,4,2        ; @RC_PROTO_BIT_RC5_SZ
	.comm	_RC_PROTO_RC5_SZ,4,2            ; @RC_PROTO_RC5_SZ
l_.str.1:                               ; @.str.1
	.asciz	"RC5(x/sz) scancode 0x%06x (p: %u, t: %u)\n"

l_.str.2:                               ; @.str.2
	.asciz	"RC5(x/sz) decode failed at state %i count %d (%uus %s)\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_ir_rc5_decode
.subsections_via_symbols
