	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function joystick_callback
_joystick_callback:                     ## @joystick_callback
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_GLFW_CONNECTED@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	jne	LBB0_2
## %bb.1:
	movq	_joysticks@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_joystick_count@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rdx
	leal	1(%rdx), %esi
	movl	%esi, (%rcx)
	movl	%edi, (%rax,%rdx,4)
	jmp	LBB0_13
LBB0_2:
	movq	_GLFW_DISCONNECTED@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	jne	LBB0_13
## %bb.3:
	movq	_joystick_count@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	testl	%edx, %edx
	jle	LBB0_4
## %bb.5:
	movq	_joysticks@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%edi, (%rsi,%rcx,4)
	je	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	incq	%rcx
	cmpq	%rcx, %rdx
	jne	LBB0_6
## %bb.8:
	movl	%edx, %ecx
	jmp	LBB0_9
LBB0_4:
	xorl	%ecx, %ecx
LBB0_9:
	leal	1(%rcx), %edi
	cmpl	%edx, %edi
	jge	LBB0_12
## %bb.10:
	movq	_joysticks@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rsi
	movl	%edi, %edi
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rsi,%rdi,4), %edx
	movl	%ecx, %ebx
	movl	%edx, (%rsi,%rbx,4)
	incq	%rdi
	movl	(%rax), %edx
	incl	%ecx
	cmpl	%edi, %edx
	jg	LBB0_11
LBB0_12:
	decl	%edx
	movl	%edx, (%rax)
LBB0_13:
	movq	_window@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movq	_GLFW_FOCUSED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_glfwGetWindowAttrib
	testl	%eax, %eax
	je	LBB0_15
## %bb.14:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_15:
	movl	(%rbx), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_glfwRequestWindowAttention     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_GLFW_CONNECTED,4,2             ## @GLFW_CONNECTED
	.comm	_joysticks,8,3                  ## @joysticks
	.comm	_joystick_count,4,2             ## @joystick_count
	.comm	_GLFW_DISCONNECTED,4,2          ## @GLFW_DISCONNECTED
	.comm	_window,4,2                     ## @window
	.comm	_GLFW_FOCUSED,4,2               ## @GLFW_FOCUSED
	.no_dead_strip	_joystick_callback
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function joystick_callback
_joystick_callback:                     ; @joystick_callback
	.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
Lloh0:
	adrp	x8, _GLFW_CONNECTED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GLFW_CONNECTED@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w1
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _joysticks@GOTPAGE
Lloh4:
	ldr	x8, [x8, _joysticks@GOTPAGEOFF]
Lloh5:
	adrp	x9, _joystick_count@GOTPAGE
Lloh6:
	ldr	x9, [x9, _joystick_count@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	ldrsw	x10, [x9]
	add	w11, w10, #1
	str	w11, [x9]
	str	w0, [x8, x10, lsl #2]
	b	LBB0_13
LBB0_2:
Lloh8:
	adrp	x8, _GLFW_DISCONNECTED@GOTPAGE
Lloh9:
	ldr	x8, [x8, _GLFW_DISCONNECTED@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cmp	w8, w1
	b.ne	LBB0_13
; %bb.3:
Lloh11:
	adrp	x8, _joystick_count@GOTPAGE
Lloh12:
	ldr	x8, [x8, _joystick_count@GOTPAGEOFF]
	ldr	w9, [x8]
Lloh13:
	adrp	x11, _joysticks@GOTPAGE
Lloh14:
	ldr	x11, [x11, _joysticks@GOTPAGEOFF]
	cmp	w9, #1
	b.lt	LBB0_8
; %bb.4:
	mov	x10, #0
	ldr	x12, [x11]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w13, [x12, x10, lsl #2]
	cmp	w13, w0
	b.eq	LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x10, x10, #1
	cmp	x9, x10
	b.ne	LBB0_5
; %bb.7:
	mov	x10, x9
	b	LBB0_9
LBB0_8:
	mov	w10, #0
LBB0_9:
	add	w12, w10, #1
	cmp	w12, w9
	b.ge	LBB0_12
; %bb.10:
	ldr	x11, [x11]
	add	x12, x11, w12, uxtw #2
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x12], #4
	str	w9, [x11, w10, uxtw #2]
	ldr	w9, [x8]
	add	w13, w10, #2
	add	w10, w10, #1
                                        ; kill: def $w10 killed $w10 def $x10
	cmp	w9, w13
	b.gt	LBB0_11
LBB0_12:
	sub	w9, w9, #1
	str	w9, [x8]
LBB0_13:
Lloh15:
	adrp	x19, _window@GOTPAGE
Lloh16:
	ldr	x19, [x19, _window@GOTPAGEOFF]
	ldr	w0, [x19]
Lloh17:
	adrp	x8, _GLFW_FOCUSED@GOTPAGE
Lloh18:
	ldr	x8, [x8, _GLFW_FOCUSED@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	bl	_glfwGetWindowAttrib
	cbz	w0, LBB0_15
; %bb.14:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_15:
	ldr	w0, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_glfwRequestWindowAttention
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_GLFW_CONNECTED,4,2             ; @GLFW_CONNECTED
	.comm	_joysticks,8,3                  ; @joysticks
	.comm	_joystick_count,4,2             ; @joystick_count
	.comm	_GLFW_DISCONNECTED,4,2          ; @GLFW_DISCONNECTED
	.comm	_window,4,2                     ; @window
	.comm	_GLFW_FOCUSED,4,2               ; @GLFW_FOCUSED
	.no_dead_strip	_joystick_callback
.subsections_via_symbols
