	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SceneUpdateActorMovement_b     ## -- Begin function SceneUpdateActorMovement_b
	.p2align	4, 0x90
_SceneUpdateActorMovement_b:            ## @SceneUpdateActorMovement_b
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_actors@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	movq	%rdi, %rbx
	shlq	$5, %rbx
	leaq	(%rax,%rbx), %rdi
	addq	$24, %rdi
	movq	_update_dir@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$4, %edx
	callq	_memcpy
	movq	%r14, %rdi
	callq	_SceneRenderActor_b
	movq	_script_ptr@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_5
## %bb.1:
	movq	_actor_move_settings@GOTPCREL(%rip), %rax
	movq	_ACTOR_NOCLIP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_5
## %bb.2:
	movq	_TRUE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	testq	%r14, %r14
	jne	LBB0_4
## %bb.3:
	movq	_check_triggers@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	jmp	LBB0_4
LBB0_5:
	movq	(%r13), %rax
	movq	8(%rax,%rbx), %rdi
	callq	_DIV_8
	movq	(%r13), %rcx
	movslq	24(%rcx,%rbx), %r15
	addq	%rax, %r15
	movq	16(%rcx,%rbx), %rdi
	callq	_DIV_8
	movq	(%r13), %rcx
	movslq	28(%rcx,%rbx), %r12
	addq	%rax, %r12
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	callq	_SceneNpcAt_b
	movq	_scene_num_actors@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.7:
	movq	(%r13), %rax
	leaq	(%rax,%rbx), %rdx
	movl	24(%rax,%rbx), %esi
	cmpl	$-1, %esi
	jne	LBB0_10
## %bb.8:
	testq	%r15, %r15
	je	LBB0_9
LBB0_10:
	movq	_scene_width@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpl	$1, %esi
	jne	LBB0_12
## %bb.11:
	cmpq	%rcx, %r15
	jne	LBB0_12
LBB0_9:
	movq	_FALSE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rdx)
	jmp	LBB0_23
LBB0_6:
	movq	_FALSE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_4:
	movq	(%r13), %rcx
	movq	%rax, (%rcx,%rbx)
LBB0_23:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movl	28(%rax,%rbx), %edx
	testq	%r12, %r12
	jne	LBB0_15
## %bb.13:
	cmpl	$-1, %edx
	je	LBB0_14
LBB0_15:
	cmpl	$1, %edx
	jne	LBB0_18
## %bb.16:
	movq	_scene_height@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	incq	%rdx
	cmpq	%rdx, %r12
	je	LBB0_14
## %bb.17:
	movq	16(%rax,%rbx), %rdx
	movq	_ACTOR_MAX_Y@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	je	LBB0_14
LBB0_18:
	decq	%r12
	imulq	%r12, %rcx
	leaq	(%rcx,%r15), %rsi
	decq	%rsi
	movq	_scene_col_tiles@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	%rsi, %rdi
	shrq	$3, %rdi
	movl	(%rdx,%rdi,4), %edi
	andb	$7, %sil
	movzbl	%sil, %esi
	btl	%esi, %edi
	jb	LBB0_14
## %bb.19:
	addq	%r15, %rcx
	movq	%rcx, %rsi
	shrq	$3, %rsi
	movl	(%rdx,%rsi,4), %edx
	andb	$7, %cl
	movzbl	%cl, %ecx
	btl	%ecx, %edx
	jae	LBB0_20
LBB0_14:
	movq	_FALSE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
LBB0_22:
	movq	%rcx, (%rax,%rbx)
	jmp	LBB0_23
LBB0_20:
	movq	_TRUE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	testq	%r14, %r14
	jne	LBB0_22
## %bb.21:
	movq	_check_triggers@GOTPCREL(%rip), %rdx
	movq	%rcx, (%rdx)
	jmp	LBB0_22
	.cfi_endproc
                                        ## -- End function
	.comm	_actors,8,3                     ## @actors
	.comm	_update_dir,4,2                 ## @update_dir
	.comm	_script_ptr,8,3                 ## @script_ptr
	.comm	_actor_move_settings,4,2        ## @actor_move_settings
	.comm	_ACTOR_NOCLIP,4,2               ## @ACTOR_NOCLIP
	.comm	_TRUE,8,3                       ## @TRUE
	.comm	_check_triggers,8,3             ## @check_triggers
	.comm	_scene_num_actors,8,3           ## @scene_num_actors
	.comm	_FALSE,8,3                      ## @FALSE
	.comm	_scene_width,8,3                ## @scene_width
	.comm	_scene_height,8,3               ## @scene_height
	.comm	_ACTOR_MAX_Y,8,3                ## @ACTOR_MAX_Y
	.comm	_scene_col_tiles,8,3            ## @scene_col_tiles
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SceneUpdateActorMovement_b     ; -- Begin function SceneUpdateActorMovement_b
	.p2align	2
_SceneUpdateActorMovement_b:            ; @SceneUpdateActorMovement_b
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
Lloh0:
	adrp	x23, _actors@GOTPAGE
Lloh1:
	ldr	x23, [x23, _actors@GOTPAGEOFF]
	ldr	x8, [x23]
	add	x8, x8, x0, lsl #5
	add	x0, x8, #24
Lloh2:
	adrp	x8, _update_dir@GOTPAGE
Lloh3:
	ldr	x8, [x8, _update_dir@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	w2, #4
	bl	_memcpy
	mov	x0, x19
	bl	_SceneRenderActor_b
Lloh5:
	adrp	x8, _script_ptr@GOTPAGE
Lloh6:
	ldr	x8, [x8, _script_ptr@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cbz	x8, LBB0_5
; %bb.1:
Lloh8:
	adrp	x8, _actor_move_settings@GOTPAGE
Lloh9:
	ldr	x8, [x8, _actor_move_settings@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _ACTOR_NOCLIP@GOTPAGE
Lloh12:
	ldr	x9, [x9, _ACTOR_NOCLIP@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.2:
Lloh14:
	adrp	x8, _TRUE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	cbnz	x19, LBB0_4
; %bb.3:
Lloh17:
	adrp	x9, _check_triggers@GOTPAGE
Lloh18:
	ldr	x9, [x9, _check_triggers@GOTPAGEOFF]
Lloh19:
	str	x8, [x9]
LBB0_4:
	ldr	x9, [x23]
	lsl	x10, x19, #5
	str	x8, [x9, x10]
	b	LBB0_18
LBB0_5:
	ldr	x8, [x23]
	lsl	x22, x19, #5
	add	x8, x8, x22
	ldr	x0, [x8, #8]
	bl	_DIV_8
	ldr	x8, [x23]
	add	x8, x8, x22
	ldrsw	x9, [x8, #24]
	add	x20, x0, x9
	ldr	x0, [x8, #16]
	bl	_DIV_8
	ldr	x8, [x23]
	add	x8, x8, x22
	ldrsw	x8, [x8, #28]
	add	x21, x0, x8
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_SceneNpcAt_b
Lloh20:
	adrp	x8, _scene_num_actors@GOTPAGE
Lloh21:
	ldr	x8, [x8, _scene_num_actors@GOTPAGEOFF]
Lloh22:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_16
; %bb.6:
	ldr	x8, [x23]
	add	x10, x8, x19, lsl #5
	ldr	w11, [x10, #24]
	cmn	w11, #1
	ccmp	x20, #0, #0, eq
	b.eq	LBB0_17
; %bb.7:
Lloh23:
	adrp	x9, _scene_width@GOTPAGE
Lloh24:
	ldr	x9, [x9, _scene_width@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	cmp	w11, #1
	ccmp	x20, x9, #0, eq
	b.eq	LBB0_17
; %bb.8:
	add	x10, x8, x19, lsl #5
	ldr	w10, [x10, #28]
	cmp	x21, #0
	ccmn	w10, #1, #0, eq
	b.eq	LBB0_14
; %bb.9:
	cmp	w10, #1
	b.ne	LBB0_12
; %bb.10:
Lloh26:
	adrp	x10, _scene_height@GOTPAGE
Lloh27:
	ldr	x10, [x10, _scene_height@GOTPAGEOFF]
Lloh28:
	ldr	x10, [x10]
	add	x10, x10, #1
	cmp	x21, x10
	b.eq	LBB0_14
; %bb.11:
	add	x10, x8, x19, lsl #5
	ldr	x10, [x10, #16]
Lloh29:
	adrp	x11, _ACTOR_MAX_Y@GOTPAGE
Lloh30:
	ldr	x11, [x11, _ACTOR_MAX_Y@GOTPAGEOFF]
Lloh31:
	ldr	x11, [x11]
	cmp	x10, x11
	b.eq	LBB0_14
LBB0_12:
	sub	x10, x21, #1
	madd	x9, x9, x10, x20
	sub	x11, x9, #1
Lloh32:
	adrp	x10, _scene_col_tiles@GOTPAGE
Lloh33:
	ldr	x10, [x10, _scene_col_tiles@GOTPAGEOFF]
Lloh34:
	ldr	x10, [x10]
	lsr	x12, x11, #1
	and	x12, x12, #0x7ffffffffffffffc
	ldr	w12, [x10, x12]
	and	w11, w11, #0x7
	lsr	w11, w12, w11
	tbnz	w11, #0, LBB0_14
; %bb.13:
	lsr	x11, x9, #1
	and	x11, x11, #0x7ffffffffffffffc
	ldr	w10, [x10, x11]
	and	w9, w9, #0x7
	lsr	w9, w10, w9
	tbz	w9, #0, LBB0_19
LBB0_14:
Lloh35:
	adrp	x9, _FALSE@GOTPAGE
Lloh36:
	ldr	x9, [x9, _FALSE@GOTPAGEOFF]
Lloh37:
	ldr	x9, [x9]
LBB0_15:
	str	x9, [x8, x22]
	b	LBB0_18
LBB0_16:
Lloh38:
	adrp	x8, _FALSE@GOTPAGE
Lloh39:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh40:
	ldr	x8, [x8]
	ldr	x9, [x23]
	str	x8, [x9, x22]
	b	LBB0_18
LBB0_17:
Lloh41:
	adrp	x8, _FALSE@GOTPAGE
Lloh42:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh43:
	ldr	x8, [x8]
	str	x8, [x10]
LBB0_18:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_19:
Lloh44:
	adrp	x9, _TRUE@GOTPAGE
Lloh45:
	ldr	x9, [x9, _TRUE@GOTPAGEOFF]
Lloh46:
	ldr	x9, [x9]
	cbnz	x19, LBB0_15
; %bb.20:
Lloh47:
	adrp	x10, _check_triggers@GOTPAGE
Lloh48:
	ldr	x10, [x10, _check_triggers@GOTPAGEOFF]
Lloh49:
	str	x9, [x10]
	b	LBB0_15
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotStr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotStr	Lloh47, Lloh48, Lloh49
	.cfi_endproc
                                        ; -- End function
	.comm	_actors,8,3                     ; @actors
	.comm	_update_dir,4,2                 ; @update_dir
	.comm	_script_ptr,8,3                 ; @script_ptr
	.comm	_actor_move_settings,4,2        ; @actor_move_settings
	.comm	_ACTOR_NOCLIP,4,2               ; @ACTOR_NOCLIP
	.comm	_TRUE,8,3                       ; @TRUE
	.comm	_check_triggers,8,3             ; @check_triggers
	.comm	_scene_num_actors,8,3           ; @scene_num_actors
	.comm	_FALSE,8,3                      ; @FALSE
	.comm	_scene_width,8,3                ; @scene_width
	.comm	_scene_height,8,3               ; @scene_height
	.comm	_ACTOR_MAX_Y,8,3                ; @ACTOR_MAX_Y
	.comm	_scene_col_tiles,8,3            ; @scene_col_tiles
.subsections_via_symbols
