	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function msp430_ir_interrupt
_msp430_ir_interrupt:                   ## @msp430_ir_interrupt
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	16(%rdi), %r14
	addq	$24, %rdi
	movq	_DEBINOSWAP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DEBIADDR_IR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$2, %ecx
	movl	$1, %r8d
	xorl	%r9d, %r9d
	callq	_ttpci_budget_debiread
	movl	%eax, %r15d
	movl	%eax, %ebx
	sarl	$8, %ebx
	movq	_ir_debug@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	callq	_printk
LBB0_2:
	testl	$16384, %r15d                   ## imm = 0x4000
	jne	LBB0_3
## %bb.4:
	cmpl	$0, (%r12)
	je	LBB0_7
## %bb.5:
	movl	$0, (%r12)
	movl	8(%r12), %eax
	movq	_IR_DEVICE_ANY@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_8
## %bb.6:
	andl	$31, %ebx
	cmpl	%ebx, %eax
	jne	LBB0_7
LBB0_8:
	movl	4(%r12), %esi
	shrl	$13, %r15d
	andl	$1, %r15d
	movq	%r14, %rdi
	movl	%r15d, %edx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_rc_keydown                     ## TAILCALL
LBB0_3:
	movl	$1, (%r12)
	andl	$63, %ebx
	movl	%ebx, 4(%r12)
LBB0_7:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DEBINOSWAP,4,2                 ## @DEBINOSWAP
	.comm	_DEBIADDR_IR,4,2                ## @DEBIADDR_IR
	.comm	_ir_debug,8,3                   ## @ir_debug
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"budget_ci: received byte 0x%02x\n"

	.comm	_IR_DEVICE_ANY,4,2              ## @IR_DEVICE_ANY
	.no_dead_strip	_msp430_ir_interrupt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function msp430_ir_interrupt
_msp430_ir_interrupt:                   ; @msp430_ir_interrupt
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
	ldr	x20, [x0, #16]
	add	x0, x0, #24
Lloh0:
	adrp	x8, _DEBINOSWAP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DEBINOSWAP@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _DEBIADDR_IR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DEBIADDR_IR@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	w3, #2
	mov	w4, #1
	mov	w5, #0
	bl	_ttpci_budget_debiread
	mov	x21, x0
Lloh6:
	adrp	x8, _ir_debug@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ir_debug@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.1:
	asr	w1, w21, #8
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printk
LBB0_2:
	tbnz	w21, #14, LBB0_6
; %bb.3:
	ldr	w8, [x19]
	cbz	w8, LBB0_7
; %bb.4:
	str	wzr, [x19]
	ldr	w8, [x19, #8]
Lloh11:
	adrp	x9, _IR_DEVICE_ANY@GOTPAGE
Lloh12:
	ldr	x9, [x9, _IR_DEVICE_ANY@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	ubfx	w10, w21, #8, #5
	cmp	w8, w9
	ccmp	w8, w10, #4, ne
	b.ne	LBB0_7
; %bb.5:
	ldr	w1, [x19, #4]
	ubfx	w2, w21, #13, #1
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_rc_keydown
LBB0_6:
	mov	w8, #1
	ubfx	w9, w21, #8, #6
	stp	w8, w9, [x19]
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_DEBINOSWAP,4,2                 ; @DEBINOSWAP
	.comm	_DEBIADDR_IR,4,2                ; @DEBIADDR_IR
	.comm	_ir_debug,8,3                   ; @ir_debug
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"budget_ci: received byte 0x%02x\n"

	.comm	_IR_DEVICE_ANY,4,2              ; @IR_DEVICE_ANY
	.no_dead_strip	_msp430_ir_interrupt
.subsections_via_symbols
