	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_joy_read_button                ## -- Begin function joy_read_button
	.p2align	4, 0x90
_joy_read_button:                       ## @joy_read_button
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	cmpl	%esi, (%rdi)
	jge	LBB0_2
## %bb.1:
	movl	$-1, %eax
	popq	%rbp
	retq
LBB0_2:
	movq	8(%rdi), %rax
	movslq	%esi, %rcx
	leaq	(%rcx,%rax), %rsi
	decq	%rsi
	popq	%rbp
	jmp	_joy_read_element               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_joy_read_button                ; -- Begin function joy_read_button
	.p2align	2
_joy_read_button:                       ; @joy_read_button
	.cfi_startproc
; %bb.0:
	ldr	w8, [x0]
	cmp	w8, w1
	b.ge	LBB0_2
; %bb.1:
	mov	w0, #-1
	ret
LBB0_2:
	sub	w8, w1, #1
	ldr	x9, [x0, #8]
	add	x1, x9, w8, sxtw
	b	_joy_read_element
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
