	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__glfwInitJoysticksLinux        ## -- Begin function _glfwInitJoysticksLinux
	.p2align	4, 0x90
__glfwInitJoysticksLinux:               ## @_glfwInitJoysticksLinux
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_IN_NONBLOCK@GOTPCREL(%rip), %rax
	movq	_IN_CLOEXEC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	callq	_inotify_init1
	movq	__glfw@GOTPCREL(%rip), %r15
	movq	%rax, 8(%r15)
	testq	%rax, %rax
	jle	LBB0_2
## %bb.1:
	movq	_IN_CREATE@GOTPCREL(%rip), %rcx
	movq	_IN_ATTRIB@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	movq	_IN_DELETE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	leaq	L_.str(%rip), %rsi
	movq	%rax, %rdi
	callq	_inotify_add_watch
	movl	%eax, 20(%r15)
LBB0_2:
	leaq	16(%r15), %rbx
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_regcomp
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_GLFW_PLATFORM_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	__glfwInputError
	movq	_GLFW_FALSE@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_4:
	xorl	%r14d, %r14d
	leaq	L_.str(%rip), %rdi
	callq	_opendir
	testq	%rax, %rax
	je	LBB0_12
## %bb.5:
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_readdir
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	%rax, %r13
	xorl	%r14d, %r14d
	leaq	-76(%rbp), %r15
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	%r12, %rdi
	callq	_readdir
	movq	%rax, %r13
	testq	%rax, %rax
	je	LBB0_11
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rsi
	movq	%rbx, %rdi
	movl	$1, %edx
	movq	%r15, %rcx
	xorl	%r8d, %r8d
	callq	_regexec
	testq	%rax, %rax
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movq	%rsp, -72(%rbp)                 ## 8-byte Spill
	movq	%r15, %rbx
	movq	%r12, %r15
	movq	_PATH_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	%r12, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movl	%r14d, -52(%rbp)                ## 4-byte Spill
	movq	%rsp, %r14
	movq	(%r13), %r8
	movq	%r14, %rdi
	movl	%r12d, %esi
	movq	%r15, %r12
	movq	%rbx, %r15
	leaq	L_.str.3(%rip), %rdx
	leaq	L_.str(%rip), %rcx
	callq	_snprintf
	movq	%r14, %rdi
	movl	-52(%rbp), %r14d                ## 4-byte Reload
	callq	_openJoystickDevice
	cmpq	$1, %rax
	sbbl	$-1, %r14d
	movq	-72(%rbp), %rsp                 ## 8-byte Reload
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_10
LBB0_6:
	xorl	%r14d, %r14d
LBB0_11:
	movq	%r12, %rdi
	callq	_closedir
	movq	__glfw@GOTPCREL(%rip), %r15
LBB0_12:
	movl	(%r15), %edi
	movq	_compareJoysticks@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%r14d, %esi
	movl	$4, %edx
	callq	_qsort
	movq	_GLFW_TRUE@GOTPCREL(%rip), %rax
LBB0_13:
	movl	(%rax), %eax
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_15
## %bb.14:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"/dev/input"

	.comm	_IN_NONBLOCK,4,2                ## @IN_NONBLOCK
	.comm	_IN_CLOEXEC,4,2                 ## @IN_CLOEXEC
	.comm	__glfw,24,3                     ## @_glfw
	.comm	_IN_CREATE,4,2                  ## @IN_CREATE
	.comm	_IN_ATTRIB,4,2                  ## @IN_ATTRIB
	.comm	_IN_DELETE,4,2                  ## @IN_DELETE
L_.str.1:                               ## @.str.1
	.asciz	"^event[0-9]\\+$"

	.comm	_GLFW_PLATFORM_ERROR,4,2        ## @GLFW_PLATFORM_ERROR
L_.str.2:                               ## @.str.2
	.asciz	"Linux: Failed to compile regex"

	.comm	_GLFW_FALSE,4,2                 ## @GLFW_FALSE
	.comm	_PATH_MAX,4,2                   ## @PATH_MAX
L_.str.3:                               ## @.str.3
	.asciz	"%s/%s"

	.comm	_compareJoysticks,4,2           ## @compareJoysticks
	.comm	_GLFW_TRUE,4,2                  ## @GLFW_TRUE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__glfwInitJoysticksLinux        ; -- Begin function _glfwInitJoysticksLinux
	.p2align	2
__glfwInitJoysticksLinux:               ; @_glfwInitJoysticksLinux
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #16
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _IN_NONBLOCK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IN_NONBLOCK@GOTPAGEOFF]
	stur	x8, [x29, #-88]
Lloh5:
	ldr	w8, [x9]
Lloh6:
	adrp	x9, _IN_CLOEXEC@GOTPAGE
Lloh7:
	ldr	x9, [x9, _IN_CLOEXEC@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w0, w9, w8
	bl	_inotify_init1
Lloh9:
	adrp	x26, __glfw@GOTPAGE
Lloh10:
	ldr	x26, [x26, __glfw@GOTPAGEOFF]
	str	x0, [x26, #8]
	cmp	x0, #1
	b.lt	LBB0_2
; %bb.1:
Lloh11:
	adrp	x8, _IN_CREATE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _IN_CREATE@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	adrp	x9, _IN_ATTRIB@GOTPAGE
Lloh15:
	ldr	x9, [x9, _IN_ATTRIB@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh17:
	adrp	x9, _IN_DELETE@GOTPAGE
Lloh18:
	ldr	x9, [x9, _IN_DELETE@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	orr	w2, w8, w9
Lloh20:
	adrp	x1, l_.str@PAGE
Lloh21:
	add	x1, x1, l_.str@PAGEOFF
	bl	_inotify_add_watch
	str	w0, [x26, #20]
LBB0_2:
	add	x0, x26, #16
Lloh22:
	adrp	x1, l_.str.1@PAGE
Lloh23:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w2, #0
	bl	_regcomp
	cbz	x0, LBB0_4
; %bb.3:
Lloh24:
	adrp	x8, _GLFW_PLATFORM_ERROR@GOTPAGE
Lloh25:
	ldr	x8, [x8, _GLFW_PLATFORM_ERROR@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
Lloh27:
	adrp	x1, l_.str.2@PAGE
Lloh28:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	__glfwInputError
Lloh29:
	adrp	x8, _GLFW_FALSE@GOTPAGE
Lloh30:
	ldr	x8, [x8, _GLFW_FALSE@GOTPAGEOFF]
	b	LBB0_14
LBB0_4:
Lloh31:
	adrp	x0, l_.str@PAGE
Lloh32:
	add	x0, x0, l_.str@PAGEOFF
	bl	_opendir
	cbz	x0, LBB0_10
; %bb.5:
	mov	x20, x0
	bl	_readdir
	cbz	x0, LBB0_11
; %bb.6:
	mov	x24, x0
	mov	w19, #0
	add	x21, x26, #16
Lloh33:
	adrp	x27, _PATH_MAX@GOTPAGE
Lloh34:
	ldr	x27, [x27, _PATH_MAX@GOTPAGEOFF]
Lloh35:
	adrp	x22, l_.str.3@PAGE
Lloh36:
	add	x22, x22, l_.str.3@PAGEOFF
Lloh37:
	adrp	x23, l_.str@PAGE
Lloh38:
	add	x23, x23, l_.str@PAGEOFF
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x20
	bl	_readdir
	mov	x24, x0
	cbz	x0, LBB0_12
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x1, [x24]
	sub	x3, x29, #92
	mov	x0, x21
	mov	w2, #1
	mov	w4, #0
	bl	_regexec
	cbnz	x0, LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x28, sp
	ldr	w1, [x27]
	mov	x9, x1
Lloh39:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh40:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x1, #15
	and	x9, x9, #0x1fffffff0
	sub	x25, x8, x9
	mov	sp, x25
	ldr	x4, [x24]
	mov	x0, x25
                                        ; kill: def $w1 killed $w1 killed $x1
	mov	x2, x22
	mov	x3, x23
	bl	_snprintf
	mov	x0, x25
	bl	_openJoystickDevice
	cmp	x0, #0
	cinc	w19, w19, ne
	mov	sp, x28
	b	LBB0_7
LBB0_10:
	mov	w19, #0
	b	LBB0_13
LBB0_11:
	mov	w19, #0
LBB0_12:
	mov	x0, x20
	bl	_closedir
LBB0_13:
	ldr	w0, [x26]
Lloh41:
	adrp	x8, _compareJoysticks@GOTPAGE
Lloh42:
	ldr	x8, [x8, _compareJoysticks@GOTPAGEOFF]
Lloh43:
	ldr	w3, [x8]
	mov	x1, x19
	mov	w2, #4
	bl	_qsort
Lloh44:
	adrp	x8, _GLFW_TRUE@GOTPAGE
Lloh45:
	ldr	x8, [x8, _GLFW_TRUE@GOTPAGEOFF]
LBB0_14:
	ldr	w0, [x8]
	ldur	x8, [x29, #-88]
Lloh46:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh47:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh48:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_16
; %bb.15:
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_16:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"/dev/input"

	.comm	_IN_NONBLOCK,4,2                ; @IN_NONBLOCK
	.comm	_IN_CLOEXEC,4,2                 ; @IN_CLOEXEC
	.comm	__glfw,24,3                     ; @_glfw
	.comm	_IN_CREATE,4,2                  ; @IN_CREATE
	.comm	_IN_ATTRIB,4,2                  ; @IN_ATTRIB
	.comm	_IN_DELETE,4,2                  ; @IN_DELETE
l_.str.1:                               ; @.str.1
	.asciz	"^event[0-9]\\+$"

	.comm	_GLFW_PLATFORM_ERROR,4,2        ; @GLFW_PLATFORM_ERROR
l_.str.2:                               ; @.str.2
	.asciz	"Linux: Failed to compile regex"

	.comm	_GLFW_FALSE,4,2                 ; @GLFW_FALSE
	.comm	_PATH_MAX,4,2                   ; @PATH_MAX
l_.str.3:                               ; @.str.3
	.asciz	"%s/%s"

	.comm	_compareJoysticks,4,2           ; @compareJoysticks
	.comm	_GLFW_TRUE,4,2                  ; @GLFW_TRUE
.subsections_via_symbols
