	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tango_ir_handle_nec
_tango_ir_handle_nec:                   ## @tango_ir_handle_nec
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	_IR_NEC_DATA@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	8(%rbx), %rdi
	callq	_readl_relaxed
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %esi
	sarl	$8, %esi
	movl	%eax, %edx
	sarl	$16, %edx
	movl	%eax, %ecx
	sarl	$24, %ecx
	leaq	-12(%rbp), %r8
	movl	%eax, %edi
	callq	_ir_nec_bytes_to_scancode
	movl	(%rbx), %edi
	movl	-12(%rbp), %esi
	movl	%eax, %edx
	xorl	%ecx, %ecx
	callq	_rc_keydown
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_2:
	movl	(%rbx), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_rc_repeat                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IR_NEC_DATA,8,3                ## @IR_NEC_DATA
	.no_dead_strip	_tango_ir_handle_nec
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tango_ir_handle_nec
_tango_ir_handle_nec:                   ; @tango_ir_handle_nec
	.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
	mov	x19, x0
	ldr	x8, [x0, #8]
Lloh0:
	adrp	x9, _IR_NEC_DATA@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IR_NEC_DATA@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl_relaxed
	cbz	w0, LBB0_2
; %bb.1:
	asr	w1, w0, #8
	asr	w2, w0, #16
	asr	w3, w0, #24
	add	x4, sp, #12
	bl	_ir_nec_bytes_to_scancode
	mov	x2, x0
	ldr	w0, [x19]
	ldr	w1, [sp, #12]
	mov	w3, #0
	bl	_rc_keydown
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_2:
	ldr	w0, [x19]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_rc_repeat
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_IR_NEC_DATA,8,3                ; @IR_NEC_DATA
	.no_dead_strip	_tango_ir_handle_nec
.subsections_via_symbols
