	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function uinput_fetch_next_event
_uinput_fetch_next_event:               ## @uinput_fetch_next_event
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	16(%rdi), %rdi
	callq	_spin_lock_irq
	movq	(%r15), %rcx
	movq	8(%r15), %rsi
	cmpq	%rsi, %rcx
	je	LBB0_5
## %bb.1:
	movq	24(%r15), %rax
	movl	(%rax,%rsi,4), %eax
	movl	%eax, (%r14)
	leaq	1(%rsi), %rax
	movq	_UINPUT_BUFFER_SIZE@GOTPCREL(%rip), %rdx
	movslq	(%rdx), %rdi
	movq	%rax, %rdx
	orq	%rdi, %rdx
	shrq	$32, %rdx
	je	LBB0_2
## %bb.3:
	xorl	%edx, %edx
	divq	%rdi
	jmp	LBB0_4
LBB0_2:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%edi
                                        ## kill: def $edx killed $edx def $rdx
LBB0_4:
	movq	%rdx, 8(%r15)
LBB0_5:
	xorl	%ebx, %ebx
	cmpq	%rsi, %rcx
	setne	%bl
	movq	16(%r15), %rdi
	callq	_spin_unlock_irq
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_UINPUT_BUFFER_SIZE,4,2         ## @UINPUT_BUFFER_SIZE
	.no_dead_strip	_uinput_fetch_next_event
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function uinput_fetch_next_event
_uinput_fetch_next_event:               ; @uinput_fetch_next_event
	.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	x20, x1
	mov	x19, x0
	ldr	x0, [x0, #16]
	bl	_spin_lock_irq
	ldp	x8, x9, [x19]
	cmp	x8, x9
	b.eq	LBB0_2
; %bb.1:
	ldr	x10, [x19, #24]
	ldr	w10, [x10, x9, lsl #2]
	str	w10, [x20]
	add	x10, x9, #1
Lloh0:
	adrp	x11, _UINPUT_BUFFER_SIZE@GOTPAGE
Lloh1:
	ldr	x11, [x11, _UINPUT_BUFFER_SIZE@GOTPAGEOFF]
Lloh2:
	ldrsw	x11, [x11]
	udiv	x12, x10, x11
	msub	x10, x12, x11, x10
	str	x10, [x19, #8]
LBB0_2:
	cmp	x8, x9
	cset	w20, ne
	ldr	x0, [x19, #16]
	bl	_spin_unlock_irq
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_UINPUT_BUFFER_SIZE,4,2         ; @UINPUT_BUFFER_SIZE
	.no_dead_strip	_uinput_fetch_next_event
.subsections_via_symbols
