	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function process_ir_data
_process_ir_data:                       ## @process_ir_data
	.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
	cmpl	$4, %esi
	jb	LBB0_24
## %bb.1:
	movq	%rdi, %r15
	movq	(%rdi), %rax
	cmpl	$0, (%rax)
	jne	LBB0_15
## %bb.2:
	cmpl	$0, 4(%rax)
	je	LBB0_3
LBB0_15:
	cmpl	$7, %esi
	jb	LBB0_24
## %bb.16:
	movq	$0, -48(%rbp)
	xorl	%ebx, %ebx
	leaq	-48(%rbp), %r14
	movl	$1, %r12d
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rax,%rbx,4), %ecx
	cmpl	$128, %ecx
	jne	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_17 Depth=1
	movl	$0, -48(%rbp)
	movl	$21845, %edi                    ## imm = 0x5555
	callq	_US_TO_NS
	jmp	LBB0_20
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_17 Depth=1
	xorl	%edx, %edx
	testb	$-128, %cl
	sete	%dl
	movl	%edx, -48(%rbp)
	movl	(%rax,%rbx,4), %eax
	andl	$127, %eax
	incl	%eax
	movq	_RX_RESOLUTION@GOTPCREL(%rip), %rcx
	imull	(%rcx), %eax
LBB0_20:                                ##   in Loop: Header=BB0_17 Depth=1
	movl	%eax, -44(%rbp)
	movl	24(%r15), %edi
	movq	%r14, %rsi
	callq	_ir_raw_event_store_with_filter
	testq	%rax, %rax
	cmovnel	%r12d, %r13d
	cmpq	$6, %rbx
	je	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_17 Depth=1
	movq	(%r15), %rax
	incq	%rbx
	jmp	LBB0_17
LBB0_22:
	testl	%r13d, %r13d
	je	LBB0_24
## %bb.23:
	movl	24(%r15), %edi
	callq	_ir_raw_event_handle
LBB0_24:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movl	12(%rax), %edx
	leal	-128(%rdx), %ecx
	cmpl	$7, %ecx
	ja	LBB0_14
## %bb.4:
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rcx,4), %rcx
	addq	%rdx, %rcx
	jmpq	*%rcx
LBB0_11:
	movl	$1, 20(%r15)
	jmp	LBB0_12
LBB0_13:
	movl	28(%r15), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_warn
	movl	24(%r15), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ir_raw_event_reset             ## TAILCALL
LBB0_5:
	cmpl	$6, %esi
	jne	LBB0_24
## %bb.6:
	movl	20(%rax), %ecx
	shll	$8, %ecx
	orl	16(%rax), %ecx
	movl	%ecx, 8(%r15)
	jmp	LBB0_12
LBB0_9:
	cmpl	$6, %esi
	jb	LBB0_24
## %bb.10:
	movl	20(%rax), %eax
	movl	%eax, 16(%r15)
	jmp	LBB0_12
LBB0_7:
	cmpl	$5, %esi
	jb	LBB0_24
## %bb.8:
	movl	16(%rax), %eax
	movl	%eax, 12(%r15)
LBB0_12:
	addq	$32, %r15
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_complete                       ## TAILCALL
LBB0_14:
	movl	28(%r15), %edi
	leaq	L_.str.1(%rip), %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_warn                       ## TAILCALL
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
LJTI0_0:
	.long	L0_0_set_11
	.long	L0_0_set_12
	.long	L0_0_set_13
	.long	L0_0_set_12
	.long	L0_0_set_12
	.long	L0_0_set_5
	.long	L0_0_set_9
	.long	L0_0_set_7
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"receive overflow\n"

L_.str.1:                               ## @.str.1
	.asciz	"control code %02x received\n"

	.comm	_RX_RESOLUTION,4,2              ## @RX_RESOLUTION
	.no_dead_strip	_process_ir_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function process_ir_data
_process_ir_data:                       ; @process_ir_data
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	cmp	w1, #4
	b.lo	LBB0_12
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0]
	ldr	w9, [x8]
	cbnz	w9, LBB0_3
; %bb.2:
	ldr	w9, [x8, #4]
	cbz	w9, LBB0_13
LBB0_3:
	cmp	w1, #7
	b.lo	LBB0_12
; %bb.4:
	mov	x21, #0
	mov	w20, #0
	str	xzr, [sp, #8]
	mov	w22, #1
Lloh0:
	adrp	x23, _RX_RESOLUTION@GOTPAGE
Lloh1:
	ldr	x23, [x23, _RX_RESOLUTION@GOTPAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x8, x21]
	cmp	w9, #128
	b.ne	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	str	wzr, [sp, #8]
	mov	w0, #21845
	bl	_US_TO_NS
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_5 Depth=1
	bic	w9, w22, w9, lsr #7
	str	w9, [sp, #8]
	ldr	w8, [x8, x21]
	and	w8, w8, #0x7f
	ldr	w9, [x23]
	madd	w0, w9, w8, w9
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
	str	w0, [sp, #12]
	ldr	w0, [x19, #24]
	add	x1, sp, #8
	bl	_ir_raw_event_store_with_filter
	cmp	x0, #0
	csinc	w20, w20, wzr, eq
	cmp	x21, #24
	b.eq	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x19]
	add	x21, x21, #4
	b	LBB0_5
LBB0_10:
	cbz	w20, LBB0_12
; %bb.11:
	ldr	w0, [x19, #24]
	bl	_ir_raw_event_handle
LBB0_12:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_13:
	ldr	w9, [x8, #12]
	sub	w10, w9, #128
	cmp	w10, #7
	b.hi	LBB0_24
; %bb.14:
Lloh2:
	adrp	x9, lJTI0_0@PAGE
Lloh3:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x11, LBB0_15
	ldrb	w12, [x9, x10]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_15:
	mov	w8, #1
	str	w8, [x19, #20]
	b	LBB0_23
LBB0_16:
	ldr	w0, [x19, #28]
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_warn
	ldr	w0, [x19, #24]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_ir_raw_event_reset
LBB0_17:
	cmp	w1, #6
	b.ne	LBB0_12
; %bb.18:
	ldp	w8, w9, [x8, #16]
	orr	w8, w8, w9, lsl #8
	str	w8, [x19, #8]
	b	LBB0_23
LBB0_19:
	cmp	w1, #6
	b.lo	LBB0_12
; %bb.20:
	ldr	w8, [x8, #20]
	str	w8, [x19, #16]
	b	LBB0_23
LBB0_21:
	cmp	w1, #5
	b.lo	LBB0_12
; %bb.22:
	ldr	w8, [x8, #16]
	str	w8, [x19, #12]
LBB0_23:
	add	x0, x19, #32
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_complete
LBB0_24:
	ldr	w0, [x19, #28]
	str	x9, [sp]
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_warn
	b	LBB0_12
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_15-LBB0_15)>>2
	.byte	(LBB0_23-LBB0_15)>>2
	.byte	(LBB0_16-LBB0_15)>>2
	.byte	(LBB0_23-LBB0_15)>>2
	.byte	(LBB0_23-LBB0_15)>>2
	.byte	(LBB0_17-LBB0_15)>>2
	.byte	(LBB0_19-LBB0_15)>>2
	.byte	(LBB0_21-LBB0_15)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"receive overflow\n"

l_.str.1:                               ; @.str.1
	.asciz	"control code %02x received\n"

	.comm	_RX_RESOLUTION,4,2              ; @RX_RESOLUTION
	.no_dead_strip	_process_ir_data
.subsections_via_symbols
