	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mceusb_process_ir_data
_mceusb_process_ir_data:                ## @mceusb_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	$0, -48(%rbp)
	movq	$0, -56(%rbp)
	xorl	%eax, %eax
	cmpq	$0, 48(%rdi)
	setne	%al
	addl	%eax, %eax
	cmpl	%esi, %eax
	jge	LBB0_23
## %bb.1:
	movq	%rdi, %r12
	movl	%esi, -60(%rbp)                 ## 4-byte Spill
	movl	%esi, %r15d
	movl	%eax, %ebx
	movl	(%rdi), %eax
	leaq	LJTI0_0(%rip), %r13
	xorl	%r14d, %r14d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	%eax, %ecx
LBB0_20:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	movl	%ecx, %eax
	cmpq	%rbx, %r15
	je	LBB0_21
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	leal	-128(%rax), %ecx
	cmpl	$3, %ecx
	ja	LBB0_16
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movslq	(%r13,%rcx,4), %rax
	addq	%r13, %rax
	jmpq	*%rax
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	8(%r12), %edi
	movq	16(%r12), %rax
	movl	(%rax,%rbx,4), %esi
	callq	_mceusb_cmd_datasize
                                        ## kill: def $eax killed $eax def $rax
	movl	%eax, 4(%r12)
	movq	16(%r12), %rsi
	leal	2(%rax), %r8d
	leal	-1(%rbx), %ecx
	movq	%r12, %rdi
	movl	%r15d, %edx
	xorl	%r9d, %r9d
	callq	_mceusb_dev_printdata
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_mceusb_handle_command
	movl	$131, (%r12)
	movl	$131, %eax
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	decl	4(%r12)
	movq	16(%r12), %rax
	movq	_MCE_PULSE_BIT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	xorl	%edx, %edx
	andl	(%rax,%rbx,4), %ecx
	setne	%dl
	movl	%edx, -56(%rbp)
	movq	_MCE_PULSE_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	xorl	%edi, %edi
	andl	(%rax,%rbx,4), %ecx
	movl	%ecx, -52(%rbp)
	sete	%dil
	callq	_unlikely
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	40(%r12), %edi
	movq	16(%r12), %rax
	movl	(%rax,%rbx,4), %edx
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_dbg
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	16(%r12), %rsi
	movl	(%rsi,%rbx,4), %r8d
	movl	%r8d, 8(%r12)
	movl	$128, %ecx
	movq	_MCE_CMD_PORT_IR@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r8d
	je	LBB0_19
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_MCE_PORT_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%r8d, %eax
	movq	_MCE_COMMAND_IRDATA@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %eax
	jne	LBB0_19
## %bb.13:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_MCE_PACKET_LENGTH_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %r8d
	movl	%r8d, 4(%r12)
	incl	%r8d
	movq	%r12, %rdi
	movl	-60(%rbp), %edx                 ## 4-byte Reload
	movl	%ebx, %ecx
	xorl	%r9d, %r9d
	callq	_mceusb_dev_printdata
	movl	$129, %ecx
	cmpl	$0, 4(%r12)
	jne	LBB0_19
## %bb.14:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	$0, -72(%rbp)
	movq	32(%r12), %rdi
	movl	(%rdi), %eax
	movl	%eax, -68(%rbp)
	movl	$1, -64(%rbp)
	leaq	-72(%rbp), %rsi
	callq	_ir_raw_event_store_with_filter
	testl	%eax, %eax
	movl	$1, %eax
	cmovnel	%eax, %r14d
	movl	$0, 24(%r12)
	movl	$0, 44(%r12)
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	decl	4(%r12)
	jmp	LBB0_15
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$0, -56(%rbp)
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	-52(%rbp), %eax
	addl	%eax, 24(%r12)
	incl	44(%r12)
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_MCE_TIME_UNIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_US_TO_NS
	imull	-52(%rbp), %eax
	movl	%eax, -52(%rbp)
	movl	40(%r12), %edi
	cmpl	$0, -56(%rbp)
	leaq	L_.str.2(%rip), %rdx
	leaq	L_.str.3(%rip), %rcx
	cmoveq	%rcx, %rdx
	movq	16(%r12), %rcx
	movl	(%rcx,%rbx,4), %r8d
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	32(%r12), %rdi
	leaq	-56(%rbp), %rsi
	callq	_ir_raw_event_store_with_filter
	testl	%eax, %eax
	movl	$1, %eax
	cmovnel	%eax, %r14d
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r12), %eax
	movl	$130, %ecx
	cmpl	$130, %eax
	je	LBB0_20
LBB0_16:                                ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$0, 4(%r12)
	jne	LBB0_17
## %bb.18:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	$130, %ecx
LBB0_19:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	%ecx, (%r12)
	jmp	LBB0_20
LBB0_21:
	testl	%r14d, %r14d
	je	LBB0_23
## %bb.22:
	movl	40(%r12), %edi
	leaq	L_.str.4(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	32(%r12), %rdi
	callq	_ir_raw_event_handle
LBB0_23:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
LJTI0_0:
	.long	L0_0_set_4
	.long	L0_0_set_5
	.long	L0_0_set_11
	.long	L0_0_set_10
	.end_data_region
                                        ## -- End function
	.comm	_MCE_PULSE_BIT,4,2              ## @MCE_PULSE_BIT
	.comm	_MCE_PULSE_MASK,4,2             ## @MCE_PULSE_MASK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"nonsensical irdata %02x with duration 0"

	.comm	_MCE_TIME_UNIT,4,2              ## @MCE_TIME_UNIT
L_.str.1:                               ## @.str.1
	.asciz	"Storing %s %u ns (%02x)"

L_.str.2:                               ## @.str.2
	.asciz	"pulse"

L_.str.3:                               ## @.str.3
	.asciz	"space"

	.comm	_MCE_CMD_PORT_IR,4,2            ## @MCE_CMD_PORT_IR
	.comm	_MCE_PORT_MASK,4,2              ## @MCE_PORT_MASK
	.comm	_MCE_COMMAND_IRDATA,4,2         ## @MCE_COMMAND_IRDATA
	.comm	_MCE_PACKET_LENGTH_MASK,4,2     ## @MCE_PACKET_LENGTH_MASK
L_.str.4:                               ## @.str.4
	.asciz	"processed IR data"

	.no_dead_strip	_mceusb_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 mceusb_process_ir_data
_mceusb_process_ir_data:                ; @mceusb_process_ir_data
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	str	wzr, [sp, #56]
	str	xzr, [sp, #48]
	ldr	x8, [x0, #48]
	cmp	x8, #0
	cset	w8, ne
	lsl	w21, w8, #1
	cmp	w21, w1
	b.ge	LBB0_24
; %bb.1:
	mov	x20, x1
	mov	x19, x0
	mov	w25, #0
	mov	w22, w1
Lloh0:
	adrp	x26, lJTI0_0@PAGE
Lloh1:
	add	x26, x26, lJTI0_0@PAGEOFF
Lloh2:
	adrp	x27, _MCE_PULSE_BIT@GOTPAGE
Lloh3:
	ldr	x27, [x27, _MCE_PULSE_BIT@GOTPAGEOFF]
Lloh4:
	adrp	x28, _MCE_PULSE_MASK@GOTPAGE
Lloh5:
	ldr	x28, [x28, _MCE_PULSE_MASK@GOTPAGEOFF]
Lloh6:
	adrp	x23, _MCE_CMD_PORT_IR@GOTPAGE
Lloh7:
	ldr	x23, [x23, _MCE_CMD_PORT_IR@GOTPAGEOFF]
	ldr	w8, [x0]
Lloh8:
	adrp	x24, l_.str@PAGE
Lloh9:
	add	x24, x24, l_.str@PAGEOFF
	b	LBB0_5
LBB0_2:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	w8, #128
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	str	w8, [x19]
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x21, x21, #1
	cmp	x22, x21
	b.eq	LBB0_22
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	sub	w9, w8, #128
	cmp	w9, #3
	b.hi	LBB0_20
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	adr	x8, LBB0_7
	ldrb	w10, [x26, x9]
	add	x8, x8, x10, lsl #2
	br	x8
LBB0_7:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x19, #8]
	ldr	x8, [x19, #16]
	ldr	w1, [x8, x21, lsl #2]
	bl	_mceusb_cmd_datasize
	str	w0, [x19, #4]
	ldr	x1, [x19, #16]
	add	w4, w0, #2
	sub	w3, w21, #1
	mov	x0, x19
	mov	x2, x22
	mov	w5, #0
	bl	_mceusb_dev_printdata
	mov	x0, x19
	mov	x1, x21
	bl	_mceusb_handle_command
	mov	w8, #131
	str	w8, [x19]
	b	LBB0_20
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x19, #4]
	sub	w8, w8, #1
	str	w8, [x19, #4]
	ldr	x8, [x19, #16]
	lsl	x9, x21, #2
	ldr	w10, [x8, x9]
	ldr	w11, [x27]
	tst	w11, w10
	cset	w10, ne
	str	w10, [sp, #48]
	ldr	w8, [x8, x9]
	ldr	w9, [x28]
	ands	w8, w9, w8
	str	w8, [sp, #52]
	cset	w0, eq
	bl	_unlikely
	cbz	w0, LBB0_15
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x19, #40]
	ldr	x8, [x19, #16]
	ldr	w8, [x8, x21, lsl #2]
	str	x8, [sp]
	mov	x1, x24
	bl	_dev_dbg
	b	LBB0_19
LBB0_10:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x1, [x19, #16]
	ldr	w8, [x1, x21, lsl #2]
	str	w8, [x19, #8]
	ldr	w9, [x23]
	cmp	w8, w9
	b.eq	LBB0_2
; %bb.11:                               ;   in Loop: Header=BB0_5 Depth=1
Lloh10:
	adrp	x9, _MCE_PORT_MASK@GOTPAGE
Lloh11:
	ldr	x9, [x9, _MCE_PORT_MASK@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	and	w9, w9, w8
Lloh13:
	adrp	x10, _MCE_COMMAND_IRDATA@GOTPAGE
Lloh14:
	ldr	x10, [x10, _MCE_COMMAND_IRDATA@GOTPAGEOFF]
Lloh15:
	ldr	w10, [x10]
	cmp	w9, w10
	b.ne	LBB0_2
; %bb.12:                               ;   in Loop: Header=BB0_5 Depth=1
Lloh16:
	adrp	x9, _MCE_PACKET_LENGTH_MASK@GOTPAGE
Lloh17:
	ldr	x9, [x9, _MCE_PACKET_LENGTH_MASK@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	and	w8, w9, w8
	str	w8, [x19, #4]
	add	w4, w8, #1
	mov	x0, x19
	mov	x2, x20
	mov	x3, x21
	mov	w5, #0
	bl	_mceusb_dev_printdata
	ldr	w8, [x19, #4]
	cbz	w8, LBB0_18
; %bb.13:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	w8, #129
	b	LBB0_3
LBB0_14:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x19, #4]
	sub	w8, w8, #1
	str	w8, [x19, #4]
	b	LBB0_19
LBB0_15:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [sp, #48]
	cbz	w8, LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [sp, #52]
	ldr	w9, [x19, #24]
	add	w8, w9, w8
	str	w8, [x19, #24]
	ldr	w8, [x19, #44]
	add	w8, w8, #1
	str	w8, [x19, #44]
LBB0_17:                                ;   in Loop: Header=BB0_5 Depth=1
Lloh19:
	adrp	x8, _MCE_TIME_UNIT@GOTPAGE
Lloh20:
	ldr	x8, [x8, _MCE_TIME_UNIT@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
	bl	_US_TO_NS
	ldp	w9, w8, [sp, #48]
	mul	w8, w8, w0
	str	w8, [sp, #52]
	ldr	w0, [x19, #40]
	cmp	w9, #0
Lloh22:
	adrp	x9, l_.str.2@PAGE
Lloh23:
	add	x9, x9, l_.str.2@PAGEOFF
Lloh24:
	adrp	x10, l_.str.3@PAGE
Lloh25:
	add	x10, x10, l_.str.3@PAGEOFF
	csel	x9, x10, x9, eq
	ldr	x10, [x19, #16]
	ldr	w10, [x10, x21, lsl #2]
	stp	x8, x10, [sp, #8]
	str	x9, [sp]
Lloh26:
	adrp	x1, l_.str.1@PAGE
Lloh27:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_dbg
	ldr	x0, [x19, #32]
	add	x1, sp, #48
	bl	_ir_raw_event_store_with_filter
	cmp	w0, #0
	csinc	w25, w25, wzr, eq
	b	LBB0_19
LBB0_18:                                ;   in Loop: Header=BB0_5 Depth=1
	str	wzr, [sp, #32]
	ldr	x0, [x19, #32]
	ldr	w9, [x0]
	mov	w8, #1
	stp	w9, w8, [sp, #36]
	add	x1, sp, #32
	bl	_ir_raw_event_store_with_filter
	cmp	w0, #0
	csinc	w25, w25, wzr, eq
	str	wzr, [x19, #24]
	str	wzr, [x19, #44]
LBB0_19:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x19]
	cmp	w8, #130
	b.eq	LBB0_4
LBB0_20:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w9, [x19, #4]
	cbnz	w9, LBB0_4
; %bb.21:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	w8, #130
	b	LBB0_3
LBB0_22:
	cbz	w25, LBB0_24
; %bb.23:
	ldr	w0, [x19, #40]
Lloh28:
	adrp	x1, l_.str.4@PAGE
Lloh29:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_dev_dbg
	ldr	x0, [x19, #32]
	bl	_ir_raw_event_handle
LBB0_24:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh28, Lloh29
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_7-LBB0_7)>>2
	.byte	(LBB0_8-LBB0_7)>>2
	.byte	(LBB0_10-LBB0_7)>>2
	.byte	(LBB0_14-LBB0_7)>>2
                                        ; -- End function
	.comm	_MCE_PULSE_BIT,4,2              ; @MCE_PULSE_BIT
	.comm	_MCE_PULSE_MASK,4,2             ; @MCE_PULSE_MASK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"nonsensical irdata %02x with duration 0"

	.comm	_MCE_TIME_UNIT,4,2              ; @MCE_TIME_UNIT
l_.str.1:                               ; @.str.1
	.asciz	"Storing %s %u ns (%02x)"

l_.str.2:                               ; @.str.2
	.asciz	"pulse"

l_.str.3:                               ; @.str.3
	.asciz	"space"

	.comm	_MCE_CMD_PORT_IR,4,2            ; @MCE_CMD_PORT_IR
	.comm	_MCE_PORT_MASK,4,2              ; @MCE_PORT_MASK
	.comm	_MCE_COMMAND_IRDATA,4,2         ; @MCE_COMMAND_IRDATA
	.comm	_MCE_PACKET_LENGTH_MASK,4,2     ; @MCE_PACKET_LENGTH_MASK
l_.str.4:                               ; @.str.4
	.asciz	"processed IR data"

	.no_dead_strip	_mceusb_process_ir_data
.subsections_via_symbols
