	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ir_rc6_decode
_ir_rc6_decode:                         ## @ir_rc6_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, %r12
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	%rsi, -56(%rbp)
	movq	%rdx, -48(%rbp)
	movq	8(%rdi), %r15
	movq	%rsi, %rdi
	movq	%rdx, %rsi
	callq	_is_timing_event
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	shrq	$32, %rbx
	movq	_RC6_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_46
## %bb.3:
	leaq	LJTI0_0(%rip), %r14
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_38:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	4(%r15), %eax
	xorl	%ecx, %ecx
	cmpl	20(%r15), %eax
	sete	%cl
	xorl	$135, %ecx
	movl	%ecx, (%r15)
LBB0_39:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	_RC6_BIT_END@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-56(%rbp), %rdi
	callq	_decrease_duration
	movl	-52(%rbp), %ebx
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %r13d
	movl	%ebx, %edi
	callq	_TO_US
	movl	%eax, %r12d
	movl	-56(%rbp), %edi
	callq	_TO_STR
	xorl	%ebx, %ebx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	leaq	L_.str(%rip), %rsi
	movl	%r13d, %edx
	movl	%r12d, %ecx
	movl	%eax, %r8d
	xorl	%eax, %eax
	callq	_dev_dbg
	movl	-52(%rbp), %edi
	movq	_RC6_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_61
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	(%r15), %eax
	addl	$-128, %eax
	cmpl	$8, %eax
	ja	LBB0_46
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movslq	(%r14,%rax,4), %rax
	addq	%r14, %rax
	jmpq	*%rax
LBB0_20:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	_RC6_STARTBIT_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%r15)
	je	LBB0_21
## %bb.23:                              ##   in Loop: Header=BB0_4 Depth=1
	movl	$135, (%r15)
	movq	_RC6_TOGGLE_END@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-56(%rbp), %rdi
	callq	_decrease_duration
	movl	$0, 4(%r15)
	movl	$0, 16(%r15)
	movq	%r15, %rdi
	callq	_rc6_mode
	cmpl	$137, %eax
	je	LBB0_27
## %bb.24:                              ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$138, %eax
	jne	LBB0_28
## %bb.25:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	_RC6_0_NBITS@GOTPCREL(%rip), %rax
	jmp	LBB0_26
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	4(%r15), %eax
	xorl	%ecx, %ecx
	movq	_RC6_HEADER_NBITS@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %eax
	setne	%cl
	leal	128(,%rcx,4), %eax
	movl	%eax, (%r15)
	jmp	LBB0_39
	.p2align	4, 0x90
LBB0_29:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	-52(%rbp), %edi
	movq	_RC6_BIT_START@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_RC6_UNIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%eax, %edx
	sarl	%edx
	callq	_eq_margin
	testl	%eax, %eax
	jne	LBB0_30
## %bb.34:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	%r15, %rdi
	callq	_rc6_mode
	cmpl	$137, %eax
	jne	LBB0_46
## %bb.35:                              ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$0, -56(%rbp)
	jne	LBB0_46
## %bb.36:                              ##   in Loop: Header=BB0_4 Depth=1
	movl	-52(%rbp), %edi
	movq	_RC6_SUFFIX_SPACE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_RC6_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_46
## %bb.37:                              ##   in Loop: Header=BB0_4 Depth=1
	movl	$134, (%r15)
	movl	-52(%rbp), %ebx
	jmp	LBB0_4
LBB0_27:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	_RC6_6A_NBITS@GOTPCREL(%rip), %rax
LBB0_26:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	(%rax), %eax
	movl	%eax, 20(%r15)
	movl	-52(%rbp), %ebx
	jmp	LBB0_4
LBB0_1:
	xorl	%ebx, %ebx
	testq	%r12, %r12
	je	LBB0_61
LBB0_60:
	movl	$131, (%r15)
	jmp	LBB0_61
LBB0_18:
	movl	-52(%rbp), %edi
	movq	_RC6_TOGGLE_START@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_RC6_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_46
## %bb.19:
	movl	-56(%rbp), %eax
	movl	%eax, 12(%r15)
	movl	$129, (%r15)
	jmp	LBB0_61
LBB0_10:
	cmpl	$0, -56(%rbp)
	jne	LBB0_46
## %bb.11:
	movl	-52(%rbp), %edi
	movq	_RC6_PREFIX_SPACE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_RC6_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_46
## %bb.12:
	movl	$132, (%r15)
	movl	$0, 8(%r15)
	jmp	LBB0_61
LBB0_7:
	cmpl	$0, -56(%rbp)
	je	LBB0_46
## %bb.8:
	movl	-52(%rbp), %edi
	movq	_RC6_PREFIX_PULSE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_RC6_UNIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_eq_margin
	testl	%eax, %eax
	je	LBB0_46
## %bb.9:
	movq	$130, (%r15)
	jmp	LBB0_61
LBB0_13:
	movl	-52(%rbp), %edi
	movq	_RC6_BIT_START@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_RC6_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_46
## %bb.14:
	movl	8(%r15), %eax
	addl	%eax, %eax
	movl	%eax, 8(%r15)
	cmpl	$0, -56(%rbp)
	je	LBB0_16
## %bb.15:
	orl	$1, %eax
	movl	%eax, 8(%r15)
LBB0_16:
	incl	4(%r15)
	movl	$133, (%r15)
	jmp	LBB0_61
LBB0_40:
	cmpl	$0, -56(%rbp)
	jne	LBB0_46
## %bb.41:
	movq	%r15, %rdi
	callq	_rc6_mode
	cmpl	$137, %eax
	je	LBB0_44
## %bb.42:
	cmpl	$138, %eax
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	jne	LBB0_62
## %bb.43:
	movl	12(%r15), %r12d
	movl	16(%r15), %r13d
	movq	_RC_PROTO_RC6_0@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	movl	%r13d, %edx
	movl	%r12d, %ecx
	xorl	%eax, %eax
	callq	_dev_dbg
	jmp	LBB0_59
LBB0_21:
	leaq	L_.str.1(%rip), %rsi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_56
LBB0_30:
	movslq	4(%r15), %rax
	leal	1(%rax), %ecx
	movl	%ecx, 4(%r15)
	movq	_CHAR_BIT@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	shlq	$2, %rcx
	cmpq	%rax, %rcx
	jbe	LBB0_33
## %bb.31:
	movl	16(%r15), %eax
	addl	%eax, %eax
	movl	%eax, 16(%r15)
	cmpl	$0, -56(%rbp)
	je	LBB0_33
## %bb.32:
	orl	$1, %eax
	movl	%eax, 16(%r15)
LBB0_33:
	movl	$136, (%r15)
	jmp	LBB0_61
LBB0_28:
	leaq	L_.str.2(%rip), %rsi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_56
LBB0_44:
	movslq	4(%r15), %rdx
	movq	_CHAR_BIT@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	shlq	$2, %rax
	cmpq	%rdx, %rax
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	jae	LBB0_47
## %bb.45:
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	xorl	%eax, %eax
	callq	_dev_dbg
	jmp	LBB0_46
LBB0_62:
	leaq	L_.str.2(%rip), %rsi
LBB0_55:
	movq	%r14, %rdi
LBB0_56:
	xorl	%eax, %eax
	callq	_dev_dbg
LBB0_46:
	movl	(%r15), %r12d
	movl	-52(%rbp), %edi
	callq	_TO_US
	movl	%eax, %r13d
	movl	-56(%rbp), %edi
	callq	_TO_STR
	leaq	L_.str.7(%rip), %rsi
	xorl	%ebx, %ebx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	%r12d, %edx
	movl	%r13d, %ecx
	movl	%eax, %r8d
	xorl	%eax, %eax
	callq	_dev_dbg
	movl	$131, (%r15)
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
LBB0_61:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_47:
	movl	16(%r15), %r13d
	xorl	%r12d, %r12d
	cmpl	$20, %edx
	je	LBB0_48
## %bb.49:
	cmpl	$32, %edx
	je	LBB0_52
## %bb.50:
	cmpl	$24, %edx
	jne	LBB0_54
## %bb.51:
	movq	_RC_PROTO_RC6_6A_24@GOTPCREL(%rip), %rax
	jmp	LBB0_58
LBB0_48:
	movq	_RC_PROTO_RC6_6A_20@GOTPCREL(%rip), %rax
	jmp	LBB0_58
LBB0_52:
	movq	_RC6_6A_LCC_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%r13d, %eax
	addl	$-139, %eax
	cmpl	$2, %eax
	ja	LBB0_53
## %bb.57:
	movq	_RC6_6A_MCE_TOGGLE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%r12d, %r12d
	testl	%r13d, %eax
	setne	%r12b
	notl	%eax
	andl	%eax, %r13d
	movq	_RC_PROTO_RC6_MCE@GOTPCREL(%rip), %rax
	jmp	LBB0_58
LBB0_54:
	leaq	L_.str.5(%rip), %rsi
	jmp	LBB0_55
LBB0_53:
	movq	_RC_PROTO_RC6_6A_32@GOTPCREL(%rip), %rax
LBB0_58:
	movl	(%rax), %edx
	leaq	L_.str.6(%rip), %rsi
	movq	%r14, %rdi
	movl	%edx, -68(%rbp)                 ## 4-byte Spill
	movl	%r13d, %ecx
	movl	%r12d, %r8d
	xorl	%eax, %eax
	callq	_dev_dbg
LBB0_59:
	movq	%r14, %rdi
	movl	-68(%rbp), %esi                 ## 4-byte Reload
	movl	%r13d, %edx
	movl	%r12d, %ecx
	callq	_rc_keydown
	jmp	LBB0_60
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_18, LBB0_18-LJTI0_0
.set L0_0_set_20, LBB0_20-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_17, LBB0_17-LJTI0_0
.set L0_0_set_40, LBB0_40-LJTI0_0
.set L0_0_set_29, LBB0_29-LJTI0_0
.set L0_0_set_38, LBB0_38-LJTI0_0
LJTI0_0:
	.long	L0_0_set_18
	.long	L0_0_set_20
	.long	L0_0_set_10
	.long	L0_0_set_7
	.long	L0_0_set_13
	.long	L0_0_set_17
	.long	L0_0_set_40
	.long	L0_0_set_29
	.long	L0_0_set_38
	.end_data_region
                                        ## -- End function
	.comm	_RC6_UNIT,4,2                   ## @RC6_UNIT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"RC6 decode started at state %i (%uus %s)\n"

	.comm	_RC6_PREFIX_PULSE,4,2           ## @RC6_PREFIX_PULSE
	.comm	_RC6_PREFIX_SPACE,4,2           ## @RC6_PREFIX_SPACE
	.comm	_RC6_BIT_START,4,2              ## @RC6_BIT_START
	.comm	_RC6_HEADER_NBITS,4,2           ## @RC6_HEADER_NBITS
	.comm	_RC6_BIT_END,4,2                ## @RC6_BIT_END
	.comm	_RC6_TOGGLE_START,4,2           ## @RC6_TOGGLE_START
	.comm	_RC6_STARTBIT_MASK,4,2          ## @RC6_STARTBIT_MASK
L_.str.1:                               ## @.str.1
	.asciz	"RC6 invalid start bit\n"

	.comm	_RC6_TOGGLE_END,4,2             ## @RC6_TOGGLE_END
	.comm	_RC6_0_NBITS,4,2                ## @RC6_0_NBITS
	.comm	_RC6_6A_NBITS,4,2               ## @RC6_6A_NBITS
L_.str.2:                               ## @.str.2
	.asciz	"RC6 unknown mode\n"

	.comm	_CHAR_BIT,4,2                   ## @CHAR_BIT
	.comm	_RC6_SUFFIX_SPACE,4,2           ## @RC6_SUFFIX_SPACE
	.comm	_RC_PROTO_RC6_0,4,2             ## @RC_PROTO_RC6_0
L_.str.3:                               ## @.str.3
	.asciz	"RC6(0) scancode 0x%04x (toggle: %u)\n"

L_.str.4:                               ## @.str.4
	.asciz	"RC6 too many (%u) data bits\n"

	.comm	_RC_PROTO_RC6_6A_20,4,2         ## @RC_PROTO_RC6_6A_20
	.comm	_RC_PROTO_RC6_6A_24,4,2         ## @RC_PROTO_RC6_6A_24
	.comm	_RC6_6A_LCC_MASK,4,2            ## @RC6_6A_LCC_MASK
	.comm	_RC_PROTO_RC6_MCE,4,2           ## @RC_PROTO_RC6_MCE
	.comm	_RC6_6A_MCE_TOGGLE_MASK,4,2     ## @RC6_6A_MCE_TOGGLE_MASK
	.comm	_RC_PROTO_RC6_6A_32,4,2         ## @RC_PROTO_RC6_6A_32
L_.str.5:                               ## @.str.5
	.asciz	"RC6(6A) unsupported length\n"

L_.str.6:                               ## @.str.6
	.asciz	"RC6(6A) proto 0x%04x, scancode 0x%08x (toggle: %u)\n"

L_.str.7:                               ## @.str.7
	.asciz	"RC6 decode failed at state %i (%uus %s)\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_ir_rc6_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_rc6_decode
lCPI0_0:
	.long	130                             ; 0x82
	.long	0                               ; 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_ir_rc6_decode:                         ; @ir_rc6_decode
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	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
	mov	x21, x2
	mov	x22, x1
	mov	x20, x0
	stp	x1, x2, [sp, #32]
	ldr	x19, [x0, #8]
	mov	x0, x1
	mov	x1, x2
	bl	_is_timing_event
	cbz	w0, LBB0_20
; %bb.1:
	lsr	x22, x22, #32
Lloh0:
	adrp	x23, _RC6_UNIT@GOTPAGE
Lloh1:
	ldr	x23, [x23, _RC6_UNIT@GOTPAGEOFF]
	ldr	w1, [x23]
	cmp	w1, #0
	cinc	w8, w1, lt
	asr	w2, w8, #1
	mov	x0, x22
	bl	_geq_margin
	cbz	x0, LBB0_47
; %bb.2:
Lloh2:
	adrp	x21, l_.str@PAGE
Lloh3:
	add	x21, x21, l_.str@PAGEOFF
Lloh4:
	adrp	x25, lJTI0_0@PAGE
Lloh5:
	add	x25, x25, lJTI0_0@PAGEOFF
Lloh6:
	adrp	x24, _RC6_BIT_END@GOTPAGE
Lloh7:
	ldr	x24, [x24, _RC6_BIT_END@GOTPAGEOFF]
Lloh8:
	adrp	x26, _RC6_BIT_START@GOTPAGE
Lloh9:
	ldr	x26, [x26, _RC6_BIT_START@GOTPAGEOFF]
	mov	w28, #134
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x19, #4]
Lloh10:
	adrp	x9, _RC6_HEADER_NBITS@GOTPAGE
Lloh11:
	ldr	x9, [x9, _RC6_HEADER_NBITS@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	cmp	w8, w9
	mov	w8, #132
	mov	w9, #128
	csel	w8, w9, w8, eq
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	str	w8, [x19]
	ldr	w1, [x24]
	add	x0, sp, #32
	bl	_decrease_duration
	ldr	w22, [sp, #36]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w27, [x19]
	mov	x0, x22
	bl	_TO_US
	mov	x22, x0
	ldr	w0, [sp, #32]
	bl	_TO_STR
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x22, x0, [sp, #8]
	str	x27, [sp]
	mov	x0, x20
	mov	x1, x21
	bl	_dev_dbg
	ldr	w0, [sp, #36]
	ldr	w1, [x23]
	cmp	w1, #0
	cinc	w8, w1, lt
	asr	w2, w8, #1
	bl	_geq_margin
	cbz	x0, LBB0_48
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x19]
	sub	w8, w8, #128
	cmp	w8, #8
	b.hi	LBB0_47
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	adr	x9, LBB0_3
	ldrb	w10, [x25, x8]
	add	x9, x9, x10, lsl #2
	br	x9
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x19, #8]
Lloh13:
	adrp	x9, _RC6_STARTBIT_MASK@GOTPAGE
Lloh14:
	ldr	x9, [x9, _RC6_STARTBIT_MASK@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_40
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w8, #135
	str	w8, [x19]
Lloh16:
	adrp	x8, _RC6_TOGGLE_END@GOTPAGE
Lloh17:
	ldr	x8, [x8, _RC6_TOGGLE_END@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	add	x0, sp, #32
	bl	_decrease_duration
	str	wzr, [x19, #4]
	str	wzr, [x19, #16]
	mov	x0, x19
	bl	_rc6_mode
	cmp	w0, #137
	b.eq	LBB0_18
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	cmp	w0, #138
	b.ne	LBB0_45
; %bb.11:                               ;   in Loop: Header=BB0_5 Depth=1
Lloh19:
	adrp	x8, _RC6_0_NBITS@GOTPAGE
Lloh20:
	ldr	x8, [x8, _RC6_0_NBITS@GOTPAGEOFF]
	b	LBB0_19
LBB0_12:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [sp, #36]
	ldr	w1, [x26]
	ldr	w8, [x23]
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w2, w8, #1
	bl	_eq_margin
	cbnz	w0, LBB0_41
; %bb.13:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x19
	bl	_rc6_mode
	cmp	w0, #137
	b.ne	LBB0_47
; %bb.14:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [sp, #32]
	cbnz	w8, LBB0_47
; %bb.15:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [sp, #36]
Lloh21:
	adrp	x8, _RC6_SUFFIX_SPACE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _RC6_SUFFIX_SPACE@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	ldr	w8, [x23]
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w2, w8, #1
	bl	_geq_margin
	cbz	x0, LBB0_47
; %bb.16:                               ;   in Loop: Header=BB0_5 Depth=1
	str	w28, [x19]
	ldr	w22, [sp, #36]
	b	LBB0_5
LBB0_17:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x19, #4]
	ldr	w9, [x19, #20]
	cmp	w8, w9
	cinc	w8, w28, ne
	b	LBB0_4
LBB0_18:                                ;   in Loop: Header=BB0_5 Depth=1
Lloh24:
	adrp	x8, _RC6_6A_NBITS@GOTPAGE
Lloh25:
	ldr	x8, [x8, _RC6_6A_NBITS@GOTPAGEOFF]
LBB0_19:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x8]
	str	w8, [x19, #20]
	ldr	w22, [sp, #36]
	b	LBB0_5
LBB0_20:
	cbz	x21, LBB0_23
LBB0_21:
	mov	w0, #0
	mov	w8, #131
LBB0_22:
	str	w8, [x19]
	b	LBB0_48
LBB0_23:
	mov	w0, #0
	b	LBB0_48
LBB0_24:
Lloh26:
	adrp	x8, _RC6_TOGGLE_START@GOTPAGE
Lloh27:
	ldr	x8, [x8, _RC6_TOGGLE_START@GOTPAGEOFF]
	ldr	w0, [sp, #36]
Lloh28:
	ldr	w1, [x8]
	ldr	w8, [x23]
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w2, w8, #1
	bl	_eq_margin
	cbz	w0, LBB0_47
; %bb.25:
	mov	w0, #0
	ldr	w8, [sp, #32]
	str	w8, [x19, #12]
	mov	w8, #129
	b	LBB0_22
LBB0_26:
	ldr	w8, [sp, #32]
	cbnz	w8, LBB0_47
; %bb.27:
Lloh29:
	adrp	x8, _RC6_PREFIX_SPACE@GOTPAGE
Lloh30:
	ldr	x8, [x8, _RC6_PREFIX_SPACE@GOTPAGEOFF]
	ldr	w0, [sp, #36]
Lloh31:
	ldr	w1, [x8]
	ldr	w8, [x23]
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w2, w8, #1
	bl	_eq_margin
	cbz	w0, LBB0_47
; %bb.28:
	mov	w0, #0
	mov	w8, #132
	str	w8, [x19]
	str	wzr, [x19, #8]
	b	LBB0_48
LBB0_29:
	ldr	w8, [sp, #32]
	cbz	w8, LBB0_47
; %bb.30:
	ldr	w0, [sp, #36]
Lloh32:
	adrp	x8, _RC6_PREFIX_PULSE@GOTPAGE
Lloh33:
	ldr	x8, [x8, _RC6_PREFIX_PULSE@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x8]
	ldr	w2, [x23]
	bl	_eq_margin
	cbz	w0, LBB0_47
; %bb.31:
	mov	w0, #0
Lloh35:
	adrp	x8, lCPI0_0@PAGE
Lloh36:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x19]
	b	LBB0_48
LBB0_32:
	ldr	w0, [sp, #36]
	ldr	w1, [x26]
	ldr	w8, [x23]
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w2, w8, #1
	bl	_eq_margin
	cbz	w0, LBB0_47
; %bb.33:
	ldr	w8, [x19, #8]
	lsl	w8, w8, #1
	str	w8, [x19, #8]
	ldr	w9, [sp, #32]
	cbz	w9, LBB0_35
; %bb.34:
	orr	w8, w8, #0x1
	str	w8, [x19, #8]
LBB0_35:
	mov	w0, #0
	ldr	w8, [x19, #4]
	add	w8, w8, #1
	mov	w9, #133
	stp	w9, w8, [x19]
	b	LBB0_48
LBB0_36:
	ldr	w8, [sp, #32]
	cbnz	w8, LBB0_47
; %bb.37:
	mov	x0, x19
	bl	_rc6_mode
	cmp	w0, #137
	b.eq	LBB0_49
; %bb.38:
	cmp	w0, #138
	b.ne	LBB0_45
; %bb.39:
	ldp	w22, w21, [x19, #12]
Lloh37:
	adrp	x8, _RC_PROTO_RC6_0@GOTPAGE
Lloh38:
	ldr	x8, [x8, _RC_PROTO_RC6_0@GOTPAGEOFF]
Lloh39:
	ldr	w23, [x8]
	stp	x21, x22, [sp]
Lloh40:
	adrp	x1, l_.str.3@PAGE
Lloh41:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_dev_dbg
                                        ; kill: def $w21 killed $w21 killed $x21 def $x21
                                        ; kill: def $w22 killed $w22 killed $x22 def $x22
	b	LBB0_61
LBB0_40:
Lloh42:
	adrp	x1, l_.str.1@PAGE
Lloh43:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_46
LBB0_41:
	ldrsw	x8, [x19, #4]
	add	w9, w8, #1
	str	w9, [x19, #4]
Lloh44:
	adrp	x9, _CHAR_BIT@GOTPAGE
Lloh45:
	ldr	x9, [x9, _CHAR_BIT@GOTPAGEOFF]
Lloh46:
	ldrsw	x9, [x9]
	cmp	x8, x9, lsl #2
	b.hs	LBB0_44
; %bb.42:
	ldr	w8, [x19, #16]
	lsl	w8, w8, #1
	str	w8, [x19, #16]
	ldr	w9, [sp, #32]
	cbz	w9, LBB0_44
; %bb.43:
	orr	w8, w8, #0x1
	str	w8, [x19, #16]
LBB0_44:
	mov	w0, #0
	mov	w8, #136
	b	LBB0_22
LBB0_45:
Lloh47:
	adrp	x1, l_.str.2@PAGE
Lloh48:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_46:
	mov	x0, x20
	bl	_dev_dbg
LBB0_47:
	ldr	w0, [sp, #36]
	ldr	w22, [x19]
	bl	_TO_US
	mov	x21, x0
	ldr	w0, [sp, #32]
	bl	_TO_STR
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x21, x0, [sp, #8]
	str	x22, [sp]
Lloh49:
	adrp	x1, l_.str.7@PAGE
Lloh50:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x20
	bl	_dev_dbg
	mov	w8, #131
	str	w8, [x19]
Lloh51:
	adrp	x8, _EINVAL@GOTPAGE
Lloh52:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh53:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_48:
	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
	add	sp, sp, #144
	ret
LBB0_49:
	ldrsw	x8, [x19, #4]
Lloh54:
	adrp	x9, _CHAR_BIT@GOTPAGE
Lloh55:
	ldr	x9, [x9, _CHAR_BIT@GOTPAGEOFF]
Lloh56:
	ldrsw	x9, [x9]
	cmp	x8, x9, lsl #2
	b.ls	LBB0_51
; %bb.50:
                                        ; kill: def $w8 killed $w8 killed $x8 def $x8
	str	x8, [sp]
Lloh57:
	adrp	x1, l_.str.4@PAGE
Lloh58:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_46
LBB0_51:
	ldr	w21, [x19, #16]
	cmp	w8, #20
	b.eq	LBB0_55
; %bb.52:
	cmp	w8, #32
	b.eq	LBB0_56
; %bb.53:
	cmp	w8, #24
	b.ne	LBB0_58
; %bb.54:
	mov	w22, #0
Lloh59:
	adrp	x8, _RC_PROTO_RC6_6A_24@GOTPAGE
Lloh60:
	ldr	x8, [x8, _RC_PROTO_RC6_6A_24@GOTPAGEOFF]
	b	LBB0_60
LBB0_55:
	mov	w22, #0
Lloh61:
	adrp	x8, _RC_PROTO_RC6_6A_20@GOTPAGE
Lloh62:
	ldr	x8, [x8, _RC_PROTO_RC6_6A_20@GOTPAGEOFF]
	b	LBB0_60
LBB0_56:
Lloh63:
	adrp	x8, _RC6_6A_LCC_MASK@GOTPAGE
Lloh64:
	ldr	x8, [x8, _RC6_6A_LCC_MASK@GOTPAGEOFF]
Lloh65:
	ldr	w8, [x8]
	and	w8, w8, w21
	sub	w8, w8, #139
	cmp	w8, #2
	b.hi	LBB0_59
; %bb.57:
Lloh66:
	adrp	x8, _RC6_6A_MCE_TOGGLE_MASK@GOTPAGE
Lloh67:
	ldr	x8, [x8, _RC6_6A_MCE_TOGGLE_MASK@GOTPAGEOFF]
Lloh68:
	ldr	w8, [x8]
	tst	w8, w21
	cset	w22, ne
	bic	w21, w21, w8
Lloh69:
	adrp	x8, _RC_PROTO_RC6_MCE@GOTPAGE
Lloh70:
	ldr	x8, [x8, _RC_PROTO_RC6_MCE@GOTPAGEOFF]
	b	LBB0_60
LBB0_58:
Lloh71:
	adrp	x1, l_.str.5@PAGE
Lloh72:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_46
LBB0_59:
	mov	w22, #0
Lloh73:
	adrp	x8, _RC_PROTO_RC6_6A_32@GOTPAGE
Lloh74:
	ldr	x8, [x8, _RC_PROTO_RC6_6A_32@GOTPAGEOFF]
LBB0_60:
	ldr	w23, [x8]
	stp	x21, x22, [sp, #8]
	str	x23, [sp]
Lloh75:
	adrp	x1, l_.str.6@PAGE
Lloh76:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x20
	bl	_dev_dbg
LBB0_61:
	mov	x0, x20
	mov	x1, x23
	mov	x2, x21
	mov	x3, x22
	bl	_rc_keydown
	b	LBB0_21
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdr	Lloh35, Lloh36
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpAdd	Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpAdd	Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpAdd	Lloh57, Lloh58
	.loh AdrpLdrGot	Lloh59, Lloh60
	.loh AdrpLdrGot	Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh63, Lloh64, Lloh65
	.loh AdrpLdrGot	Lloh69, Lloh70
	.loh AdrpLdrGotLdr	Lloh66, Lloh67, Lloh68
	.loh AdrpAdd	Lloh71, Lloh72
	.loh AdrpLdrGot	Lloh73, Lloh74
	.loh AdrpAdd	Lloh75, Lloh76
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_24-LBB0_3)>>2
	.byte	(LBB0_8-LBB0_3)>>2
	.byte	(LBB0_26-LBB0_3)>>2
	.byte	(LBB0_29-LBB0_3)>>2
	.byte	(LBB0_32-LBB0_3)>>2
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_36-LBB0_3)>>2
	.byte	(LBB0_12-LBB0_3)>>2
	.byte	(LBB0_17-LBB0_3)>>2
                                        ; -- End function
	.comm	_RC6_UNIT,4,2                   ; @RC6_UNIT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"RC6 decode started at state %i (%uus %s)\n"

	.comm	_RC6_PREFIX_PULSE,4,2           ; @RC6_PREFIX_PULSE
	.comm	_RC6_PREFIX_SPACE,4,2           ; @RC6_PREFIX_SPACE
	.comm	_RC6_BIT_START,4,2              ; @RC6_BIT_START
	.comm	_RC6_HEADER_NBITS,4,2           ; @RC6_HEADER_NBITS
	.comm	_RC6_BIT_END,4,2                ; @RC6_BIT_END
	.comm	_RC6_TOGGLE_START,4,2           ; @RC6_TOGGLE_START
	.comm	_RC6_STARTBIT_MASK,4,2          ; @RC6_STARTBIT_MASK
l_.str.1:                               ; @.str.1
	.asciz	"RC6 invalid start bit\n"

	.comm	_RC6_TOGGLE_END,4,2             ; @RC6_TOGGLE_END
	.comm	_RC6_0_NBITS,4,2                ; @RC6_0_NBITS
	.comm	_RC6_6A_NBITS,4,2               ; @RC6_6A_NBITS
l_.str.2:                               ; @.str.2
	.asciz	"RC6 unknown mode\n"

	.comm	_CHAR_BIT,4,2                   ; @CHAR_BIT
	.comm	_RC6_SUFFIX_SPACE,4,2           ; @RC6_SUFFIX_SPACE
	.comm	_RC_PROTO_RC6_0,4,2             ; @RC_PROTO_RC6_0
l_.str.3:                               ; @.str.3
	.asciz	"RC6(0) scancode 0x%04x (toggle: %u)\n"

l_.str.4:                               ; @.str.4
	.asciz	"RC6 too many (%u) data bits\n"

	.comm	_RC_PROTO_RC6_6A_20,4,2         ; @RC_PROTO_RC6_6A_20
	.comm	_RC_PROTO_RC6_6A_24,4,2         ; @RC_PROTO_RC6_6A_24
	.comm	_RC6_6A_LCC_MASK,4,2            ; @RC6_6A_LCC_MASK
	.comm	_RC_PROTO_RC6_MCE,4,2           ; @RC_PROTO_RC6_MCE
	.comm	_RC6_6A_MCE_TOGGLE_MASK,4,2     ; @RC6_6A_MCE_TOGGLE_MASK
	.comm	_RC_PROTO_RC6_6A_32,4,2         ; @RC_PROTO_RC6_6A_32
l_.str.5:                               ; @.str.5
	.asciz	"RC6(6A) unsupported length\n"

l_.str.6:                               ; @.str.6
	.asciz	"RC6(6A) proto 0x%04x, scancode 0x%08x (toggle: %u)\n"

l_.str.7:                               ; @.str.7
	.asciz	"RC6 decode failed at state %i (%uus %s)\n"

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