	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function linuxraw_joypad_button
_linuxraw_joypad_button:                ## @linuxraw_joypad_button
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_NUM_BUTTONS@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	cmpl	%esi, (%rcx)
	jle	LBB0_2
## %bb.1:
	movq	_linuxraw_pads@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%edi, %ecx
	movl	(%rax,%rcx,4), %edi
	callq	_BIT32_GET
	movq	%rax, %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	setne	%al
LBB0_2:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_linuxraw_pads,8,3              ## @linuxraw_pads
	.comm	_NUM_BUTTONS,4,2                ## @NUM_BUTTONS
	.no_dead_strip	_linuxraw_joypad_button
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function linuxraw_joypad_button
_linuxraw_joypad_button:                ; @linuxraw_joypad_button
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x8, _NUM_BUTTONS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NUM_BUTTONS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w1
	b.le	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _linuxraw_pads@GOTPAGE
Lloh4:
	ldr	x8, [x8, _linuxraw_pads@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldr	w0, [x8, w0, uxtw #2]
	bl	_BIT32_GET
	cmp	x0, #0
	cset	w0, ne
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_2:
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_linuxraw_pads,8,3              ; @linuxraw_pads
	.comm	_NUM_BUTTONS,4,2                ; @NUM_BUTTONS
	.no_dead_strip	_linuxraw_joypad_button
.subsections_via_symbols
