	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vp7045_rc_query
_vp7045_rc_query:                       ## @vp7045_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	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	_RC_VAL_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$20, (%rsp)
	leaq	-20(%rbp), %r8
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movl	$1, %r9d
	callq	_vp7045_usb_op
	movl	-20(%rbp), %edx
	leaq	L_.str(%rip), %rdi
	movl	%edx, %esi
	callq	_deb_rc
	movl	-20(%rbp), %esi
	cmpl	$68, %esi
	je	LBB0_2
## %bb.1:
	movl	(%rbx), %r14d
	movq	_RC_PROTO_NEC@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	xorl	%edi, %edi
	callq	_RC_SCANCODE_NEC
	movl	%r14d, %edi
	movl	%ebx, %esi
	movl	%eax, %edx
	xorl	%ecx, %ecx
	callq	_rc_keydown
LBB0_2:
	xorl	%eax, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RC_VAL_READ,4,2                ## @RC_VAL_READ
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"remote query key: %x %d\n"

	.comm	_RC_PROTO_NEC,4,2               ## @RC_PROTO_NEC
	.no_dead_strip	_vp7045_rc_query
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vp7045_rc_query
_vp7045_rc_query:                       ; @vp7045_rc_query
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _RC_VAL_READ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RC_VAL_READ@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x4, sp, #12
	mov	x2, #0
	mov	w3, #0
	mov	w5, #1
	mov	w6, #20
	bl	_vp7045_usb_op
	ldr	w1, [sp, #12]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, x1
	bl	_deb_rc
	ldr	w1, [sp, #12]
	cmp	w1, #68
	b.eq	LBB0_2
; %bb.1:
	ldr	w19, [x19]
Lloh5:
	adrp	x8, _RC_PROTO_NEC@GOTPAGE
Lloh6:
	ldr	x8, [x8, _RC_PROTO_NEC@GOTPAGEOFF]
Lloh7:
	ldr	w20, [x8]
	mov	w0, #0
	bl	_RC_SCANCODE_NEC
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	mov	w3, #0
	bl	_rc_keydown
LBB0_2:
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_RC_VAL_READ,4,2                ; @RC_VAL_READ
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"remote query key: %x %d\n"

	.comm	_RC_PROTO_NEC,4,2               ; @RC_PROTO_NEC
	.no_dead_strip	_vp7045_rc_query
.subsections_via_symbols
