	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ir_nec_scancode_to_raw
_ir_nec_scancode_to_raw:                ## @ir_nec_scancode_to_raw
	.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
	.cfi_offset %rbx, -24
	movl	%esi, %ebx
	movzbl	%bl, %ecx
	movq	_RC_PROTO_NEC32@GOTPCREL(%rip), %rax
	cmpl	%edi, (%rax)
	jne	LBB0_2
## %bb.1:
	movl	%ebx, %eax
	shrl	$24, %eax
	movl	%ebx, %edx
	shrl	$16, %edx
	movzbl	%dl, %edx
	movzbl	%bh, %esi
	jmp	LBB0_6
LBB0_2:
	movq	_RC_PROTO_NECX@GOTPCREL(%rip), %rax
	cmpl	%edi, (%rax)
	jne	LBB0_4
## %bb.3:
	movl	%ebx, %eax
	shrl	$16, %eax
	movzbl	%al, %edx
	movzbl	%bh, %eax
	jmp	LBB0_5
LBB0_4:
	movzbl	%bh, %edx
	movl	%edx, %eax
	xorl	$255, %eax
LBB0_5:
	movl	%ecx, %esi
	xorl	$255, %esi
LBB0_6:
	shll	$24, %esi
	shll	$16, %ecx
	orl	%esi, %ecx
	shll	$8, %eax
	orl	%edx, %eax
	orl	%ecx, %eax
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RC_PROTO_NEC32,4,2             ## @RC_PROTO_NEC32
	.comm	_RC_PROTO_NECX,4,2              ## @RC_PROTO_NECX
	.no_dead_strip	_ir_nec_scancode_to_raw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ir_nec_scancode_to_raw
_ir_nec_scancode_to_raw:                ; @ir_nec_scancode_to_raw
	.cfi_startproc
; %bb.0:
	and	w8, w1, #0xff
Lloh0:
	adrp	x9, _RC_PROTO_NEC32@GOTPAGE
Lloh1:
	ldr	x9, [x9, _RC_PROTO_NEC32@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w9, w0
	b.ne	LBB0_2
; %bb.1:
	lsr	w10, w1, #24
	ubfx	w9, w1, #16, #8
	ubfx	w11, w1, #8, #8
	b	LBB0_6
LBB0_2:
Lloh3:
	adrp	x9, _RC_PROTO_NECX@GOTPAGE
Lloh4:
	ldr	x9, [x9, _RC_PROTO_NECX@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w9, w0
	b.ne	LBB0_4
; %bb.3:
	ubfx	w9, w1, #16, #8
	ubfx	w10, w1, #8, #8
	b	LBB0_5
LBB0_4:
	ubfx	w9, w1, #8, #8
	eor	w10, w9, #0xff
LBB0_5:
	eor	w11, w8, #0xff
LBB0_6:
	lsl	w8, w8, #16
	bfi	w8, w11, #24, #8
	bfi	w9, w10, #8, #8
	orr	w0, w9, w8
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_RC_PROTO_NEC32,4,2             ; @RC_PROTO_NEC32
	.comm	_RC_PROTO_NECX,4,2              ; @RC_PROTO_NECX
	.no_dead_strip	_ir_nec_scancode_to_raw
.subsections_via_symbols
