	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nova_t_rc_query
_nova_t_rc_query:                       ## @nova_t_rc_query
	.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
	subq	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, -112(%rbp)                ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_DIBUSB_REQ_POLL_REMOTE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -88(%rbp)
	movl	$53, -84(%rbp)
	movq	(%rdi), %rax
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	leaq	-88(%rbp), %rsi
	leaq	-80(%rbp), %rcx
	movl	$2, %edx
	movl	$5, %r8d
	xorl	%r9d, %r9d
	callq	_dvb_usb_generic_rw
	movq	_REMOTE_NO_KEY_PRESSED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%rbx, -104(%rbp)                ## 8-byte Spill
	movl	%eax, (%rbx)
	cmpl	$128, -80(%rbp)
	jne	LBB0_10
## %bb.1:
	movl	-76(%rbp), %esi
	movl	-72(%rbp), %edx
	movl	%esi, %r12d
	shll	$8, %r12d
	orl	%edx, %r12d
	movl	%r12d, %ebx
	shrl	$3, %ebx
	movl	%r12d, %eax
	shrl	$14, %eax
	andl	$1, %eax
	andl	$63, %ebx
	shrl	$9, %r12d
	andl	$31, %r12d
	movl	-68(%rbp), %ecx
	movl	%eax, -92(%rbp)                 ## 4-byte Spill
	movl	%eax, (%rsp)
	leaq	L_.str(%rip), %rdi
	movl	%r12d, %r8d
	movl	%ebx, %r9d
	xorl	%eax, %eax
	callq	_deb_rc
	movq	_rc_map_haupp_table@GOTPCREL(%rip), %r13
	movq	(%r13), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_10
## %bb.2:
	xorl	%r15d, %r15d
	xorl	%r14d, %r14d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%r14
	movq	(%r13), %rdi
	callq	_ARRAY_SIZE
	cltq
	addq	$4, %r15
	cmpq	%rax, %r14
	jge	LBB0_10
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rdi
	addq	%r15, %rdi
	callq	_rc5_data
	cmpl	%ebx, %eax
	jne	LBB0_9
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r13), %rdi
	addq	%r15, %rdi
	callq	_rc5_custom
	cmpl	%r12d, %eax
	jne	LBB0_9
## %bb.5:
	movq	(%r13), %rdi
	addq	%r15, %rdi
	callq	_rc5_data
	movl	%eax, %ebx
	movq	(%r13), %rdi
	addq	%r15, %rdi
	callq	_rc5_custom
	leaq	L_.str.1(%rip), %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_deb_rc
	movq	(%r13), %rax
	movl	(%rax,%r15), %eax
	movq	-112(%rbp), %rcx                ## 8-byte Reload
	movl	%eax, (%rcx)
	movq	_REMOTE_KEY_PRESSED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-104(%rbp), %rcx                ## 8-byte Reload
	movl	%eax, (%rcx)
	movq	-120(%rbp), %rdx                ## 8-byte Reload
	movl	-92(%rbp), %eax                 ## 4-byte Reload
	cmpl	%eax, (%rdx)
	jne	LBB0_8
## %bb.6:
	movl	4(%rdx), %eax
	leal	1(%rax), %ecx
	movl	%ecx, 4(%rdx)
	cmpl	$1, %eax
	jg	LBB0_10
## %bb.7:
	movq	_REMOTE_NO_KEY_PRESSED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-104(%rbp), %rcx                ## 8-byte Reload
	movl	%eax, (%rcx)
	jmp	LBB0_10
LBB0_8:
	movl	$0, 4(%rdx)
	movl	%eax, (%rdx)
LBB0_10:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_12
## %bb.11:
	xorl	%eax, %eax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_DIBUSB_REQ_POLL_REMOTE,4,2     ## @DIBUSB_REQ_POLL_REMOTE
	.comm	_REMOTE_NO_KEY_PRESSED,4,2      ## @REMOTE_NO_KEY_PRESSED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"raw key code 0x%02x, 0x%02x, 0x%02x to c: %02x d: %02x toggle: %d\n"

	.comm	_rc_map_haupp_table,8,3         ## @rc_map_haupp_table
L_.str.1:                               ## @.str.1
	.asciz	"c: %x, d: %x\n"

	.comm	_REMOTE_KEY_PRESSED,4,2         ## @REMOTE_KEY_PRESSED
	.no_dead_strip	_nova_t_rc_query
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nova_t_rc_query
_nova_t_rc_query:                       ; @nova_t_rc_query
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x28, x27, [sp, #80]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x2
	mov	x20, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _DIBUSB_REQ_POLL_REMOTE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DIBUSB_REQ_POLL_REMOTE@GOTPAGEOFF]
	str	x8, [sp, #72]
Lloh5:
	ldr	w8, [x9]
	mov	w9, #53
	stp	w8, w9, [sp, #44]
	ldr	x22, [x0]
	add	x1, sp, #44
	add	x3, sp, #52
	mov	w2, #2
	mov	w4, #5
	mov	w5, #0
	bl	_dvb_usb_generic_rw
Lloh6:
	adrp	x23, _REMOTE_NO_KEY_PRESSED@GOTPAGE
Lloh7:
	ldr	x23, [x23, _REMOTE_NO_KEY_PRESSED@GOTPAGEOFF]
	ldr	w8, [x23]
	str	w8, [x19]
	ldr	w8, [sp, #52]
	cmp	w8, #128
	b.ne	LBB0_10
; %bb.1:
	ldp	w1, w2, [sp, #56]
	orr	w8, w2, w1, lsl #8
	ubfx	w24, w8, #14, #1
	ubfx	w21, w8, #3, #6
	ubfx	w26, w8, #9, #5
	ldr	w8, [sp, #64]
	stp	x21, x24, [sp, #16]
	stp	x8, x26, [sp]
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	bl	_deb_rc
Lloh10:
	adrp	x25, _rc_map_haupp_table@GOTPAGE
Lloh11:
	ldr	x25, [x25, _rc_map_haupp_table@GOTPAGEOFF]
	ldr	x0, [x25]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_10
; %bb.2:
	mov	x27, #0
	mov	x28, #0
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x28, x28, #1
	ldr	x0, [x25]
	bl	_ARRAY_SIZE
	add	x27, x27, #4
	cmp	x28, w0, sxtw
	b.ge	LBB0_10
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x25]
	add	x0, x8, x27
	bl	_rc5_data
	cmp	w0, w21
	b.ne	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x25]
	add	x0, x8, x27
	bl	_rc5_custom
	cmp	w0, w26
	b.ne	LBB0_3
; %bb.6:
	ldr	x8, [x25]
	add	x0, x8, x27
	bl	_rc5_data
	mov	x21, x0
	ldr	x8, [x25]
	add	x0, x8, x27
	bl	_rc5_custom
	mov	x2, x0
Lloh12:
	adrp	x0, l_.str.1@PAGE
Lloh13:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x21
	bl	_deb_rc
	ldr	x8, [x25]
	ldr	w8, [x8, x27]
	str	w8, [x20]
Lloh14:
	adrp	x8, _REMOTE_KEY_PRESSED@GOTPAGE
Lloh15:
	ldr	x8, [x8, _REMOTE_KEY_PRESSED@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	str	w8, [x19]
	ldr	w8, [x22]
	cmp	w8, w24
	b.ne	LBB0_9
; %bb.7:
	ldr	w8, [x22, #4]
	add	w9, w8, #1
	str	w9, [x22, #4]
	cmp	w8, #1
	b.gt	LBB0_10
; %bb.8:
	ldr	w8, [x23]
	str	w8, [x19]
	b	LBB0_10
LBB0_9:
	stp	w24, wzr, [x22]
LBB0_10:
	ldr	x8, [sp, #72]
Lloh17:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh18:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.11:
	mov	w0, #0
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
LBB0_12:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_DIBUSB_REQ_POLL_REMOTE,4,2     ; @DIBUSB_REQ_POLL_REMOTE
	.comm	_REMOTE_NO_KEY_PRESSED,4,2      ; @REMOTE_NO_KEY_PRESSED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"raw key code 0x%02x, 0x%02x, 0x%02x to c: %02x d: %02x toggle: %d\n"

	.comm	_rc_map_haupp_table,8,3         ; @rc_map_haupp_table
l_.str.1:                               ; @.str.1
	.asciz	"c: %x, d: %x\n"

	.comm	_REMOTE_KEY_PRESSED,4,2         ; @REMOTE_KEY_PRESSED
	.no_dead_strip	_nova_t_rc_query
.subsections_via_symbols
