	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function handleAbsEvent
LCPI0_0:
	.long	0xbf800000                      ## float -1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_handleAbsEvent:                        ## @handleAbsEvent
	.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, %r10d
	movq	(%rdi), %rsi
	movslq	%r10d, %r9
	movl	(%rsi,%r9,4), %esi
	movq	_ABS_HAT0X@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	cmpl	%r9d, %r8d
	jg	LBB0_8
## %bb.1:
	movq	_ABS_HAT3Y@GOTPCREL(%rip), %rcx
	cmpl	%r10d, (%rcx)
	jl	LBB0_8
## %bb.2:
	subl	%r8d, %r10d
	movl	%r10d, %eax
	shrl	$31, %eax
	addl	%r10d, %eax
	movl	%eax, %ecx
	andl	$-2, %ecx
	subl	%ecx, %r10d
	sarl	%eax
	movq	8(%rdi), %rcx
	cltq
	movq	(%rcx,%rax,8), %rcx
	movslq	%r10d, %rax
	testl	%edx, %edx
	je	LBB0_3
## %bb.4:
	js	LBB0_5
## %bb.6:
	movl	$2, (%rcx,%rax,4)
	jmp	LBB0_7
LBB0_8:
	movq	16(%rdi), %rax
	cvtsi2ss	%edx, %xmm0
	cvtsi2ssl	(%rax,%r9,8), %xmm2
	movss	4(%rax,%r9,8), %xmm1            ## xmm1 = mem[0],zero,zero,zero
	subss	%xmm1, %xmm2
	cvttss2si	%xmm2, %eax
	testl	%eax, %eax
	je	LBB0_10
## %bb.9:
	subss	%xmm1, %xmm0
	xorps	%xmm1, %xmm1
	cvtsi2ss	%eax, %xmm1
	divss	%xmm1, %xmm0
	addss	%xmm0, %xmm0
	addss	LCPI0_0(%rip), %xmm0
LBB0_10:
	popq	%rbp
	jmp	__glfwInputJoystickAxis         ## TAILCALL
LBB0_3:
	movl	$0, (%rcx,%rax,4)
	jmp	LBB0_7
LBB0_5:
	movl	$1, (%rcx,%rax,4)
LBB0_7:
	movslq	(%rcx), %rax
	movslq	4(%rcx), %rcx
	leaq	(%rax,%rax,2), %rax
	leaq	_handleAbsEvent.stateMap(%rip), %rdx
	addq	%rax, %rdx
	movsbl	(%rcx,%rdx), %edx
	popq	%rbp
	jmp	__glfwInputJoystickHat          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ABS_HAT0X,4,2                  ## @ABS_HAT0X
	.comm	_ABS_HAT3Y,4,2                  ## @ABS_HAT3Y
	.section	__TEXT,__const
_handleAbsEvent.stateMap:               ## @handleAbsEvent.stateMap
	.ascii	"\210\200\207"
	.ascii	"\206\204\205"
	.ascii	"\203\201\202"

	.no_dead_strip	_handleAbsEvent
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function handleAbsEvent
_handleAbsEvent:                        ; @handleAbsEvent
	.cfi_startproc
; %bb.0:
	mov	x8, x1
	ldr	x9, [x0]
	ldr	w1, [x9, w1, sxtw #2]
Lloh0:
	adrp	x9, _ABS_HAT0X@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ABS_HAT0X@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x10, _ABS_HAT3Y@GOTPAGE
Lloh4:
	ldr	x10, [x10, _ABS_HAT3Y@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	cmp	w9, w8
	ccmp	w10, w8, #8, le
	b.ge	LBB0_4
; %bb.1:
	sxtw	x8, w8
	ldr	x9, [x0, #16]
	scvtf	s0, w2
	add	x8, x9, x8, lsl #3
	ldp	s2, s1, [x8]
	scvtf	s2, s2
	fsub	s2, s2, s1
	fcvtzs	w8, s2
	cbz	w8, LBB0_3
; %bb.2:
	fsub	s0, s0, s1
	scvtf	s1, w8
	fdiv	s0, s0, s1
	fmov	s1, #-1.00000000
	fmov	s2, #2.00000000
	fmadd	s0, s0, s2, s1
LBB0_3:
	b	__glfwInputJoystickAxis
LBB0_4:
	sub	w8, w8, w9
	cmp	w8, #0
	cinc	w9, w8, lt
	asr	w10, w9, #1
	and	w9, w9, #0xfffffffe
	sub	w9, w8, w9
	ldr	x8, [x0, #8]
	ldr	x8, [x8, w10, sxtw #3]
	cbz	w2, LBB0_7
; %bb.5:
	sxtw	x9, w9
	tbnz	w2, #31, LBB0_8
; %bb.6:
	mov	w10, #2
	b	LBB0_9
LBB0_7:
	str	wzr, [x8, w9, sxtw #2]
	b	LBB0_10
LBB0_8:
	mov	w10, #1
LBB0_9:
	str	w10, [x8, x9, lsl #2]
LBB0_10:
	ldpsw	x9, x8, [x8]
	add	x9, x9, x9, lsl #1
Lloh6:
	adrp	x10, _handleAbsEvent.stateMap@PAGE
Lloh7:
	add	x10, x10, _handleAbsEvent.stateMap@PAGEOFF
	add	x9, x10, x9
	ldrsb	w2, [x9, x8]
	b	__glfwInputJoystickHat
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_ABS_HAT0X,4,2                  ; @ABS_HAT0X
	.comm	_ABS_HAT3Y,4,2                  ; @ABS_HAT3Y
	.section	__TEXT,__const
_handleAbsEvent.stateMap:               ; @handleAbsEvent.stateMap
	.ascii	"\210\200\207"
	.ascii	"\206\204\205"
	.ascii	"\203\201\202"

	.no_dead_strip	_handleAbsEvent
.subsections_via_symbols
