	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function applesmc_idev_poll
_applesmc_idev_poll:                    ## @applesmc_idev_poll
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -24
	movq	(%rdi), %rbx
	movq	_MOTION_SENSOR_X_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-16(%rbp), %rsi
	callq	_applesmc_read_s16
	testq	%rax, %rax
	jne	LBB0_3
## %bb.1:
	movq	_MOTION_SENSOR_Y_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-24(%rbp), %rsi
	callq	_applesmc_read_s16
	testq	%rax, %rax
	jne	LBB0_3
## %bb.2:
	xorl	%edx, %edx
	subq	-16(%rbp), %rdx
	movq	%rdx, -16(%rbp)
	movq	_ABS_X@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_rest_x@GOTPCREL(%rip), %rax
	subq	(%rax), %rdx
	movq	%rbx, %rdi
	callq	_input_report_abs
	movq	_ABS_Y@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-24(%rbp), %rdx
	movq	_rest_y@GOTPCREL(%rip), %rax
	subq	(%rax), %rdx
	movq	%rbx, %rdi
	callq	_input_report_abs
	movq	%rbx, %rdi
	callq	_input_sync
LBB0_3:
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MOTION_SENSOR_X_KEY,4,2        ## @MOTION_SENSOR_X_KEY
	.comm	_MOTION_SENSOR_Y_KEY,4,2        ## @MOTION_SENSOR_Y_KEY
	.comm	_ABS_X,4,2                      ## @ABS_X
	.comm	_rest_x,8,3                     ## @rest_x
	.comm	_ABS_Y,4,2                      ## @ABS_Y
	.comm	_rest_y,8,3                     ## @rest_y
	.no_dead_strip	_applesmc_idev_poll
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function applesmc_idev_poll
_applesmc_idev_poll:                    ; @applesmc_idev_poll
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	ldr	x19, [x0]
Lloh0:
	adrp	x8, _MOTION_SENSOR_X_KEY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MOTION_SENSOR_X_KEY@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x1, sp, #8
	bl	_applesmc_read_s16
	cbnz	x0, LBB0_3
; %bb.1:
Lloh3:
	adrp	x8, _MOTION_SENSOR_Y_KEY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MOTION_SENSOR_Y_KEY@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	mov	x1, sp
	bl	_applesmc_read_s16
	cbnz	x0, LBB0_3
; %bb.2:
	ldr	x8, [sp, #8]
Lloh6:
	adrp	x9, _rest_x@GOTPAGE
Lloh7:
	ldr	x9, [x9, _rest_x@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	neg	x8, x8
	sub	x2, x8, x9
	str	x8, [sp, #8]
Lloh9:
	adrp	x8, _ABS_X@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ABS_X@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_input_report_abs
Lloh12:
	adrp	x8, _ABS_Y@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ABS_Y@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	ldr	x8, [sp]
Lloh15:
	adrp	x9, _rest_y@GOTPAGE
Lloh16:
	ldr	x9, [x9, _rest_y@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	sub	x2, x8, x9
	mov	x0, x19
	bl	_input_report_abs
	mov	x0, x19
	bl	_input_sync
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_MOTION_SENSOR_X_KEY,4,2        ; @MOTION_SENSOR_X_KEY
	.comm	_MOTION_SENSOR_Y_KEY,4,2        ; @MOTION_SENSOR_Y_KEY
	.comm	_ABS_X,4,2                      ; @ABS_X
	.comm	_rest_x,8,3                     ; @rest_x
	.comm	_ABS_Y,4,2                      ; @ABS_Y
	.comm	_rest_y,8,3                     ; @rest_y
	.no_dead_strip	_applesmc_idev_poll
.subsections_via_symbols
