	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__glfwAllocJoystick             ## -- Begin function _glfwAllocJoystick
	.p2align	4, 0x90
__glfwAllocJoystick:                    ## @_glfwAllocJoystick
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_GLFW_JOYSTICK_LAST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	js	LBB0_5
## %bb.1:
	movl	%r8d, %r15d
	movl	%ecx, %r12d
	movl	%edx, %r13d
	movq	%rsi, %r14
	movq	__glfw@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rbx
	incq	%rax
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$0, 52(%rbx)
	je	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	addq	$56, %rbx
	decq	%rax
	jne	LBB0_2
LBB0_5:
	xorl	%ebx, %ebx
	jmp	LBB0_7
LBB0_6:
	movq	_GLFW_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 52(%rbx)
	callq	__glfw_strdup
	movl	%eax, 48(%rbx)
	movl	%r13d, %edi
	movl	$4, %esi
	callq	_calloc
	movq	%rax, 40(%rbx)
	leal	(%r12,%r15,4), %edi
	movl	$1, %esi
	callq	_calloc
	movq	%rax, 32(%rbx)
	movl	%r15d, %edi
	movl	$1, %esi
	callq	_calloc
	movq	%rax, 24(%rbx)
	movl	%r13d, (%rbx)
	movl	%r12d, 4(%rbx)
	movl	%r15d, 8(%rbx)
	movl	16(%rbx), %edi
	movq	%r14, %rsi
	movl	$3, %edx
	callq	_strncpy
	movq	%rbx, %rdi
	callq	_findValidMapping
	movl	%eax, 12(%rbx)
LBB0_7:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GLFW_JOYSTICK_LAST,4,2         ## @GLFW_JOYSTICK_LAST
	.comm	__glfw,8,3                      ## @_glfw
	.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	__glfwAllocJoystick             ; -- Begin function _glfwAllocJoystick
	.p2align	2
__glfwAllocJoystick:                    ; @_glfwAllocJoystick
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
Lloh0:
	adrp	x8, _GLFW_JOYSTICK_LAST@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GLFW_JOYSTICK_LAST@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tbnz	w8, #31, LBB0_4
; %bb.1:
	mov	x21, x4
	mov	x22, x3
	mov	x23, x2
	mov	x20, x1
Lloh3:
	adrp	x9, __glfw@GOTPAGE
Lloh4:
	ldr	x9, [x9, __glfw@GOTPAGEOFF]
Lloh5:
	ldr	x19, [x9]
	add	x8, x8, #1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x19, #52]
	cbz	w9, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x19, x19, #56
	subs	x8, x8, #1
	b.ne	LBB0_2
LBB0_4:
	mov	x19, #0
	b	LBB0_6
LBB0_5:
Lloh6:
	adrp	x8, _GLFW_TRUE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GLFW_TRUE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [x19, #52]
	bl	__glfw_strdup
	str	w0, [x19, #48]
	mov	x0, x23
	mov	w1, #4
	bl	_calloc
	str	x0, [x19, #40]
	add	w0, w22, w21, lsl #2
	mov	w1, #1
	bl	_calloc
	str	x0, [x19, #32]
	mov	x0, x21
	mov	w1, #1
	bl	_calloc
	str	x0, [x19, #24]
	stp	w23, w22, [x19]
	str	w21, [x19, #8]
	ldr	w0, [x19, #16]
	mov	x1, x20
	mov	w2, #3
	bl	_strncpy
	mov	x0, x19
	bl	_findValidMapping
	str	w0, [x19, #12]
LBB0_6:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_GLFW_JOYSTICK_LAST,4,2         ; @GLFW_JOYSTICK_LAST
	.comm	__glfw,8,3                      ; @_glfw
	.comm	_GLFW_TRUE,4,2                  ; @GLFW_TRUE
.subsections_via_symbols
