	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function acer_gsensor_event
_acer_gsensor_event:                    ## @acer_gsensor_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	%rbx
	subq	$104, %rsp
	.cfi_offset %rbx, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -16(%rbp)
	movq	_ACER_CAP_ACCEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_has_cap
	movl	$-1, %ebx
	testl	%eax, %eax
	je	LBB0_4
## %bb.1:
	movl	$80, -112(%rbp)
	leaq	-96(%rbp), %rax
	movq	%rax, -104(%rbp)
	movq	_gsensor_handle@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	leaq	-112(%rbp), %rcx
	xorl	%edx, %edx
	callq	_acpi_evaluate_object
	movl	%eax, %edi
	callq	_ACPI_FAILURE
	testq	%rax, %rax
	jne	LBB0_4
## %bb.2:
	cmpl	$4, -96(%rbp)
	jne	LBB0_4
## %bb.3:
	movq	_acer_wmi_accel_dev@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movq	_ABS_X@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-88(%rbp), %rax
	movl	(%rax), %edx
	callq	_input_report_abs
	movl	(%rbx), %edi
	movq	_ABS_Y@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-88(%rbp), %rax
	movl	8(%rax), %edx
	callq	_input_report_abs
	movl	(%rbx), %edi
	movq	_ABS_Z@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-88(%rbp), %rax
	movl	16(%rax), %edx
	callq	_input_report_abs
	movl	(%rbx), %edi
	callq	_input_sync
	xorl	%ebx, %ebx
LBB0_4:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-16(%rbp), %rax
	jne	LBB0_6
## %bb.5:
	movl	%ebx, %eax
	addq	$104, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_6:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ACER_CAP_ACCEL,4,2             ## @ACER_CAP_ACCEL
	.comm	_gsensor_handle,4,2             ## @gsensor_handle
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"RDVL"

	.comm	_acer_wmi_accel_dev,4,2         ## @acer_wmi_accel_dev
	.comm	_ABS_X,4,2                      ## @ABS_X
	.comm	_ABS_Y,4,2                      ## @ABS_Y
	.comm	_ABS_Z,4,2                      ## @ABS_Z
	.no_dead_strip	_acer_gsensor_event
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function acer_gsensor_event
_acer_gsensor_event:                    ; @acer_gsensor_event
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
Lloh3:
	adrp	x8, _ACER_CAP_ACCEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ACER_CAP_ACCEL@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_has_cap
	cbz	w0, LBB0_2
; %bb.1:
	mov	w8, #80
	str	w8, [sp, #8]
	add	x8, sp, #24
	str	x8, [sp, #16]
Lloh6:
	adrp	x8, _gsensor_handle@GOTPAGE
Lloh7:
	ldr	x8, [x8, _gsensor_handle@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	add	x3, sp, #8
	mov	x2, #0
	bl	_acpi_evaluate_object
	bl	_ACPI_FAILURE
	ldr	w8, [sp, #24]
	cmp	x0, #0
	ccmp	w8, #4, #0, eq
	b.eq	LBB0_3
LBB0_2:
	mov	w0, #-1
	b	LBB0_4
LBB0_3:
Lloh11:
	adrp	x19, _acer_wmi_accel_dev@GOTPAGE
Lloh12:
	ldr	x19, [x19, _acer_wmi_accel_dev@GOTPAGEOFF]
	ldr	w0, [x19]
Lloh13:
	adrp	x8, _ABS_X@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ABS_X@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	ldr	x8, [sp, #32]
	ldr	w2, [x8]
	bl	_input_report_abs
	ldr	w0, [x19]
Lloh16:
	adrp	x8, _ABS_Y@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ABS_Y@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	ldr	x8, [sp, #32]
	ldr	w2, [x8, #8]
	bl	_input_report_abs
	ldr	w0, [x19]
Lloh19:
	adrp	x8, _ABS_Z@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ABS_Z@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	ldr	x8, [sp, #32]
	ldr	w2, [x8, #16]
	bl	_input_report_abs
	ldr	w0, [x19]
	bl	_input_sync
	mov	w0, #0
LBB0_4:
	ldur	x8, [x29, #-24]
Lloh22:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh23:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_6
; %bb.5:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_6:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_ACER_CAP_ACCEL,4,2             ; @ACER_CAP_ACCEL
	.comm	_gsensor_handle,4,2             ; @gsensor_handle
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"RDVL"

	.comm	_acer_wmi_accel_dev,4,2         ; @acer_wmi_accel_dev
	.comm	_ABS_X,4,2                      ; @ABS_X
	.comm	_ABS_Y,4,2                      ; @ABS_Y
	.comm	_ABS_Z,4,2                      ; @ABS_Z
	.no_dead_strip	_acer_gsensor_event
.subsections_via_symbols
