	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function linuxraw_joypad_axis
_linuxraw_joypad_axis:                  ## @linuxraw_joypad_axis
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_AXIS_NONE@GOTPCREL(%rip), %rax
	cmpq	%rsi, (%rax)
	je	LBB0_5
## %bb.1:
	movq	%rsi, %rbx
	movq	_linuxraw_pads@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movl	%edi, %r15d
	movq	%rsi, %rdi
	callq	_AXIS_NEG_GET
	movq	_NUM_AXES@GOTPCREL(%rip), %r12
	cmpq	(%r12), %rax
	jae	LBB0_3
## %bb.2:
	movq	(%r14,%r15,4), %r14
	movq	%rbx, %rdi
	callq	_AXIS_NEG_GET
	movq	(%r14,%rax,8), %rcx
	movq	%rcx, %rax
	sarq	$63, %rax
	andq	%rcx, %rax
	jmp	LBB0_6
LBB0_3:
	movq	%rbx, %rdi
	callq	_AXIS_POS_GET
	cmpq	(%r12), %rax
	jae	LBB0_5
## %bb.4:
	movq	(%r14,%r15,4), %r14
	movq	%rbx, %rdi
	callq	_AXIS_POS_GET
	movq	(%r14,%rax,8), %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	cmovgq	%rcx, %rax
	jmp	LBB0_6
LBB0_5:
	xorl	%eax, %eax
LBB0_6:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AXIS_NONE,8,3                  ## @AXIS_NONE
	.comm	_linuxraw_pads,8,3              ## @linuxraw_pads
	.comm	_NUM_AXES,8,3                   ## @NUM_AXES
	.no_dead_strip	_linuxraw_joypad_axis
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function linuxraw_joypad_axis
_linuxraw_joypad_axis:                  ; @linuxraw_joypad_axis
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
Lloh0:
	adrp	x8, _AXIS_NONE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AXIS_NONE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x1
	b.eq	LBB0_5
; %bb.1:
	mov	x19, x1
Lloh3:
	adrp	x8, _linuxraw_pads@GOTPAGE
Lloh4:
	ldr	x8, [x8, _linuxraw_pads@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	add	x20, x8, w0, uxtw #2
	mov	x0, x1
	bl	_AXIS_NEG_GET
Lloh6:
	adrp	x21, _NUM_AXES@GOTPAGE
Lloh7:
	ldr	x21, [x21, _NUM_AXES@GOTPAGEOFF]
	ldr	x8, [x21]
	cmp	x0, x8
	b.hs	LBB0_3
; %bb.2:
	ldr	x20, [x20]
	mov	x0, x19
	bl	_AXIS_NEG_GET
	ldr	x8, [x20, x0, lsl #3]
	cmp	x8, #0
	csel	x0, x8, xzr, lt
	b	LBB0_6
LBB0_3:
	mov	x0, x19
	bl	_AXIS_POS_GET
	ldr	x8, [x21]
	cmp	x0, x8
	b.hs	LBB0_5
; %bb.4:
	ldr	x20, [x20]
	mov	x0, x19
	bl	_AXIS_POS_GET
	ldr	x8, [x20, x0, lsl #3]
	cmp	x8, #0
	csel	x0, x8, xzr, gt
	b	LBB0_6
LBB0_5:
	mov	x0, #0
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_AXIS_NONE,8,3                  ; @AXIS_NONE
	.comm	_linuxraw_pads,8,3              ; @linuxraw_pads
	.comm	_NUM_AXES,8,3                   ; @NUM_AXES
	.no_dead_strip	_linuxraw_joypad_axis
.subsections_via_symbols
