	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function clear_controller
LCPI0_0:
	.long	4294967295                      ## 0xffffffff
	.long	4294967295                      ## 0xffffffff
	.long	4294967295                      ## 0xffffffff
	.long	1                               ## 0x1
LCPI0_1:
	.long	4294967295                      ## 0xffffffff
	.long	1                               ## 0x1
	.long	4294967295                      ## 0xffffffff
	.long	4294967295                      ## 0xffffffff
LCPI0_2:
	.quad	0x4000000000000000              ## double 2
	.quad	0x4000000000000000              ## double 2
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_clear_controller:                      ## @clear_controller
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_DEVICE_NO_JOYSTICK@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_controller@GOTPCREL(%rip), %r8
	movq	(%r8), %rdx
	movslq	%edi, %rax
	imulq	$56, %rax, %rax
	movl	%ecx, 48(%rdx,%rax)
	movq	40(%rdx,%rax), %rcx
	pxor	%xmm0, %xmm0
	movdqu	%xmm0, 8(%rcx)
	movq	_PLUGIN_NONE@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	movl	%esi, (%rcx)
	movq	32(%rdx,%rax), %rdi
	xorl	%esi, %esi
	movq	_SDL_SCANCODE_UNKNOWN@GOTPCREL(%rip), %rdx
	pcmpeqd	%xmm0, %xmm0
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	$-1, (%rdi,%rsi)
	movq	(%rdx), %rcx
	movq	%rcx, 24(%rdi,%rsi)
	movq	(%r8), %rcx
	movq	32(%rcx,%rax), %rcx
	movdqu	%xmm0, 4(%rcx,%rsi)
	movl	$-1, 20(%rcx,%rsi)
	movl	$-1, 32(%rcx,%rsi)
	movq	(%rdx), %rdi
	movq	%rdi, 56(%rcx,%rsi)
	movq	(%r8), %rcx
	movq	32(%rcx,%rax), %rdi
	movdqu	%xmm0, 36(%rdi,%rsi)
	movl	$-1, 52(%rdi,%rsi)
	addq	$64, %rsi
	cmpq	$512, %rsi                      ## imm = 0x200
	jne	LBB0_1
## %bb.2:
	movq	(%rcx,%rax), %r8
	movq	8(%rcx,%rax), %rdi
	movl	$4096, (%rdi)                   ## imm = 0x1000
	movq	16(%rcx,%rax), %rsi
	movl	$32768, (%rsi)                  ## imm = 0x8000
	movq	24(%rcx,%rax), %rax
	movq	(%rdx), %rcx
	movq	%rcx, 40(%rax)
	movq	%rcx, 48(%rax)
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [4294967295,4294967295,4294967295,1]
	movups	%xmm0, (%rax)
	movaps	LCPI0_1(%rip), %xmm1            ## xmm1 = [4294967295,1,4294967295,4294967295]
	movups	%xmm1, 16(%rax)
	movl	$-1, 32(%rax)
	movaps	LCPI0_2(%rip), %xmm2            ## xmm2 = [2.0E+0,2.0E+0]
	movups	%xmm2, (%r8)
	movl	$4096, 4(%rdi)                  ## imm = 0x1000
	movl	$32768, 4(%rsi)                 ## imm = 0x8000
	movq	%rcx, 96(%rax)
	movq	%rcx, 104(%rax)
	movups	%xmm0, 56(%rax)
	movups	%xmm1, 72(%rax)
	movl	$-1, 88(%rax)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DEVICE_NO_JOYSTICK,4,2         ## @DEVICE_NO_JOYSTICK
	.comm	_controller,8,3                 ## @controller
	.comm	_PLUGIN_NONE,4,2                ## @PLUGIN_NONE
	.comm	_SDL_SCANCODE_UNKNOWN,8,3       ## @SDL_SCANCODE_UNKNOWN
	.no_dead_strip	_clear_controller
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function clear_controller
lCPI0_0:
	.long	4294967295                      ; 0xffffffff
	.long	4294967295                      ; 0xffffffff
	.long	4294967295                      ; 0xffffffff
	.long	1                               ; 0x1
lCPI0_1:
	.long	4294967295                      ; 0xffffffff
	.long	1                               ; 0x1
	.long	4294967295                      ; 0xffffffff
	.long	4294967295                      ; 0xffffffff
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_clear_controller:                      ; @clear_controller
	.cfi_startproc
; %bb.0:
                                        ; kill: def $w0 killed $w0 def $x0
	mov	x8, #0
Lloh0:
	adrp	x9, _DEVICE_NO_JOYSTICK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DEVICE_NO_JOYSTICK@GOTPAGEOFF]
Lloh2:
	adrp	x10, _controller@GOTPAGE
Lloh3:
	ldr	x10, [x10, _controller@GOTPAGEOFF]
Lloh4:
	ldr	w12, [x9]
	ldr	x13, [x10]
	sxtw	x9, w0
	mov	w11, #56
	smaddl	x13, w0, w11, x13
	str	w12, [x13, #48]
	ldr	x12, [x13, #40]
	stp	xzr, xzr, [x12, #8]
Lloh5:
	adrp	x14, _PLUGIN_NONE@GOTPAGE
Lloh6:
	ldr	x14, [x14, _PLUGIN_NONE@GOTPAGEOFF]
Lloh7:
	ldr	w14, [x14]
	str	w14, [x12]
	ldr	x15, [x13, #32]
	mov	w13, #-1
Lloh8:
	adrp	x12, _SDL_SCANCODE_UNKNOWN@GOTPAGE
Lloh9:
	ldr	x12, [x12, _SDL_SCANCODE_UNKNOWN@GOTPAGEOFF]
	mov	x14, #-1
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	add	x15, x15, x8
	str	w13, [x15]
	ldr	x16, [x12]
	str	x16, [x15, #24]
	ldr	x16, [x10]
	madd	x15, x9, x11, x16
	ldr	x15, [x15, #32]
	add	x17, x15, x8
	str	w14, [x17, #20]
	stur	x14, [x17, #12]
	stur	x14, [x17, #4]
	add	x8, x8, #32
	cmp	x8, #512
	b.ne	LBB0_1
; %bb.2:
	mov	w8, #56
	madd	x8, x9, x8, x16
	ldp	x9, x10, [x8]
	mov	w11, #4096
	str	w11, [x10]
	mov	w13, #32768
	ldp	x14, x8, [x8, #16]
	str	w13, [x14]
	ldr	x12, [x12]
	stp	x12, x12, [x8, #40]
Lloh10:
	adrp	x15, lCPI0_0@PAGE
Lloh11:
	ldr	q0, [x15, lCPI0_0@PAGEOFF]
Lloh12:
	adrp	x15, lCPI0_1@PAGE
Lloh13:
	ldr	q1, [x15, lCPI0_1@PAGEOFF]
	stp	q0, q1, [x8]
	mov	w15, #-1
	str	w15, [x8, #32]
	fmov.2d	v2, #2.00000000
	str	q2, [x9]
	str	w11, [x10, #4]
	str	w13, [x14, #4]
	stp	x12, x12, [x8, #96]
	stur	q0, [x8, #56]
	stur	q1, [x8, #72]
	str	w15, [x8, #88]
	ret
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdr	Lloh12, Lloh13
	.loh AdrpAdrp	Lloh10, Lloh12
	.loh AdrpLdr	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_DEVICE_NO_JOYSTICK,4,2         ; @DEVICE_NO_JOYSTICK
	.comm	_controller,8,3                 ; @controller
	.comm	_PLUGIN_NONE,4,2                ; @PLUGIN_NONE
	.comm	_SDL_SCANCODE_UNKNOWN,8,3       ; @SDL_SCANCODE_UNKNOWN
	.no_dead_strip	_clear_controller
.subsections_via_symbols
