	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __evdev_flush_queue
___evdev_flush_queue:                   ## @__evdev_flush_queue
	.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
	movl	%esi, %r14d
	movq	%rdi, %r13
	movl	(%rdi), %r15d
	movq	_EV_SYN@GOTPCREL(%rip), %r12
	xorl	%edi, %edi
	cmpl	%esi, (%r12)
	sete	%dil
	callq	_BUG_ON
	movl	4(%r13), %eax
	movl	%eax, 8(%r13)
	cmpl	12(%r13), %eax
	jne	LBB0_3
## %bb.1:
	movl	%eax, %r9d
LBB0_2:
	movl	%r9d, 12(%r13)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	decl	%r15d
	movl	$1, %esi
	movq	_SYN_REPORT@GOTPCREL(%rip), %r8
	movl	%eax, %r9d
	jmp	LBB0_6
LBB0_15:                                ##   in Loop: Header=BB0_6 Depth=1
	incl	%esi
LBB0_4:                                 ##   in Loop: Header=BB0_6 Depth=1
	movl	%esi, %edi
LBB0_5:                                 ##   in Loop: Header=BB0_6 Depth=1
	incl	%eax
	andl	%r15d, %eax
	movl	%edi, %esi
	cmpl	12(%r13), %eax
	je	LBB0_2
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r13), %rdx
	movl	%eax, %eax
	movq	%rax, %rcx
	shlq	$4, %rcx
	movl	(%rdx,%rcx), %edi
	cmpl	(%r12), %edi
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	8(%rdx,%rcx), %rbx
	cmpq	(%r8), %rbx
	sete	%bl
	cmpl	%r14d, %edi
	je	LBB0_4
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	xorl	%ebx, %ebx
	cmpl	%r14d, %edi
	je	LBB0_4
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=1
	xorl	%edi, %edi
	testb	%bl, %bl
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_6 Depth=1
	testl	%esi, %esi
	je	LBB0_5
LBB0_11:                                ##   in Loop: Header=BB0_6 Depth=1
	cmpl	%eax, %r9d
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_6 Depth=1
	addq	%rdx, %rcx
	movl	%r9d, %r10d
	shlq	$4, %r10
	movups	(%rcx), %xmm0
	movups	%xmm0, (%rdx,%r10)
LBB0_13:                                ##   in Loop: Header=BB0_6 Depth=1
	incl	%r9d
	andl	%r15d, %r9d
	testb	%bl, %bl
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_6 Depth=1
	movl	%r9d, 8(%r13)
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_EV_SYN,4,2                     ## @EV_SYN
	.comm	_SYN_REPORT,8,3                 ## @SYN_REPORT
	.no_dead_strip	___evdev_flush_queue
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __evdev_flush_queue
___evdev_flush_queue:                   ; @__evdev_flush_queue
	.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	x20, x1
	mov	x19, x0
	ldr	w22, [x0]
Lloh0:
	adrp	x21, _EV_SYN@GOTPAGE
Lloh1:
	ldr	x21, [x21, _EV_SYN@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, w1
	cset	w0, eq
	bl	_BUG_ON
	ldr	w14, [x19, #4]
	str	w14, [x19, #8]
	ldr	w8, [x19, #12]
	cmp	w14, w8
	b.ne	LBB0_3
; %bb.1:
	mov	x9, x14
LBB0_2:
	str	w9, [x19, #12]
	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_3:
	sub	w8, w22, #1
	mov	w11, #1
Lloh2:
	adrp	x10, _SYN_REPORT@GOTPAGE
Lloh3:
	ldr	x10, [x10, _SYN_REPORT@GOTPAGEOFF]
	mov	x9, x14
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	w11, #0
	str	w9, [x19, #8]
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	w12, w12, #1
	and	w14, w12, w8
	ldr	w12, [x19, #12]
	cmp	w14, w12
	b.eq	LBB0_2
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x13, [x19, #16]
	mov	w12, w14
	add	x14, x13, w14, uxtw #4
	ldr	w16, [x14]
	ldr	w15, [x21]
	cmp	w16, w15
	b.ne	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x15, x13, x12, lsl #4
	ldr	x15, [x15, #8]
	ldr	x17, [x10]
	cmp	x15, x17
	cset	w15, eq
	cmp	w16, w20
	b.eq	LBB0_5
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	w15, #0
	cmp	w16, w20
	b.eq	LBB0_5
LBB0_9:                                 ;   in Loop: Header=BB0_6 Depth=1
	cbz	w15, LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=1
	cbz	w11, LBB0_5
LBB0_11:                                ;   in Loop: Header=BB0_6 Depth=1
	cmp	w9, w12
	b.eq	LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	q0, [x14]
	str	q0, [x13, w9, uxtw #4]
LBB0_13:                                ;   in Loop: Header=BB0_6 Depth=1
	add	w9, w9, #1
	and	w9, w9, w8
	cbnz	w15, LBB0_4
; %bb.14:                               ;   in Loop: Header=BB0_6 Depth=1
	add	w11, w11, #1
	b	LBB0_5
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_EV_SYN,4,2                     ; @EV_SYN
	.comm	_SYN_REPORT,8,3                 ; @SYN_REPORT
	.no_dead_strip	___evdev_flush_queue
.subsections_via_symbols
