	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Script_ScenePushState_b        ## -- Begin function Script_ScenePushState_b
	.p2align	4, 0x90
_Script_ScenePushState_b:               ## @Script_ScenePushState_b
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_scene_stack_ptr@GOTPCREL(%rip), %r8
	movq	(%r8), %rcx
	movq	_MAX_SCENE_STATES@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jae	LBB0_2
## %bb.1:
	movq	_scene_index@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movq	_scene_stack@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	leaq	(%rcx,%rcx,4), %rdi
	movl	%edx, 16(%rsi,%rdi,4)
	movq	_actors@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	12(%rdx), %eax
	movl	%eax, 12(%rsi,%rdi,4)
	movl	8(%rdx), %eax
	movl	%eax, 8(%rsi,%rdi,4)
	movl	(%rdx), %eax
	sarl	$3, %eax
	movl	%eax, (%rsi,%rdi,4)
	movl	4(%rdx), %eax
	sarl	$3, %eax
	movl	%eax, 4(%rsi,%rdi,4)
	incq	%rcx
	movq	%rcx, (%r8)
LBB0_2:
	movq	_script_cmd_args_len@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_script_ptr@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	addl	%edx, %eax
	incl	%eax
	movl	%eax, (%rcx)
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_script_continue@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_scene_stack_ptr,8,3            ## @scene_stack_ptr
	.comm	_MAX_SCENE_STATES,8,3           ## @MAX_SCENE_STATES
	.comm	_scene_index,4,2                ## @scene_index
	.comm	_scene_stack,8,3                ## @scene_stack
	.comm	_actors,8,3                     ## @actors
	.comm	_script_cmd_args_len,8,3        ## @script_cmd_args_len
	.comm	_script_ptr,4,2                 ## @script_ptr
	.comm	_TRUE,4,2                       ## @TRUE
	.comm	_script_continue,4,2            ## @script_continue
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Script_ScenePushState_b        ; -- Begin function Script_ScenePushState_b
	.p2align	2
_Script_ScenePushState_b:               ; @Script_ScenePushState_b
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _scene_stack_ptr@GOTPAGE
Lloh1:
	ldr	x8, [x8, _scene_stack_ptr@GOTPAGEOFF]
	ldr	x9, [x8]
Lloh2:
	adrp	x10, _MAX_SCENE_STATES@GOTPAGE
Lloh3:
	ldr	x10, [x10, _MAX_SCENE_STATES@GOTPAGEOFF]
Lloh4:
	ldr	x10, [x10]
	cmp	x9, x10
	b.hs	LBB0_2
; %bb.1:
Lloh5:
	adrp	x10, _scene_index@GOTPAGE
Lloh6:
	ldr	x10, [x10, _scene_index@GOTPAGEOFF]
Lloh7:
	ldr	w10, [x10]
Lloh8:
	adrp	x11, _scene_stack@GOTPAGE
Lloh9:
	ldr	x11, [x11, _scene_stack@GOTPAGEOFF]
Lloh10:
	ldr	x11, [x11]
	mov	w12, #20
	madd	x11, x9, x12, x11
	str	w10, [x11, #16]
Lloh11:
	adrp	x10, _actors@GOTPAGE
Lloh12:
	ldr	x10, [x10, _actors@GOTPAGEOFF]
Lloh13:
	ldr	x10, [x10]
	ldr	d0, [x10, #8]
	str	d0, [x11, #8]
	ldr	d0, [x10]
	sshr.2s	v0, v0, #3
	str	d0, [x11]
	add	x9, x9, #1
	str	x9, [x8]
LBB0_2:
Lloh14:
	adrp	x8, _script_cmd_args_len@GOTPAGE
Lloh15:
	ldr	x8, [x8, _script_cmd_args_len@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
Lloh17:
	adrp	x9, _script_ptr@GOTPAGE
Lloh18:
	ldr	x9, [x9, _script_ptr@GOTPAGEOFF]
	ldr	w10, [x9]
	add	w8, w8, w10
	add	w8, w8, #1
	str	w8, [x9]
Lloh19:
	adrp	x8, _TRUE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
Lloh22:
	adrp	x9, _script_continue@GOTPAGE
Lloh23:
	ldr	x9, [x9, _script_continue@GOTPAGEOFF]
Lloh24:
	str	w8, [x9]
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotStr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_scene_stack_ptr,8,3            ; @scene_stack_ptr
	.comm	_MAX_SCENE_STATES,8,3           ; @MAX_SCENE_STATES
	.comm	_scene_index,4,2                ; @scene_index
	.comm	_scene_stack,8,3                ; @scene_stack
	.comm	_actors,8,3                     ; @actors
	.comm	_script_cmd_args_len,8,3        ; @script_cmd_args_len
	.comm	_script_ptr,4,2                 ; @script_ptr
	.comm	_TRUE,4,2                       ; @TRUE
	.comm	_script_continue,4,2            ; @script_continue
.subsections_via_symbols
