	.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	%rsi, -56(%rbp)
	movq	%rdx, -48(%rbp)
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %r15
	movq	_RC_TYPE_RC6@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%r12d, %r12d
	testl	%eax, (%r15)
	je	LBB0_55
## %bb.1:
	movq	%rdx, %rbx
	movq	%rsi, %r13
	leaq	8(%r15), %r14
	movq	%rsi, %rdi
	movq	%rdx, %rsi
	callq	_is_timing_event
	testl	%eax, %eax
	je	LBB0_2
## %bb.3:
	shrq	$32, %r13
	movq	_RC6_UNIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%esi, %edx
	shrl	$31, %edx
	addl	%esi, %edx
	sarl	%edx
	movl	%r13d, %edi
	callq	_geq_margin
	testq	%rax, %rax
	je	LBB0_27
## %bb.4:
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_44:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	_RC6_BIT_END@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-56(%rbp), %rdi
	callq	_decrease_duration
	movl	-52(%rbp), %r13d
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %r15d
	movl	%r13d, %edi
	callq	_TO_US
	movl	%eax, %ebx
	movl	-56(%rbp), %edi
	callq	_TO_STR
	movl	$2, %edi
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %edx
	movl	%ebx, %ecx
	movl	%eax, %r8d
	xorl	%eax, %eax
	callq	_IR_dprintk
	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_55
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	(%r14), %eax
	addl	$-128, %eax
	cmpl	$8, %eax
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	ja	LBB0_27
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_22:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rsi
	addq	$4, %rsi
	leaq	-56(%rbp), %rdi
	callq	_is_transition
	testl	%eax, %eax
	je	LBB0_27
## %bb.23:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	-52(%rbp), %edi
	movq	_RC6_TOGGLE_END@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_27
## %bb.24:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	_RC6_STARTBIT_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 12(%rbx)
	je	LBB0_25
## %bb.28:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	$135, 8(%rbx)
	movq	_RC6_TOGGLE_END@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-56(%rbp), %rdi
	callq	_decrease_duration
	movl	$0, 28(%rbx)
	movq	%r14, %rdi
	callq	_rc6_mode
	cmpl	$137, %eax
	je	LBB0_33
## %bb.29:                              ##   in Loop: Header=BB0_5 Depth=1
	cmpl	$138, %eax
	jne	LBB0_30
## %bb.31:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	_RC6_0_NBITS@GOTPCREL(%rip), %rax
	jmp	LBB0_32
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rsi
	addq	$4, %rsi
	leaq	-56(%rbp), %rdi
	callq	_is_transition
	testl	%eax, %eax
	je	LBB0_27
## %bb.19:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	28(%rbx), %eax
	xorl	%ecx, %ecx
	movq	_RC6_HEADER_NBITS@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %eax
	setne	%cl
	leal	128(,%rcx,4), %eax
	movl	%eax, 8(%rbx)
	jmp	LBB0_44
	.p2align	4, 0x90
LBB0_42:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rsi
	addq	$4, %rsi
	leaq	-56(%rbp), %rdi
	callq	_is_transition
	testl	%eax, %eax
	je	LBB0_27
## %bb.43:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	28(%rbx), %eax
	xorl	%ecx, %ecx
	cmpl	24(%rbx), %eax
	sete	%cl
	xorl	$135, %ecx
	movl	%ecx, 8(%rbx)
	jmp	LBB0_44
LBB0_33:                                ##   in Loop: Header=BB0_5 Depth=1
	cmpl	$0, -56(%rbp)
	jne	LBB0_35
## %bb.34:                              ##   in Loop: Header=BB0_5 Depth=1
	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_36
LBB0_35:                                ##   in Loop: Header=BB0_5 Depth=1
	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_37
LBB0_36:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	_RC6_6A_LARGE_NBITS@GOTPCREL(%rip), %rax
	jmp	LBB0_32
LBB0_37:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	_RC6_6A_SMALL_NBITS@GOTPCREL(%rip), %rax
	.p2align	4, 0x90
LBB0_32:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movl	-52(%rbp), %r13d
	jmp	LBB0_5
LBB0_2:
	testq	%rbx, %rbx
	je	LBB0_55
LBB0_54:
	movl	$131, (%r14)
	jmp	LBB0_55
LBB0_8:
	cmpl	$0, -56(%rbp)
	je	LBB0_27
## %bb.9:
	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_27
## %bb.10:
	movl	$130, 8(%rbx)
	movl	$0, 28(%rbx)
	jmp	LBB0_55
LBB0_38:
	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_27
## %bb.39:
	movl	20(%rbx), %eax
	addl	%eax, %eax
	movl	%eax, 20(%rbx)
	cmpl	$0, -56(%rbp)
	je	LBB0_41
## %bb.40:
	orl	$1, %eax
	movl	%eax, 20(%rbx)
LBB0_41:
	incl	28(%rbx)
	movl	$136, 8(%rbx)
	jmp	LBB0_55
LBB0_20:
	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_27
## %bb.21:
	movl	-56(%rbp), %eax
	movl	%eax, 16(%rbx)
	movl	$129, 8(%rbx)
	jmp	LBB0_55
LBB0_11:
	cmpl	$0, -56(%rbp)
	jne	LBB0_27
## %bb.12:
	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_27
## %bb.13:
	movl	$132, (%r14)
	jmp	LBB0_55
LBB0_14:
	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_27
## %bb.15:
	movl	12(%rbx), %eax
	addl	%eax, %eax
	movl	%eax, 12(%rbx)
	cmpl	$0, -56(%rbp)
	je	LBB0_17
## %bb.16:
	orl	$1, %eax
	movl	%eax, 12(%rbx)
LBB0_17:
	incl	28(%rbx)
	movl	$133, 8(%rbx)
	jmp	LBB0_55
LBB0_45:
	cmpl	$0, -56(%rbp)
	jne	LBB0_27
## %bb.46:
	movq	%r14, %rdi
	callq	_rc6_mode
	cmpl	$137, %eax
	je	LBB0_49
## %bb.47:
	cmpl	$138, %eax
	leaq	L_.str.2(%rip), %rsi
	jne	LBB0_26
## %bb.48:
	movzwl	20(%rbx), %r15d
	movl	16(%rbx), %r13d
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_53
LBB0_25:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_26
LBB0_30:
	leaq	L_.str.2(%rip), %rsi
LBB0_26:
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_IR_dprintk
LBB0_27:
	movq	%r14, %rbx
	movl	(%r14), %r14d
	movl	-52(%rbp), %edi
	callq	_TO_US
	movl	%eax, %r15d
	movl	-56(%rbp), %edi
	callq	_TO_STR
	leaq	L_.str.5(%rip), %rsi
	xorl	%r12d, %r12d
	movl	$1, %edi
	movl	%r14d, %edx
	movl	%r15d, %ecx
	movl	%eax, %r8d
	xorl	%eax, %eax
	callq	_IR_dprintk
	movl	$131, (%rbx)
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
LBB0_55:
	movl	%r12d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_49:
	movl	20(%rbx), %r15d
	movl	24(%rbx), %eax
	movq	_RC6_6A_LARGE_NBITS@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_50
## %bb.51:
	movq	_RC6_6A_MCE_TOGGLE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%r13d, %r13d
	testl	%r15d, %eax
	setne	%r13b
	notl	%eax
	jmp	LBB0_52
LBB0_50:
	xorl	%r13d, %r13d
	movl	$16777215, %eax                 ## imm = 0xFFFFFF
LBB0_52:
	andl	%eax, %r15d
	leaq	L_.str.4(%rip), %rsi
LBB0_53:
	movl	$1, %edi
	movl	%r15d, %edx
	movl	%r13d, %ecx
	xorl	%eax, %eax
	callq	_IR_dprintk
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	%r15d, %esi
	movl	%r13d, %edx
	callq	_rc_keydown
	jmp	LBB0_54
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_20, LBB0_20-LJTI0_0
.set L0_0_set_22, LBB0_22-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_18, LBB0_18-LJTI0_0
.set L0_0_set_45, LBB0_45-LJTI0_0
.set L0_0_set_38, LBB0_38-LJTI0_0
.set L0_0_set_42, LBB0_42-LJTI0_0
LJTI0_0:
	.long	L0_0_set_20
	.long	L0_0_set_22
	.long	L0_0_set_11
	.long	L0_0_set_8
	.long	L0_0_set_14
	.long	L0_0_set_18
	.long	L0_0_set_45
	.long	L0_0_set_38
	.long	L0_0_set_42
	.end_data_region
                                        ## -- End function
	.comm	_RC_TYPE_RC6,4,2                ## @RC_TYPE_RC6
	.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_TOGGLE_END,4,2             ## @RC6_TOGGLE_END
	.comm	_RC6_STARTBIT_MASK,4,2          ## @RC6_STARTBIT_MASK
L_.str.1:                               ## @.str.1
	.asciz	"RC6 invalid start bit\n"

	.comm	_RC6_0_NBITS,4,2                ## @RC6_0_NBITS
	.comm	_RC6_6A_LARGE_NBITS,4,2         ## @RC6_6A_LARGE_NBITS
	.comm	_RC6_6A_SMALL_NBITS,4,2         ## @RC6_6A_SMALL_NBITS
L_.str.2:                               ## @.str.2
	.asciz	"RC6 unknown mode\n"

L_.str.3:                               ## @.str.3
	.asciz	"RC6(0) scancode 0x%04x (toggle: %u)\n"

	.comm	_RC6_6A_MCE_TOGGLE_MASK,4,2     ## @RC6_6A_MCE_TOGGLE_MASK
L_.str.4:                               ## @.str.4
	.asciz	"RC6(6A) scancode 0x%08x (toggle: %u)\n"

L_.str.5:                               ## @.str.5
	.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
	.p2align	2                               ; -- Begin function ir_rc6_decode
_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
	stp	x1, x2, [sp, #32]
	ldr	x24, [x0]
	mov	x19, x24
	ldr	w8, [x19], #8
Lloh0:
	adrp	x9, _RC_TYPE_RC6@GOTPAGE
Lloh1:
	ldr	x9, [x9, _RC_TYPE_RC6@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_27
; %bb.1:
	mov	x21, x2
	mov	x22, x1
	mov	x20, x0
	mov	x0, x1
	mov	x1, x2
	bl	_is_timing_event
	cbz	w0, LBB0_24
; %bb.2:
	lsr	x23, x22, #32
Lloh3:
	adrp	x25, _RC6_UNIT@GOTPAGE
Lloh4:
	ldr	x25, [x25, _RC6_UNIT@GOTPAGEOFF]
	ldr	w1, [x25]
	cmp	w1, #0
	cinc	w8, w1, lt
	asr	w2, w8, #1
	mov	x0, x23
	bl	_geq_margin
	cbz	x0, LBB0_51
; %bb.3:
Lloh5:
	adrp	x22, l_.str@PAGE
Lloh6:
	add	x22, x22, l_.str@PAGEOFF
Lloh7:
	adrp	x27, lJTI0_0@PAGE
Lloh8:
	add	x27, x27, lJTI0_0@PAGEOFF
Lloh9:
	adrp	x28, _RC6_TOGGLE_END@GOTPAGE
Lloh10:
	ldr	x28, [x28, _RC6_TOGGLE_END@GOTPAGEOFF]
Lloh11:
	adrp	x21, _RC6_BIT_END@GOTPAGE
Lloh12:
	ldr	x21, [x21, _RC6_BIT_END@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	str	w8, [x24, #8]
	ldr	w1, [x21]
	add	x0, sp, #32
	bl	_decrease_duration
	ldr	w23, [sp, #36]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w26, [x19]
	mov	x0, x23
	bl	_TO_US
	mov	x23, x0
	ldr	w0, [sp, #32]
	bl	_TO_STR
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x23, x0, [sp, #8]
	str	x26, [sp]
	mov	w0, #2
	mov	x1, x22
	bl	_IR_dprintk
	ldr	w0, [sp, #36]
	ldr	w1, [x25]
	cmp	w1, #0
	cinc	w8, w1, lt
	asr	w2, w8, #1
	bl	_geq_margin
	cbz	x0, LBB0_52
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x19]
	sub	w8, w8, #128
	cmp	w8, #8
	b.hi	LBB0_51
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	adr	x9, LBB0_8
	ldrb	w10, [x27, x8]
	add	x9, x9, x10, lsl #2
	br	x9
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x20]
	add	x1, x8, #4
	add	x0, sp, #32
	bl	_is_transition
	cbz	w0, LBB0_51
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [sp, #36]
	ldr	w1, [x28]
	ldr	w8, [x25]
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w2, w8, #1
	bl	_geq_margin
	cbz	x0, LBB0_51
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x24, #12]
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_48
; %bb.11:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	w8, #135
	str	w8, [x24, #8]
	ldr	w1, [x28]
	add	x0, sp, #32
	bl	_decrease_duration
	str	wzr, [x24, #28]
	mov	x0, x19
	bl	_rc6_mode
	cmp	w0, #137
	b.eq	LBB0_18
; %bb.12:                               ;   in Loop: Header=BB0_5 Depth=1
	cmp	w0, #138
	b.ne	LBB0_49
; %bb.13:                               ;   in Loop: Header=BB0_5 Depth=1
Lloh16:
	adrp	x8, _RC6_0_NBITS@GOTPAGE
Lloh17:
	ldr	x8, [x8, _RC6_0_NBITS@GOTPAGEOFF]
	b	LBB0_23
LBB0_14:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x20]
	add	x1, x8, #4
	add	x0, sp, #32
	bl	_is_transition
	cbz	w0, LBB0_51
; %bb.15:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x24, #28]
Lloh18:
	adrp	x9, _RC6_HEADER_NBITS@GOTPAGE
Lloh19:
	ldr	x9, [x9, _RC6_HEADER_NBITS@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	cmp	w8, w9
	mov	w8, #132
	mov	w9, #128
	csel	w8, w9, w8, eq
	b	LBB0_4
LBB0_16:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x20]
	add	x1, x8, #4
	add	x0, sp, #32
	bl	_is_transition
	cbz	w0, LBB0_51
; %bb.17:                               ;   in Loop: Header=BB0_5 Depth=1
	ldp	w9, w8, [x24, #24]
	cmp	w8, w9
	mov	w8, #134
	cinc	w8, w8, ne
	b	LBB0_4
LBB0_18:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [sp, #32]
	cbnz	w8, LBB0_20
; %bb.19:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [sp, #36]
	ldr	w1, [x25]
	cmp	w1, #0
	cinc	w8, w1, lt
	asr	w2, w8, #1
	bl	_geq_margin
	cbz	x0, LBB0_21
LBB0_20:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [sp, #36]
	ldr	w1, [x25]
	cmp	w1, #0
	cinc	w8, w1, lt
	asr	w2, w8, #1
	bl	_geq_margin
	cbz	x0, LBB0_22
LBB0_21:                                ;   in Loop: Header=BB0_5 Depth=1
Lloh21:
	adrp	x8, _RC6_6A_LARGE_NBITS@GOTPAGE
Lloh22:
	ldr	x8, [x8, _RC6_6A_LARGE_NBITS@GOTPAGEOFF]
	b	LBB0_23
LBB0_22:                                ;   in Loop: Header=BB0_5 Depth=1
Lloh23:
	adrp	x8, _RC6_6A_SMALL_NBITS@GOTPAGE
Lloh24:
	ldr	x8, [x8, _RC6_6A_SMALL_NBITS@GOTPAGEOFF]
LBB0_23:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x8]
	str	w8, [x24, #24]
	ldr	w23, [sp, #36]
	b	LBB0_5
LBB0_24:
	cbz	x21, LBB0_27
LBB0_25:
	mov	w0, #0
	mov	w8, #131
LBB0_26:
	str	w8, [x19]
	b	LBB0_52
LBB0_27:
	mov	w0, #0
	b	LBB0_52
LBB0_28:
	ldr	w8, [sp, #32]
	cbz	w8, LBB0_51
; %bb.29:
	ldr	w0, [sp, #36]
Lloh25:
	adrp	x8, _RC6_PREFIX_PULSE@GOTPAGE
Lloh26:
	ldr	x8, [x8, _RC6_PREFIX_PULSE@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
	ldr	w2, [x25]
	bl	_eq_margin
	cbz	w0, LBB0_51
; %bb.30:
	mov	w0, #0
	mov	w8, #130
	str	w8, [x24, #8]
	str	wzr, [x24, #28]
	b	LBB0_52
LBB0_31:
Lloh28:
	adrp	x8, _RC6_BIT_START@GOTPAGE
Lloh29:
	ldr	x8, [x8, _RC6_BIT_START@GOTPAGEOFF]
	ldr	w0, [sp, #36]
Lloh30:
	ldr	w1, [x8]
	ldr	w8, [x25]
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w2, w8, #1
	bl	_eq_margin
	cbz	w0, LBB0_51
; %bb.32:
	ldr	w8, [x24, #20]
	lsl	w8, w8, #1
	str	w8, [x24, #20]
	ldr	w9, [sp, #32]
	cbz	w9, LBB0_34
; %bb.33:
	orr	w8, w8, #0x1
	str	w8, [x24, #20]
LBB0_34:
	mov	w0, #0
	ldr	w8, [x24, #28]
	add	w8, w8, #1
	str	w8, [x24, #28]
	mov	w8, #136
	str	w8, [x24, #8]
	b	LBB0_52
LBB0_35:
Lloh31:
	adrp	x8, _RC6_TOGGLE_START@GOTPAGE
Lloh32:
	ldr	x8, [x8, _RC6_TOGGLE_START@GOTPAGEOFF]
	ldr	w0, [sp, #36]
Lloh33:
	ldr	w1, [x8]
	ldr	w8, [x25]
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w2, w8, #1
	bl	_eq_margin
	cbz	w0, LBB0_51
; %bb.36:
	mov	w0, #0
	ldr	w8, [sp, #32]
	str	w8, [x24, #16]
	mov	w8, #129
	str	w8, [x24, #8]
	b	LBB0_52
LBB0_37:
	ldr	w8, [sp, #32]
	cbnz	w8, LBB0_51
; %bb.38:
Lloh34:
	adrp	x8, _RC6_PREFIX_SPACE@GOTPAGE
Lloh35:
	ldr	x8, [x8, _RC6_PREFIX_SPACE@GOTPAGEOFF]
	ldr	w0, [sp, #36]
Lloh36:
	ldr	w1, [x8]
	ldr	w8, [x25]
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w2, w8, #1
	bl	_eq_margin
	cbz	w0, LBB0_51
; %bb.39:
	mov	w0, #0
	mov	w8, #132
	b	LBB0_26
LBB0_40:
Lloh37:
	adrp	x8, _RC6_BIT_START@GOTPAGE
Lloh38:
	ldr	x8, [x8, _RC6_BIT_START@GOTPAGEOFF]
	ldr	w0, [sp, #36]
Lloh39:
	ldr	w1, [x8]
	ldr	w8, [x25]
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w2, w8, #1
	bl	_eq_margin
	cbz	w0, LBB0_51
; %bb.41:
	ldr	w8, [x24, #12]
	lsl	w8, w8, #1
	str	w8, [x24, #12]
	ldr	w9, [sp, #32]
	cbz	w9, LBB0_43
; %bb.42:
	orr	w8, w8, #0x1
	str	w8, [x24, #12]
LBB0_43:
	mov	w0, #0
	ldr	w8, [x24, #28]
	add	w8, w8, #1
	str	w8, [x24, #28]
	mov	w8, #133
	str	w8, [x24, #8]
	b	LBB0_52
LBB0_44:
	ldr	w8, [sp, #32]
	cbnz	w8, LBB0_51
; %bb.45:
	mov	x0, x19
	bl	_rc6_mode
	cmp	w0, #137
	b.eq	LBB0_53
; %bb.46:
	cmp	w0, #138
	b.ne	LBB0_49
; %bb.47:
	ldrh	w22, [x24, #20]
	ldr	w21, [x24, #16]
	stp	x22, x21, [sp]
Lloh40:
	adrp	x1, l_.str.3@PAGE
Lloh41:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w0, #1
	bl	_IR_dprintk
                                        ; kill: def $w22 killed $w22 killed $x22 def $x22
                                        ; kill: def $w21 killed $w21 killed $x21 def $x21
	b	LBB0_57
LBB0_48:
Lloh42:
	adrp	x1, l_.str.1@PAGE
Lloh43:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_50
LBB0_49:
Lloh44:
	adrp	x1, l_.str.2@PAGE
Lloh45:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_50:
	mov	w0, #1
	bl	_IR_dprintk
LBB0_51:
	ldr	w0, [sp, #36]
	ldr	w21, [x19]
	bl	_TO_US
	mov	x20, x0
	ldr	w0, [sp, #32]
	bl	_TO_STR
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x20, x0, [sp, #8]
	str	x21, [sp]
Lloh46:
	adrp	x1, l_.str.5@PAGE
Lloh47:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	w0, #1
	bl	_IR_dprintk
	mov	w8, #131
	str	w8, [x19]
Lloh48:
	adrp	x8, _EINVAL@GOTPAGE
Lloh49:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh50:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_52:
	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_53:
Lloh51:
	adrp	x8, _RC6_6A_LARGE_NBITS@GOTPAGE
Lloh52:
	ldr	x8, [x8, _RC6_6A_LARGE_NBITS@GOTPAGEOFF]
Lloh53:
	ldr	w9, [x8]
	ldp	w8, w10, [x24, #20]
	cmp	w10, w9
	b.ne	LBB0_55
; %bb.54:
Lloh54:
	adrp	x9, _RC6_6A_MCE_TOGGLE_MASK@GOTPAGE
Lloh55:
	ldr	x9, [x9, _RC6_6A_MCE_TOGGLE_MASK@GOTPAGEOFF]
Lloh56:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w21, ne
	mvn	w9, w9
	b	LBB0_56
LBB0_55:
	mov	w21, #0
	mov	w9, #16777215
LBB0_56:
	and	w22, w8, w9
	stp	x22, x21, [sp]
Lloh57:
	adrp	x1, l_.str.4@PAGE
Lloh58:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	w0, #1
	bl	_IR_dprintk
LBB0_57:
	mov	x0, x20
	mov	x1, x22
	mov	x2, x21
	bl	_rc_keydown
	b	LBB0_25
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpAdd	Lloh57, Lloh58
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_35-LBB0_8)>>2
	.byte	(LBB0_8-LBB0_8)>>2
	.byte	(LBB0_37-LBB0_8)>>2
	.byte	(LBB0_28-LBB0_8)>>2
	.byte	(LBB0_40-LBB0_8)>>2
	.byte	(LBB0_14-LBB0_8)>>2
	.byte	(LBB0_44-LBB0_8)>>2
	.byte	(LBB0_31-LBB0_8)>>2
	.byte	(LBB0_16-LBB0_8)>>2
                                        ; -- End function
	.comm	_RC_TYPE_RC6,4,2                ; @RC_TYPE_RC6
	.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_TOGGLE_END,4,2             ; @RC6_TOGGLE_END
	.comm	_RC6_STARTBIT_MASK,4,2          ; @RC6_STARTBIT_MASK
l_.str.1:                               ; @.str.1
	.asciz	"RC6 invalid start bit\n"

	.comm	_RC6_0_NBITS,4,2                ; @RC6_0_NBITS
	.comm	_RC6_6A_LARGE_NBITS,4,2         ; @RC6_6A_LARGE_NBITS
	.comm	_RC6_6A_SMALL_NBITS,4,2         ; @RC6_6A_SMALL_NBITS
l_.str.2:                               ; @.str.2
	.asciz	"RC6 unknown mode\n"

l_.str.3:                               ; @.str.3
	.asciz	"RC6(0) scancode 0x%04x (toggle: %u)\n"

	.comm	_RC6_6A_MCE_TOGGLE_MASK,4,2     ; @RC6_6A_MCE_TOGGLE_MASK
l_.str.4:                               ; @.str.4
	.asciz	"RC6(6A) scancode 0x%08x (toggle: %u)\n"

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

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