	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ir_nec_decode
_ir_nec_decode:                         ## @ir_nec_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	8(%rdi), %r12
	movq	_RC_TYPE_NEC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%r13d, %r13d
	testl	%eax, (%r12)
	je	LBB0_48
## %bb.1:
	movq	%rdx, %r15
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	%rsi, %rdi
	movq	%rdx, %rsi
	callq	_is_timing_event
	testl	%eax, %eax
	je	LBB0_2
## %bb.4:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%r14, %r15
	shrq	$32, %r15
	movl	4(%r12), %ebx
	movl	%r15d, %edi
	callq	_TO_US
	movl	%eax, %r13d
	movl	%r14d, %edi
	callq	_TO_STR
	leaq	L_.str(%rip), %rsi
	movl	$2, %edi
	movl	%ebx, %edx
	movl	%r13d, %ecx
	movq	%r15, %rbx
	movq	%r12, %r15
	movl	%eax, %r8d
	xorl	%eax, %eax
	callq	_IR_dprintk
	movl	4(%r12), %eax
	addl	$-128, %eax
	cmpl	$5, %eax
	ja	LBB0_40
## %bb.5:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_36:
	testl	%r14d, %r14d
	jne	LBB0_40
## %bb.37:
	movq	_NEC_TRAILER_SPACE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_NEC_UNIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%eax, %edx
	sarl	%edx
	movl	%ebx, %edi
	callq	_geq_margin
	testl	%eax, %eax
	je	LBB0_40
## %bb.38:
	movzbl	19(%r15), %edi
	callq	_bitrev8
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movzbl	18(%r15), %edi
	callq	_bitrev8
	movl	%eax, %r12d
	movzbl	17(%r15), %edi
	callq	_bitrev8
	movl	%eax, %r13d
	movzbl	16(%r15), %edi
	callq	_bitrev8
	xorl	%r13d, %eax
	cmpl	$255, %eax
	jne	LBB0_39
## %bb.41:
	movl	%r12d, %eax
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	xorl	%ecx, %eax
	cmpl	$255, %eax
	jne	LBB0_42
## %bb.43:
	shll	$8, %ecx
	orl	%ecx, %r13d
	leaq	L_.str.5(%rip), %rsi
	movl	$1, %edi
	movl	%r13d, %edx
	xorl	%eax, %eax
	callq	_IR_dprintk
	movl	%r13d, %r12d
	jmp	LBB0_44
LBB0_2:
	testq	%r15, %r15
	je	LBB0_48
## %bb.3:
	movl	$130, 4(%r12)
	jmp	LBB0_48
LBB0_33:
	testl	%r14d, %r14d
	je	LBB0_40
## %bb.34:
	movq	_NEC_TRAILER_PULSE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_NEC_UNIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%eax, %edx
	sarl	%edx
	movl	%ebx, %edi
	callq	_eq_margin
	testl	%eax, %eax
	je	LBB0_40
## %bb.35:
	movl	$128, 4(%r15)
	xorl	%r13d, %r13d
	jmp	LBB0_48
LBB0_6:
	testl	%r14d, %r14d
	je	LBB0_40
## %bb.7:
	movq	_NEC_HEADER_PULSE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_NEC_UNIT@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%eax, %edx
	sarl	%edx
	movl	%ebx, %edi
	callq	_eq_margin
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	movq	%r12, %r15
	movq	$0, 8(%r12)
	jmp	LBB0_11
LBB0_12:
	testl	%r14d, %r14d
	jne	LBB0_40
## %bb.13:
	movq	_NEC_HEADER_SPACE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_NEC_UNIT@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%eax, %edx
	sarl	%edx
	movl	%ebx, %edi
	callq	_eq_margin
	testl	%eax, %eax
	je	LBB0_15
## %bb.14:
	movl	$133, 4(%r12)
	xorl	%r13d, %r13d
	jmp	LBB0_48
LBB0_22:
	testl	%r14d, %r14d
	jne	LBB0_40
## %bb.23:
	cmpl	$0, 12(%r15)
	je	LBB0_27
## %bb.24:
	movl	20(%r15), %eax
	movq	_NECX_REPEAT_BITS@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_27
## %bb.25:
	movq	_NEC_TRAILER_SPACE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_NEC_UNIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%eax, %edx
	sarl	%edx
	movl	%ebx, %edi
	callq	_geq_margin
	testl	%eax, %eax
	je	LBB0_27
## %bb.26:
	leaq	L_.str.2(%rip), %rsi
	xorl	%r13d, %r13d
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_IR_dprintk
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_rc_repeat
	jmp	LBB0_47
LBB0_19:
	testl	%r14d, %r14d
	je	LBB0_40
## %bb.20:
	movq	_NEC_BIT_PULSE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_NEC_UNIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%eax, %edx
	sarl	%edx
	movl	%ebx, %edi
	callq	_eq_margin
	testl	%eax, %eax
	je	LBB0_40
## %bb.21:
	movl	$132, 4(%r15)
	xorl	%r13d, %r13d
	jmp	LBB0_48
LBB0_27:
	movl	20(%r15), %eax
	movq	_NECX_REPEAT_BITS@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jle	LBB0_29
## %bb.28:
	movl	$0, 12(%r15)
LBB0_29:
	shll	16(%r15)
	movq	_NEC_BIT_1_SPACE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %r12
	movq	_NEC_UNIT@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%eax, %edx
	sarl	%edx
	movl	%ebx, %edi
	callq	_eq_margin
	testl	%eax, %eax
	je	LBB0_31
## %bb.30:
	orb	$1, 16(%r12)
	movq	%r12, %r15
	jmp	LBB0_32
LBB0_9:
	movq	_NECX_HEADER_PULSE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r15), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%eax, %edx
	sarl	%edx
	movl	%ebx, %edi
	callq	_eq_margin
	testl	%eax, %eax
	movq	%r12, %r15
	je	LBB0_40
## %bb.10:
	movl	$1, 8(%r15)
LBB0_11:
	movl	$0, 20(%r15)
	movl	$131, 4(%r15)
	xorl	%r13d, %r13d
	jmp	LBB0_48
LBB0_15:
	movq	_NEC_REPEAT_SPACE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r15), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%eax, %edx
	sarl	%edx
	movl	%ebx, %edi
	callq	_eq_margin
	testl	%eax, %eax
	movq	%r12, %r15
	je	LBB0_40
## %bb.16:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	cmpl	$0, (%rdi)
	je	LBB0_17
## %bb.18:
	callq	_rc_repeat
	leaq	L_.str.2(%rip), %rsi
	xorl	%r13d, %r13d
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_IR_dprintk
	movl	$129, 4(%r15)
	jmp	LBB0_48
LBB0_39:
	movl	16(%r15), %edx
	leaq	L_.str.3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_IR_dprintk
	jmp	LBB0_40
LBB0_31:
	movq	_NEC_BIT_0_SPACE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r15), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%eax, %edx
	sarl	%edx
	movl	%ebx, %edi
	callq	_eq_margin
	testl	%eax, %eax
	movq	%r12, %r15
	je	LBB0_40
LBB0_32:
	movl	20(%r15), %eax
	incl	%eax
	movl	%eax, 20(%r15)
	movq	_NEC_NBITS@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpl	(%rcx), %eax
	setne	%dl
	leal	129(,%rdx,4), %eax
	movl	%eax, 4(%r15)
	xorl	%r13d, %r13d
	jmp	LBB0_48
LBB0_40:
	movl	4(%r15), %r12d
	movl	%ebx, %edi
	callq	_TO_US
	movl	%eax, %ebx
	movl	%r14d, %edi
	callq	_TO_STR
	leaq	L_.str.6(%rip), %rsi
	movl	$1, %edi
	movl	%r12d, %edx
	movl	%ebx, %ecx
	movl	%eax, %r8d
	xorl	%eax, %eax
	callq	_IR_dprintk
	movl	$130, 4(%r15)
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
LBB0_48:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_42:
	shll	$16, %ecx
	shll	$8, %r12d
	orl	%ecx, %r12d
	orl	%r13d, %r12d
	leaq	L_.str.4(%rip), %rsi
	movl	$1, %edi
	movl	%r12d, %edx
	xorl	%eax, %eax
	callq	_IR_dprintk
LBB0_44:
	cmpl	$0, 8(%r15)
	je	LBB0_46
## %bb.45:
	movl	$1, 12(%r15)
LBB0_46:
	xorl	%r13d, %r13d
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%r12d, %esi
	xorl	%edx, %edx
	callq	_rc_keydown
LBB0_47:
	movl	$130, 4(%r15)
	jmp	LBB0_48
LBB0_17:
	leaq	L_.str.1(%rip), %rsi
	xorl	%r13d, %r13d
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_IR_dprintk
	jmp	LBB0_48
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_36, LBB0_36-LJTI0_0
.set L0_0_set_33, LBB0_33-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_22, LBB0_22-LJTI0_0
.set L0_0_set_19, LBB0_19-LJTI0_0
LJTI0_0:
	.long	L0_0_set_36
	.long	L0_0_set_33
	.long	L0_0_set_6
	.long	L0_0_set_12
	.long	L0_0_set_22
	.long	L0_0_set_19
	.end_data_region
                                        ## -- End function
	.comm	_RC_TYPE_NEC,4,2                ## @RC_TYPE_NEC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"NEC decode started at state %d (%uus %s)\n"

	.comm	_NEC_HEADER_PULSE,4,2           ## @NEC_HEADER_PULSE
	.comm	_NEC_UNIT,4,2                   ## @NEC_UNIT
	.comm	_NECX_HEADER_PULSE,4,2          ## @NECX_HEADER_PULSE
	.comm	_NEC_HEADER_SPACE,4,2           ## @NEC_HEADER_SPACE
	.comm	_NEC_REPEAT_SPACE,4,2           ## @NEC_REPEAT_SPACE
L_.str.1:                               ## @.str.1
	.asciz	"Discarding last key repeat: event after key up\n"

L_.str.2:                               ## @.str.2
	.asciz	"Repeat last key\n"

	.comm	_NEC_BIT_PULSE,4,2              ## @NEC_BIT_PULSE
	.comm	_NECX_REPEAT_BITS,4,2           ## @NECX_REPEAT_BITS
	.comm	_NEC_TRAILER_SPACE,4,2          ## @NEC_TRAILER_SPACE
	.comm	_NEC_BIT_1_SPACE,4,2            ## @NEC_BIT_1_SPACE
	.comm	_NEC_BIT_0_SPACE,4,2            ## @NEC_BIT_0_SPACE
	.comm	_NEC_NBITS,4,2                  ## @NEC_NBITS
	.comm	_NEC_TRAILER_PULSE,4,2          ## @NEC_TRAILER_PULSE
L_.str.3:                               ## @.str.3
	.asciz	"NEC checksum error: received 0x%08x\n"

L_.str.4:                               ## @.str.4
	.asciz	"NEC (Ext) scancode 0x%06x\n"

L_.str.5:                               ## @.str.5
	.asciz	"NEC scancode 0x%04x\n"

L_.str.6:                               ## @.str.6
	.asciz	"NEC decode failed at state %d (%uus %s)\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_ir_nec_decode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ir_nec_decode
_ir_nec_decode:                         ; @ir_nec_decode
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	ldr	x25, [x0, #8]
	ldr	w8, [x25]
Lloh0:
	adrp	x9, _RC_TYPE_NEC@GOTPAGE
Lloh1:
	ldr	x9, [x9, _RC_TYPE_NEC@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_12
; %bb.1:
	mov	x20, x2
	mov	x19, x1
	mov	x21, x0
	mov	x0, x1
	mov	x1, x2
	bl	_is_timing_event
	cbz	w0, LBB0_9
; %bb.2:
	lsr	x20, x19, #32
	ldr	w23, [x25, #4]
	mov	x0, x20
	bl	_TO_US
	mov	x22, x0
	mov	x0, x19
	bl	_TO_STR
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x22, x0, [sp, #8]
	str	x23, [sp]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #2
	bl	_IR_dprintk
	ldr	w8, [x25, #4]
	sub	w8, w8, #128
	cmp	w8, #5
	b.hi	LBB0_43
; %bb.3:
Lloh5:
	adrp	x9, lJTI0_0@PAGE
Lloh6:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_4
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_4:
	cbnz	w19, LBB0_43
; %bb.5:
Lloh7:
	adrp	x8, _NEC_TRAILER_SPACE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _NEC_TRAILER_SPACE@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
Lloh10:
	adrp	x8, _NEC_UNIT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _NEC_UNIT@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w2, w8, #1
	mov	x0, x20
	bl	_geq_margin
	cbz	w0, LBB0_43
; %bb.6:
	ldrb	w0, [x25, #19]
	bl	_bitrev8
	mov	x22, x0
	ldrb	w0, [x25, #18]
	bl	_bitrev8
	mov	x23, x0
	ldrb	w0, [x25, #17]
	bl	_bitrev8
	mov	x24, x0
	ldrb	w0, [x25, #16]
	bl	_bitrev8
	eor	w8, w0, w24
	cmp	w8, #255
	b.ne	LBB0_40
; %bb.7:
	eor	w8, w23, w22
	cmp	w8, #255
	b.ne	LBB0_45
; %bb.8:
	orr	w19, w24, w22, lsl #8
	str	x19, [sp]
Lloh13:
	adrp	x1, l_.str.5@PAGE
Lloh14:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	w0, #1
	bl	_IR_dprintk
                                        ; kill: def $w19 killed $w19 killed $x19 def $x19
	b	LBB0_46
LBB0_9:
	cbz	x20, LBB0_12
LBB0_10:
	mov	w0, #0
	mov	w8, #130
LBB0_11:
	str	w8, [x25, #4]
	b	LBB0_44
LBB0_12:
	mov	w0, #0
	b	LBB0_44
LBB0_13:
	cbz	w19, LBB0_43
; %bb.14:
Lloh15:
	adrp	x8, _NEC_TRAILER_PULSE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _NEC_TRAILER_PULSE@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
Lloh18:
	adrp	x8, _NEC_UNIT@GOTPAGE
Lloh19:
	ldr	x8, [x8, _NEC_UNIT@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w2, w8, #1
	mov	x0, x20
	bl	_eq_margin
	cbz	w0, LBB0_43
; %bb.15:
	mov	w0, #0
	mov	w8, #128
	b	LBB0_11
LBB0_16:
	cbz	w19, LBB0_43
; %bb.17:
Lloh21:
	adrp	x8, _NEC_HEADER_PULSE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _NEC_HEADER_PULSE@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
Lloh24:
	adrp	x21, _NEC_UNIT@GOTPAGE
Lloh25:
	ldr	x21, [x21, _NEC_UNIT@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w2, w8, #1
	mov	x0, x20
	bl	_eq_margin
	cbz	w0, LBB0_34
; %bb.18:
	str	xzr, [x25, #8]
	b	LBB0_36
LBB0_19:
	cbnz	w19, LBB0_43
; %bb.20:
Lloh26:
	adrp	x8, _NEC_HEADER_SPACE@GOTPAGE
Lloh27:
	ldr	x8, [x8, _NEC_HEADER_SPACE@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
Lloh29:
	adrp	x22, _NEC_UNIT@GOTPAGE
Lloh30:
	ldr	x22, [x22, _NEC_UNIT@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w2, w8, #1
	mov	x0, x20
	bl	_eq_margin
	cbz	w0, LBB0_37
; %bb.21:
	mov	w0, #0
	mov	w8, #133
	b	LBB0_11
LBB0_22:
	cbnz	w19, LBB0_43
; %bb.23:
	ldr	w8, [x25, #12]
Lloh31:
	adrp	x22, _NECX_REPEAT_BITS@GOTPAGE
Lloh32:
	ldr	x22, [x22, _NECX_REPEAT_BITS@GOTPAGEOFF]
	cbz	w8, LBB0_30
; %bb.24:
	ldr	w8, [x25, #20]
	ldr	w9, [x22]
	cmp	w8, w9
	b.ne	LBB0_30
; %bb.25:
Lloh33:
	adrp	x8, _NEC_TRAILER_SPACE@GOTPAGE
Lloh34:
	ldr	x8, [x8, _NEC_TRAILER_SPACE@GOTPAGEOFF]
Lloh35:
	ldr	w1, [x8]
Lloh36:
	adrp	x8, _NEC_UNIT@GOTPAGE
Lloh37:
	ldr	x8, [x8, _NEC_UNIT@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w2, w8, #1
	mov	x0, x20
	bl	_geq_margin
	cbz	w0, LBB0_30
; %bb.26:
Lloh39:
	adrp	x1, l_.str.2@PAGE
Lloh40:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #1
	bl	_IR_dprintk
	mov	x0, x21
	bl	_rc_repeat
	b	LBB0_10
LBB0_27:
	cbz	w19, LBB0_43
; %bb.28:
Lloh41:
	adrp	x8, _NEC_BIT_PULSE@GOTPAGE
Lloh42:
	ldr	x8, [x8, _NEC_BIT_PULSE@GOTPAGEOFF]
Lloh43:
	ldr	w1, [x8]
Lloh44:
	adrp	x8, _NEC_UNIT@GOTPAGE
Lloh45:
	ldr	x8, [x8, _NEC_UNIT@GOTPAGEOFF]
Lloh46:
	ldr	w8, [x8]
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w2, w8, #1
	mov	x0, x20
	bl	_eq_margin
	cbz	w0, LBB0_43
; %bb.29:
	mov	w0, #0
	mov	w8, #132
	b	LBB0_11
LBB0_30:
	ldr	w8, [x25, #20]
	ldr	w9, [x22]
	cmp	w8, w9
	b.le	LBB0_32
; %bb.31:
	str	wzr, [x25, #12]
LBB0_32:
	ldr	w8, [x25, #16]
	lsl	w8, w8, #1
	str	w8, [x25, #16]
Lloh47:
	adrp	x8, _NEC_BIT_1_SPACE@GOTPAGE
Lloh48:
	ldr	x8, [x8, _NEC_BIT_1_SPACE@GOTPAGEOFF]
Lloh49:
	ldr	w1, [x8]
Lloh50:
	adrp	x21, _NEC_UNIT@GOTPAGE
Lloh51:
	ldr	x21, [x21, _NEC_UNIT@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w2, w8, #1
	mov	x0, x20
	bl	_eq_margin
	cbz	w0, LBB0_41
; %bb.33:
	ldr	w8, [x25, #16]
	orr	w8, w8, #0x1
	str	w8, [x25, #16]
	b	LBB0_42
LBB0_34:
Lloh52:
	adrp	x8, _NECX_HEADER_PULSE@GOTPAGE
Lloh53:
	ldr	x8, [x8, _NECX_HEADER_PULSE@GOTPAGEOFF]
Lloh54:
	ldr	w1, [x8]
	ldr	w8, [x21]
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w2, w8, #1
	mov	x0, x20
	bl	_eq_margin
	cbz	w0, LBB0_43
; %bb.35:
	mov	w8, #1
	str	w8, [x25, #8]
LBB0_36:
	mov	w0, #0
	str	wzr, [x25, #20]
	mov	w8, #131
	b	LBB0_11
LBB0_37:
Lloh55:
	adrp	x8, _NEC_REPEAT_SPACE@GOTPAGE
Lloh56:
	ldr	x8, [x8, _NEC_REPEAT_SPACE@GOTPAGEOFF]
Lloh57:
	ldr	w1, [x8]
	ldr	w8, [x22]
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w2, w8, #1
	mov	x0, x20
	bl	_eq_margin
	cbz	w0, LBB0_43
; %bb.38:
	ldr	w8, [x21]
	cbz	w8, LBB0_49
; %bb.39:
	mov	x0, x21
	bl	_rc_repeat
Lloh58:
	adrp	x1, l_.str.2@PAGE
Lloh59:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #1
	bl	_IR_dprintk
	mov	w0, #0
	mov	w8, #129
	b	LBB0_11
LBB0_40:
	ldr	w8, [x25, #16]
	str	x8, [sp]
Lloh60:
	adrp	x1, l_.str.3@PAGE
Lloh61:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w0, #1
	bl	_IR_dprintk
	b	LBB0_43
LBB0_41:
Lloh62:
	adrp	x8, _NEC_BIT_0_SPACE@GOTPAGE
Lloh63:
	ldr	x8, [x8, _NEC_BIT_0_SPACE@GOTPAGEOFF]
Lloh64:
	ldr	w1, [x8]
	ldr	w8, [x21]
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w2, w8, #1
	mov	x0, x20
	bl	_eq_margin
	cbz	w0, LBB0_43
LBB0_42:
	mov	w0, #0
	ldr	w8, [x25, #20]
	add	w8, w8, #1
	str	w8, [x25, #20]
Lloh65:
	adrp	x9, _NEC_NBITS@GOTPAGE
Lloh66:
	ldr	x9, [x9, _NEC_NBITS@GOTPAGEOFF]
Lloh67:
	ldr	w9, [x9]
	mov	w10, #133
	mov	w11, #129
	cmp	w8, w9
	csel	w8, w11, w10, eq
	b	LBB0_11
LBB0_43:
	ldr	w21, [x25, #4]
	mov	x0, x20
	bl	_TO_US
	mov	x20, x0
	mov	x0, x19
	bl	_TO_STR
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x20, x0, [sp, #8]
	str	x21, [sp]
Lloh68:
	adrp	x1, l_.str.6@PAGE
Lloh69:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	w0, #1
	bl	_IR_dprintk
	mov	w8, #130
	str	w8, [x25, #4]
Lloh70:
	adrp	x8, _EINVAL@GOTPAGE
Lloh71:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh72:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_44:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_45:
	lsl	w8, w23, #8
	orr	w8, w8, w22, lsl #16
	orr	w19, w8, w24
	str	x19, [sp]
Lloh73:
	adrp	x1, l_.str.4@PAGE
Lloh74:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	w0, #1
	bl	_IR_dprintk
LBB0_46:
	ldr	w8, [x25, #8]
	cbz	w8, LBB0_48
; %bb.47:
	mov	w8, #1
	str	w8, [x25, #12]
LBB0_48:
	mov	x0, x21
	mov	x1, x19
	mov	w2, #0
	bl	_rc_keydown
	b	LBB0_10
LBB0_49:
Lloh75:
	adrp	x1, l_.str.1@PAGE
Lloh76:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	bl	_IR_dprintk
	mov	w0, #0
	b	LBB0_44
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGot	Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpAdd	Lloh58, Lloh59
	.loh AdrpAdd	Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.loh AdrpLdrGotLdr	Lloh65, Lloh66, Lloh67
	.loh AdrpLdrGotLdr	Lloh70, Lloh71, Lloh72
	.loh AdrpAdd	Lloh68, Lloh69
	.loh AdrpAdd	Lloh73, Lloh74
	.loh AdrpAdd	Lloh75, Lloh76
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_13-LBB0_4)>>2
	.byte	(LBB0_16-LBB0_4)>>2
	.byte	(LBB0_19-LBB0_4)>>2
	.byte	(LBB0_22-LBB0_4)>>2
	.byte	(LBB0_27-LBB0_4)>>2
                                        ; -- End function
	.comm	_RC_TYPE_NEC,4,2                ; @RC_TYPE_NEC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"NEC decode started at state %d (%uus %s)\n"

	.comm	_NEC_HEADER_PULSE,4,2           ; @NEC_HEADER_PULSE
	.comm	_NEC_UNIT,4,2                   ; @NEC_UNIT
	.comm	_NECX_HEADER_PULSE,4,2          ; @NECX_HEADER_PULSE
	.comm	_NEC_HEADER_SPACE,4,2           ; @NEC_HEADER_SPACE
	.comm	_NEC_REPEAT_SPACE,4,2           ; @NEC_REPEAT_SPACE
l_.str.1:                               ; @.str.1
	.asciz	"Discarding last key repeat: event after key up\n"

l_.str.2:                               ; @.str.2
	.asciz	"Repeat last key\n"

	.comm	_NEC_BIT_PULSE,4,2              ; @NEC_BIT_PULSE
	.comm	_NECX_REPEAT_BITS,4,2           ; @NECX_REPEAT_BITS
	.comm	_NEC_TRAILER_SPACE,4,2          ; @NEC_TRAILER_SPACE
	.comm	_NEC_BIT_1_SPACE,4,2            ; @NEC_BIT_1_SPACE
	.comm	_NEC_BIT_0_SPACE,4,2            ; @NEC_BIT_0_SPACE
	.comm	_NEC_NBITS,4,2                  ; @NEC_NBITS
	.comm	_NEC_TRAILER_PULSE,4,2          ; @NEC_TRAILER_PULSE
l_.str.3:                               ; @.str.3
	.asciz	"NEC checksum error: received 0x%08x\n"

l_.str.4:                               ; @.str.4
	.asciz	"NEC (Ext) scancode 0x%06x\n"

l_.str.5:                               ; @.str.5
	.asciz	"NEC scancode 0x%04x\n"

l_.str.6:                               ; @.str.6
	.asciz	"NEC decode failed at state %d (%uus %s)\n"

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