	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Script_ActorMoveRel_b          ## -- Begin function Script_ActorMoveRel_b
	.p2align	4, 0x90
_Script_ActorMoveRel_b:                 ## @Script_ActorMoveRel_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	_ACTOR_MOVE_ENABLED@GOTPCREL(%rip), %rax
	movq	_actor_move_settings@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	_ACTOR_NOCLIP@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movl	%edx, (%rcx)
	movq	_actors@GOTPCREL(%rip), %rax
	movq	(%rax), %r10
	movq	_script_actor@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	shlq	$4, %rsi
	movq	(%r10,%rsi), %rdi
	movq	_actor_move_dest@GOTPCREL(%rip), %r8
	movq	%rdi, (%r8)
	movq	_script_cmd_args@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movl	(%rdx), %eax
	testl	%eax, %eax
	je	LBB0_7
## %bb.1:
	shll	$3, %eax
	cmpl	$1, 4(%rdx)
	cltq
	jne	LBB0_4
## %bb.2:
	subq	%rax, %rdi
	movq	%rdi, (%r8)
	movq	_ACTOR_MIN_X@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r9
	testl	%eax, %eax
	js	LBB0_6
## %bb.3:
	cmpq	%r9, %rdi
	jge	LBB0_7
	jmp	LBB0_6
LBB0_4:
	addq	%rax, %rdi
	movq	%rdi, (%r8)
	testl	%eax, %eax
	jns	LBB0_7
## %bb.5:
	movq	_ACTOR_MAX_X@GOTPCREL(%rip), %rax
	movq	(%rax), %r9
LBB0_6:
	movq	%r9, (%r8)
LBB0_7:
	movq	8(%r10,%rsi), %rcx
	movq	%rcx, 8(%r8)
	movl	8(%rdx), %eax
	testl	%eax, %eax
	je	LBB0_14
## %bb.8:
	shll	$3, %eax
	cmpl	$1, 12(%rdx)
	cltq
	jne	LBB0_11
## %bb.9:
	subq	%rax, %rcx
	movq	%rcx, 8(%r8)
	movq	_ACTOR_MIN_Y@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	testl	%eax, %eax
	js	LBB0_13
## %bb.10:
	cmpq	%rdx, %rcx
	jge	LBB0_14
	jmp	LBB0_13
LBB0_11:
	addq	%rax, %rcx
	movq	%rcx, 8(%r8)
	testl	%eax, %eax
	jns	LBB0_14
## %bb.12:
	movq	_ACTOR_MAX_Y@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
LBB0_13:
	movq	%rdx, 8(%r8)
LBB0_14:
	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	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_script_action_complete@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ACTOR_MOVE_ENABLED,4,2         ## @ACTOR_MOVE_ENABLED
	.comm	_actor_move_settings,4,2        ## @actor_move_settings
	.comm	_ACTOR_NOCLIP,4,2               ## @ACTOR_NOCLIP
	.comm	_actor_move_dest,16,3           ## @actor_move_dest
	.comm	_actors,8,3                     ## @actors
	.comm	_script_actor,8,3               ## @script_actor
	.comm	_script_cmd_args,8,3            ## @script_cmd_args
	.comm	_ACTOR_MIN_X,8,3                ## @ACTOR_MIN_X
	.comm	_ACTOR_MAX_X,8,3                ## @ACTOR_MAX_X
	.comm	_ACTOR_MIN_Y,8,3                ## @ACTOR_MIN_Y
	.comm	_ACTOR_MAX_Y,8,3                ## @ACTOR_MAX_Y
	.comm	_script_cmd_args_len,8,3        ## @script_cmd_args_len
	.comm	_script_ptr,4,2                 ## @script_ptr
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_script_action_complete,4,2     ## @script_action_complete
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Script_ActorMoveRel_b          ; -- Begin function Script_ActorMoveRel_b
	.p2align	2
_Script_ActorMoveRel_b:                 ; @Script_ActorMoveRel_b
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _ACTOR_MOVE_ENABLED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ACTOR_MOVE_ENABLED@GOTPAGEOFF]
Lloh2:
	adrp	x10, _actor_move_settings@GOTPAGE
Lloh3:
	ldr	x10, [x10, _actor_move_settings@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	ldr	w9, [x10]
	orr	w8, w9, w8
Lloh5:
	adrp	x9, _ACTOR_NOCLIP@GOTPAGE
Lloh6:
	ldr	x9, [x9, _ACTOR_NOCLIP@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w13, w9, w8
Lloh8:
	adrp	x8, _actors@GOTPAGE
Lloh9:
	ldr	x8, [x8, _actors@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x8]
Lloh11:
	adrp	x8, _script_actor@GOTPAGE
Lloh12:
	ldr	x8, [x8, _script_actor@GOTPAGEOFF]
Lloh13:
	ldr	x11, [x8]
	lsl	x8, x11, #4
	ldr	x12, [x9, x8]
Lloh14:
	adrp	x8, _actor_move_dest@GOTPAGE
Lloh15:
	ldr	x8, [x8, _actor_move_dest@GOTPAGEOFF]
	str	w13, [x10]
	str	x12, [x8]
Lloh16:
	adrp	x10, _script_cmd_args@GOTPAGE
Lloh17:
	ldr	x10, [x10, _script_cmd_args@GOTPAGEOFF]
Lloh18:
	ldr	x10, [x10]
	ldr	w13, [x10]
	cbz	w13, LBB0_7
; %bb.1:
	ldr	w14, [x10, #4]
	lsl	w13, w13, #3
	sxtw	x13, w13
	cmp	w14, #1
	b.ne	LBB0_4
; %bb.2:
	sub	x14, x12, x13
	str	x14, [x8]
Lloh19:
	adrp	x12, _ACTOR_MIN_X@GOTPAGE
Lloh20:
	ldr	x12, [x12, _ACTOR_MIN_X@GOTPAGEOFF]
Lloh21:
	ldr	x12, [x12]
	tbnz	w13, #31, LBB0_6
; %bb.3:
	cmp	x14, x12
	b.ge	LBB0_7
	b	LBB0_6
LBB0_4:
	add	x12, x12, x13
	str	x12, [x8]
	tbz	w13, #31, LBB0_7
; %bb.5:
Lloh22:
	adrp	x12, _ACTOR_MAX_X@GOTPAGE
Lloh23:
	ldr	x12, [x12, _ACTOR_MAX_X@GOTPAGEOFF]
Lloh24:
	ldr	x12, [x12]
LBB0_6:
	str	x12, [x8]
LBB0_7:
	add	x9, x9, x11, lsl #4
	ldr	x9, [x9, #8]
	str	x9, [x8, #8]
	ldr	w11, [x10, #8]
	cbz	w11, LBB0_14
; %bb.8:
	ldr	w12, [x10, #12]
	lsl	w10, w11, #3
	sxtw	x10, w10
	cmp	w12, #1
	b.ne	LBB0_11
; %bb.9:
	sub	x11, x9, x10
	str	x11, [x8, #8]
Lloh25:
	adrp	x9, _ACTOR_MIN_Y@GOTPAGE
Lloh26:
	ldr	x9, [x9, _ACTOR_MIN_Y@GOTPAGEOFF]
Lloh27:
	ldr	x9, [x9]
	tbnz	w10, #31, LBB0_13
; %bb.10:
	cmp	x11, x9
	b.ge	LBB0_14
	b	LBB0_13
LBB0_11:
	add	x9, x9, x10
	str	x9, [x8, #8]
	tbz	w10, #31, LBB0_14
; %bb.12:
Lloh28:
	adrp	x9, _ACTOR_MAX_Y@GOTPAGE
Lloh29:
	ldr	x9, [x9, _ACTOR_MAX_Y@GOTPAGEOFF]
Lloh30:
	ldr	x9, [x9]
LBB0_13:
	str	x9, [x8, #8]
LBB0_14:
Lloh31:
	adrp	x8, _script_cmd_args_len@GOTPAGE
Lloh32:
	ldr	x8, [x8, _script_cmd_args_len@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
Lloh34:
	adrp	x9, _script_ptr@GOTPAGE
Lloh35:
	ldr	x9, [x9, _script_ptr@GOTPAGEOFF]
	ldr	w10, [x9]
	add	w8, w8, w10
	add	w8, w8, #1
	str	w8, [x9]
Lloh36:
	adrp	x8, _FALSE@GOTPAGE
Lloh37:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
Lloh39:
	adrp	x9, _script_action_complete@GOTPAGE
Lloh40:
	ldr	x9, [x9, _script_action_complete@GOTPAGEOFF]
Lloh41:
	str	w8, [x9]
	ret
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotStr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_ACTOR_MOVE_ENABLED,4,2         ; @ACTOR_MOVE_ENABLED
	.comm	_actor_move_settings,4,2        ; @actor_move_settings
	.comm	_ACTOR_NOCLIP,4,2               ; @ACTOR_NOCLIP
	.comm	_actor_move_dest,16,3           ; @actor_move_dest
	.comm	_actors,8,3                     ; @actors
	.comm	_script_actor,8,3               ; @script_actor
	.comm	_script_cmd_args,8,3            ; @script_cmd_args
	.comm	_ACTOR_MIN_X,8,3                ; @ACTOR_MIN_X
	.comm	_ACTOR_MAX_X,8,3                ; @ACTOR_MAX_X
	.comm	_ACTOR_MIN_Y,8,3                ; @ACTOR_MIN_Y
	.comm	_ACTOR_MAX_Y,8,3                ; @ACTOR_MAX_Y
	.comm	_script_cmd_args_len,8,3        ; @script_cmd_args_len
	.comm	_script_ptr,4,2                 ; @script_ptr
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_script_action_complete,4,2     ; @script_action_complete
.subsections_via_symbols
