	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_glfwSetJoystickUserPointer     ## -- Begin function glfwSetJoystickUserPointer
	.p2align	4, 0x90
_glfwSetJoystickUserPointer:            ## @glfwSetJoystickUserPointer
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movl	%edi, %ebx
	movq	_GLFW_JOYSTICK_1@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpl	%ebx, (%rax)
	setle	%dil
	callq	_assert
	movq	_GLFW_JOYSTICK_LAST@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpl	%ebx, (%rax)
	setge	%dil
	callq	_assert
	xorl	%eax, %eax
	callq	__GLFW_REQUIRE_INIT
	movq	__glfw@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%ebx, %rcx
	shlq	$4, %rcx
	cmpl	$0, 8(%rax,%rcx)
	je	LBB0_2
## %bb.1:
	movq	%r14, (%rax,%rcx)
LBB0_2:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GLFW_JOYSTICK_1,4,2            ## @GLFW_JOYSTICK_1
	.comm	_GLFW_JOYSTICK_LAST,4,2         ## @GLFW_JOYSTICK_LAST
	.comm	__glfw,8,3                      ## @_glfw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_glfwSetJoystickUserPointer     ; -- Begin function glfwSetJoystickUserPointer
	.p2align	2
_glfwSetJoystickUserPointer:            ; @glfwSetJoystickUserPointer
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _GLFW_JOYSTICK_1@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GLFW_JOYSTICK_1@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w0
	cset	w0, le
	bl	_assert
Lloh3:
	adrp	x8, _GLFW_JOYSTICK_LAST@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GLFW_JOYSTICK_LAST@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w8, w20
	cset	w0, ge
	bl	_assert
	bl	__GLFW_REQUIRE_INIT
Lloh6:
	adrp	x8, __glfw@GOTPAGE
Lloh7:
	ldr	x8, [x8, __glfw@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	add	x9, x8, w20, sxtw #4
	ldr	w9, [x9, #8]
	cbz	w9, LBB0_2
; %bb.1:
	sxtw	x9, w20
	lsl	x9, x9, #4
	str	x19, [x8, x9]
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_GLFW_JOYSTICK_1,4,2            ; @GLFW_JOYSTICK_1
	.comm	_GLFW_JOYSTICK_LAST,4,2         ; @GLFW_JOYSTICK_LAST
	.comm	__glfw,8,3                      ; @_glfw
.subsections_via_symbols
