	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function digitv_rc_query
_digitv_rc_query:                       ## @digitv_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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -112(%rbp)
	movaps	%xmm0, -128(%rbp)
	movl	$0, (%rsi)
	movq	_REMOTE_NO_KEY_PRESSED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rdx)
	movq	_USB_READ_REMOTE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-88(%rbp), %r9
	movl	$4, (%rsp)
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_digitv_ctrl_msg
	movq	_USB_WRITE_REMOTE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$0, (%rsp)
	leaq	-128(%rbp), %rcx
	movq	%r12, %rdi
	xorl	%edx, %edx
	movl	$4, %r8d
	xorl	%r9d, %r9d
	callq	_digitv_ctrl_msg
	cmpq	$0, -88(%rbp)
	je	LBB0_7
## %bb.1:
	cmpl	$0, (%r12)
	jle	LBB0_7
## %bb.2:
	xorl	%r13d, %r13d
	xorl	%ebx, %ebx
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%rbx
	movslq	(%r12), %rax
	addq	$4, %r13
	cmpq	%rax, %rbx
	jge	LBB0_7
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rdi
	addq	%r13, %rdi
	callq	_rc5_custom
	cmpq	-88(%rbp), %rax
	jne	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%r12), %rdi
	addq	%r13, %rdi
	callq	_rc5_data
	cmpq	-80(%rbp), %rax
	jne	LBB0_6
## %bb.5:
	movq	8(%r12), %rax
	movl	(%rax,%r13), %eax
	movl	%eax, (%r15)
	movq	_REMOTE_KEY_PRESSED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	jmp	LBB0_9
LBB0_7:
	cmpq	$0, -96(%rbp)
	je	LBB0_9
## %bb.8:
	leaq	L_.str(%rip), %rdi
	leaq	-96(%rbp), %rdx
	movl	$5, %esi
	callq	_deb_rc
LBB0_9:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_11
## %bb.10:
	xorl	%eax, %eax
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_REMOTE_NO_KEY_PRESSED,4,2      ## @REMOTE_NO_KEY_PRESSED
	.comm	_USB_READ_REMOTE,4,2            ## @USB_READ_REMOTE
	.comm	_USB_WRITE_REMOTE,4,2           ## @USB_WRITE_REMOTE
	.comm	_REMOTE_KEY_PRESSED,4,2         ## @REMOTE_KEY_PRESSED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"key: %*ph\n"

	.no_dead_strip	_digitv_rc_query
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function digitv_rc_query
_digitv_rc_query:                       ; @digitv_rc_query
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [sp]
	str	wzr, [x1]
Lloh3:
	adrp	x8, _REMOTE_NO_KEY_PRESSED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _REMOTE_NO_KEY_PRESSED@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x2]
Lloh6:
	adrp	x8, _USB_READ_REMOTE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _USB_READ_REMOTE@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	add	x8, sp, #32
	add	x5, x8, #8
	mov	w2, #0
	mov	x3, #0
	mov	w4, #0
	mov	w6, #4
	bl	_digitv_ctrl_msg
Lloh9:
	adrp	x8, _USB_WRITE_REMOTE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _USB_WRITE_REMOTE@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x3, sp
	mov	x0, x21
	mov	w2, #0
	mov	w4, #4
	mov	x5, #0
	mov	w6, #0
	bl	_digitv_ctrl_msg
	ldr	x8, [sp, #40]
	cbz	x8, LBB0_7
; %bb.1:
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.2:
	mov	x22, #0
	mov	x23, #0
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x23, x23, #1
	ldrsw	x8, [x21]
	add	x22, x22, #4
	cmp	x23, x8
	b.ge	LBB0_7
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21, #8]
	add	x0, x8, x22
	bl	_rc5_custom
	ldr	x8, [sp, #40]
	cmp	x0, x8
	b.ne	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x21, #8]
	add	x0, x8, x22
	bl	_rc5_data
	ldr	x8, [sp, #48]
	cmp	x0, x8
	b.ne	LBB0_3
; %bb.6:
	ldr	x8, [x21, #8]
	ldr	w8, [x8, x22]
	str	w8, [x20]
Lloh12:
	adrp	x8, _REMOTE_KEY_PRESSED@GOTPAGE
Lloh13:
	ldr	x8, [x8, _REMOTE_KEY_PRESSED@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	str	w8, [x19]
	b	LBB0_9
LBB0_7:
	ldr	x8, [sp, #32]
	cbz	x8, LBB0_9
; %bb.8:
Lloh15:
	adrp	x0, l_.str@PAGE
Lloh16:
	add	x0, x0, l_.str@PAGEOFF
	add	x2, sp, #32
	mov	w1, #5
	bl	_deb_rc
LBB0_9:
	ldur	x8, [x29, #-56]
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_11
; %bb.10:
	mov	w0, #0
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_11:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_REMOTE_NO_KEY_PRESSED,4,2      ; @REMOTE_NO_KEY_PRESSED
	.comm	_USB_READ_REMOTE,4,2            ; @USB_READ_REMOTE
	.comm	_USB_WRITE_REMOTE,4,2           ; @USB_WRITE_REMOTE
	.comm	_REMOTE_KEY_PRESSED,4,2         ; @REMOTE_KEY_PRESSED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"key: %*ph\n"

	.no_dead_strip	_digitv_rc_query
.subsections_via_symbols
