	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rc_validate_filter
_rc_validate_filter:                    ## @rc_validate_filter
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r14
	movl	4(%rsi), %r15d
	movl	(%rdi), %ebx
	movq	_protocols@GOTPCREL(%rip), %r13
	movq	(%r13), %rdi
	callq	_ARRAY_SIZE
	cmpl	%eax, %ebx
	jae	LBB0_5
## %bb.1:
	movq	(%r13), %rax
	movl	(%rax,%rbx,4), %r13d
	movl	%ebx, %edi
	movl	%r15d, %esi
	callq	_rc_validate_scancode
	testl	%eax, %eax
	je	LBB0_5
## %bb.2:
	andl	%r13d, 4(%r12)
	movl	(%r12), %ecx
	andl	%r13d, %ecx
	movl	%ecx, (%r12)
	xorl	%eax, %eax
	cmpq	$0, 8(%r14)
	je	LBB0_6
## %bb.3:
	testl	%ecx, %ecx
	je	LBB0_6
## %bb.4:
	cmpl	%r13d, %ecx
	je	LBB0_6
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_protocols,8,3                  ## @protocols
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_rc_validate_filter
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rc_validate_filter
_rc_validate_filter:                    ; @rc_validate_filter
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x20, x1
	mov	x19, x0
	ldr	w21, [x1, #4]
	ldr	w22, [x0]
Lloh0:
	adrp	x23, _protocols@GOTPAGE
Lloh1:
	ldr	x23, [x23, _protocols@GOTPAGEOFF]
	ldr	x0, [x23]
	bl	_ARRAY_SIZE
	cmp	w22, w0
	b.hs	LBB0_4
; %bb.1:
	ldr	x8, [x23]
	ldr	w23, [x8, x22, lsl #2]
	mov	x0, x22
	mov	x1, x21
	bl	_rc_validate_scancode
	cbz	w0, LBB0_4
; %bb.2:
	mov	w0, #0
	ldr	d0, [x20]
	dup.2s	v1, w23
	and.8b	v0, v0, v1
	str	d0, [x20]
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_5
; %bb.3:
	fmov	w8, s0
	cmp	w8, #0
	ccmp	w8, w23, #4, ne
	b.eq	LBB0_5
LBB0_4:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_protocols,8,3                  ; @protocols
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_rc_validate_filter
.subsections_via_symbols
