	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dvb_usb_nec_rc_key_to_event    ## -- Begin function dvb_usb_nec_rc_key_to_event
	.p2align	4, 0x90
_dvb_usb_nec_rc_key_to_event:           ## @dvb_usb_nec_rc_key_to_event
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movq	%rsi, %r12
	movq	8(%rdi), %rbx
	movq	$0, (%rdx)
	movq	_REMOTE_NO_KEY_PRESSED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rcx)
	movl	(%rsi), %esi
	cmpl	$128, %esi
	je	LBB0_14
## %bb.1:
	cmpl	$130, %esi
	je	LBB0_17
## %bb.2:
	cmpl	$129, %esi
	jne	LBB0_16
## %bb.3:
	movl	4(%r12), %eax
	notl	%eax
	cmpl	%eax, 8(%r12)
	jne	LBB0_10
## %bb.4:
	movl	12(%r12), %eax
	notl	%eax
	cmpl	%eax, 16(%r12)
	jne	LBB0_10
## %bb.5:
	movq	%rdi, %r13
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	cmpl	$0, (%rdi)
	jle	LBB0_13
## %bb.6:
	xorl	%r14d, %r14d
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_7 Depth=1
	incq	%r14
	movslq	(%r13), %rax
	addq	$8, %rbx
	cmpq	%rax, %r14
	jge	LBB0_13
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_rc5_custom
	cmpl	4(%r12), %eax
	jne	LBB0_12
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	%rbx, %rdi
	callq	_rc5_data
	cmpl	12(%r12), %eax
	jne	LBB0_12
## %bb.9:
	movq	(%rbx), %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	movq	_REMOTE_KEY_PRESSED@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_14:
	movq	_REMOTE_KEY_REPEAT@GOTPCREL(%rip), %rax
LBB0_15:
	movl	(%rax), %eax
	movl	%eax, (%r15)
	jmp	LBB0_17
LBB0_16:
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_deb_err
	jmp	LBB0_17
LBB0_10:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_11
LBB0_13:
	leaq	L_.str.1(%rip), %rdi
LBB0_11:
	xorl	%eax, %eax
	callq	_deb_err
LBB0_17:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_REMOTE_NO_KEY_PRESSED,4,2      ## @REMOTE_NO_KEY_PRESSED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"remote control checksum failed.\n"

	.comm	_REMOTE_KEY_PRESSED,4,2         ## @REMOTE_KEY_PRESSED
L_.str.1:                               ## @.str.1
	.asciz	"key mapping failed - no appropriate key found in keymapping\n"

	.comm	_REMOTE_KEY_REPEAT,4,2          ## @REMOTE_KEY_REPEAT
L_.str.2:                               ## @.str.2
	.asciz	"unknown type of remote status: %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dvb_usb_nec_rc_key_to_event    ; -- Begin function dvb_usb_nec_rc_key_to_event
	.p2align	2
_dvb_usb_nec_rc_key_to_event:           ; @dvb_usb_nec_rc_key_to_event
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x3
	ldr	x22, [x0, #8]
	str	xzr, [x2]
Lloh0:
	adrp	x8, _REMOTE_NO_KEY_PRESSED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _REMOTE_NO_KEY_PRESSED@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x3]
	ldr	w8, [x1]
	cmp	w8, #128
	b.eq	LBB0_11
; %bb.1:
	cmp	w8, #130
	b.eq	LBB0_17
; %bb.2:
	cmp	w8, #129
	b.ne	LBB0_13
; %bb.3:
	mov	x21, x1
	ldp	w8, w9, [x1, #4]
	mvn	w8, w8
	cmp	w9, w8
	b.ne	LBB0_14
; %bb.4:
	ldp	w8, w9, [x21, #12]
	mvn	w8, w8
	cmp	w9, w8
	b.ne	LBB0_14
; %bb.5:
	mov	x23, x0
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_15
; %bb.6:
	mov	x20, x2
	mov	x24, #0
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	x24, x24, #1
	ldrsw	x8, [x23]
	add	x22, x22, #8
	cmp	x24, x8
	b.ge	LBB0_15
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	bl	_rc5_custom
	ldr	w8, [x21, #4]
	cmp	w0, w8
	b.ne	LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x22
	bl	_rc5_data
	ldr	w8, [x21, #12]
	cmp	w0, w8
	b.ne	LBB0_7
; %bb.10:
	ldr	x8, [x22]
	str	x8, [x20]
Lloh3:
	adrp	x8, _REMOTE_KEY_PRESSED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _REMOTE_KEY_PRESSED@GOTPAGEOFF]
	b	LBB0_12
LBB0_11:
Lloh5:
	adrp	x8, _REMOTE_KEY_REPEAT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _REMOTE_KEY_REPEAT@GOTPAGEOFF]
LBB0_12:
	ldr	w8, [x8]
	str	w8, [x19]
	b	LBB0_17
LBB0_13:
	str	x8, [sp]
Lloh7:
	adrp	x0, l_.str.2@PAGE
Lloh8:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_16
LBB0_14:
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_16
LBB0_15:
Lloh11:
	adrp	x0, l_.str.1@PAGE
Lloh12:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_16:
	bl	_deb_err
LBB0_17:
	mov	w0, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_REMOTE_NO_KEY_PRESSED,4,2      ; @REMOTE_NO_KEY_PRESSED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"remote control checksum failed.\n"

	.comm	_REMOTE_KEY_PRESSED,4,2         ; @REMOTE_KEY_PRESSED
l_.str.1:                               ; @.str.1
	.asciz	"key mapping failed - no appropriate key found in keymapping\n"

	.comm	_REMOTE_KEY_REPEAT,4,2          ; @REMOTE_KEY_REPEAT
l_.str.2:                               ; @.str.2
	.asciz	"unknown type of remote status: %d\n"

.subsections_via_symbols
