	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rcmm_miscmode
_rcmm_miscmode:                         ## @rcmm_miscmode
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movl	(%rsi), %eax
	movl	$-1, %r14d
	cmpl	$12, %eax
	je	LBB0_4
## %bb.1:
	cmpl	$24, %eax
	jne	LBB0_7
## %bb.2:
	movq	_RC_PROTO_BIT_RCMM24@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rdi)
	je	LBB0_7
## %bb.3:
	movq	_RC_PROTO_RCMM24@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_4:
	movq	_RC_PROTO_BIT_RCMM12@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rdi)
	je	LBB0_7
## %bb.5:
	movq	_RC_PROTO_RCMM12@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %esi
	movl	16(%rbx), %edx
	xorl	%r14d, %r14d
	xorl	%ecx, %ecx
	callq	_rc_keydown
	movq	_STATE_INACTIVE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%rbx)
LBB0_7:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RC_PROTO_BIT_RCMM24,4,2        ## @RC_PROTO_BIT_RCMM24
	.comm	_RC_PROTO_RCMM24,4,2            ## @RC_PROTO_RCMM24
	.comm	_STATE_INACTIVE,8,3             ## @STATE_INACTIVE
	.comm	_RC_PROTO_BIT_RCMM12,4,2        ## @RC_PROTO_BIT_RCMM12
	.comm	_RC_PROTO_RCMM12,4,2            ## @RC_PROTO_RCMM12
	.no_dead_strip	_rcmm_miscmode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rcmm_miscmode
_rcmm_miscmode:                         ; @rcmm_miscmode
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	ldr	w8, [x1]
	cmp	w8, #12
	b.eq	LBB0_4
; %bb.1:
	cmp	w8, #24
	b.ne	LBB0_7
; %bb.2:
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _RC_PROTO_BIT_RCMM24@GOTPAGE
Lloh1:
	ldr	x9, [x9, _RC_PROTO_BIT_RCMM24@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.3:
Lloh3:
	adrp	x8, _RC_PROTO_RCMM24@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RC_PROTO_RCMM24@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:
	ldr	w8, [x0]
Lloh5:
	adrp	x9, _RC_PROTO_BIT_RCMM12@GOTPAGE
Lloh6:
	ldr	x9, [x9, _RC_PROTO_BIT_RCMM12@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.5:
Lloh8:
	adrp	x8, _RC_PROTO_RCMM12@GOTPAGE
Lloh9:
	ldr	x8, [x8, _RC_PROTO_RCMM12@GOTPAGEOFF]
LBB0_6:
	ldr	w1, [x8]
	ldr	w2, [x19, #16]
	mov	w3, #0
	bl	_rc_keydown
	mov	w0, #0
Lloh10:
	adrp	x8, _STATE_INACTIVE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _STATE_INACTIVE@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	str	x8, [x19, #8]
	b	LBB0_8
LBB0_7:
	mov	w0, #-1
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_RC_PROTO_BIT_RCMM24,4,2        ; @RC_PROTO_BIT_RCMM24
	.comm	_RC_PROTO_RCMM24,4,2            ; @RC_PROTO_RCMM24
	.comm	_STATE_INACTIVE,8,3             ; @STATE_INACTIVE
	.comm	_RC_PROTO_BIT_RCMM12,4,2        ; @RC_PROTO_BIT_RCMM12
	.comm	_RC_PROTO_RCMM12,4,2            ; @RC_PROTO_RCMM12
	.no_dead_strip	_rcmm_miscmode
.subsections_via_symbols
