	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tango_ir_handle_rc5
_tango_ir_handle_rc5:                   ## @tango_ir_handle_rc5
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_IR_RC5_DATA@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	8(%r14), %rdi
	callq	_readl_relaxed
	movl	%eax, %ebx
	movl	$31, %edi
	callq	_BIT
	testl	%ebx, %eax
	je	LBB0_2
## %bb.1:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movl	%ebx, %r15d
	shrl	$11, %r15d
	andl	$1, %r15d
	movl	%ebx, %esi
	shrl	$6, %esi
	movl	%esi, %edi
	andl	$31, %edi
	andl	$63, %ebx
	andl	$64, %esi
	orl	%ebx, %esi
	xorl	$64, %esi
	callq	_RC_SCANCODE_RC5
	movl	(%r14), %edi
	movq	_RC_PROTO_RC5@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edx
	movl	%r15d, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_rc_keydown                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IR_RC5_DATA,8,3                ## @IR_RC5_DATA
	.comm	_RC_PROTO_RC5,4,2               ## @RC_PROTO_RC5
	.no_dead_strip	_tango_ir_handle_rc5
.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_rc5
_tango_ir_handle_rc5:                   ; @tango_ir_handle_rc5
	.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	x8, [x0, #8]
Lloh0:
	adrp	x9, _IR_RC5_DATA@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IR_RC5_DATA@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl_relaxed
	mov	x20, x0
	mov	w0, #31
	bl	_BIT
	tst	w0, w20
	b.eq	LBB0_2
; %bb.1:
	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_2:
	ubfx	w21, w20, #11, #1
	lsr	w8, w20, #6
	ubfx	w0, w20, #6, #5
	and	w8, w8, #0x40
	bfxil	w8, w20, #0, #6
	eor	w1, w8, #0x40
	bl	_RC_SCANCODE_RC5
	mov	x2, x0
Lloh3:
	adrp	x8, _RC_PROTO_RC5@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RC_PROTO_RC5@GOTPAGEOFF]
	ldr	w0, [x19]
Lloh5:
	ldr	w1, [x8]
	mov	x3, x21
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_IR_RC5_DATA,8,3                ; @IR_RC5_DATA
	.comm	_RC_PROTO_RC5,4,2               ; @RC_PROTO_RC5
	.no_dead_strip	_tango_ir_handle_rc5
.subsections_via_symbols
