	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cheat_manager_apply_rumble     ## -- Begin function cheat_manager_apply_rumble
	.p2align	4, 0x90
_cheat_manager_apply_rumble:            ## @cheat_manager_apply_rumble
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movl	(%rdi), %eax
	addl	$-128, %eax
	cmpl	$10, %eax
	ja	LBB0_3
## %bb.1:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_2:
	cmpl	%esi, 8(%rbx)
	jmp	LBB0_15
LBB0_3:
	movl	%esi, 4(%rbx)
	movl	12(%rbx), %ecx
	cmpl	$300, %ecx                      ## imm = 0x12C
	jg	LBB0_19
	jmp	LBB0_21
LBB0_4:
	cmpl	%esi, 8(%rbx)
	seta	%al
	jmp	LBB0_16
LBB0_5:
	movl	8(%rbx), %eax
	addl	4(%rbx), %eax
	jmp	LBB0_11
LBB0_6:
	cmpl	%esi, 4(%rbx)
	setb	%al
	jmp	LBB0_16
LBB0_7:
	cmpl	%esi, 8(%rbx)
	setb	%al
	jmp	LBB0_16
LBB0_8:
	cmpl	%esi, 8(%rbx)
	jmp	LBB0_12
LBB0_9:
	cmpl	%esi, 4(%rbx)
	jmp	LBB0_12
LBB0_10:
	movl	4(%rbx), %eax
	subl	8(%rbx), %eax
LBB0_11:
	cmpl	%esi, %eax
LBB0_12:
	sete	%al
	jmp	LBB0_16
LBB0_13:
	cmpl	%esi, 4(%rbx)
	seta	%al
	jmp	LBB0_16
LBB0_14:
	cmpl	%esi, 4(%rbx)
LBB0_15:
	setne	%al
LBB0_16:
	movl	%esi, 4(%rbx)
	movl	12(%rbx), %ecx
	cmpl	$300, %ecx                      ## imm = 0x12C
	jle	LBB0_21
## %bb.17:
	testb	%al, %al
	je	LBB0_19
## %bb.18:
	xorl	%eax, %eax
	callq	_cpu_features_get_time_usec
	movslq	24(%rbx), %rcx
	imulq	$1000, %rcx, %rcx               ## imm = 0x3E8
	addq	%rax, %rcx
	movq	%rcx, 16(%rbx)
	xorl	%eax, %eax
	callq	_cpu_features_get_time_usec
	movslq	40(%rbx), %rcx
	imulq	$1000, %rcx, %rcx               ## imm = 0x3E8
	addq	%rax, %rcx
	movq	%rcx, 32(%rbx)
	movq	_RETRO_RUMBLE_STRONG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	48(%rbx), %edi
	movl	52(%rbx), %edx
	callq	_input_driver_set_rumble_state
	movl	44(%rbx), %edx
	movl	48(%rbx), %edi
	movq	_RETRO_RUMBLE_WEAK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_input_driver_set_rumble_state
LBB0_19:
	movq	16(%rbx), %r14
	xorl	%eax, %eax
	callq	_cpu_features_get_time_usec
	cmpq	%rax, %r14
	jle	LBB0_22
## %bb.20:
	movq	_RETRO_RUMBLE_STRONG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	48(%rbx), %edi
	movl	52(%rbx), %edx
	callq	_input_driver_set_rumble_state
	jmp	LBB0_25
LBB0_21:
	addq	$12, %rbx
	incl	%ecx
	movl	%ecx, (%rbx)
	jmp	LBB0_30
LBB0_22:
	cmpq	$0, 16(%rbx)
	je	LBB0_24
## %bb.23:
	movl	48(%rbx), %edi
	movq	_RETRO_RUMBLE_STRONG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_input_driver_set_rumble_state
LBB0_24:
	movq	$0, 16(%rbx)
LBB0_25:
	movq	32(%rbx), %r14
	xorl	%eax, %eax
	callq	_cpu_features_get_time_usec
	cmpq	%rax, %r14
	jle	LBB0_27
## %bb.26:
	movl	44(%rbx), %edx
	movl	48(%rbx), %edi
	movq	_RETRO_RUMBLE_WEAK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_input_driver_set_rumble_state  ## TAILCALL
LBB0_27:
	cmpq	$0, 32(%rbx)
	je	LBB0_29
## %bb.28:
	movl	48(%rbx), %edi
	movq	_RETRO_RUMBLE_WEAK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_input_driver_set_rumble_state
LBB0_29:
	movq	$0, 32(%rbx)
LBB0_30:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_30, LBB0_30-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_4
	.long	L0_0_set_5
	.long	L0_0_set_6
	.long	L0_0_set_7
	.long	L0_0_set_8
	.long	L0_0_set_9
	.long	L0_0_set_30
	.long	L0_0_set_10
	.long	L0_0_set_13
	.long	L0_0_set_14
	.end_data_region
                                        ## -- End function
	.comm	_RETRO_RUMBLE_STRONG,4,2        ## @RETRO_RUMBLE_STRONG
	.comm	_RETRO_RUMBLE_WEAK,4,2          ## @RETRO_RUMBLE_WEAK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cheat_manager_apply_rumble     ; -- Begin function cheat_manager_apply_rumble
	.p2align	2
_cheat_manager_apply_rumble:            ; @cheat_manager_apply_rumble
	.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	w8, [x0]
	sub	w8, w8, #128
	cmp	w8, #10
	b.hi	LBB0_3
; %bb.1:
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	ldr	w8, [x19, #8]
	b	LBB0_16
LBB0_3:
	mov	x9, x19
	ldr	w10, [x9, #12]!
	stur	w1, [x9, #-8]
	cmp	w10, #300
	b.gt	LBB0_20
	b	LBB0_22
LBB0_4:
	ldr	w8, [x19, #8]
	b	LBB0_14
LBB0_5:
	ldp	w8, w9, [x19, #4]
	add	w8, w9, w8
	b	LBB0_12
LBB0_6:
	ldr	w8, [x19, #4]
	b	LBB0_8
LBB0_7:
	ldr	w8, [x19, #8]
LBB0_8:
	cmp	w8, w1
	cset	w8, lo
	b	LBB0_17
LBB0_9:
	ldr	w8, [x19, #8]
	b	LBB0_12
LBB0_10:
	ldr	w8, [x19, #4]
	b	LBB0_12
LBB0_11:
	ldp	w8, w9, [x19, #4]
	sub	w8, w8, w9
LBB0_12:
	cmp	w8, w1
	cset	w8, eq
	b	LBB0_17
LBB0_13:
	ldr	w8, [x19, #4]
LBB0_14:
	cmp	w8, w1
	cset	w8, hi
	b	LBB0_17
LBB0_15:
	ldr	w8, [x19, #4]
LBB0_16:
	cmp	w8, w1
	cset	w8, ne
LBB0_17:
	mov	x9, x19
	ldr	w10, [x9, #12]!
	stur	w1, [x9, #-8]
	cmp	w10, #300
	b.le	LBB0_22
; %bb.18:
	cbz	w8, LBB0_20
; %bb.19:
	bl	_cpu_features_get_time_usec
	ldrsw	x8, [x19, #24]
	mov	w20, #1000
	madd	x8, x8, x20, x0
	str	x8, [x19, #16]
	bl	_cpu_features_get_time_usec
	ldrsw	x8, [x19, #40]
	madd	x8, x8, x20, x0
	str	x8, [x19, #32]
Lloh2:
	adrp	x8, _RETRO_RUMBLE_STRONG@GOTPAGE
Lloh3:
	ldr	x8, [x8, _RETRO_RUMBLE_STRONG@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	ldp	w0, w2, [x19, #48]
	bl	_input_driver_set_rumble_state
Lloh5:
	adrp	x8, _RETRO_RUMBLE_WEAK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _RETRO_RUMBLE_WEAK@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	ldp	w2, w0, [x19, #44]
	bl	_input_driver_set_rumble_state
LBB0_20:
	ldr	x20, [x19, #16]
	bl	_cpu_features_get_time_usec
	cmp	x20, x0
	b.le	LBB0_23
; %bb.21:
Lloh8:
	adrp	x8, _RETRO_RUMBLE_STRONG@GOTPAGE
Lloh9:
	ldr	x8, [x8, _RETRO_RUMBLE_STRONG@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	ldp	w0, w2, [x19, #48]
	bl	_input_driver_set_rumble_state
	b	LBB0_26
LBB0_22:
	add	w8, w10, #1
	str	w8, [x9]
	b	LBB0_31
LBB0_23:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_25
; %bb.24:
	ldr	w0, [x19, #48]
Lloh11:
	adrp	x8, _RETRO_RUMBLE_STRONG@GOTPAGE
Lloh12:
	ldr	x8, [x8, _RETRO_RUMBLE_STRONG@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_input_driver_set_rumble_state
LBB0_25:
	str	xzr, [x19, #16]
LBB0_26:
	ldr	x20, [x19, #32]
	bl	_cpu_features_get_time_usec
	cmp	x20, x0
	b.le	LBB0_28
; %bb.27:
Lloh14:
	adrp	x8, _RETRO_RUMBLE_WEAK@GOTPAGE
Lloh15:
	ldr	x8, [x8, _RETRO_RUMBLE_WEAK@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	ldp	w2, w0, [x19, #44]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_input_driver_set_rumble_state
LBB0_28:
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_30
; %bb.29:
	ldr	w0, [x19, #48]
Lloh17:
	adrp	x8, _RETRO_RUMBLE_WEAK@GOTPAGE
Lloh18:
	ldr	x8, [x8, _RETRO_RUMBLE_WEAK@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_input_driver_set_rumble_state
LBB0_30:
	str	xzr, [x19, #32]
LBB0_31:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
	.byte	(LBB0_10-LBB0_2)>>2
	.byte	(LBB0_31-LBB0_2)>>2
	.byte	(LBB0_11-LBB0_2)>>2
	.byte	(LBB0_13-LBB0_2)>>2
	.byte	(LBB0_15-LBB0_2)>>2
                                        ; -- End function
	.comm	_RETRO_RUMBLE_STRONG,4,2        ; @RETRO_RUMBLE_STRONG
	.comm	_RETRO_RUMBLE_WEAK,4,2          ; @RETRO_RUMBLE_WEAK
.subsections_via_symbols
