	.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	24(%rdi), %r14
	addq	$32, %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.5:
	cmpl	$0, (%r12)
	je	LBB0_4
## %bb.6:
	movl	$0, (%r12)
	movl	8(%r12), %edi
	movq	_IR_DEVICE_ANY@GOTPCREL(%rip), %rax
	cmpl	(%rax), %edi
	je	LBB0_8
## %bb.7:
	andl	$31, %ebx
	cmpl	%ebx, %edi
	jne	LBB0_4
LBB0_8:
	cmpq	$0, 16(%r12)
	je	LBB0_10
## %bb.9:
	movq	_RC_PROTO_RC5@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	4(%r12), %esi
	callq	_RC_SCANCODE_RC5
	shrl	$13, %r15d
	andl	$1, %r15d
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	jmp	LBB0_11
LBB0_3:
	movl	$1, (%r12)
	andl	$63, %ebx
	movl	%ebx, 4(%r12)
LBB0_4:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	_RC_PROTO_UNKNOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	4(%r12), %edx
	shrl	$13, %r15d
	andl	$1, %r15d
	movq	%r14, %rdi
LBB0_11:
	movl	%r15d, %ecx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_rc_keydown                     ## TAILCALL
	.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
	.comm	_RC_PROTO_RC5,4,2               ## @RC_PROTO_RC5
	.comm	_RC_PROTO_UNKNOWN,4,2           ## @RC_PROTO_UNKNOWN
	.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	x20, x0
	ldr	x19, [x0, #24]
	add	x0, x0, #32
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_7
; %bb.3:
	ldr	w8, [x20]
	cbz	w8, LBB0_8
; %bb.4:
	str	wzr, [x20]
	ldr	w0, [x20, #8]
Lloh11:
	adrp	x8, _IR_DEVICE_ANY@GOTPAGE
Lloh12:
	ldr	x8, [x8, _IR_DEVICE_ANY@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	ubfx	w9, w21, #8, #5
	cmp	w0, w8
	ccmp	w0, w9, #4, ne
	b.ne	LBB0_8
; %bb.5:
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_9
; %bb.6:
Lloh14:
	adrp	x8, _RC_PROTO_RC5@GOTPAGE
Lloh15:
	ldr	x8, [x8, _RC_PROTO_RC5@GOTPAGEOFF]
Lloh16:
	ldr	w22, [x8]
	ldr	w1, [x20, #4]
	bl	_RC_SCANCODE_RC5
	mov	x2, x0
	ubfx	w3, w21, #13, #1
	mov	x0, x19
	mov	x1, x22
	b	LBB0_10
LBB0_7:
	mov	w8, #1
	ubfx	w9, w21, #8, #6
	stp	w8, w9, [x20]
LBB0_8:
	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
LBB0_9:
Lloh17:
	adrp	x8, _RC_PROTO_UNKNOWN@GOTPAGE
Lloh18:
	ldr	x8, [x8, _RC_PROTO_UNKNOWN@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	ldr	w2, [x20, #4]
	ubfx	w3, w21, #13, #1
	mov	x0, x19
LBB0_10:
	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
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.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
	.comm	_RC_PROTO_RC5,4,2               ; @RC_PROTO_RC5
	.comm	_RC_PROTO_UNKNOWN,4,2           ; @RC_PROTO_UNKNOWN
	.no_dead_strip	_msp430_ir_interrupt
.subsections_via_symbols
