	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mceusb_handle_command
_mceusb_handle_command:                 ## @mceusb_handle_command
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	$1, -24(%rbp)
	movq	(%rdi), %rcx
	movslq	%esi, %rdx
	movl	(%rcx,%rdx,4), %esi
	addl	$-128, %esi
	cmpl	$8, %esi
	ja	LBB0_15
## %bb.1:
	movq	%rdi, %rbx
	movzbl	4(%rcx,%rdx,4), %r14d
	movzbl	8(%rcx,%rdx,4), %eax
	leaq	LJTI0_0(%rip), %rdi
	movslq	(%rdi,%rsi,4), %rsi
	addq	%rdi, %rsi
	jmpq	*%rsi
LBB0_14:
	movl	$1, 44(%rbx)
	jmp	LBB0_15
LBB0_2:
	cmpb	$0, 16(%rcx,%rdx,4)
	jne	LBB0_15
## %bb.3:
	movl	$1, %eax
	movl	%r14d, %ecx
	shll	%cl, %eax
	orl	%eax, 8(%rbx)
	jmp	LBB0_15
LBB0_11:
	movl	%r14d, 36(%rbx)
	jmp	LBB0_15
LBB0_4:
	shll	$8, %r14d
	orl	%eax, %r14d
	movq	_MCE_TIME_UNIT@GOTPCREL(%rip), %rax
	imull	(%rax), %r14d
	movl	%r14d, %edi
	callq	_US_TO_NS
	movq	56(%rbx), %rcx
	movl	%eax, (%rcx)
	jmp	LBB0_15
LBB0_12:
	movl	%r14d, %eax
	andl	$2, %eax
	movl	%eax, %ecx
	shrl	%ecx
	movl	%ecx, 20(%rbx)
	cmpl	%r14d, 40(%rbx)
	je	LBB0_15
## %bb.13:
	testl	%eax, %eax
	movl	48(%rbx), %edi
	leaq	L_.str.3(%rip), %rax
	leaq	L_.str.2(%rip), %rdx
	cmoveq	%rax, %rdx
	leaq	L_.str.1(%rip), %rsi
	movl	%r14d, %ecx
	callq	_dev_info
	movl	%r14d, 40(%rbx)
	jmp	LBB0_15
LBB0_6:
	cmpl	$0, 68(%rbx)
	je	LBB0_15
## %bb.7:
	cmpl	$0, 20(%rbx)
	je	LBB0_15
## %bb.8:
	movl	24(%rbx), %r9d
	testl	%r9d, %r9d
	je	LBB0_15
## %bb.9:
	shll	$8, %r14d
	orl	%eax, %r14d
	movl	28(%rbx), %ecx
	movl	64(%rbx), %esi
	xorl	%edi, %edi
	cmpl	$2, %esi
	cmovel	%ecx, %edi
	movq	_MCE_TIME_UNIT@GOTPCREL(%rip), %r8
	movl	$1000000, %eax                  ## imm = 0xF4240
	xorl	%edx, %edx
	divl	(%r8)
	addl	%r14d, %edi
	imull	%edi, %eax
	xorl	%edx, %edx
	divl	%r9d
	movl	%eax, -20(%rbp)
	movl	48(%rbx), %edi
	movl	%esi, (%rsp)
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	movl	%r14d, %r8d
	callq	_dev_dbg
	movq	56(%rbx), %rdi
	leaq	-24(%rbp), %rsi
	callq	_ir_raw_event_store
	jmp	LBB0_15
LBB0_5:
	movl	%r14d, 12(%rbx)
	movl	%eax, 16(%rbx)
	jmp	LBB0_15
LBB0_10:
	movl	%r14d, 32(%rbx)
LBB0_15:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
LJTI0_0:
	.long	L0_0_set_14
	.long	L0_0_set_2
	.long	L0_0_set_11
	.long	L0_0_set_4
	.long	L0_0_set_12
	.long	L0_0_set_6
	.long	L0_0_set_5
	.long	L0_0_set_10
	.long	L0_0_set_14
	.end_data_region
                                        ## -- End function
	.comm	_MCE_TIME_UNIT,4,2              ## @MCE_TIME_UNIT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"RX carrier frequency %u Hz (pulse count = %u, cycles = %u, duration = %u, rx2 = %u)"

L_.str.1:                               ## @.str.1
	.asciz	"%s-range (0x%x) receiver active"

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

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

	.no_dead_strip	_mceusb_handle_command
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mceusb_handle_command
_mceusb_handle_command:                 ; @mceusb_handle_command
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
                                        ; kill: def $w1 killed $w1 def $x1
	mov	w8, #1
	str	x8, [sp, #8]
	ldr	x8, [x0]
	add	x10, x8, w1, sxtw #2
	ldr	w9, [x10]
	sub	w9, w9, #128
	cmp	w9, #8
	b.hi	LBB0_15
; %bb.1:
	mov	x19, x0
	ldrb	w20, [x10, #4]
	ldrb	w4, [x10, #8]
Lloh0:
	adrp	x10, lJTI0_0@PAGE
Lloh1:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_2
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_2:
	mov	w8, #1
	str	w8, [x19, #44]
	b	LBB0_15
LBB0_3:
	sxtw	x9, w1
	add	x8, x8, x9, lsl #2
	ldrb	w8, [x8, #16]
	cbnz	w8, LBB0_15
; %bb.4:
	mov	w8, #1
	lsl	w8, w8, w20
	ldr	w9, [x19, #8]
	orr	w8, w9, w8
	str	w8, [x19, #8]
	b	LBB0_15
LBB0_5:
	str	w20, [x19, #36]
	b	LBB0_15
LBB0_6:
	bfi	w4, w20, #8, #8
Lloh2:
	adrp	x8, _MCE_TIME_UNIT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MCE_TIME_UNIT@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	mul	w0, w8, w4
	bl	_US_TO_NS
	ldr	x8, [x19, #56]
	str	w0, [x8]
	b	LBB0_15
LBB0_7:
	ubfx	w8, w20, #1, #1
	str	w8, [x19, #20]
	ldr	w8, [x19, #40]
	cmp	w8, w20
	b.eq	LBB0_15
; %bb.8:
	tst	w20, #0x2
	ldr	w0, [x19, #48]
Lloh5:
	adrp	x8, l_.str.2@PAGE
Lloh6:
	add	x8, x8, l_.str.2@PAGEOFF
Lloh7:
	adrp	x9, l_.str.3@PAGE
Lloh8:
	add	x9, x9, l_.str.3@PAGEOFF
	csel	x2, x9, x8, eq
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x3, x20
	bl	_dev_info
	str	w20, [x19, #40]
	b	LBB0_15
LBB0_9:
	ldr	w8, [x19, #68]
	cbz	w8, LBB0_15
; %bb.10:
	ldr	w8, [x19, #20]
	cbz	w8, LBB0_15
; %bb.11:
	ldr	w5, [x19, #24]
	cbz	w5, LBB0_15
; %bb.12:
	bfi	w4, w20, #8, #8
	ldr	w6, [x19, #64]
	ldr	w3, [x19, #28]
	cmp	w6, #2
	csel	w8, w3, wzr, eq
Lloh11:
	adrp	x9, _MCE_TIME_UNIT@GOTPAGE
Lloh12:
	ldr	x9, [x9, _MCE_TIME_UNIT@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	mov	w10, #16960
	movk	w10, #15, lsl #16
	udiv	w9, w10, w9
	add	w8, w8, w4
	mul	w8, w9, w8
	udiv	w2, w8, w5
	str	w2, [sp, #12]
	ldr	w0, [x19, #48]
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
	ldr	x0, [x19, #56]
	add	x1, sp, #8
	bl	_ir_raw_event_store
	b	LBB0_15
LBB0_13:
	stp	w20, w4, [x19, #12]
	b	LBB0_15
LBB0_14:
	str	w20, [x19, #32]
LBB0_15:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
	.byte	(LBB0_13-LBB0_2)>>2
	.byte	(LBB0_14-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
                                        ; -- End function
	.comm	_MCE_TIME_UNIT,4,2              ; @MCE_TIME_UNIT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"RX carrier frequency %u Hz (pulse count = %u, cycles = %u, duration = %u, rx2 = %u)"

l_.str.1:                               ; @.str.1
	.asciz	"%s-range (0x%x) receiver active"

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

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

	.no_dead_strip	_mceusb_handle_command
.subsections_via_symbols
