	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function android_input_set_sensor_state
_android_input_set_sensor_state:        ## @android_input_set_sensor_state
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	_g_android@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	testl	%ecx, %ecx
	movl	$60, %ebx
	cmovnel	%ecx, %ebx
	cmpl	$129, %edx
	je	LBB0_7
## %bb.1:
	xorl	%eax, %eax
	cmpl	$128, %r14d
	jne	LBB0_10
## %bb.2:
	movl	4(%r12), %esi
	testl	%esi, %esi
	jne	LBB0_5
## %bb.3:
	movq	%r12, %rdi
	callq	_android_input_enable_sensor_manager
	movl	4(%r12), %esi
	testl	%esi, %esi
	je	LBB0_4
LBB0_5:
	movl	8(%r12), %edi
	callq	_ASensorEventQueue_enableSensor
	movl	4(%r12), %esi
	movl	$129, %r15d
	testl	%esi, %esi
	je	LBB0_9
## %bb.6:
	movl	8(%r12), %edi
	movl	$1000, %eax                     ## imm = 0x3E8
	xorl	%edx, %edx
	divl	%ebx
	imull	$1000, %eax, %edx               ## imm = 0x3E8
	callq	_ASensorEventQueue_setEventRate
	jmp	LBB0_9
LBB0_7:
	movl	4(%r12), %esi
	movl	$128, %r15d
	testl	%esi, %esi
	je	LBB0_9
## %bb.8:
	movl	8(%r12), %edi
	callq	_ASensorEventQueue_disableSensor
LBB0_9:
	movl	(%r12), %edi
	movl	%r15d, %esi
	callq	_BIT64_CLEAR
	movl	(%r12), %edi
	movl	%r14d, %esi
	callq	_BIT64_SET
	movl	$1, %eax
LBB0_10:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movl	$129, %r15d
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_g_android,8,3                  ## @g_android
	.no_dead_strip	_android_input_set_sensor_state
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function android_input_set_sensor_state
_android_input_set_sensor_state:        ; @android_input_set_sensor_state
	.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, x2
Lloh0:
	adrp	x8, _g_android@GOTPAGE
Lloh1:
	ldr	x8, [x8, _g_android@GOTPAGEOFF]
Lloh2:
	ldr	x20, [x8]
	mov	w8, #60
	cmp	w3, #0
	csel	w21, w8, w3, eq
	cmp	w2, #129
	b.eq	LBB0_7
; %bb.1:
	cmp	w19, #128
	b.ne	LBB0_11
; %bb.2:
	ldr	w1, [x20, #4]
	cbnz	w1, LBB0_4
; %bb.3:
	mov	x0, x20
	bl	_android_input_enable_sensor_manager
	ldr	w1, [x20, #4]
	cbz	w1, LBB0_6
LBB0_4:
	ldr	w0, [x20, #8]
	bl	_ASensorEventQueue_enableSensor
	ldr	w1, [x20, #4]
	cbz	w1, LBB0_6
; %bb.5:
	ldr	w0, [x20, #8]
	mov	w8, #1000
	udiv	w9, w8, w21
	mul	w2, w9, w8
	bl	_ASensorEventQueue_setEventRate
LBB0_6:
	mov	w1, #129
	b	LBB0_10
LBB0_7:
	ldr	w1, [x20, #4]
	cbz	w1, LBB0_9
; %bb.8:
	ldr	w0, [x20, #8]
	bl	_ASensorEventQueue_disableSensor
LBB0_9:
	mov	w1, #128
LBB0_10:
	ldr	w0, [x20]
	bl	_BIT64_CLEAR
	ldr	w0, [x20]
	mov	x1, x19
	bl	_BIT64_SET
	mov	w0, #1
	b	LBB0_12
LBB0_11:
	mov	w0, #0
LBB0_12:
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_g_android,8,3                  ; @g_android
	.no_dead_strip	_android_input_set_sensor_state
.subsections_via_symbols
