	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function android_input_poll_main_cmd
_android_input_poll_main_cmd:           ## @android_input_poll_main_cmd
	.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	_g_android@GOTPCREL(%rip), %r14
	movq	(%r14), %r15
	movl	92(%r15), %edi
	leaq	-28(%rbp), %rsi
	movl	$4, %edx
	callq	_read
	cmpl	$4, %eax
	jne	LBB0_1
## %bb.2:
	movl	-28(%rbp), %ebx
	leal	-128(%rbx), %eax
	cmpl	$13, %eax
	ja	LBB0_29
## %bb.3:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_12:
	movl	24(%r15), %edi
	callq	_slock_lock
	movl	%ebx, 8(%r15)
	jmp	LBB0_9
LBB0_1:
	movl	$-1, -28(%rbp)
LBB0_29:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_25:
	xorl	%eax, %eax
	callq	_jni_thread_getenv
	testq	%rax, %rax
	je	LBB0_29
## %bb.26:
	movq	(%r14), %rcx
	testq	%rcx, %rcx
	je	LBB0_29
## %bb.27:
	movl	(%rcx), %edx
	testl	%edx, %edx
	je	LBB0_29
## %bb.28:
	movq	8(%rcx), %rcx
	movl	(%rcx), %esi
	movq	_RETRO_RUMBLE_STRONG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	movl	$1, (%rsp)
	movq	%rax, %rdi
	movl	$-1, %ecx
	movl	$255, %r9d
	callq	_CALL_VOID_METHOD_PARAM
	jmp	LBB0_29
LBB0_14:
	movl	24(%r15), %edi
	callq	_slock_lock
	movq	$0, 48(%r15)
	jmp	LBB0_9
LBB0_11:
	movl	24(%r15), %edi
	callq	_slock_lock
	movl	$1, 4(%r15)
	jmp	LBB0_9
LBB0_4:
	movl	24(%r15), %edi
	callq	_slock_lock
	movl	$0, (%r15)
	jmp	LBB0_9
LBB0_20:
	movl	$1, -32(%rbp)
	movq	_RARCH_CTL_SET_PAUSED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-32(%rbp), %r14
	movq	%r14, %rsi
	callq	_rarch_ctl
	movq	_RARCH_CTL_SET_IDLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_rarch_ctl
	xorl	%eax, %eax
	callq	_video_driver_set_stub_frame
	movl	12(%r15), %ebx
	movl	$1, %edi
	callq	_UINT64_C
	movq	_RETRO_SENSOR_ACCELEROMETER_ENABLE@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	testl	%ebx, %eax
	je	LBB0_23
## %bb.21:
	cmpq	$0, 40(%r15)
	je	LBB0_23
## %bb.22:
	movq	_RETRO_SENSOR_ACCELEROMETER_DISABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	32(%r15), %edx
	xorl	%edi, %edi
	callq	_input_sensor_set_state
LBB0_23:
	movl	24(%r15), %edi
	callq	_slock_lock
	movl	$1, 16(%r15)
	jmp	LBB0_19
LBB0_5:
	movl	24(%r15), %edi
	callq	_slock_lock
	movl	84(%r15), %edi
	testl	%edi, %edi
	je	LBB0_7
## %bb.6:
	callq	_AInputQueue_detachLooper
LBB0_7:
	movl	88(%r15), %eax
	movl	%eax, 84(%r15)
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	leaq	L_.str(%rip), %rdi
	callq	_RARCH_LOG
	movl	80(%r15), %esi
	movl	84(%r15), %edi
	movq	_LOOPER_ID_INPUT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_AInputQueue_attachLooper
	jmp	LBB0_9
LBB0_10:
	movl	24(%r15), %edi
	callq	_slock_lock
	movq	72(%r15), %rax
	movq	%rax, 48(%r15)
	movl	$1, (%r15)
LBB0_9:
	movl	28(%r15), %edi
	callq	_scond_broadcast
	movl	24(%r15), %edi
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_slock_unlock                   ## TAILCALL
LBB0_15:
	movl	$0, -36(%rbp)
	movq	_RARCH_CTL_SET_PAUSED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-36(%rbp), %r14
	movq	%r14, %rsi
	callq	_rarch_ctl
	movq	_RARCH_CTL_SET_IDLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_rarch_ctl
	xorl	%eax, %eax
	callq	_video_driver_unset_stub_frame
	movl	12(%r15), %ebx
	movl	$1, %edi
	callq	_UINT64_C
	movq	_RETRO_SENSOR_ACCELEROMETER_ENABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	shll	%cl, %eax
	testl	%ebx, %eax
	je	LBB0_18
## %bb.16:
	cmpq	$0, 40(%r15)
	jne	LBB0_18
## %bb.17:
	movl	32(%r15), %edx
	xorl	%edi, %edi
	movl	%ecx, %esi
	callq	_input_sensor_set_state
LBB0_18:
	movl	24(%r15), %edi
	callq	_slock_lock
	movl	$0, 16(%r15)
LBB0_19:
	movl	28(%r15), %edi
	callq	_scond_broadcast
	movl	24(%r15), %edi
	callq	_slock_unlock
	jmp	LBB0_29
LBB0_24:
	leaq	L_.str.1(%rip), %rdi
	callq	_RARCH_LOG
	movl	$1, 20(%r15)
	jmp	LBB0_29
LBB0_13:
	movl	64(%r15), %edi
	movq	56(%r15), %rax
	movl	(%rax), %esi
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AConfiguration_fromAssetManager ## TAILCALL
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_25, LBB0_25-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_20, LBB0_20-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_24, LBB0_24-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
LJTI0_0:
	.long	L0_0_set_25
	.long	L0_0_set_14
	.long	L0_0_set_12
	.long	L0_0_set_12
	.long	L0_0_set_11
	.long	L0_0_set_12
	.long	L0_0_set_4
	.long	L0_0_set_12
	.long	L0_0_set_20
	.long	L0_0_set_5
	.long	L0_0_set_10
	.long	L0_0_set_15
	.long	L0_0_set_24
	.long	L0_0_set_13
	.end_data_region
                                        ## -- End function
	.comm	_g_android,8,3                  ## @g_android
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Attaching input queue to looper"

	.comm	_LOOPER_ID_INPUT,4,2            ## @LOOPER_ID_INPUT
	.comm	_RARCH_CTL_SET_PAUSED,4,2       ## @RARCH_CTL_SET_PAUSED
	.comm	_RARCH_CTL_SET_IDLE,4,2         ## @RARCH_CTL_SET_IDLE
	.comm	_RETRO_SENSOR_ACCELEROMETER_ENABLE,4,2 ## @RETRO_SENSOR_ACCELEROMETER_ENABLE
	.comm	_RETRO_SENSOR_ACCELEROMETER_DISABLE,4,2 ## @RETRO_SENSOR_ACCELEROMETER_DISABLE
L_.str.1:                               ## @.str.1
	.asciz	"APP_CMD_DESTROY\n"

	.comm	_RETRO_RUMBLE_STRONG,4,2        ## @RETRO_RUMBLE_STRONG
	.no_dead_strip	_android_input_poll_main_cmd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function android_input_poll_main_cmd
_android_input_poll_main_cmd:           ; @android_input_poll_main_cmd
	.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
Lloh0:
	adrp	x20, _g_android@GOTPAGE
Lloh1:
	ldr	x20, [x20, _g_android@GOTPAGEOFF]
	ldr	x19, [x20]
	ldr	w0, [x19, #92]
	add	x1, sp, #12
	mov	w2, #4
	bl	_read
	cmp	w0, #4
	b.ne	LBB0_4
; %bb.1:
	ldr	w21, [sp, #12]
	sub	w8, w21, #128
	cmp	w8, #13
	b.hi	LBB0_5
; %bb.2:
Lloh2:
	adrp	x9, lJTI0_0@PAGE
Lloh3:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_3
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_3:
	ldr	w0, [x19, #24]
	bl	_slock_lock
	str	w21, [x19, #8]
	b	LBB0_22
LBB0_4:
	mov	w8, #-1
	str	w8, [sp, #12]
LBB0_5:
	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
LBB0_6:
	bl	_jni_thread_getenv
	cbz	x0, LBB0_5
; %bb.7:
	ldr	x8, [x20]
	cbz	x8, LBB0_5
; %bb.8:
	ldr	w2, [x8]
	cbz	w2, LBB0_5
; %bb.9:
	ldr	x8, [x8, #8]
	ldr	w1, [x8]
Lloh4:
	adrp	x8, _RETRO_RUMBLE_STRONG@GOTPAGE
Lloh5:
	ldr	x8, [x8, _RETRO_RUMBLE_STRONG@GOTPAGEOFF]
Lloh6:
	ldr	w4, [x8]
	mov	w3, #-1
	mov	w5, #255
	mov	w6, #1
	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
	b	_CALL_VOID_METHOD_PARAM
LBB0_10:
	ldr	w0, [x19, #24]
	bl	_slock_lock
	str	xzr, [x19, #48]
	b	LBB0_22
LBB0_11:
	ldr	w0, [x19, #24]
	bl	_slock_lock
	mov	w8, #1
	str	w8, [x19, #4]
	b	LBB0_22
LBB0_12:
	ldr	w0, [x19, #24]
	bl	_slock_lock
	str	wzr, [x19]
	b	LBB0_22
LBB0_13:
	mov	w20, #1
	str	w20, [sp, #4]
Lloh7:
	adrp	x8, _RARCH_CTL_SET_PAUSED@GOTPAGE
Lloh8:
	ldr	x8, [x8, _RARCH_CTL_SET_PAUSED@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	add	x1, sp, #4
	bl	_rarch_ctl
Lloh10:
	adrp	x8, _RARCH_CTL_SET_IDLE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _RARCH_CTL_SET_IDLE@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	add	x1, sp, #4
	bl	_rarch_ctl
	bl	_video_driver_set_stub_frame
	ldr	w21, [x19, #12]
	mov	w0, #1
	bl	_UINT64_C
Lloh13:
	adrp	x8, _RETRO_SENSOR_ACCELEROMETER_ENABLE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _RETRO_SENSOR_ACCELEROMETER_ENABLE@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	lsl	w8, w0, w8
	tst	w8, w21
	b.eq	LBB0_16
; %bb.14:
	ldr	x8, [x19, #40]
	cbz	x8, LBB0_16
; %bb.15:
Lloh16:
	adrp	x8, _RETRO_SENSOR_ACCELEROMETER_DISABLE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _RETRO_SENSOR_ACCELEROMETER_DISABLE@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	ldr	w2, [x19, #32]
	mov	w0, #0
	bl	_input_sensor_set_state
LBB0_16:
	ldr	w0, [x19, #24]
	bl	_slock_lock
	str	w20, [x19, #16]
	b	LBB0_27
LBB0_17:
	ldr	w0, [x19, #24]
	bl	_slock_lock
	ldr	w0, [x19, #84]
	cbz	w0, LBB0_19
; %bb.18:
	bl	_AInputQueue_detachLooper
LBB0_19:
	ldr	w8, [x19, #88]
	str	w8, [x19, #84]
	cbz	w8, LBB0_22
; %bb.20:
Lloh19:
	adrp	x0, l_.str@PAGE
Lloh20:
	add	x0, x0, l_.str@PAGEOFF
	bl	_RARCH_LOG
	ldp	w1, w0, [x19, #80]
Lloh21:
	adrp	x8, _LOOPER_ID_INPUT@GOTPAGE
Lloh22:
	ldr	x8, [x8, _LOOPER_ID_INPUT@GOTPAGEOFF]
Lloh23:
	ldr	w2, [x8]
	mov	x3, #0
	mov	x4, #0
	bl	_AInputQueue_attachLooper
	b	LBB0_22
LBB0_21:
	ldr	w0, [x19, #24]
	bl	_slock_lock
	ldr	x8, [x19, #72]
	str	x8, [x19, #48]
	mov	w8, #1
	str	w8, [x19]
LBB0_22:
	ldr	w0, [x19, #28]
	bl	_scond_broadcast
	ldr	w0, [x19, #24]
	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
	b	_slock_unlock
LBB0_23:
	str	wzr, [sp, #8]
Lloh24:
	adrp	x8, _RARCH_CTL_SET_PAUSED@GOTPAGE
Lloh25:
	ldr	x8, [x8, _RARCH_CTL_SET_PAUSED@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
	add	x1, sp, #8
	bl	_rarch_ctl
Lloh27:
	adrp	x8, _RARCH_CTL_SET_IDLE@GOTPAGE
Lloh28:
	ldr	x8, [x8, _RARCH_CTL_SET_IDLE@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
	add	x1, sp, #8
	bl	_rarch_ctl
	bl	_video_driver_unset_stub_frame
	ldr	w20, [x19, #12]
	mov	w0, #1
	bl	_UINT64_C
Lloh30:
	adrp	x8, _RETRO_SENSOR_ACCELEROMETER_ENABLE@GOTPAGE
Lloh31:
	ldr	x8, [x8, _RETRO_SENSOR_ACCELEROMETER_ENABLE@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
	lsl	w8, w0, w1
	tst	w8, w20
	b.eq	LBB0_26
; %bb.24:
	ldr	x8, [x19, #40]
	cbnz	x8, LBB0_26
; %bb.25:
	ldr	w2, [x19, #32]
	mov	w0, #0
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_input_sensor_set_state
LBB0_26:
	ldr	w0, [x19, #24]
	bl	_slock_lock
	str	wzr, [x19, #16]
LBB0_27:
	ldr	w0, [x19, #28]
	bl	_scond_broadcast
	ldr	w0, [x19, #24]
	bl	_slock_unlock
	b	LBB0_5
LBB0_28:
Lloh33:
	adrp	x0, l_.str.1@PAGE
Lloh34:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_RARCH_LOG
	mov	w8, #1
	str	w8, [x19, #20]
	b	LBB0_5
LBB0_29:
	ldr	w0, [x19, #64]
	ldr	x8, [x19, #56]
	ldr	w1, [x8]
	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
	b	_AConfiguration_fromAssetManager
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh33, Lloh34
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_6-LBB0_3)>>2
	.byte	(LBB0_10-LBB0_3)>>2
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_11-LBB0_3)>>2
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_12-LBB0_3)>>2
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_13-LBB0_3)>>2
	.byte	(LBB0_17-LBB0_3)>>2
	.byte	(LBB0_21-LBB0_3)>>2
	.byte	(LBB0_23-LBB0_3)>>2
	.byte	(LBB0_28-LBB0_3)>>2
	.byte	(LBB0_29-LBB0_3)>>2
                                        ; -- End function
	.comm	_g_android,8,3                  ; @g_android
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Attaching input queue to looper"

	.comm	_LOOPER_ID_INPUT,4,2            ; @LOOPER_ID_INPUT
	.comm	_RARCH_CTL_SET_PAUSED,4,2       ; @RARCH_CTL_SET_PAUSED
	.comm	_RARCH_CTL_SET_IDLE,4,2         ; @RARCH_CTL_SET_IDLE
	.comm	_RETRO_SENSOR_ACCELEROMETER_ENABLE,4,2 ; @RETRO_SENSOR_ACCELEROMETER_ENABLE
	.comm	_RETRO_SENSOR_ACCELEROMETER_DISABLE,4,2 ; @RETRO_SENSOR_ACCELEROMETER_DISABLE
l_.str.1:                               ; @.str.1
	.asciz	"APP_CMD_DESTROY\n"

	.comm	_RETRO_RUMBLE_STRONG,4,2        ; @RETRO_RUMBLE_STRONG
	.no_dead_strip	_android_input_poll_main_cmd
.subsections_via_symbols
