	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __evdev_is_filtered
___evdev_is_filtered:                   ## @__evdev_is_filtered
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_EV_SYN@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	cmpl	%esi, (%rax)
	je	LBB0_8
## %bb.1:
	movl	%esi, %ebx
	movq	_EV_CNT@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	jbe	LBB0_8
## %bb.2:
	movl	%edx, %r14d
	movq	%rdi, %r12
	movq	(%rdi), %rax
	movq	(%rax), %rsi
	testq	%rsi, %rsi
	je	LBB0_5
## %bb.3:
	movl	%ebx, %edi
	callq	_test_bit
	testl	%eax, %eax
	je	LBB0_4
LBB0_5:
	movl	%ebx, %edi
	callq	_evdev_get_mask_cnt
	movl	%r14d, %ecx
	cmpq	%rcx, %rax
	jbe	LBB0_8
## %bb.6:
	movq	(%r12), %rax
	movl	%ebx, %ecx
	movq	(%rax,%rcx,8), %rsi
	testq	%rsi, %rsi
	je	LBB0_8
## %bb.7:
	movl	%r14d, %edi
	callq	_test_bit
	xorl	%r15d, %r15d
	testl	%eax, %eax
	sete	%r15b
	jmp	LBB0_8
LBB0_4:
	movl	$1, %r15d
LBB0_8:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EV_SYN,4,2                     ## @EV_SYN
	.comm	_EV_CNT,4,2                     ## @EV_CNT
	.no_dead_strip	___evdev_is_filtered
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __evdev_is_filtered
___evdev_is_filtered:                   ; @__evdev_is_filtered
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
Lloh0:
	adrp	x8, _EV_SYN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EV_SYN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _EV_CNT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _EV_CNT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, w1
	ccmp	w9, w1, #0, ne
	b.ls	LBB0_6
; %bb.1:
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldr	x8, [x0]
	ldr	x1, [x8]
	cbz	x1, LBB0_3
; %bb.2:
	mov	x0, x20
	bl	_test_bit
	cbz	w0, LBB0_8
LBB0_3:
	mov	x0, x20
	bl	_evdev_get_mask_cnt
	cmp	x0, w19, uxtw
	b.ls	LBB0_6
; %bb.4:
	ldr	x8, [x21]
	ldr	x1, [x8, w20, uxtw #3]
	cbz	x1, LBB0_6
; %bb.5:
	mov	x0, x19
	bl	_test_bit
	cmp	w0, #0
	cset	w0, eq
	b	LBB0_7
LBB0_6:
	mov	w0, #0
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_8:
	mov	w0, #1
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EV_SYN,4,2                     ; @EV_SYN
	.comm	_EV_CNT,4,2                     ; @EV_CNT
	.no_dead_strip	___evdev_is_filtered
.subsections_via_symbols
