	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_PAD_SubStickX                  ## -- Begin function PAD_SubStickX
	.p2align	4, 0x90
_PAD_SubStickX:                         ## @PAD_SubStickX
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_PAD_CHAN0@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	cmpl	%edi, (%rcx)
	jg	LBB0_4
## %bb.1:
	movq	_PAD_CHAN3@GOTPCREL(%rip), %rcx
	cmpl	%edi, (%rcx)
	jl	LBB0_4
## %bb.2:
	movq	___pad_keys@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movslq	%edi, %rdx
	cmpl	$-1, (%rcx,%rdx,8)
	je	LBB0_4
## %bb.3:
	movl	4(%rcx,%rdx,8), %eax
LBB0_4:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PAD_CHAN0,4,2                  ## @PAD_CHAN0
	.comm	_PAD_CHAN3,4,2                  ## @PAD_CHAN3
	.comm	___pad_keys,8,3                 ## @__pad_keys
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_PAD_SubStickX                  ; -- Begin function PAD_SubStickX
	.p2align	2
_PAD_SubStickX:                         ; @PAD_SubStickX
	.cfi_startproc
; %bb.0:
                                        ; kill: def $w0 killed $w0 def $x0
Lloh0:
	adrp	x8, _PAD_CHAN0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PAD_CHAN0@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _PAD_CHAN3@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PAD_CHAN3@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, w0
	ccmp	w9, w0, #8, le
	b.lt	LBB0_3
; %bb.1:
Lloh6:
	adrp	x8, ___pad_keys@GOTPAGE
Lloh7:
	ldr	x8, [x8, ___pad_keys@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	sbfiz	x9, x0, #3, #32
	ldr	w9, [x8, x9]
	cmn	w9, #1
	b.eq	LBB0_3
; %bb.2:
	sxtw	x9, w0
	add	x8, x8, x9, lsl #3
	ldr	w0, [x8, #4]
	ret
LBB0_3:
	mov	w0, #0
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_PAD_CHAN0,4,2                  ; @PAD_CHAN0
	.comm	_PAD_CHAN3,4,2                  ; @PAD_CHAN3
	.comm	___pad_keys,8,3                 ; @__pad_keys
.subsections_via_symbols
