	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function configure_controls
_configure_controls:                    ## @configure_controls
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_system_hw@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leal	-129(%rcx), %eax
	cmpl	$2, %eax
	jb	LBB0_3
## %bb.1:
	movq	_SYSTEM_MS_GAMEPAD@GOTPCREL(%rip), %r8
	cmpl	$128, %ecx
	je	LBB0_6
## %bb.2:
	cmpl	$131, %ecx
	je	LBB0_6
## %bb.7:
	popq	%rbp
	retq
LBB0_3:
	movq	_MAX_INPUTS@GOTPCREL(%rip), %rcx
	movq	_SYSTEM_MD_GAMEPAD@GOTPCREL(%rip), %r8
	cmpl	$0, (%rcx)
	je	LBB0_6
## %bb.4:
	movq	_config@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	xorl	%esi, %esi
	movq	_DEVICE_PAD6B@GOTPCREL(%rip), %rdi
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rdi), %eax
	movl	%eax, (%rdx,%rsi,4)
	incq	%rsi
	movl	(%rcx), %eax
	cmpq	%rax, %rsi
	jb	LBB0_5
LBB0_6:
	movq	(%r8), %rax
	movq	_input@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	movq	%rax, (%rdx)
	movq	(%r8), %rax
	movq	(%rcx), %rcx
	movq	%rax, 8(%rcx)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_system_hw,4,2                  ## @system_hw
	.comm	_MAX_INPUTS,4,2                 ## @MAX_INPUTS
	.comm	_DEVICE_PAD6B,4,2               ## @DEVICE_PAD6B
	.comm	_config,8,3                     ## @config
	.comm	_SYSTEM_MD_GAMEPAD,8,3          ## @SYSTEM_MD_GAMEPAD
	.comm	_input,8,3                      ## @input
	.comm	_SYSTEM_MS_GAMEPAD,8,3          ## @SYSTEM_MS_GAMEPAD
	.no_dead_strip	_configure_controls
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function configure_controls
_configure_controls:                    ; @configure_controls
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _system_hw@GOTPAGE
Lloh1:
	ldr	x8, [x8, _system_hw@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x8]
	sub	w8, w9, #129
	cmp	w8, #2
	b.lo	LBB0_4
; %bb.1:
Lloh3:
	adrp	x8, _SYSTEM_MS_GAMEPAD@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SYSTEM_MS_GAMEPAD@GOTPAGEOFF]
	cmp	w9, #128
	b.eq	LBB0_8
; %bb.2:
	cmp	w9, #131
	b.eq	LBB0_8
; %bb.3:
	ret
LBB0_4:
Lloh5:
	adrp	x9, _MAX_INPUTS@GOTPAGE
Lloh6:
	ldr	x9, [x9, _MAX_INPUTS@GOTPAGEOFF]
	ldr	w8, [x9]
	cbz	w8, LBB0_7
; %bb.5:
	mov	x10, #0
Lloh7:
	adrp	x8, _config@GOTPAGE
Lloh8:
	ldr	x8, [x8, _config@GOTPAGEOFF]
Lloh9:
	ldr	x11, [x8]
Lloh10:
	adrp	x12, _DEVICE_PAD6B@GOTPAGE
Lloh11:
	ldr	x12, [x12, _DEVICE_PAD6B@GOTPAGEOFF]
Lloh12:
	adrp	x8, _SYSTEM_MD_GAMEPAD@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SYSTEM_MD_GAMEPAD@GOTPAGEOFF]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w13, [x12]
	str	w13, [x11, x10, lsl #2]
	add	x10, x10, #1
	ldr	w13, [x9]
	cmp	x10, x13
	b.lo	LBB0_6
	b	LBB0_8
LBB0_7:
Lloh14:
	adrp	x8, _SYSTEM_MD_GAMEPAD@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SYSTEM_MD_GAMEPAD@GOTPAGEOFF]
LBB0_8:
Lloh16:
	adrp	x9, _input@GOTPAGE
Lloh17:
	ldr	x9, [x9, _input@GOTPAGEOFF]
	ldr	x10, [x8]
	ldr	x11, [x9]
	str	x10, [x11]
	ldr	x8, [x8]
	ldr	x9, [x9]
	str	x8, [x9, #8]
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_system_hw,4,2                  ; @system_hw
	.comm	_MAX_INPUTS,4,2                 ; @MAX_INPUTS
	.comm	_DEVICE_PAD6B,4,2               ; @DEVICE_PAD6B
	.comm	_config,8,3                     ; @config
	.comm	_SYSTEM_MD_GAMEPAD,8,3          ; @SYSTEM_MD_GAMEPAD
	.comm	_input,8,3                      ; @input
	.comm	_SYSTEM_MS_GAMEPAD,8,3          ; @SYSTEM_MS_GAMEPAD
	.no_dead_strip	_configure_controls
.subsections_via_symbols
