	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sii8620_rcp_consume
_sii8620_rcp_consume:                   ## @sii8620_rcp_consume
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	%rdi, %rax
	movl	(%rdi), %edi
	testl	%edi, %edi
	je	LBB0_1
## %bb.2:
	movl	%esi, %edx
	movq	_MHL_RCP_KEY_RELEASED_MASK@GOTPCREL(%rip), %rax
	testl	%esi, (%rax)
	je	LBB0_3
## %bb.4:
	callq	_rc_keyup
	jmp	LBB0_5
LBB0_1:
	movl	4(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_dbg
	xorl	%eax, %eax
	popq	%rbp
	retq
LBB0_3:
	movq	_MHL_RCP_KEY_ID_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %edx
	movq	_RC_PROTO_CEC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%ecx, %ecx
	callq	_rc_keydown
LBB0_5:
	movl	$1, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MHL_RCP_KEY_RELEASED_MASK,4,2  ## @MHL_RCP_KEY_RELEASED_MASK
	.comm	_MHL_RCP_KEY_ID_MASK,4,2        ## @MHL_RCP_KEY_ID_MASK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"RCP input device not initialized\n"

	.comm	_RC_PROTO_CEC,4,2               ## @RC_PROTO_CEC
	.no_dead_strip	_sii8620_rcp_consume
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sii8620_rcp_consume
_sii8620_rcp_consume:                   ; @sii8620_rcp_consume
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	mov	x8, x0
	ldr	w0, [x0]
	cbz	w0, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _MHL_RCP_KEY_RELEASED_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MHL_RCP_KEY_RELEASED_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w1
	b.eq	LBB0_4
; %bb.2:
	bl	_rc_keyup
	b	LBB0_5
LBB0_3:
	ldr	w0, [x8, #4]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_4:
Lloh5:
	adrp	x8, _MHL_RCP_KEY_ID_MASK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MHL_RCP_KEY_ID_MASK@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	and	w2, w8, w1
Lloh8:
	adrp	x8, _RC_PROTO_CEC@GOTPAGE
Lloh9:
	ldr	x8, [x8, _RC_PROTO_CEC@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	w3, #0
	bl	_rc_keydown
LBB0_5:
	mov	w0, #1
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_MHL_RCP_KEY_RELEASED_MASK,4,2  ; @MHL_RCP_KEY_RELEASED_MASK
	.comm	_MHL_RCP_KEY_ID_MASK,4,2        ; @MHL_RCP_KEY_ID_MASK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"RCP input device not initialized\n"

	.comm	_RC_PROTO_CEC,4,2               ; @RC_PROTO_CEC
	.no_dead_strip	_sii8620_rcp_consume
.subsections_via_symbols
