	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ctr_joypad_button
_ctr_joypad_button:                     ## @ctr_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
	movl	%esi, %ecx
	movl	$1, %edx
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %edx
	movq	_pad_state@GOTPCREL(%rip), %rax
	andl	(%rax), %edx
	movq	_DEFAULT_MAX_PADS@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	cmpl	%edi, (%rcx)
	cmoval	%edx, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DEFAULT_MAX_PADS,4,2           ## @DEFAULT_MAX_PADS
	.comm	_pad_state,4,2                  ## @pad_state
	.no_dead_strip	_ctr_joypad_button
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ctr_joypad_button
_ctr_joypad_button:                     ; @ctr_joypad_button
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _DEFAULT_MAX_PADS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DEFAULT_MAX_PADS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _pad_state@GOTPAGE
Lloh4:
	ldr	x9, [x9, _pad_state@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	mov	w10, #1
	lsl	w10, w10, w1
	and	w9, w9, w10
	cmp	w8, w0
	csel	w0, w9, wzr, hi
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_DEFAULT_MAX_PADS,4,2           ; @DEFAULT_MAX_PADS
	.comm	_pad_state,4,2                  ; @pad_state
	.no_dead_strip	_ctr_joypad_button
.subsections_via_symbols
