	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ps4_joypad_get_buttons
_ps4_joypad_get_buttons:                ## @ps4_joypad_get_buttons
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	%rsi, %rax
	movq	_PS4_MAX_ORBISPADS@GOTPCREL(%rip), %rcx
	cmpl	%edi, (%rcx)
	jbe	LBB0_2
## %bb.1:
	movq	_pad_state@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%edi, %edx
	movl	(%rcx,%rdx,4), %esi
	movq	%rax, %rdi
	popq	%rbp
	jmp	_BITS_COPY16_PTR                ## TAILCALL
LBB0_2:
	movq	%rax, %rdi
	popq	%rbp
	jmp	_BIT256_CLEAR_ALL_PTR           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PS4_MAX_ORBISPADS,4,2          ## @PS4_MAX_ORBISPADS
	.comm	_pad_state,8,3                  ## @pad_state
	.no_dead_strip	_ps4_joypad_get_buttons
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ps4_joypad_get_buttons
_ps4_joypad_get_buttons:                ; @ps4_joypad_get_buttons
	.cfi_startproc
; %bb.0:
	mov	x8, x1
Lloh0:
	adrp	x9, _PS4_MAX_ORBISPADS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PS4_MAX_ORBISPADS@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w9, w0
	b.ls	LBB0_2
; %bb.1:
Lloh3:
	adrp	x9, _pad_state@GOTPAGE
Lloh4:
	ldr	x9, [x9, _pad_state@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	ldr	w1, [x9, w0, uxtw #2]
	mov	x0, x8
	b	_BITS_COPY16_PTR
LBB0_2:
	mov	x0, x8
	b	_BIT256_CLEAR_ALL_PTR
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_PS4_MAX_ORBISPADS,4,2          ; @PS4_MAX_ORBISPADS
	.comm	_pad_state,8,3                  ; @pad_state
	.no_dead_strip	_ps4_joypad_get_buttons
.subsections_via_symbols
