	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ttusbir_process_ir_data
_ttusbir_process_ir_data:               ## @ttusbir_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	$0, -48(%rbp)
	xorl	%r15d, %r15d
	movq	_NS_PER_BYTE@GOTPCREL(%rip), %r13
	movl	$1, %r12d
	xorl	%r14d, %r14d
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	$0, -48(%rbp)
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	(%r13), %eax
	movl	%eax, -44(%rbp)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	leaq	-48(%rbp), %rsi
	callq	_ir_raw_event_store_with_filter
	testl	%eax, %eax
	sete	%al
LBB0_10:                                ##   in Loop: Header=BB0_1 Depth=1
	testb	%al, %al
	cmovel	%r12d, %r14d
	incq	%r15
	cmpq	$128, %r15
	je	LBB0_11
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rbx,%r15,4), %eax
	movl	%eax, %edi
	andl	$254, %edi
	je	LBB0_5
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpb	$-2, %dil
	je	LBB0_3
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	testb	$2, %al
	jne	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_1 Depth=1
	bsfl	%edi, %ebx
	movl	$-1, %eax
	cmovel	%eax, %ebx
	xorl	%eax, %eax
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	$1, -48(%rbp)
	jmp	LBB0_4
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	orl	$1, %edi
	callq	_ffz
	movl	%eax, %ebx
	movl	$1, %eax
LBB0_9:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	%eax, -48(%rbp)
	movl	$8, %eax
	subl	%ebx, %eax
	movq	_NS_PER_BIT@GOTPCREL(%rip), %rcx
	imull	(%rcx), %eax
	movl	%eax, -44(%rbp)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	leaq	-48(%rbp), %r13
	movq	%r13, %rsi
	callq	_ir_raw_event_store_with_filter
	movl	%eax, %r12d
	xorl	%eax, %eax
	cmpl	$0, -48(%rbp)
	sete	%al
	movl	%eax, -48(%rbp)
	movq	_NS_PER_BIT@GOTPCREL(%rip), %rax
	imull	(%rax), %ebx
	movl	%ebx, -44(%rbp)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	movq	%r13, %rsi
	callq	_ir_raw_event_store_with_filter
	orl	%r12d, %eax
	sete	%al
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	_NS_PER_BYTE@GOTPCREL(%rip), %r13
	movl	$1, %r12d
	jmp	LBB0_10
LBB0_11:
	testl	%r14d, %r14d
	je	LBB0_13
## %bb.12:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	callq	_ir_raw_event_handle
LBB0_13:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NS_PER_BYTE,8,3                ## @NS_PER_BYTE
	.comm	_NS_PER_BIT,4,2                 ## @NS_PER_BIT
	.no_dead_strip	_ttusbir_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 ttusbir_process_ir_data
_ttusbir_process_ir_data:               ; @ttusbir_process_ir_data
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x1
	mov	x19, x0
	mov	x24, #0
	mov	w23, #0
	str	xzr, [sp, #8]
	mov	w25, #1
Lloh0:
	adrp	x26, _NS_PER_BYTE@GOTPAGE
Lloh1:
	ldr	x26, [x26, _NS_PER_BYTE@GOTPAGEOFF]
Lloh2:
	adrp	x27, _NS_PER_BIT@GOTPAGE
Lloh3:
	ldr	x27, [x27, _NS_PER_BIT@GOTPAGEOFF]
	mov	w28, #8
	b	LBB0_4
LBB0_1:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x26]
	str	wzr, [sp, #8]
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	str	w8, [sp, #12]
	ldr	w0, [x19]
	add	x1, sp, #8
	bl	_ir_raw_event_store_with_filter
	cmp	w0, #0
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	cset	w8, eq
	cmp	w8, #0
	csinc	w23, w23, wzr, ne
	add	x24, x24, #4
	cmp	x24, #512
	b.eq	LBB0_11
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x20, x24]
	ands	w9, w8, #0xfe
	b.eq	LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w9, #254
	b.eq	LBB0_1
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	tbnz	w8, #1, LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w8, #0
	rbit	w10, w9
	clz	w10, w10
	cmp	w9, #0
	csinv	w21, w10, wzr, ne
	b	LBB0_10
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x26]
	str	w25, [sp, #8]
	b	LBB0_2
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	orr	w0, w9, #0x1
	bl	_ffz
	mov	x21, x0
	mov	w8, #1
LBB0_10:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w9, [x27]
	sub	w10, w28, w21
	mul	w9, w9, w10
	stp	w8, w9, [sp, #8]
	ldr	w0, [x19]
	add	x1, sp, #8
	bl	_ir_raw_event_store_with_filter
	mov	x22, x0
	ldr	w8, [sp, #8]
	cmp	w8, #0
	cset	w8, eq
	ldr	w9, [x27]
	mul	w9, w9, w21
	stp	w8, w9, [sp, #8]
	ldr	w0, [x19]
	add	x1, sp, #8
	bl	_ir_raw_event_store_with_filter
	orr	w8, w0, w22
	cmp	w8, #0
	b	LBB0_3
LBB0_11:
	cbz	w23, LBB0_13
; %bb.12:
	ldr	w0, [x19]
	bl	_ir_raw_event_handle
LBB0_13:
	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
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_NS_PER_BYTE,8,3                ; @NS_PER_BYTE
	.comm	_NS_PER_BIT,4,2                 ; @NS_PER_BIT
	.no_dead_strip	_ttusbir_process_ir_data
.subsections_via_symbols
