	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function ctr_input_state
LCPI0_0:
	.long	0x38000000                      ## float 3.05175781E-5
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_ctr_input_state:                       ## @ctr_input_state
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%ebx, %ebx
	testl	%r8d, %r8d
	je	LBB0_1
LBB0_17:
	movl	%ebx, %eax
	jmp	LBB0_28
LBB0_1:
	movl	%r9d, %eax
	movq	%rcx, %r13
	movq	%rdx, %r12
	movq	%rsi, %r10
	movl	24(%rbp), %r9d
	cmpl	$129, %eax
	je	LBB0_26
## %bb.2:
	cmpl	$128, %eax
	jne	LBB0_25
## %bb.3:
	movl	%r10d, -44(%rbp)                ## 4-byte Spill
	shrq	$32, %r10
	movq	_RETRO_DEVICE_ID_JOYPAD_MASK@GOTPCREL(%rip), %rax
	cmpl	%r9d, (%rax)
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movq	%r10, -56(%rbp)                 ## 8-byte Spill
	jne	LBB0_18
## %bb.4:
	movq	_RARCH_FIRST_CUSTOM_BIND@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_17
## %bb.5:
	xorl	%r14d, %r14d
	xorl	%ebx, %ebx
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	-56(%rbp), %r10                 ## 8-byte Reload
LBB0_16:                                ##   in Loop: Header=BB0_6 Depth=1
	incq	%r14
	movq	_RARCH_FIRST_CUSTOM_BIND@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpq	%rax, %r14
	jae	LBB0_17
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rcx
	movl	4(%rcx,%r14,8), %esi
	movq	_NO_BTN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%eax, %esi
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	4(%r12,%r14,8), %esi
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	movl	(%rcx,%r14,8), %r15d
	movq	_AXIS_NONE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %r15d
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	(%r12,%r14,8), %r15d
LBB0_10:                                ##   in Loop: Header=BB0_6 Depth=1
	cmpl	%eax, %esi
	je	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	(%rdi), %rax
	movl	%r10d, %edi
	callq	*8(%rax)
	movq	-56(%rbp), %r10                 ## 8-byte Reload
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	testl	%eax, %eax
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_6 Depth=1
	btsl	%r14d, %ebx
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	(%rdi), %rax
	movl	%r10d, %edi
	movl	%r15d, %esi
	callq	*(%rax)
	movl	%eax, %edi
	callq	_abs
	xorps	%xmm0, %xmm0
	cvtsi2ss	%rax, %xmm0
	mulss	LCPI0_0(%rip), %xmm0
	ucomiss	-44(%rbp), %xmm0                ## 4-byte Folded Reload
	jbe	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_6 Depth=1
	btsl	%r14d, %ebx
	jmp	LBB0_15
LBB0_26:
	movq	(%r13), %rax
	testq	%rax, %rax
	je	LBB0_25
## %bb.27:
	movl	16(%rbp), %r8d
	movq	(%rdi), %rdi
	movq	%rax, (%rsp)
	movq	%r10, %rsi
	movq	%r12, %rdx
	xorl	%ecx, %ecx
	callq	_input_joypad_analog
	jmp	LBB0_28
LBB0_18:
	movq	(%r13), %rbx
	movl	%r9d, %eax
	movl	4(%rbx,%rax,8), %esi
	movq	_NO_BTN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpl	%ecx, %esi
	jne	LBB0_20
## %bb.19:
	movl	4(%r12,%rax,8), %esi
LBB0_20:
	movl	(%rbx,%rax,8), %r13d
	movq	_AXIS_NONE@GOTPCREL(%rip), %rbx
	cmpl	(%rbx), %r13d
	jne	LBB0_22
## %bb.21:
	movl	(%r12,%rax,8), %r13d
LBB0_22:
	cmpl	%ecx, %esi
	je	LBB0_24
## %bb.23:
	movq	(%rdi), %rax
	movl	%r10d, %edi
	callq	*8(%rax)
	movq	-56(%rbp), %r10                 ## 8-byte Reload
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	$1, %ebx
	testl	%eax, %eax
	jne	LBB0_17
LBB0_24:
	movq	(%rdi), %rax
	movl	%r10d, %edi
	movl	%r13d, %esi
	callq	*(%rax)
	movl	%eax, %edi
	callq	_abs
	cvtsi2ss	%rax, %xmm0
	mulss	LCPI0_0(%rip), %xmm0
	movl	$1, %ebx
	ucomiss	-44(%rbp), %xmm0                ## 4-byte Folded Reload
	ja	LBB0_17
LBB0_25:
	xorl	%eax, %eax
LBB0_28:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RETRO_DEVICE_ID_JOYPAD_MASK,4,2 ## @RETRO_DEVICE_ID_JOYPAD_MASK
	.comm	_RARCH_FIRST_CUSTOM_BIND,4,2    ## @RARCH_FIRST_CUSTOM_BIND
	.comm	_NO_BTN,4,2                     ## @NO_BTN
	.comm	_AXIS_NONE,4,2                  ## @AXIS_NONE
	.no_dead_strip	_ctr_input_state
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ctr_input_state
_ctr_input_state:                       ; @ctr_input_state
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [sp, #-112]!            ; 16-byte Folded Spill
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	.cfi_offset b8, -104
	.cfi_offset b9, -112
	cbz	w4, LBB0_3
LBB0_1:
	mov	w23, #0
LBB0_2:
	mov	x0, x23
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #112              ; 16-byte Folded Reload
	ret
LBB0_3:
	mov	x22, x3
	mov	x20, x2
	mov	x19, x0
	cmp	w5, #129
	b.eq	LBB0_17
; %bb.4:
	cmp	w5, #128
	b.ne	LBB0_1
; %bb.5:
	fmov	s8, w1
	lsr	x21, x1, #32
Lloh0:
	adrp	x8, _RETRO_DEVICE_ID_JOYPAD_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RETRO_DEVICE_ID_JOYPAD_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w7
	b.ne	LBB0_19
; %bb.6:
Lloh3:
	adrp	x25, _RARCH_FIRST_CUSTOM_BIND@GOTPAGE
Lloh4:
	ldr	x25, [x25, _RARCH_FIRST_CUSTOM_BIND@GOTPAGEOFF]
	ldr	w8, [x25]
	cbz	w8, LBB0_1
; %bb.7:
	mov	x26, #0
	mov	x27, #0
	mov	w23, #0
Lloh5:
	adrp	x28, _AXIS_NONE@GOTPAGE
Lloh6:
	ldr	x28, [x28, _AXIS_NONE@GOTPAGEOFF]
	movi.2s	v9, #56, lsl #24
	b	LBB0_11
LBB0_8:                                 ;   in Loop: Header=BB0_11 Depth=1
	ldr	x8, [x19]
	ldr	x8, [x8, #8]
	mov	x0, x21
	blr	x8
	cbz	w0, LBB0_16
LBB0_9:                                 ;   in Loop: Header=BB0_11 Depth=1
	mov	w8, #1
	lsl	w8, w8, w27
	orr	w23, w8, w23
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	add	x27, x27, #1
	ldr	w8, [x25]
	add	x26, x26, #8
	cmp	x27, x8
	b.hs	LBB0_2
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x22]
	add	x8, x9, x26
	ldr	w1, [x8, #4]
Lloh7:
	adrp	x8, _NO_BTN@GOTPAGE
Lloh8:
	ldr	x8, [x8, _NO_BTN@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	cmp	w1, w8
	b.ne	LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	add	x10, x20, x26
	ldr	w1, [x10, #4]
LBB0_13:                                ;   in Loop: Header=BB0_11 Depth=1
	ldr	w24, [x9, x26]
	ldr	w9, [x28]
	cmp	w24, w9
	b.ne	LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	w24, [x20, x26]
LBB0_15:                                ;   in Loop: Header=BB0_11 Depth=1
	cmp	w1, w8
	b.ne	LBB0_8
LBB0_16:                                ;   in Loop: Header=BB0_11 Depth=1
	ldr	x8, [x19]
	ldr	x8, [x8]
	mov	x0, x21
	mov	x1, x24
	blr	x8
	bl	_abs
	scvtf	s0, x0
	fmul	s0, s0, s9
	fcmp	s0, s8
	b.gt	LBB0_9
	b	LBB0_10
LBB0_17:
	ldr	x8, [x22]
	cbz	x8, LBB0_1
; %bb.18:
	ldr	x0, [x19]
	mov	x2, x20
	mov	w3, #0
	mov	x4, x6
	mov	x5, x7
	mov	x6, x8
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #112              ; 16-byte Folded Reload
	b	_input_joypad_analog
LBB0_19:
	ldr	x9, [x22]
	mov	w10, w7
	add	x8, x9, w7, uxtw #3
	ldr	w1, [x8, #4]
Lloh10:
	adrp	x8, _NO_BTN@GOTPAGE
Lloh11:
	ldr	x8, [x8, _NO_BTN@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	cmp	w1, w8
	b.ne	LBB0_21
; %bb.20:
	add	x11, x20, x10, lsl #3
	ldr	w1, [x11, #4]
LBB0_21:
	lsl	x10, x10, #3
	ldr	w22, [x9, x10]
Lloh13:
	adrp	x9, _AXIS_NONE@GOTPAGE
Lloh14:
	ldr	x9, [x9, _AXIS_NONE@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	cmp	w22, w9
	b.ne	LBB0_23
; %bb.22:
	ldr	w22, [x20, x10]
LBB0_23:
	cmp	w1, w8
	b.eq	LBB0_25
; %bb.24:
	ldr	x8, [x19]
	ldr	x8, [x8, #8]
	mov	x0, x21
	blr	x8
	cbnz	w0, LBB0_26
LBB0_25:
	ldr	x8, [x19]
	ldr	x8, [x8]
	mov	x0, x21
	mov	x1, x22
	blr	x8
	bl	_abs
	scvtf	s0, x0
	movi.2s	v1, #56, lsl #24
	fmul	s0, s0, s1
	fcmp	s0, s8
	b.le	LBB0_1
LBB0_26:
	mov	w23, #1
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_RETRO_DEVICE_ID_JOYPAD_MASK,4,2 ; @RETRO_DEVICE_ID_JOYPAD_MASK
	.comm	_RARCH_FIRST_CUSTOM_BIND,4,2    ; @RARCH_FIRST_CUSTOM_BIND
	.comm	_NO_BTN,4,2                     ; @NO_BTN
	.comm	_AXIS_NONE,4,2                  ; @AXIS_NONE
	.no_dead_strip	_ctr_input_state
.subsections_via_symbols
