	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function udev_get_mouse
_udev_get_mouse:                        ## @udev_get_mouse
	.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, %r15d
	movq	%rdi, %r12
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_config_get_ptr
	movq	%rax, %r13
	movq	_MAX_USERS@GOTPCREL(%rip), %rax
	cmpl	%r15d, (%rax)
	jbe	LBB0_9
## %bb.1:
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_video_driver_has_focus
	testl	%eax, %eax
	je	LBB0_9
## %bb.2:
	movl	(%r12), %r9d
	xorl	%r14d, %r14d
	testq	%r9, %r9
	je	LBB0_9
## %bb.3:
	movq	8(%r12), %rcx
	movq	_UDEV_INPUT_KEYBOARD@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	%r15d, %r8d
	xorl	%edi, %edi
	xorl	%ebx, %ebx
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	%rdi
	cmpq	%rdi, %r9
	je	LBB0_9
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rcx,%rdi,8), %rsi
	cmpq	%rdx, (%rsi)
	je	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	(%r13), %rax
	cmpl	(%rax,%r8,4), %ebx
	je	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	incl	%ebx
	jmp	LBB0_8
LBB0_6:
	addq	$8, %rsi
	movq	%rsi, %r14
LBB0_9:
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_USERS,4,2                  ## @MAX_USERS
	.comm	_UDEV_INPUT_KEYBOARD,8,3        ## @UDEV_INPUT_KEYBOARD
	.no_dead_strip	_udev_get_mouse
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function udev_get_mouse
_udev_get_mouse:                        ; @udev_get_mouse
	.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	x21, x0
	bl	_config_get_ptr
Lloh0:
	adrp	x8, _MAX_USERS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX_USERS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w20
	b.ls	LBB0_8
; %bb.1:
	mov	x19, x0
	bl	_video_driver_has_focus
	cbz	w0, LBB0_8
; %bb.2:
	ldr	w8, [x21]
	cbz	w8, LBB0_8
; %bb.3:
	mov	w9, #0
	ldr	x10, [x21, #8]
Lloh3:
	adrp	x11, _UDEV_INPUT_KEYBOARD@GOTPAGE
Lloh4:
	ldr	x11, [x11, _UDEV_INPUT_KEYBOARD@GOTPAGEOFF]
Lloh5:
	ldr	x11, [x11]
	mov	w12, w20
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x10, x10, #8
	subs	x8, x8, #1
	b.eq	LBB0_8
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x13, [x10]
	ldr	x14, [x13]
	cmp	x14, x11
	b.eq	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x14, [x19]
	ldr	w14, [x14, x12, lsl #2]
	cmp	w9, w14
	b.eq	LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	add	w9, w9, #1
	b	LBB0_4
LBB0_8:
	mov	x0, #0
LBB0_9:
	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_10:
	add	x0, x13, #8
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_USERS,4,2                  ; @MAX_USERS
	.comm	_UDEV_INPUT_KEYBOARD,8,3        ; @UDEV_INPUT_KEYBOARD
	.no_dead_strip	_udev_get_mouse
.subsections_via_symbols
