	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function android_input_poll
_android_input_poll:                    ## @android_input_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	xorl	%eax, %eax
	callq	_config_get_ptr
	movq	%rax, %r15
	movq	_g_android@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	_input_config_binds@GOTPCREL(%rip), %r12
	movq	_RARCH_PAUSE_TOGGLE@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rax
	movq	(%rax), %rax
	movq	(%r13), %rsi
	cmpq	$0, (%rax,%rsi,8)
	je	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r14, %rdi
	callq	_android_input_key_pressed
	movl	$-1, %edi
	testq	%rax, %rax
	jne	LBB0_4
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	(%r15), %edi
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_ALooper_pollAll
	testl	%eax, %eax
	js	LBB0_16
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$128, %eax
	je	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$129, %eax
	je	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$130, %eax
	jne	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r14, %rdi
	callq	_android_input_poll_input
	cmpq	$0, (%rbx)
	je	LBB0_12
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%r14, %rdi
	callq	_android_input_poll_user
LBB0_11:                                ##   in Loop: Header=BB0_1 Depth=1
	cmpq	$0, (%rbx)
	jne	LBB0_18
LBB0_12:                                ##   in Loop: Header=BB0_1 Depth=1
	cmpq	$0, 8(%rbx)
	je	LBB0_1
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_1 Depth=1
	xorl	%eax, %eax
	callq	_android_input_poll_main_cmd
	cmpq	$0, (%rbx)
	je	LBB0_12
LBB0_18:
	movq	_RARCH_CTL_SET_SHUTDOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_rarch_ctl                      ## TAILCALL
LBB0_16:
	cmpq	$0, 16(%rbx)
	je	LBB0_17
## %bb.19:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_android_input_poll_memcpy      ## TAILCALL
LBB0_13:
	movq	_RARCH_CTL_IS_PAUSED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_rarch_ctl
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:
	movq	_CMD_EVENT_REINIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_command_event
LBB0_15:
	movq	_APP_CMD_REINIT_DONE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_android_app_write_cmd          ## TAILCALL
LBB0_17:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_g_android,8,3                  ## @g_android
	.comm	_input_config_binds,8,3         ## @input_config_binds
	.comm	_RARCH_PAUSE_TOGGLE,8,3         ## @RARCH_PAUSE_TOGGLE
	.comm	_RARCH_CTL_SET_SHUTDOWN,4,2     ## @RARCH_CTL_SET_SHUTDOWN
	.comm	_RARCH_CTL_IS_PAUSED,4,2        ## @RARCH_CTL_IS_PAUSED
	.comm	_CMD_EVENT_REINIT,4,2           ## @CMD_EVENT_REINIT
	.comm	_APP_CMD_REINIT_DONE,4,2        ## @APP_CMD_REINIT_DONE
	.no_dead_strip	_android_input_poll
.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
_android_input_poll:                    ; @android_input_poll
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x0
	bl	_config_get_ptr
	mov	x21, x0
Lloh0:
	adrp	x8, _g_android@GOTPAGE
Lloh1:
	ldr	x8, [x8, _g_android@GOTPAGEOFF]
Lloh2:
	ldr	x19, [x8]
Lloh3:
	adrp	x22, _input_config_binds@GOTPAGE
Lloh4:
	ldr	x22, [x22, _input_config_binds@GOTPAGEOFF]
Lloh5:
	adrp	x23, _RARCH_PAUSE_TOGGLE@GOTPAGE
Lloh6:
	ldr	x23, [x23, _RARCH_PAUSE_TOGGLE@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22]
	ldr	x8, [x8]
	ldr	x1, [x23]
	ldr	x8, [x8, x1, lsl #3]
	cbz	x8, LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x20
	bl	_android_input_key_pressed
	cbz	x0, LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	w0, #-1
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_1 Depth=1
	ldr	w0, [x21]
LBB0_5:                                 ;   in Loop: Header=BB0_1 Depth=1
	mov	x1, #0
	mov	x2, #0
	mov	x3, #0
	bl	_ALooper_pollAll
	tbnz	w0, #31, LBB0_15
; %bb.6:                                ;   in Loop: Header=BB0_1 Depth=1
	cmp	w0, #128
	b.eq	LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_1 Depth=1
	cmp	w0, #129
	b.eq	LBB0_13
; %bb.8:                                ;   in Loop: Header=BB0_1 Depth=1
	cmp	w0, #130
	b.ne	LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x20
	bl	_android_input_poll_input
	ldr	x8, [x19]
	cbz	x8, LBB0_12
	b	LBB0_14
LBB0_10:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x20
	bl	_android_input_poll_user
LBB0_11:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x8, [x19]
	cbnz	x8, LBB0_14
LBB0_12:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_1
	b	LBB0_17
LBB0_13:                                ;   in Loop: Header=BB0_1 Depth=1
	bl	_android_input_poll_main_cmd
	ldr	x8, [x19]
	cbz	x8, LBB0_12
LBB0_14:
Lloh7:
	adrp	x8, _RARCH_CTL_SET_SHUTDOWN@GOTPAGE
Lloh8:
	ldr	x8, [x8, _RARCH_CTL_SET_SHUTDOWN@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	mov	x1, #0
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_rarch_ctl
LBB0_15:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_20
; %bb.16:
	mov	x0, x20
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_android_input_poll_memcpy
LBB0_17:
Lloh10:
	adrp	x8, _RARCH_CTL_IS_PAUSED@GOTPAGE
Lloh11:
	ldr	x8, [x8, _RARCH_CTL_IS_PAUSED@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	mov	x1, #0
	bl	_rarch_ctl
	cbz	x0, LBB0_19
; %bb.18:
Lloh13:
	adrp	x8, _CMD_EVENT_REINIT@GOTPAGE
Lloh14:
	ldr	x8, [x8, _CMD_EVENT_REINIT@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	mov	x1, #0
	bl	_command_event
LBB0_19:
Lloh16:
	adrp	x8, _APP_CMD_REINIT_DONE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _APP_CMD_REINIT_DONE@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	mov	x0, x19
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_android_app_write_cmd
LBB0_20:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_g_android,8,3                  ; @g_android
	.comm	_input_config_binds,8,3         ; @input_config_binds
	.comm	_RARCH_PAUSE_TOGGLE,8,3         ; @RARCH_PAUSE_TOGGLE
	.comm	_RARCH_CTL_SET_SHUTDOWN,4,2     ; @RARCH_CTL_SET_SHUTDOWN
	.comm	_RARCH_CTL_IS_PAUSED,4,2        ; @RARCH_CTL_IS_PAUSED
	.comm	_CMD_EVENT_REINIT,4,2           ; @CMD_EVENT_REINIT
	.comm	_APP_CMD_REINIT_DONE,4,2        ; @APP_CMD_REINIT_DONE
	.no_dead_strip	_android_input_poll
.subsections_via_symbols
