	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wpad_poll
_wpad_poll:                             ## @wpad_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	_PAD_GAMEPAD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-32(%rbp), %rsi
	leaq	-40(%rbp), %rcx
	movl	$1, %edx
	callq	_VPADRead
	cmpq	$0, -40(%rbp)
	jne	LBB0_2
## %bb.1:
	movl	-32(%rbp), %esi
	movq	_button_state@GOTPCREL(%rip), %r14
	movq	%r14, %rdi
	callq	_update_button_state
	movq	_analog_state@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	leaq	-32(%rbp), %r15
	movq	%r15, %rsi
	callq	_update_analog_state
	movl	(%rbx), %edi
	movq	%r14, %rsi
	movq	%r15, %rdx
	callq	_update_touch_state
	movl	-32(%rbp), %edi
	callq	_check_panic_button
LBB0_2:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PAD_GAMEPAD,4,2                ## @PAD_GAMEPAD
	.comm	_button_state,4,2               ## @button_state
	.comm	_analog_state,4,2               ## @analog_state
	.no_dead_strip	_wpad_poll
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wpad_poll
_wpad_poll:                             ; @wpad_poll
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
Lloh0:
	adrp	x8, _PAD_GAMEPAD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PAD_GAMEPAD@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x1, sp, #8
	mov	x3, sp
	mov	w2, #1
	bl	_VPADRead
	ldr	x8, [sp]
	cbnz	x8, LBB0_2
; %bb.1:
	ldr	w1, [sp, #8]
Lloh3:
	adrp	x19, _button_state@GOTPAGE
Lloh4:
	ldr	x19, [x19, _button_state@GOTPAGEOFF]
	mov	x0, x19
	bl	_update_button_state
Lloh5:
	adrp	x20, _analog_state@GOTPAGE
Lloh6:
	ldr	x20, [x20, _analog_state@GOTPAGEOFF]
	ldr	w0, [x20]
	add	x1, sp, #8
	bl	_update_analog_state
	ldr	w0, [x20]
	add	x2, sp, #8
	mov	x1, x19
	bl	_update_touch_state
	ldr	w0, [sp, #8]
	bl	_check_panic_button
LBB0_2:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_PAD_GAMEPAD,4,2                ; @PAD_GAMEPAD
	.comm	_button_state,4,2               ; @button_state
	.comm	_analog_state,4,2               ; @analog_state
	.no_dead_strip	_wpad_poll
.subsections_via_symbols
