	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SceneInit_b9                   ## -- Begin function SceneInit_b9
	.p2align	4, 0x90
_SceneInit_b9:                          ## @SceneInit_b9
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_DATA_PTRS_BANK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_scene_bank_ptrs@GOTPCREL(%rip), %rax
	movq	_scene_index@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	shlq	$2, %rdx
	addq	(%rax), %rdx
	movq	_bank_ptr@GOTPCREL(%rip), %r15
	movq	%r15, %rsi
	callq	_ReadBankedBankPtr
	movl	(%r15), %edi
	movq	_scene_load_col_ptr@GOTPCREL(%rip), %r12
	movq	(%r12), %rsi
	callq	_ReadBankedUBYTE
	movq	_events_ptr@GOTPCREL(%rip), %r14
	movl	%eax, (%r14)
	movl	(%r15), %edi
	movq	(%r12), %rsi
	incq	%rsi
	callq	_ReadBankedUBYTE
	movl	%eax, %ebx
	shll	$8, %ebx
	movl	(%r15), %edi
	movq	(%r12), %rsi
	addq	$2, %rsi
	callq	_ReadBankedUBYTE
	addl	%ebx, %eax
	movl	%eax, 4(%r14)
	movq	%r14, %rdi
	callq	_ScriptStart
	movq	_scene_num_actors@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	_MAX_ACTORS@GOTPCREL(%rip), %r14
	cmpq	(%r14), %rbx
	je	LBB0_3
## %bb.1:
	movq	_FALSE@GOTPCREL(%rip), %r15
	movq	_actors@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %eax
	movq	(%r12), %rcx
	movl	%eax, (%rcx,%rbx,4)
	movq	%rbx, %rdi
	callq	_MUL_2
	movl	%eax, %edi
	callq	_hide_sprite_pair
	incq	%rbx
	cmpq	(%r14), %rbx
	jne	LBB0_2
LBB0_3:
	movq	_CAMERA_LOCK_FLAG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_camera_settings@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	xorl	%eax, %eax
	callq	_SceneUpdateCamera_b
	movq	_TRUE@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	movq	_check_triggers@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	xorl	%eax, %eax
	callq	_SceneHandleTriggers_b
	xorl	%eax, %eax
	callq	_FadeIn
	movq	_time@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_last_joy@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	(%rbx), %rax
	movq	_scene_loaded@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movq	_timer_script_duration@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DATA_PTRS_BANK,4,2             ## @DATA_PTRS_BANK
	.comm	_bank_ptr,4,2                   ## @bank_ptr
	.comm	_scene_bank_ptrs,8,3            ## @scene_bank_ptrs
	.comm	_scene_index,8,3                ## @scene_index
	.comm	_scene_load_col_ptr,8,3         ## @scene_load_col_ptr
	.comm	_events_ptr,8,2                 ## @events_ptr
	.comm	_scene_num_actors,8,3           ## @scene_num_actors
	.comm	_MAX_ACTORS,8,3                 ## @MAX_ACTORS
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_actors,8,3                     ## @actors
	.comm	_CAMERA_LOCK_FLAG,4,2           ## @CAMERA_LOCK_FLAG
	.comm	_camera_settings,4,2            ## @camera_settings
	.comm	_TRUE,8,3                       ## @TRUE
	.comm	_check_triggers,8,3             ## @check_triggers
	.comm	_time,8,3                       ## @time
	.comm	_last_joy,8,3                   ## @last_joy
	.comm	_scene_loaded,8,3               ## @scene_loaded
	.comm	_timer_script_duration,8,3      ## @timer_script_duration
	.comm	_SHOW_SPRITES,4,2               ## @SHOW_SPRITES
	.comm	_DISPLAY_ON,4,2                 ## @DISPLAY_ON
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SceneInit_b9                   ; -- Begin function SceneInit_b9
	.p2align	2
_SceneInit_b9:                          ; @SceneInit_b9
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
Lloh0:
	adrp	x8, _DATA_PTRS_BANK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DATA_PTRS_BANK@GOTPAGEOFF]
Lloh2:
	adrp	x9, _scene_bank_ptrs@GOTPAGE
Lloh3:
	ldr	x9, [x9, _scene_bank_ptrs@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
Lloh5:
	ldr	x8, [x9]
Lloh6:
	adrp	x9, _scene_index@GOTPAGE
Lloh7:
	ldr	x9, [x9, _scene_index@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	add	x2, x8, x9, lsl #2
Lloh9:
	adrp	x19, _bank_ptr@GOTPAGE
Lloh10:
	ldr	x19, [x19, _bank_ptr@GOTPAGEOFF]
	mov	x1, x19
	bl	_ReadBankedBankPtr
	ldr	w0, [x19]
Lloh11:
	adrp	x22, _scene_load_col_ptr@GOTPAGE
Lloh12:
	ldr	x22, [x22, _scene_load_col_ptr@GOTPAGEOFF]
	ldr	x1, [x22]
	bl	_ReadBankedUBYTE
Lloh13:
	adrp	x20, _events_ptr@GOTPAGE
Lloh14:
	ldr	x20, [x20, _events_ptr@GOTPAGEOFF]
	str	w0, [x20]
	ldr	w0, [x19]
	ldr	x8, [x22]
	add	x1, x8, #1
	bl	_ReadBankedUBYTE
	mov	x21, x0
	ldr	w0, [x19]
	ldr	x8, [x22]
	add	x1, x8, #2
	bl	_ReadBankedUBYTE
	add	w8, w0, w21, lsl #8
	str	w8, [x20, #4]
	mov	x0, x20
	bl	_ScriptStart
Lloh15:
	adrp	x8, _scene_num_actors@GOTPAGE
Lloh16:
	ldr	x8, [x8, _scene_num_actors@GOTPAGEOFF]
Lloh17:
	ldr	x19, [x8]
Lloh18:
	adrp	x20, _MAX_ACTORS@GOTPAGE
Lloh19:
	ldr	x20, [x20, _MAX_ACTORS@GOTPAGEOFF]
	ldr	x8, [x20]
	cmp	x19, x8
	b.eq	LBB0_3
; %bb.1:
Lloh20:
	adrp	x21, _FALSE@GOTPAGE
Lloh21:
	ldr	x21, [x21, _FALSE@GOTPAGEOFF]
Lloh22:
	adrp	x22, _actors@GOTPAGE
Lloh23:
	ldr	x22, [x22, _actors@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x21]
	ldr	x9, [x22]
	str	w8, [x9, x19, lsl #2]
	mov	x0, x19
	bl	_MUL_2
	bl	_hide_sprite_pair
	add	x19, x19, #1
	ldr	x8, [x20]
	cmp	x19, x8
	b.ne	LBB0_2
LBB0_3:
Lloh24:
	adrp	x8, _CAMERA_LOCK_FLAG@GOTPAGE
Lloh25:
	ldr	x8, [x8, _CAMERA_LOCK_FLAG@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
Lloh27:
	adrp	x9, _camera_settings@GOTPAGE
Lloh28:
	ldr	x9, [x9, _camera_settings@GOTPAGEOFF]
Lloh29:
	str	w8, [x9]
	bl	_SceneUpdateCamera_b
Lloh30:
	adrp	x19, _TRUE@GOTPAGE
Lloh31:
	ldr	x19, [x19, _TRUE@GOTPAGEOFF]
	ldr	x8, [x19]
Lloh32:
	adrp	x9, _check_triggers@GOTPAGE
Lloh33:
	ldr	x9, [x9, _check_triggers@GOTPAGEOFF]
Lloh34:
	str	x8, [x9]
	bl	_SceneHandleTriggers_b
	bl	_FadeIn
Lloh35:
	adrp	x8, _time@GOTPAGE
Lloh36:
	ldr	x8, [x8, _time@GOTPAGEOFF]
Lloh37:
	str	xzr, [x8]
Lloh38:
	adrp	x8, _last_joy@GOTPAGE
Lloh39:
	ldr	x8, [x8, _last_joy@GOTPAGEOFF]
Lloh40:
	str	xzr, [x8]
	ldr	x8, [x19]
Lloh41:
	adrp	x9, _scene_loaded@GOTPAGE
Lloh42:
	ldr	x9, [x9, _scene_loaded@GOTPAGEOFF]
Lloh43:
	str	x8, [x9]
Lloh44:
	adrp	x8, _timer_script_duration@GOTPAGE
Lloh45:
	ldr	x8, [x8, _timer_script_duration@GOTPAGEOFF]
Lloh46:
	str	xzr, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotStr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotStr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotStr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotStr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotStr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGotStr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_DATA_PTRS_BANK,4,2             ; @DATA_PTRS_BANK
	.comm	_bank_ptr,4,2                   ; @bank_ptr
	.comm	_scene_bank_ptrs,8,3            ; @scene_bank_ptrs
	.comm	_scene_index,8,3                ; @scene_index
	.comm	_scene_load_col_ptr,8,3         ; @scene_load_col_ptr
	.comm	_events_ptr,8,2                 ; @events_ptr
	.comm	_scene_num_actors,8,3           ; @scene_num_actors
	.comm	_MAX_ACTORS,8,3                 ; @MAX_ACTORS
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_actors,8,3                     ; @actors
	.comm	_CAMERA_LOCK_FLAG,4,2           ; @CAMERA_LOCK_FLAG
	.comm	_camera_settings,4,2            ; @camera_settings
	.comm	_TRUE,8,3                       ; @TRUE
	.comm	_check_triggers,8,3             ; @check_triggers
	.comm	_time,8,3                       ; @time
	.comm	_last_joy,8,3                   ; @last_joy
	.comm	_scene_loaded,8,3               ; @scene_loaded
	.comm	_timer_script_duration,8,3      ; @timer_script_duration
	.comm	_SHOW_SPRITES,4,2               ; @SHOW_SPRITES
	.comm	_DISPLAY_ON,4,2                 ; @DISPLAY_ON
.subsections_via_symbols
