	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cxusb_bluebird2_rc_query
_cxusb_bluebird2_rc_query:              ## @cxusb_bluebird2_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	$64, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	movl	$107, -72(%rbp)
	leaq	-48(%rbp), %rax
	movq	%rax, -64(%rbp)
	movl	$4, -56(%rbp)
	movq	_I2C_M_RD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)
	addq	$4, %rdi
	leaq	-72(%rbp), %rsi
	movl	$1, %edx
	callq	_cxusb_i2c_xfer
	cmpl	$1, %eax
	jne	LBB0_3
## %bb.1:
	movl	-44(%rbp), %eax
	movl	-40(%rbp), %esi
	movl	%eax, %ecx
	orl	%esi, %ecx
	je	LBB0_3
## %bb.2:
	movl	(%rbx), %r14d
	movq	_RC_PROTO_NEC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	notl	%eax
	movzbl	%al, %edi
	callq	_RC_SCANCODE_NEC
	movl	%r14d, %edi
	movl	%ebx, %esi
	movl	%eax, %edx
	xorl	%ecx, %ecx
	callq	_rc_keydown
LBB0_3:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-24(%rbp), %rax
	jne	LBB0_5
## %bb.4:
	xorl	%eax, %eax
	addq	$64, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_5:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_I2C_M_RD,4,2                   ## @I2C_M_RD
	.comm	_RC_PROTO_NEC,4,2               ## @RC_PROTO_NEC
	.no_dead_strip	_cxusb_bluebird2_rc_query
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cxusb_bluebird2_rc_query
_cxusb_bluebird2_rc_query:              ; @cxusb_bluebird2_rc_query
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
	mov	w8, #107
	str	w8, [sp]
	add	x8, sp, #24
	str	x8, [sp, #8]
	mov	w8, #4
Lloh3:
	adrp	x9, _I2C_M_RD@GOTPAGE
Lloh4:
	ldr	x9, [x9, _I2C_M_RD@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	stp	w8, w9, [sp, #16]
	add	x0, x0, #4
	mov	x1, sp
	mov	w2, #1
	bl	_cxusb_i2c_xfer
	cmp	w0, #1
	b.ne	LBB0_3
; %bb.1:
	ldp	w8, w1, [sp, #28]
	orr	w9, w8, w1
	cbz	w9, LBB0_3
; %bb.2:
	ldr	w19, [x19]
Lloh6:
	adrp	x9, _RC_PROTO_NEC@GOTPAGE
Lloh7:
	ldr	x9, [x9, _RC_PROTO_NEC@GOTPAGEOFF]
Lloh8:
	ldr	w20, [x9]
	mvn	w8, w8
	and	w0, w8, #0xff
	bl	_RC_SCANCODE_NEC
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	mov	w3, #0
	bl	_rc_keydown
LBB0_3:
	ldur	x8, [x29, #-24]
Lloh9:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh10:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_5
; %bb.4:
	mov	w0, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_5:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_I2C_M_RD,4,2                   ; @I2C_M_RD
	.comm	_RC_PROTO_NEC,4,2               ; @RC_PROTO_NEC
	.no_dead_strip	_cxusb_bluebird2_rc_query
.subsections_via_symbols
