	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__glfwTerminateJoysticksLinux   ## -- Begin function _glfwTerminateJoysticksLinux
	.p2align	4, 0x90
__glfwTerminateJoysticksLinux:          ## @_glfwTerminateJoysticksLinux
	.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	_GLFW_JOYSTICK_LAST@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	testl	%eax, %eax
	js	LBB0_5
## %bb.1:
	movq	$-1, %rbx
	xorl	%r15d, %r15d
	movq	__glfw@GOTPCREL(%rip), %r12
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movslq	%eax, %rcx
	incq	%rbx
	addq	$8, %r15
	cmpq	%rcx, %rbx
	jge	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%r12), %rdi
	cmpq	$0, 8(%rdi,%rbx,8)
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	addq	%r15, %rdi
	callq	_closeJoystick
	movl	(%r14), %eax
	jmp	LBB0_4
LBB0_5:
	movq	__glfw@GOTPCREL(%rip), %rbx
	leaq	16(%rbx), %rdi
	callq	_regfree
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	jle	LBB0_9
## %bb.6:
	movq	8(%rbx), %rsi
	testq	%rsi, %rsi
	jle	LBB0_8
## %bb.7:
	callq	_inotify_rm_watch
	movq	(%rbx), %rdi
LBB0_8:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_close                          ## TAILCALL
LBB0_9:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GLFW_JOYSTICK_LAST,4,2         ## @GLFW_JOYSTICK_LAST
	.comm	__glfw,32,3                     ## @_glfw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__glfwTerminateJoysticksLinux   ; -- Begin function _glfwTerminateJoysticksLinux
	.p2align	2
__glfwTerminateJoysticksLinux:          ; @_glfwTerminateJoysticksLinux
	.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	x20, _GLFW_JOYSTICK_LAST@GOTPAGE
Lloh1:
	ldr	x20, [x20, _GLFW_JOYSTICK_LAST@GOTPAGEOFF]
	ldr	w8, [x20]
Lloh2:
	adrp	x19, __glfw@GOTPAGE
Lloh3:
	ldr	x19, [x19, __glfw@GOTPAGEOFF]
	tbnz	w8, #31, LBB0_5
; %bb.1:
	mov	x21, #0
	mov	x22, #-1
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x22, x22, #1
	add	x21, x21, #8
	cmp	x22, w8, sxtw
	b.ge	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19, #24]
	add	x0, x9, x21
	ldr	x9, [x0]
	cbz	x9, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	bl	_closeJoystick
	ldr	w8, [x20]
	b	LBB0_2
LBB0_5:
	add	x0, x19, #16
	bl	_regfree
	ldr	x0, [x19]
	cmp	x0, #1
	b.lt	LBB0_9
; %bb.6:
	ldr	x1, [x19, #8]
	cmp	x1, #1
	b.lt	LBB0_8
; %bb.7:
	bl	_inotify_rm_watch
	ldr	x0, [x19]
LBB0_8:
	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	_close
LBB0_9:
	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	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_GLFW_JOYSTICK_LAST,4,2         ; @GLFW_JOYSTICK_LAST
	.comm	__glfw,32,3                     ; @_glfw
.subsections_via_symbols
