	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Script_PlayerSetSprite_b       ## -- Begin function Script_PlayerSetSprite_b
	.p2align	4, 0x90
_Script_PlayerSetSprite_b:              ## @Script_PlayerSetSprite_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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_script_cmd_args@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %r14
	movq	_DATA_PTRS_BANK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_sprite_bank_ptrs@GOTPCREL(%rip), %rax
	leaq	(,%r14,4), %rdx
	addq	(%rax), %rdx
	leaq	-48(%rbp), %rsi
	callq	_ReadBankedBankPtr
	movq	_bank_data_ptrs@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	-48(%rbp), %rdi
	movq	-40(%rbp), %r15
	movq	(%rax,%rdi,8), %r12
	leaq	(%r15,%r12), %rsi
	callq	_ReadBankedUBYTE
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_MUL_4
	movq	-48(%rbp), %rdi
	leaq	(%r15,%r12), %rcx
	incq	%rcx
	xorl	%esi, %esi
	movq	%rax, %rdx
	callq	_SetBankedSpriteData
	movq	_actors@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%rax)
	cmpq	$6, %rbx
	jne	LBB0_2
## %bb.1:
	movq	_SPRITE_ACTOR_ANIMATED@GOTPCREL(%rip), %rcx
	jmp	LBB0_5
LBB0_2:
	cmpq	$3, %rbx
	jne	LBB0_3
## %bb.4:
	movq	_SPRITE_ACTOR@GOTPCREL(%rip), %rcx
	jmp	LBB0_5
LBB0_3:
	movq	_SPRITE_STATIC@GOTPCREL(%rip), %rcx
LBB0_5:
	movl	(%rcx), %ecx
	cmpq	$3, %rbx
	movl	$1, %edx
	cmovnel	%ebx, %edx
	cmpq	$6, %rbx
	movl	%ecx, 4(%rax)
	movl	$2, %ecx
	cmovnel	%edx, %ecx
	movl	%ecx, (%rax)
	xorl	%edi, %edi
	callq	_SceneRenderActor
	movq	_map_next_sprite@GOTPCREL(%rip), %rax
	movq	%r14, (%rax)
	movq	_script_cmd_args_len@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_script_ptr@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	leal	1(%rax,%rdx), %eax
	movl	%eax, (%rcx)
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_script_continue@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_script_cmd_args,8,3            ## @script_cmd_args
	.comm	_DATA_PTRS_BANK,4,2             ## @DATA_PTRS_BANK
	.comm	_sprite_bank_ptrs,8,3           ## @sprite_bank_ptrs
	.comm	_bank_data_ptrs,8,3             ## @bank_data_ptrs
	.comm	_actors,8,3                     ## @actors
	.comm	_SPRITE_ACTOR_ANIMATED,4,2      ## @SPRITE_ACTOR_ANIMATED
	.comm	_SPRITE_ACTOR,4,2               ## @SPRITE_ACTOR
	.comm	_SPRITE_STATIC,4,2              ## @SPRITE_STATIC
	.comm	_map_next_sprite,8,3            ## @map_next_sprite
	.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_PlayerSetSprite_b       ; -- Begin function Script_PlayerSetSprite_b
	.p2align	2
_Script_PlayerSetSprite_b:              ; @Script_PlayerSetSprite_b
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
Lloh0:
	adrp	x8, _script_cmd_args@GOTPAGE
Lloh1:
	ldr	x8, [x8, _script_cmd_args@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _DATA_PTRS_BANK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DATA_PTRS_BANK@GOTPAGEOFF]
	ldr	x21, [x8]
Lloh5:
	ldr	w0, [x9]
Lloh6:
	adrp	x8, _sprite_bank_ptrs@GOTPAGE
Lloh7:
	ldr	x8, [x8, _sprite_bank_ptrs@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	add	x2, x8, x21, lsl #2
	mov	x1, sp
	bl	_ReadBankedBankPtr
Lloh9:
	adrp	x8, _bank_data_ptrs@GOTPAGE
Lloh10:
	ldr	x8, [x8, _bank_data_ptrs@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	ldp	x0, x9, [sp]
	ldr	x8, [x8, x0, lsl #3]
	add	x20, x9, x8
	mov	x1, x20
	bl	_ReadBankedUBYTE
	mov	x19, x0
	bl	_MUL_4
	mov	x2, x0
	ldr	x0, [sp]
	add	x3, x20, #1
	mov	w1, #0
	bl	_SetBankedSpriteData
Lloh12:
	adrp	x8, _actors@GOTPAGE
Lloh13:
	ldr	x8, [x8, _actors@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	stp	xzr, xzr, [x8, #8]
	cmp	x19, #6
	b.ne	LBB0_2
; %bb.1:
Lloh15:
	adrp	x9, _SPRITE_ACTOR_ANIMATED@GOTPAGE
Lloh16:
	ldr	x9, [x9, _SPRITE_ACTOR_ANIMATED@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:
Lloh17:
	adrp	x9, _SPRITE_ACTOR@GOTPAGE
Lloh18:
	ldr	x9, [x9, _SPRITE_ACTOR@GOTPAGEOFF]
Lloh19:
	adrp	x10, _SPRITE_STATIC@GOTPAGE
Lloh20:
	ldr	x10, [x10, _SPRITE_STATIC@GOTPAGEOFF]
	cmp	x19, #3
	csel	x9, x9, x10, eq
LBB0_3:
	ldr	w9, [x9]
	cmp	x19, #3
	csinc	w10, w19, wzr, ne
	cmp	x19, #6
	mov	w11, #2
	csel	w10, w11, w10, eq
	stp	w10, w9, [x8]
	mov	w0, #0
	bl	_SceneRenderActor
Lloh21:
	adrp	x8, _map_next_sprite@GOTPAGE
Lloh22:
	ldr	x8, [x8, _map_next_sprite@GOTPAGEOFF]
Lloh23:
	str	x21, [x8]
Lloh24:
	adrp	x8, _script_cmd_args_len@GOTPAGE
Lloh25:
	ldr	x8, [x8, _script_cmd_args_len@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
Lloh27:
	adrp	x9, _script_ptr@GOTPAGE
Lloh28:
	ldr	x9, [x9, _script_ptr@GOTPAGEOFF]
	ldr	w10, [x9]
	add	w8, w8, w10
	add	w8, w8, #1
	str	w8, [x9]
Lloh29:
	adrp	x8, _TRUE@GOTPAGE
Lloh30:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
Lloh32:
	adrp	x9, _script_continue@GOTPAGE
Lloh33:
	ldr	x9, [x9, _script_continue@GOTPAGEOFF]
Lloh34:
	str	w8, [x9]
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotStr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotStr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_script_cmd_args,8,3            ; @script_cmd_args
	.comm	_DATA_PTRS_BANK,4,2             ; @DATA_PTRS_BANK
	.comm	_sprite_bank_ptrs,8,3           ; @sprite_bank_ptrs
	.comm	_bank_data_ptrs,8,3             ; @bank_data_ptrs
	.comm	_actors,8,3                     ; @actors
	.comm	_SPRITE_ACTOR_ANIMATED,4,2      ; @SPRITE_ACTOR_ANIMATED
	.comm	_SPRITE_ACTOR,4,2               ; @SPRITE_ACTOR
	.comm	_SPRITE_STATIC,4,2              ; @SPRITE_STATIC
	.comm	_map_next_sprite,8,3            ; @map_next_sprite
	.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
