	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function img_ir_sanyo_scancode
_img_ir_sanyo_scancode:                 ## @img_ir_sanyo_scancode
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	cmpl	$42, %edi
	je	LBB0_3
## %bb.1:
	testl	%edi, %edi
	jne	LBB0_4
## %bb.2:
	movq	_IMG_IR_REPEATCODE@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_3:
	movl	%esi, %eax
	andl	$8191, %eax                     ## imm = 0x1FFF
	movl	%esi, %edx
	shrl	$13, %edx
	andl	$8191, %edx                     ## imm = 0x1FFF
	xorl	%eax, %edx
	cmpl	$8191, %edx                     ## imm = 0x1FFF
	jne	LBB0_4
## %bb.5:
	sarl	$26, %esi
	movzbl	%sil, %edx
	movq	_RC_PROTO_SANYO@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	movl	%esi, 4(%rcx)
	shll	$8, %eax
	orl	%edx, %eax
	movl	%eax, (%rcx)
	movq	_IMG_IR_SCANCODE@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %eax
	popq	%rbp
	retq
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IMG_IR_REPEATCODE,4,2          ## @IMG_IR_REPEATCODE
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_RC_PROTO_SANYO,4,2             ## @RC_PROTO_SANYO
	.comm	_IMG_IR_SCANCODE,4,2            ## @IMG_IR_SCANCODE
	.no_dead_strip	_img_ir_sanyo_scancode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function img_ir_sanyo_scancode
_img_ir_sanyo_scancode:                 ; @img_ir_sanyo_scancode
	.cfi_startproc
; %bb.0:
	cmp	w0, #42
	b.eq	LBB0_3
; %bb.1:
	cbnz	w0, LBB0_5
; %bb.2:
Lloh0:
	adrp	x8, _IMG_IR_REPEATCODE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IMG_IR_REPEATCODE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ret
LBB0_3:
	and	w8, w1, #0x1fff
	ubfx	w9, w1, #13, #13
	eor	w9, w9, w8
	mov	w10, #8191
	cmp	w9, w10
	b.ne	LBB0_5
; %bb.4:
	asr	w9, w1, #26
	and	w9, w9, #0xff
Lloh3:
	adrp	x10, _RC_PROTO_SANYO@GOTPAGE
Lloh4:
	ldr	x10, [x10, _RC_PROTO_SANYO@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	bfi	w9, w8, #8, #13
	stp	w9, w10, [x3]
Lloh6:
	adrp	x8, _IMG_IR_SCANCODE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IMG_IR_SCANCODE@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	ret
LBB0_5:
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_IMG_IR_REPEATCODE,4,2          ; @IMG_IR_REPEATCODE
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_RC_PROTO_SANYO,4,2             ; @RC_PROTO_SANYO
	.comm	_IMG_IR_SCANCODE,4,2            ; @IMG_IR_SCANCODE
	.no_dead_strip	_img_ir_sanyo_scancode
.subsections_via_symbols
