	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ScspUpdateSlotEnv
_ScspUpdateSlotEnv:                     ## @ScspUpdateSlotEnv
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	(%rdi), %eax
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	_scsp_decay_rate@GOTPCREL(%rip), %rdx
	addl	%eax, %eax
	cltq
	shlq	$3, %rax
	movl	$15, %esi
	subl	4(%rdi), %esi
	movb	8(%rdi), %cl
	sarl	%cl, %esi
	addq	(%rdx), %rax
	movslq	%esi, %rcx
	movq	(%rax,%rcx,8), %rax
	jmp	LBB0_3
LBB0_1:
	xorl	%eax, %eax
LBB0_3:
	movq	%rax, 48(%rdi)
	movl	12(%rdi), %eax
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	movq	_scsp_decay_rate@GOTPCREL(%rip), %rdx
	addl	%eax, %eax
	cltq
	shlq	$3, %rax
	movl	$15, %esi
	subl	4(%rdi), %esi
	movb	8(%rdi), %cl
	sarl	%cl, %esi
	addq	(%rdx), %rax
	movslq	%esi, %rcx
	movq	(%rax,%rcx,8), %rax
	jmp	LBB0_6
LBB0_4:
	xorl	%eax, %eax
LBB0_6:
	movq	%rax, 40(%rdi)
	movl	16(%rdi), %eax
	testl	%eax, %eax
	je	LBB0_7
## %bb.8:
	movq	_scsp_attack_rate@GOTPCREL(%rip), %rdx
	addl	%eax, %eax
	cltq
	shlq	$3, %rax
	movl	$15, %esi
	subl	4(%rdi), %esi
	movb	8(%rdi), %cl
	sarl	%cl, %esi
	addq	(%rdx), %rax
	movslq	%esi, %rcx
	movq	(%rax,%rcx,8), %rax
	jmp	LBB0_9
LBB0_7:
	xorl	%eax, %eax
LBB0_9:
	movq	%rax, 32(%rdi)
	movl	20(%rdi), %eax
	testl	%eax, %eax
	je	LBB0_10
## %bb.11:
	movq	_scsp_decay_rate@GOTPCREL(%rip), %rdx
	addl	%eax, %eax
	cltq
	shlq	$3, %rax
	movl	$15, %esi
	subl	4(%rdi), %esi
	movb	8(%rdi), %cl
	sarl	%cl, %esi
	addq	(%rdx), %rax
	movslq	%esi, %rcx
	movq	(%rax,%rcx,8), %rax
	jmp	LBB0_12
LBB0_10:
	xorl	%eax, %eax
LBB0_12:
	movq	%rax, 24(%rdi)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_scsp_decay_rate,8,3            ## @scsp_decay_rate
	.comm	_scsp_attack_rate,8,3           ## @scsp_attack_rate
	.no_dead_strip	_ScspUpdateSlotEnv
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ScspUpdateSlotEnv
_ScspUpdateSlotEnv:                     ; @ScspUpdateSlotEnv
	.cfi_startproc
; %bb.0:
	ldr	w9, [x0]
Lloh0:
	adrp	x8, _scsp_decay_rate@GOTPAGE
Lloh1:
	ldr	x8, [x8, _scsp_decay_rate@GOTPAGEOFF]
	cbz	w9, LBB0_2
; %bb.1:
	ldr	x10, [x8]
	lsl	w9, w9, #1
	add	x9, x10, w9, sxtw #3
	mov	w10, #15
	ldp	w11, w12, [x0, #4]
	sub	w10, w10, w11
	asr	w10, w10, w12
	ldr	x9, [x9, w10, sxtw #3]
	b	LBB0_3
LBB0_2:
	mov	x9, #0
LBB0_3:
	str	x9, [x0, #48]
	ldr	w9, [x0, #12]
	cbz	w9, LBB0_5
; %bb.4:
	ldr	x10, [x8]
	lsl	w9, w9, #1
	add	x9, x10, w9, sxtw #3
	mov	w10, #15
	ldp	w11, w12, [x0, #4]
	sub	w10, w10, w11
	asr	w10, w10, w12
	ldr	x9, [x9, w10, sxtw #3]
	b	LBB0_6
LBB0_5:
	mov	x9, #0
LBB0_6:
	str	x9, [x0, #40]
	ldr	w9, [x0, #16]
	cbz	w9, LBB0_8
; %bb.7:
Lloh2:
	adrp	x10, _scsp_attack_rate@GOTPAGE
Lloh3:
	ldr	x10, [x10, _scsp_attack_rate@GOTPAGEOFF]
Lloh4:
	ldr	x10, [x10]
	lsl	w9, w9, #1
	add	x9, x10, w9, sxtw #3
	mov	w10, #15
	ldp	w11, w12, [x0, #4]
	sub	w10, w10, w11
	asr	w10, w10, w12
	ldr	x9, [x9, w10, sxtw #3]
	b	LBB0_9
LBB0_8:
	mov	x9, #0
LBB0_9:
	str	x9, [x0, #32]
	ldr	w9, [x0, #20]
	cbz	w9, LBB0_11
; %bb.10:
	ldr	x8, [x8]
	lsl	w9, w9, #1
	add	x8, x8, w9, sxtw #3
	mov	w9, #15
	ldp	w10, w11, [x0, #4]
	sub	w9, w9, w10
	asr	w9, w9, w11
	ldr	x8, [x8, w9, sxtw #3]
	str	x8, [x0, #24]
	ret
LBB0_11:
	str	xzr, [x0, #24]
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_scsp_decay_rate,8,3            ; @scsp_decay_rate
	.comm	_scsp_attack_rate,8,3           ; @scsp_attack_rate
	.no_dead_strip	_ScspUpdateSlotEnv
.subsections_via_symbols
