	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rmi_event
_rmi_event:                             ## @rmi_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
	movl	%ecx, %r14d
	movq	%rdx, %r15
	movq	%rsi, %rbx
	callq	_hid_get_drvdata
	movl	(%rax), %edx
	movq	_RMI_DEVICE@GOTPCREL(%rip), %rsi
	xorl	%ecx, %ecx
	testl	%edx, (%rsi)
	je	LBB0_11
## %bb.1:
	movq	(%rbx), %rsi
	movq	_HID_GD_POINTER@GOTPCREL(%rip), %rdi
	cmpq	(%rdi), %rsi
	je	LBB0_3
## %bb.2:
	movq	_HID_GD_MOUSE@GOTPCREL(%rip), %rdi
	cmpq	(%rdi), %rsi
	jne	LBB0_11
LBB0_3:
	movq	_RMI_DEVICE_HAS_PHYS_BUTTONS@GOTPCREL(%rip), %rsi
	testl	%edx, (%rsi)
	je	LBB0_9
## %bb.4:
	movl	(%r15), %edx
	movq	_HID_USAGE_PAGE@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	andl	%edx, %esi
	movq	_HID_UP_BUTTON@GOTPCREL(%rip), %rdi
	cmpl	(%rdi), %esi
	je	LBB0_11
## %bb.5:
	movq	_HID_GD_X@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %edx
	jne	LBB0_6
## %bb.8:
	testl	%r14d, %r14d
	jne	LBB0_9
	jmp	LBB0_10
LBB0_6:
	testl	%r14d, %r14d
	jne	LBB0_9
## %bb.7:
	movq	_HID_GD_Y@GOTPCREL(%rip), %rsi
	movl	$1, %ecx
	cmpl	(%rsi), %edx
	je	LBB0_11
LBB0_9:
	addq	$4, %rax
	movq	%rax, %rdi
	callq	_schedule_work
LBB0_10:
	movl	$1, %ecx
LBB0_11:
	movl	%ecx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RMI_DEVICE,4,2                 ## @RMI_DEVICE
	.comm	_HID_GD_POINTER,8,3             ## @HID_GD_POINTER
	.comm	_HID_GD_MOUSE,8,3               ## @HID_GD_MOUSE
	.comm	_RMI_DEVICE_HAS_PHYS_BUTTONS,4,2 ## @RMI_DEVICE_HAS_PHYS_BUTTONS
	.comm	_HID_USAGE_PAGE,4,2             ## @HID_USAGE_PAGE
	.comm	_HID_UP_BUTTON,4,2              ## @HID_UP_BUTTON
	.comm	_HID_GD_X,4,2                   ## @HID_GD_X
	.comm	_HID_GD_Y,4,2                   ## @HID_GD_Y
	.no_dead_strip	_rmi_event
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rmi_event
_rmi_event:                             ; @rmi_event
	.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, x3
	mov	x20, x2
	mov	x21, x1
	bl	_hid_get_drvdata
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _RMI_DEVICE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _RMI_DEVICE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.1:
	ldr	x9, [x21]
Lloh3:
	adrp	x10, _HID_GD_POINTER@GOTPAGE
Lloh4:
	ldr	x10, [x10, _HID_GD_POINTER@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
Lloh6:
	adrp	x11, _HID_GD_MOUSE@GOTPAGE
Lloh7:
	ldr	x11, [x11, _HID_GD_MOUSE@GOTPAGEOFF]
Lloh8:
	ldr	x11, [x11]
	cmp	x9, x10
	ccmp	x9, x11, #4, ne
	b.ne	LBB0_4
; %bb.2:
Lloh9:
	adrp	x9, _RMI_DEVICE_HAS_PHYS_BUTTONS@GOTPAGE
Lloh10:
	ldr	x9, [x9, _RMI_DEVICE_HAS_PHYS_BUTTONS@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_9
; %bb.3:
	ldr	w8, [x20]
Lloh12:
	adrp	x9, _HID_USAGE_PAGE@GOTPAGE
Lloh13:
	ldr	x9, [x9, _HID_USAGE_PAGE@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	and	w9, w9, w8
Lloh15:
	adrp	x10, _HID_UP_BUTTON@GOTPAGE
Lloh16:
	ldr	x10, [x10, _HID_UP_BUTTON@GOTPAGEOFF]
Lloh17:
	ldr	w10, [x10]
	cmp	w9, w10
	b.ne	LBB0_5
LBB0_4:
	mov	w0, #0
	b	LBB0_11
LBB0_5:
Lloh18:
	adrp	x9, _HID_GD_X@GOTPAGE
Lloh19:
	ldr	x9, [x9, _HID_GD_X@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_7
; %bb.6:
	cbnz	w19, LBB0_9
	b	LBB0_10
LBB0_7:
	cbnz	w19, LBB0_9
; %bb.8:
Lloh21:
	adrp	x9, _HID_GD_Y@GOTPAGE
Lloh22:
	ldr	x9, [x9, _HID_GD_Y@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	cmp	w8, w9
	b.eq	LBB0_10
LBB0_9:
	add	x0, x0, #4
	bl	_schedule_work
LBB0_10:
	mov	w0, #1
LBB0_11:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_RMI_DEVICE,4,2                 ; @RMI_DEVICE
	.comm	_HID_GD_POINTER,8,3             ; @HID_GD_POINTER
	.comm	_HID_GD_MOUSE,8,3               ; @HID_GD_MOUSE
	.comm	_RMI_DEVICE_HAS_PHYS_BUTTONS,4,2 ; @RMI_DEVICE_HAS_PHYS_BUTTONS
	.comm	_HID_USAGE_PAGE,4,2             ; @HID_USAGE_PAGE
	.comm	_HID_UP_BUTTON,4,2              ; @HID_UP_BUTTON
	.comm	_HID_GD_X,4,2                   ; @HID_GD_X
	.comm	_HID_GD_Y,4,2                   ; @HID_GD_Y
	.no_dead_strip	_rmi_event
.subsections_via_symbols
