	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__glfwPlatformGetJoystickAxes   ## -- Begin function _glfwPlatformGetJoystickAxes
	.p2align	4, 0x90
__glfwPlatformGetJoystickAxes:          ## @_glfwPlatformGetJoystickAxes
	.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
	subq	$96, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movl	%edi, %ebx
	movq	__glfw@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%edi, %rdi
	movq	(%rax,%rdi,8), %r15
	leaq	-88(%rbp), %rsi
                                        ## kill: def $edi killed $edi killed $rdi
	movl	$52, %edx
	callq	__glfw_joyGetDevCaps
	movq	_JOYERR_NOERROR@GOTPCREL(%rip), %r12
	cmpq	(%r12), %rax
	jne	LBB0_11
## %bb.1:
	movq	_JOY_RETURNX@GOTPCREL(%rip), %rax
	movq	_JOY_RETURNY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_JOY_RETURNZ@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_JOY_RETURNR@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	$32, -120(%rbp)
	movq	_JOY_RETURNU@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_JOY_RETURNV@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, -116(%rbp)
	leaq	-120(%rbp), %rsi
	movl	%ebx, %edi
	callq	__glfw_joyGetPosEx
	cmpq	(%r12), %rax
	jne	LBB0_11
## %bb.2:
	movl	-92(%rbp), %edi
	movl	-44(%rbp), %edx
	movl	-40(%rbp), %esi
	callq	_normalizeAxis
	movslq	(%r14), %rax
	leal	1(%rax), %ecx
	movl	%ecx, (%r14)
	movss	%xmm0, (%r15,%rax,4)
	movl	-96(%rbp), %edi
	movl	-52(%rbp), %edx
	movl	-48(%rbp), %esi
	callq	_normalizeAxis
	movslq	(%r14), %rax
	leal	1(%rax), %ecx
	movl	%ecx, (%r14)
	movss	%xmm0, (%r15,%rax,4)
	movl	-88(%rbp), %eax
	movq	_JOYCAPS_HASZ@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_4
## %bb.3:
	movl	-100(%rbp), %edi
	movl	-60(%rbp), %edx
	movl	-56(%rbp), %esi
	callq	_normalizeAxis
	movslq	(%r14), %rax
	leal	1(%rax), %ecx
	movl	%ecx, (%r14)
	movss	%xmm0, (%r15,%rax,4)
	movl	-88(%rbp), %eax
LBB0_4:
	movq	_JOYCAPS_HASR@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_6
## %bb.5:
	movl	-104(%rbp), %edi
	movl	-68(%rbp), %edx
	movl	-64(%rbp), %esi
	callq	_normalizeAxis
	movslq	(%r14), %rax
	leal	1(%rax), %ecx
	movl	%ecx, (%r14)
	movss	%xmm0, (%r15,%rax,4)
	movl	-88(%rbp), %eax
LBB0_6:
	movq	_JOYCAPS_HASU@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_8
## %bb.7:
	movl	-108(%rbp), %edi
	movl	-76(%rbp), %edx
	movl	-72(%rbp), %esi
	callq	_normalizeAxis
	movslq	(%r14), %rax
	leal	1(%rax), %ecx
	movl	%ecx, (%r14)
	movss	%xmm0, (%r15,%rax,4)
	movl	-88(%rbp), %eax
LBB0_8:
	movq	_JOYCAPS_HASV@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_12
## %bb.9:
	movl	-112(%rbp), %edi
	movl	-84(%rbp), %edx
	movl	-80(%rbp), %esi
	callq	_normalizeAxis
	movslq	(%r14), %rax
	leal	1(%rax), %ecx
	movl	%ecx, (%r14)
	movss	%xmm0, (%r15,%rax,4)
	jmp	LBB0_12
LBB0_11:
	xorl	%r15d, %r15d
LBB0_12:
	movq	%r15, %rax
	addq	$96, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	__glfw,8,3                      ## @_glfw
	.comm	_JOYERR_NOERROR,8,3             ## @JOYERR_NOERROR
	.comm	_JOY_RETURNX,4,2                ## @JOY_RETURNX
	.comm	_JOY_RETURNY,4,2                ## @JOY_RETURNY
	.comm	_JOY_RETURNZ,4,2                ## @JOY_RETURNZ
	.comm	_JOY_RETURNR,4,2                ## @JOY_RETURNR
	.comm	_JOY_RETURNU,4,2                ## @JOY_RETURNU
	.comm	_JOY_RETURNV,4,2                ## @JOY_RETURNV
	.comm	_JOYCAPS_HASZ,4,2               ## @JOYCAPS_HASZ
	.comm	_JOYCAPS_HASR,4,2               ## @JOYCAPS_HASR
	.comm	_JOYCAPS_HASU,4,2               ## @JOYCAPS_HASU
	.comm	_JOYCAPS_HASV,4,2               ## @JOYCAPS_HASV
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__glfwPlatformGetJoystickAxes   ; -- Begin function _glfwPlatformGetJoystickAxes
	.p2align	2
__glfwPlatformGetJoystickAxes:          ; @_glfwPlatformGetJoystickAxes
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, __glfw@GOTPAGE
Lloh1:
	ldr	x8, [x8, __glfw@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x19, [x8, w0, sxtw #3]
	add	x1, sp, #40
	mov	w2, #52
	bl	__glfw_joyGetDevCaps
Lloh3:
	adrp	x22, _JOYERR_NOERROR@GOTPAGE
Lloh4:
	ldr	x22, [x22, _JOYERR_NOERROR@GOTPAGEOFF]
	ldr	x8, [x22]
	cmp	x0, x8
	b.ne	LBB0_10
; %bb.1:
Lloh5:
	adrp	x8, _JOY_RETURNX@GOTPAGE
Lloh6:
	ldr	x8, [x8, _JOY_RETURNX@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _JOY_RETURNY@GOTPAGE
Lloh9:
	ldr	x9, [x9, _JOY_RETURNY@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
Lloh11:
	adrp	x10, _JOY_RETURNZ@GOTPAGE
Lloh12:
	ldr	x10, [x10, _JOY_RETURNZ@GOTPAGEOFF]
	orr	w8, w9, w8
Lloh13:
	ldr	w9, [x10]
	orr	w8, w8, w9
Lloh14:
	adrp	x9, _JOY_RETURNR@GOTPAGE
Lloh15:
	ldr	x9, [x9, _JOY_RETURNR@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh17:
	adrp	x9, _JOY_RETURNU@GOTPAGE
Lloh18:
	ldr	x9, [x9, _JOY_RETURNU@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
Lloh20:
	adrp	x10, _JOY_RETURNV@GOTPAGE
Lloh21:
	ldr	x10, [x10, _JOY_RETURNV@GOTPAGEOFF]
	orr	w8, w8, w9
Lloh22:
	ldr	w9, [x10]
	orr	w8, w8, w9
	mov	w9, #32
	stp	w9, w8, [sp, #8]
	add	x1, sp, #8
	mov	x0, x21
	bl	__glfw_joyGetPosEx
	ldr	x8, [x22]
	cmp	x0, x8
	b.ne	LBB0_10
; %bb.2:
	ldr	w0, [sp, #36]
	ldp	w2, w1, [sp, #84]
	bl	_normalizeAxis
	ldrsw	x8, [x20]
	add	w9, w8, #1
	str	w9, [x20]
	str	s0, [x19, x8, lsl #2]
	ldr	w0, [sp, #32]
	ldp	w2, w1, [sp, #76]
	bl	_normalizeAxis
	ldrsw	x8, [x20]
	add	w9, w8, #1
	str	w9, [x20]
	str	s0, [x19, x8, lsl #2]
	ldr	w8, [sp, #40]
Lloh23:
	adrp	x9, _JOYCAPS_HASZ@GOTPAGE
Lloh24:
	ldr	x9, [x9, _JOYCAPS_HASZ@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.3:
	ldr	w0, [sp, #28]
	ldp	w2, w1, [sp, #68]
	bl	_normalizeAxis
	ldrsw	x8, [x20]
	add	w9, w8, #1
	str	w9, [x20]
	str	s0, [x19, x8, lsl #2]
	ldr	w8, [sp, #40]
LBB0_4:
Lloh26:
	adrp	x9, _JOYCAPS_HASR@GOTPAGE
Lloh27:
	ldr	x9, [x9, _JOYCAPS_HASR@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.5:
	ldr	w0, [sp, #24]
	ldp	w2, w1, [sp, #60]
	bl	_normalizeAxis
	ldrsw	x8, [x20]
	add	w9, w8, #1
	str	w9, [x20]
	str	s0, [x19, x8, lsl #2]
	ldr	w8, [sp, #40]
LBB0_6:
Lloh29:
	adrp	x9, _JOYCAPS_HASU@GOTPAGE
Lloh30:
	ldr	x9, [x9, _JOYCAPS_HASU@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.7:
	ldr	w0, [sp, #20]
	ldp	w2, w1, [sp, #52]
	bl	_normalizeAxis
	ldrsw	x8, [x20]
	add	w9, w8, #1
	str	w9, [x20]
	str	s0, [x19, x8, lsl #2]
	ldr	w8, [sp, #40]
LBB0_8:
Lloh32:
	adrp	x9, _JOYCAPS_HASV@GOTPAGE
Lloh33:
	ldr	x9, [x9, _JOYCAPS_HASV@GOTPAGEOFF]
Lloh34:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_11
; %bb.9:
	ldr	w0, [sp, #16]
	ldp	w2, w1, [sp, #44]
	bl	_normalizeAxis
	ldrsw	x8, [x20]
	add	w9, w8, #1
	str	w9, [x20]
	str	s0, [x19, x8, lsl #2]
	b	LBB0_11
LBB0_10:
	mov	x19, #0
LBB0_11:
	mov	x0, x19
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	__glfw,8,3                      ; @_glfw
	.comm	_JOYERR_NOERROR,8,3             ; @JOYERR_NOERROR
	.comm	_JOY_RETURNX,4,2                ; @JOY_RETURNX
	.comm	_JOY_RETURNY,4,2                ; @JOY_RETURNY
	.comm	_JOY_RETURNZ,4,2                ; @JOY_RETURNZ
	.comm	_JOY_RETURNR,4,2                ; @JOY_RETURNR
	.comm	_JOY_RETURNU,4,2                ; @JOY_RETURNU
	.comm	_JOY_RETURNV,4,2                ; @JOY_RETURNV
	.comm	_JOYCAPS_HASZ,4,2               ; @JOYCAPS_HASZ
	.comm	_JOYCAPS_HASR,4,2               ; @JOYCAPS_HASR
	.comm	_JOYCAPS_HASU,4,2               ; @JOYCAPS_HASU
	.comm	_JOYCAPS_HASV,4,2               ; @JOYCAPS_HASV
.subsections_via_symbols
