	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function ps3_input_state
LCPI0_0:
	.long	0x38000000                      ## float 3.05175781E-5
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_ps3_input_state:                       ## @ps3_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
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	testq	%rdi, %rdi
	je	LBB0_15
## %bb.1:
	movl	%r9d, %eax
	movq	%rcx, %r12
	movq	%rdi, %r13
	movl	24(%rbp), %r9d
	cmpl	$134, %eax
	je	LBB0_24
## %bb.2:
	cmpl	$130, %eax
	jne	LBB0_23
## %bb.3:
	movl	%esi, -52(%rbp)                 ## 4-byte Spill
	shrq	$32, %rsi
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	_RETRO_DEVICE_ID_JOYPAD_MASK@GOTPCREL(%rip), %rax
	cmpl	%r9d, (%rax)
	jne	LBB0_16
## %bb.4:
	movq	_RARCH_FIRST_CUSTOM_BIND@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_15
## %bb.5:
	movl	%r8d, %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	xorl	%ebx, %ebx
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	8(%r13), %rax
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
                                        ## kill: def $edi killed $edi killed $rdi
	callq	*8(%rax)
	testl	%eax, %eax
	je	LBB0_12
LBB0_13:                                ##   in Loop: Header=BB0_6 Depth=1
	btsl	%r14d, %ebx
LBB0_14:                                ##   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_15
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	(%r12,%rax,8), %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
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movl	4(%rdx,%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
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx,%r14,8), %r15d
LBB0_10:                                ##   in Loop: Header=BB0_6 Depth=1
	cmpl	%eax, %esi
	jne	LBB0_11
LBB0_12:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	8(%r13), %rax
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
                                        ## kill: def $edi killed $edi killed $rdi
	movl	%r15d, %esi
	callq	*(%rax)
	movl	%eax, %edi
	callq	_abs
	xorps	%xmm0, %xmm0
	cvtsi2ss	%rax, %xmm0
	mulss	LCPI0_0(%rip), %xmm0
	ucomiss	-52(%rbp), %xmm0                ## 4-byte Folded Reload
	ja	LBB0_13
	jmp	LBB0_14
LBB0_24:
	movl	%r8d, %eax
	movq	(%r12,%rax,8), %rcx
	testq	%rcx, %rcx
	je	LBB0_23
## %bb.25:
	movl	16(%rbp), %eax
	movq	8(%r13), %rdi
	movq	%rcx, (%rsp)
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movl	%r8d, %ecx
	movl	%eax, %r8d
	callq	_input_joypad_analog
	jmp	LBB0_26
LBB0_16:
	movl	%r8d, %eax
	movq	(%r12,%rax,8), %rdx
	movl	%r9d, %eax
	movl	4(%rdx,%rax,8), %esi
	movq	_NO_BTN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpl	%ecx, %esi
	jne	LBB0_18
## %bb.17:
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movl	4(%rsi,%rax,8), %esi
LBB0_18:
	movl	(%rdx,%rax,8), %r12d
	movq	_AXIS_NONE@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %r12d
	jne	LBB0_20
## %bb.19:
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movl	(%rdx,%rax,8), %r12d
LBB0_20:
	cmpl	%ecx, %esi
	je	LBB0_22
## %bb.21:
	movq	8(%r13), %rax
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
                                        ## kill: def $edi killed $edi killed $rdi
	callq	*8(%rax)
	movl	$1, %ebx
	testl	%eax, %eax
	jne	LBB0_15
LBB0_22:
	movq	8(%r13), %rax
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
                                        ## kill: def $edi killed $edi killed $rdi
	movl	%r12d, %esi
	callq	*(%rax)
	movl	%eax, %edi
	callq	_abs
	cvtsi2ss	%rax, %xmm0
	mulss	LCPI0_0(%rip), %xmm0
	movl	$1, %ebx
	ucomiss	-52(%rbp), %xmm0                ## 4-byte Folded Reload
	ja	LBB0_15
LBB0_23:
	xorl	%eax, %eax
	jmp	LBB0_26
LBB0_15:
	movl	%ebx, %eax
LBB0_26:
	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
	.comm	_retval,4,2                     ## @retval
	.no_dead_strip	_ps3_input_state
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ps3_input_state
_ps3_input_state:                       ; @ps3_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	x0, LBB0_24
; %bb.1:
	mov	x22, x3
	mov	x20, x2
	mov	x19, x0
	cmp	w5, #134
	b.eq	LBB0_15
; %bb.2:
	cmp	w5, #130
	b.ne	LBB0_24
; %bb.3:
	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_17
; %bb.4:
Lloh3:
	adrp	x8, _RARCH_FIRST_CUSTOM_BIND@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RARCH_FIRST_CUSTOM_BIND@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cbz	w8, LBB0_24
; %bb.5:
	mov	x26, #0
	mov	x27, #0
	mov	w23, #0
Lloh6:
	adrp	x25, _AXIS_NONE@GOTPAGE
Lloh7:
	ldr	x25, [x25, _AXIS_NONE@GOTPAGEOFF]
	movi.2s	v9, #56, lsl #24
	mov	w28, w4
	b	LBB0_9
LBB0_6:                                 ;   in Loop: Header=BB0_9 Depth=1
	ldr	x8, [x19, #8]
	ldr	x8, [x8, #8]
	mov	x0, x21
	blr	x8
	cbz	w0, LBB0_14
LBB0_7:                                 ;   in Loop: Header=BB0_9 Depth=1
	mov	w8, #1
	lsl	w8, w8, w27
	orr	w23, w8, w23
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	x27, x27, #1
Lloh8:
	adrp	x8, _RARCH_FIRST_CUSTOM_BIND@GOTPAGE
Lloh9:
	ldr	x8, [x8, _RARCH_FIRST_CUSTOM_BIND@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	add	x26, x26, #8
	cmp	x27, x8
	b.hs	LBB0_25
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x22, x28, lsl #3]
	add	x8, x9, x26
	ldr	w1, [x8, #4]
Lloh11:
	adrp	x8, _NO_BTN@GOTPAGE
Lloh12:
	ldr	x8, [x8, _NO_BTN@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	cmp	w1, w8
	b.ne	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	add	x10, x20, x26
	ldr	w1, [x10, #4]
LBB0_11:                                ;   in Loop: Header=BB0_9 Depth=1
	ldr	w24, [x9, x26]
	ldr	w9, [x25]
	cmp	w24, w9
	b.ne	LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w24, [x20, x26]
LBB0_13:                                ;   in Loop: Header=BB0_9 Depth=1
	cmp	w1, w8
	b.ne	LBB0_6
LBB0_14:                                ;   in Loop: Header=BB0_9 Depth=1
	ldr	x8, [x19, #8]
	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_7
	b	LBB0_8
LBB0_15:
	ldr	x8, [x22, w4, uxtw #3]
	cbz	x8, LBB0_24
; %bb.16:
	ldr	x0, [x19, #8]
	mov	x2, x20
	mov	x3, x4
	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_17:
	ldr	x9, [x22, w4, uxtw #3]
	mov	w10, w7
	add	x8, x9, w7, uxtw #3
	ldr	w1, [x8, #4]
Lloh14:
	adrp	x8, _NO_BTN@GOTPAGE
Lloh15:
	ldr	x8, [x8, _NO_BTN@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	cmp	w1, w8
	b.ne	LBB0_19
; %bb.18:
	add	x11, x20, x10, lsl #3
	ldr	w1, [x11, #4]
LBB0_19:
	lsl	x10, x10, #3
	ldr	w22, [x9, x10]
Lloh17:
	adrp	x9, _AXIS_NONE@GOTPAGE
Lloh18:
	ldr	x9, [x9, _AXIS_NONE@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	cmp	w22, w9
	b.ne	LBB0_21
; %bb.20:
	ldr	w22, [x20, x10]
LBB0_21:
	cmp	w1, w8
	b.eq	LBB0_23
; %bb.22:
	ldr	x8, [x19, #8]
	ldr	x8, [x8, #8]
	mov	x0, x21
	blr	x8
	cbnz	w0, LBB0_26
LBB0_23:
	ldr	x8, [x19, #8]
	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.gt	LBB0_26
LBB0_24:
	mov	w23, #0
LBB0_25:
	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_26:
	mov	w23, #1
	b	LBB0_25
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.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
	.comm	_retval,4,2                     ; @retval
	.no_dead_strip	_ps3_input_state
.subsections_via_symbols
