	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function closeJoystick
_closeJoystick:                         ## @closeJoystick
	.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	%rdi, %rbx
	movq	16(%rdi), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	callq	_IDirectInputDevice8_Unacquire
	movq	16(%rbx), %rdi
	callq	_IDirectInputDevice8_Release
LBB0_2:
	movl	12(%rbx), %edi
	callq	_free
	movl	8(%rbx), %edi
	callq	_free
	movl	4(%rbx), %edi
	callq	_free
	movl	(%rbx), %edi
	callq	_free
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movq	__glfw@GOTPCREL(%rip), %rax
	subq	(%rax), %rbx
	shrq	$3, %rbx
	imull	$-1431655765, %ebx, %edi        ## imm = 0xAAAAAAAB
	movq	_GLFW_DISCONNECTED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	__glfwInputJoystickChange       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	__glfw,8,3                      ## @_glfw
	.comm	_GLFW_DISCONNECTED,4,2          ## @GLFW_DISCONNECTED
	.no_dead_strip	_closeJoystick
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function closeJoystick
_closeJoystick:                         ; @closeJoystick
	.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
	mov	x19, x0
	ldr	x0, [x0, #16]
	cbz	x0, LBB0_2
; %bb.1:
	bl	_IDirectInputDevice8_Unacquire
	ldr	x0, [x19, #16]
	bl	_IDirectInputDevice8_Release
LBB0_2:
	ldr	w0, [x19, #12]
	bl	_free
	ldr	w0, [x19, #8]
	bl	_free
	ldr	w0, [x19, #4]
	bl	_free
	ldr	w0, [x19]
	bl	_free
	mov	x0, x19
	mov	w1, #0
	mov	w2, #24
	bl	_memset
Lloh0:
	adrp	x8, __glfw@GOTPAGE
Lloh1:
	ldr	x8, [x8, __glfw@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	sub	x8, x19, x8
	lsr	x8, x8, #3
	mov	w9, #43691
	movk	w9, #43690, lsl #16
	mul	w0, w8, w9
Lloh3:
	adrp	x8, _GLFW_DISCONNECTED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GLFW_DISCONNECTED@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	__glfwInputJoystickChange
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	__glfw,8,3                      ; @_glfw
	.comm	_GLFW_DISCONNECTED,4,2          ; @GLFW_DISCONNECTED
	.no_dead_strip	_closeJoystick
.subsections_via_symbols
