	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Script_ActorSetPosRel_b        ## -- Begin function Script_ActorSetPosRel_b
	.p2align	4, 0x90
_Script_ActorSetPosRel_b:               ## @Script_ActorSetPosRel_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	_script_cmd_args@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %ecx
	testl	%ecx, %ecx
	je	LBB0_2
## %bb.1:
	movq	_script_actor@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	shlq	$4, %rdx
	shll	$3, %ecx
	movslq	%ecx, %rcx
	movq	%rcx, %rsi
	negq	%rsi
	cmpl	$0, 4(%rax)
	movq	_actors@GOTPCREL(%rip), %rdi
	cmoveq	%rcx, %rsi
	movq	(%rdi), %rcx
	addq	%rsi, 8(%rcx,%rdx)
LBB0_2:
	movl	8(%rax), %ecx
	testl	%ecx, %ecx
	je	LBB0_4
## %bb.3:
	movq	_script_actor@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	shlq	$4, %rdx
	shll	$3, %ecx
	movslq	%ecx, %rcx
	movq	%rcx, %rsi
	negq	%rsi
	cmpl	$0, 12(%rax)
	movq	_actors@GOTPCREL(%rip), %rax
	cmoveq	%rcx, %rsi
	movq	(%rax), %rax
	addq	%rsi, (%rax,%rdx)
LBB0_4:
	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	_script_cmd_args,8,3            ## @script_cmd_args
	.comm	_actors,8,3                     ## @actors
	.comm	_script_actor,8,3               ## @script_actor
	.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_ActorSetPosRel_b        ; -- Begin function Script_ActorSetPosRel_b
	.p2align	2
_Script_ActorSetPosRel_b:               ; @Script_ActorSetPosRel_b
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _script_cmd_args@GOTPAGE
Lloh1:
	ldr	x8, [x8, _script_cmd_args@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	w11, [x8]
Lloh3:
	adrp	x9, _actors@GOTPAGE
Lloh4:
	ldr	x9, [x9, _actors@GOTPAGEOFF]
Lloh5:
	adrp	x10, _script_actor@GOTPAGE
Lloh6:
	ldr	x10, [x10, _script_actor@GOTPAGEOFF]
	cbz	w11, LBB0_2
; %bb.1:
	ldr	w12, [x8, #4]
	ldr	x13, [x9]
	ldr	x14, [x10]
	add	x13, x13, x14, lsl #4
	ldr	x14, [x13, #8]
	lsl	w11, w11, #3
	sxtw	x11, w11
	cmp	w12, #0
	cneg	x11, x11, ne
	add	x11, x14, x11
	str	x11, [x13, #8]
LBB0_2:
	ldr	w11, [x8, #8]
	cbz	w11, LBB0_4
; %bb.3:
	ldr	w8, [x8, #12]
	ldr	x9, [x9]
	ldr	x10, [x10]
	lsl	x10, x10, #4
	ldr	x12, [x9, x10]
	lsl	w11, w11, #3
	sxtw	x11, w11
	cmp	w8, #0
	cneg	x8, x11, ne
	add	x8, x12, x8
	str	x8, [x9, x10]
LBB0_4:
Lloh7:
	adrp	x8, _script_cmd_args_len@GOTPAGE
Lloh8:
	ldr	x8, [x8, _script_cmd_args_len@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
Lloh10:
	adrp	x9, _script_ptr@GOTPAGE
Lloh11:
	ldr	x9, [x9, _script_ptr@GOTPAGEOFF]
	ldr	w10, [x9]
	add	w8, w8, w10
	add	w8, w8, #1
	str	w8, [x9]
Lloh12:
	adrp	x8, _TRUE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _script_continue@GOTPAGE
Lloh16:
	ldr	x9, [x9, _script_continue@GOTPAGEOFF]
Lloh17:
	str	w8, [x9]
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotStr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_script_cmd_args,8,3            ; @script_cmd_args
	.comm	_actors,8,3                     ; @actors
	.comm	_script_actor,8,3               ; @script_actor
	.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
