	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i8042_filter
_i8042_filter:                          ## @i8042_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movl	%esi, %ebx
	movl	%edi, %r15d
	movq	_i8042_suppress_kbd_ack@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	callq	_unlikely
	movzbl	%bl, %esi
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movl	%r15d, %eax
	andb	$-5, %al
	cmpb	$-6, %al
	jne	LBB0_4
## %bb.2:
	movl	%esi, %eax
	notl	%eax
	movq	_I8042_STR_AUXDATA@GOTPCREL(%rip), %rcx
	movzbl	(%rcx), %ecx
	andl	%eax, %ecx
	je	LBB0_4
## %bb.3:
	decl	(%r12)
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_6
LBB0_4:
	movzbl	%r15b, %edi
	movq	%r14, %rdx
	callq	_i8042_platform_filter
	testq	%rax, %rax
	je	LBB0_8
## %bb.5:
	leaq	L_.str.1(%rip), %rdi
LBB0_6:
	callq	_dbg
	movl	$1, %eax
	jmp	LBB0_7
LBB0_8:
	xorl	%eax, %eax
LBB0_7:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_i8042_suppress_kbd_ack,4,2     ## @i8042_suppress_kbd_ack
	.comm	_I8042_STR_AUXDATA,1,0          ## @I8042_STR_AUXDATA
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Extra keyboard ACK - filtered out\n"

L_.str.1:                               ## @.str.1
	.asciz	"Filtered out by platform filter\n"

	.no_dead_strip	_i8042_filter
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i8042_filter
_i8042_filter:                          ; @i8042_filter
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x22, _i8042_suppress_kbd_ack@GOTPAGE
Lloh1:
	ldr	x22, [x22, _i8042_suppress_kbd_ack@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	_unlikely
	cbz	x0, LBB0_4
; %bb.1:
	and	w8, w21, #0xfffffffb
	cmp	w8, #250
	b.ne	LBB0_4
; %bb.2:
Lloh2:
	adrp	x8, _I8042_STR_AUXDATA@GOTPAGE
Lloh3:
	ldr	x8, [x8, _I8042_STR_AUXDATA@GOTPAGEOFF]
	ldrb	w8, [x8]
	bic	w8, w8, w20
	cbz	w8, LBB0_4
; %bb.3:
	ldr	w8, [x22]
	sub	w8, w8, #1
	str	w8, [x22]
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_6
LBB0_4:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	bl	_i8042_platform_filter
	cbz	x0, LBB0_7
; %bb.5:
Lloh6:
	adrp	x0, l_.str.1@PAGE
Lloh7:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_6:
	bl	_dbg
	mov	w0, #1
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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_i8042_suppress_kbd_ack,4,2     ; @i8042_suppress_kbd_ack
	.comm	_I8042_STR_AUXDATA,1,0          ; @I8042_STR_AUXDATA
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Extra keyboard ACK - filtered out\n"

l_.str.1:                               ; @.str.1
	.asciz	"Filtered out by platform filter\n"

	.no_dead_strip	_i8042_filter
.subsections_via_symbols
