	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ams_idev_poll
_ams_idev_poll:                         ## @ams_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	%r15
	pushq	%r14
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rbx
	movq	_ams_info@GOTPCREL(%rip), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	leaq	-36(%rbp), %rdi
	leaq	-32(%rbp), %rsi
	leaq	-28(%rbp), %rdx
	callq	_ams_sensors
	movl	-36(%rbp), %eax
	subl	24(%r14), %eax
	movl	%eax, -36(%rbp)
	movl	16(%r14), %ecx
	subl	%ecx, -32(%rbp)
	movl	8(%r14), %ecx
	subl	%ecx, -28(%rbp)
	movq	_ABS_X@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_invert@GOTPCREL(%rip), %r15
	movl	%eax, %edx
	negl	%edx
	cmpq	$0, (%r15)
	cmovel	%eax, %edx
	movq	%rbx, %rdi
	callq	_input_report_abs
	movq	_ABS_Y@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-32(%rbp), %eax
	movl	%eax, %edx
	negl	%edx
	cmpq	$0, (%r15)
	cmovel	%eax, %edx
	movq	%rbx, %rdi
	callq	_input_report_abs
	movq	_ABS_Z@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-28(%rbp), %edx
	movq	%rbx, %rdi
	callq	_input_report_abs
	movq	%rbx, %rdi
	callq	_input_sync
	movq	%r14, %rdi
	callq	_mutex_unlock
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ams_info,32,3                  ## @ams_info
	.comm	_ABS_X,4,2                      ## @ABS_X
	.comm	_invert,8,3                     ## @invert
	.comm	_ABS_Y,4,2                      ## @ABS_Y
	.comm	_ABS_Z,4,2                      ## @ABS_Z
	.no_dead_strip	_ams_idev_poll
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ams_idev_poll
_ams_idev_poll:                         ; @ams_idev_poll
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	ldr	x20, [x0]
Lloh0:
	adrp	x19, _ams_info@GOTPAGE
Lloh1:
	ldr	x19, [x19, _ams_info@GOTPAGEOFF]
	mov	x0, x19
	bl	_mutex_lock
	add	x0, sp, #12
	add	x1, sp, #8
	add	x2, sp, #4
	bl	_ams_sensors
	ldr	w8, [x19, #24]
	ldp	w10, w9, [sp, #8]
	sub	w8, w9, w8
	ldr	w9, [x19, #16]
	sub	w9, w10, w9
	stp	w9, w8, [sp, #8]
	ldr	w9, [x19, #8]
	ldr	w10, [sp, #4]
	sub	w9, w10, w9
	str	w9, [sp, #4]
Lloh2:
	adrp	x9, _ABS_X@GOTPAGE
Lloh3:
	ldr	x9, [x9, _ABS_X@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x9]
Lloh5:
	adrp	x21, _invert@GOTPAGE
Lloh6:
	ldr	x21, [x21, _invert@GOTPAGEOFF]
	ldr	x9, [x21]
	cmp	x9, #0
	cneg	w2, w8, ne
	mov	x0, x20
	bl	_input_report_abs
Lloh7:
	adrp	x8, _ABS_Y@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ABS_Y@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	ldr	x8, [x21]
	ldr	w9, [sp, #8]
	cmp	x8, #0
	cneg	w2, w9, ne
	mov	x0, x20
	bl	_input_report_abs
Lloh10:
	adrp	x8, _ABS_Z@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ABS_Z@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	ldr	w2, [sp, #4]
	mov	x0, x20
	bl	_input_report_abs
	mov	x0, x20
	bl	_input_sync
	mov	x0, x19
	bl	_mutex_unlock
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_ams_info,32,3                  ; @ams_info
	.comm	_ABS_X,4,2                      ; @ABS_X
	.comm	_invert,8,3                     ; @invert
	.comm	_ABS_Y,4,2                      ; @ABS_Y
	.comm	_ABS_Z,4,2                      ; @ABS_Z
	.no_dead_strip	_ams_idev_poll
.subsections_via_symbols
