	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_glfwJoystickPresent            ## -- Begin function glfwJoystickPresent
	.p2align	4, 0x90
_glfwJoystickPresent:                   ## @glfwJoystickPresent
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	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), %r15
	xorl	%edi, %edi
	cmpl	%ebx, (%r15)
	setge	%dil
	callq	_assert
	movq	_GLFW_FALSE@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	__GLFW_REQUIRE_INIT_OR_RETURN
	testl	%ebx, %ebx
	js	LBB0_2
## %bb.1:
	cmpl	%ebx, (%r15)
	jl	LBB0_2
## %bb.3:
	movq	__glfw@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%ebx, %ecx
	cmpl	$0, (%rax,%rcx,4)
	je	LBB0_4
## %bb.5:
	leaq	(%rax,%rcx,4), %rdi
	movq	__GLFW_POLL_PRESENCE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	__glfwPlatformPollJoystick      ## TAILCALL
LBB0_2:
	movq	_GLFW_INVALID_ENUM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	callq	__glfwInputError
LBB0_4:
	movl	(%r14), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	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_FALSE,4,2                 ## @GLFW_FALSE
	.comm	_GLFW_INVALID_ENUM,4,2          ## @GLFW_INVALID_ENUM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid joystick ID %i"

	.comm	__glfw,8,3                      ## @_glfw
	.comm	__GLFW_POLL_PRESENCE,4,2        ## @_GLFW_POLL_PRESENCE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_glfwJoystickPresent            ; -- Begin function glfwJoystickPresent
	.p2align	2
_glfwJoystickPresent:                   ; @glfwJoystickPresent
	.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
	mov	x19, 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	x21, _GLFW_JOYSTICK_LAST@GOTPAGE
Lloh4:
	ldr	x21, [x21, _GLFW_JOYSTICK_LAST@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, w19
	cset	w0, ge
	bl	_assert
Lloh5:
	adrp	x20, _GLFW_FALSE@GOTPAGE
Lloh6:
	ldr	x20, [x20, _GLFW_FALSE@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	__GLFW_REQUIRE_INIT_OR_RETURN
	tbnz	w19, #31, LBB0_4
; %bb.1:
	ldr	w8, [x21]
	cmp	w8, w19
	b.lt	LBB0_4
; %bb.2:
Lloh7:
	adrp	x8, __glfw@GOTPAGE
Lloh8:
	ldr	x8, [x8, __glfw@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	add	x0, x8, w19, uxtw #2
	ldr	w8, [x0]
	cbz	w8, LBB0_5
; %bb.3:
Lloh10:
	adrp	x8, __GLFW_POLL_PRESENCE@GOTPAGE
Lloh11:
	ldr	x8, [x8, __GLFW_POLL_PRESENCE@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	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
	b	__glfwPlatformPollJoystick
LBB0_4:
Lloh13:
	adrp	x8, _GLFW_INVALID_ENUM@GOTPAGE
Lloh14:
	ldr	x8, [x8, _GLFW_INVALID_ENUM@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
Lloh16:
	adrp	x1, l_.str@PAGE
Lloh17:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	bl	__glfwInputError
LBB0_5:
	ldr	w0, [x20]
	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 AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_GLFW_JOYSTICK_1,4,2            ; @GLFW_JOYSTICK_1
	.comm	_GLFW_JOYSTICK_LAST,4,2         ; @GLFW_JOYSTICK_LAST
	.comm	_GLFW_FALSE,4,2                 ; @GLFW_FALSE
	.comm	_GLFW_INVALID_ENUM,4,2          ; @GLFW_INVALID_ENUM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid joystick ID %i"

	.comm	__glfw,8,3                      ; @_glfw
	.comm	__GLFW_POLL_PRESENCE,4,2        ; @_GLFW_POLL_PRESENCE
.subsections_via_symbols
