	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SceneHandleTriggers_b          ## -- Begin function SceneHandleTriggers_b
	.p2align	4, 0x90
_SceneHandleTriggers_b:                 ## @SceneHandleTriggers_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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_check_triggers@GOTPCREL(%rip), %rbx
	cmpq	$0, (%rbx)
	je	LBB0_4
## %bb.1:
	movq	_script_ptr@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_4
## %bb.2:
	xorl	%edi, %edi
	callq	_ACTOR_ON_TILE
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_FALSE@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movq	%rax, (%rbx)
	movq	_actors@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	movq	_ACTOR_MAX_Y@GOTPCREL(%rip), %rcx
	movq	8(%rax), %rdx
	movq	16(%rax), %rdi
	xorl	%ebx, %ebx
	cmpq	(%rcx), %rdx
	sete	%bl
	callq	_DIV_8
	movq	%rax, %r14
	movq	(%r12), %rax
	movq	8(%rax), %rdi
	callq	_DIV_8
	addq	%rax, %rbx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_SceneTriggerAt_b
	movq	_scene_num_triggers@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
LBB0_4:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	(%r15), %rcx
	movq	(%r12), %rdx
	movq	%rcx, (%rdx)
	movq	_last_joy@GOTPCREL(%rip), %rcx
	andl	$240, (%rcx)
	movq	_script_actor@GOTPCREL(%rip), %rcx
	movq	$0, (%rcx)
	movq	_triggers@GOTPCREL(%rip), %rcx
	shlq	$2, %rax
	addq	(%rcx), %rax
	movq	%rax, %rdi
	callq	_ScriptStart
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ScriptRunnerUpdate             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_check_triggers,8,3             ## @check_triggers
	.comm	_script_ptr,8,3                 ## @script_ptr
	.comm	_FALSE,8,3                      ## @FALSE
	.comm	_actors,8,3                     ## @actors
	.comm	_ACTOR_MAX_Y,8,3                ## @ACTOR_MAX_Y
	.comm	_scene_num_triggers,8,3         ## @scene_num_triggers
	.comm	_last_joy,4,2                   ## @last_joy
	.comm	_script_actor,8,3               ## @script_actor
	.comm	_triggers,8,3                   ## @triggers
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SceneHandleTriggers_b          ; -- Begin function SceneHandleTriggers_b
	.p2align	2
_SceneHandleTriggers_b:                 ; @SceneHandleTriggers_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
Lloh0:
	adrp	x19, _check_triggers@GOTPAGE
Lloh1:
	ldr	x19, [x19, _check_triggers@GOTPAGEOFF]
	ldr	x8, [x19]
Lloh2:
	adrp	x9, _script_ptr@GOTPAGE
Lloh3:
	ldr	x9, [x9, _script_ptr@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, #0
	ccmp	x9, #0, #0, ne
	b.ne	LBB0_3
; %bb.1:
	mov	w0, #0
	bl	_ACTOR_ON_TILE
	cbz	x0, LBB0_3
; %bb.2:
Lloh5:
	adrp	x20, _FALSE@GOTPAGE
Lloh6:
	ldr	x20, [x20, _FALSE@GOTPAGEOFF]
	ldr	x8, [x20]
	str	x8, [x19]
Lloh7:
	adrp	x21, _actors@GOTPAGE
Lloh8:
	ldr	x21, [x21, _actors@GOTPAGEOFF]
	ldr	x8, [x21]
Lloh9:
	adrp	x9, _ACTOR_MAX_Y@GOTPAGE
Lloh10:
	ldr	x9, [x9, _ACTOR_MAX_Y@GOTPAGEOFF]
Lloh11:
	ldr	x22, [x9]
	ldp	x23, x0, [x8, #8]
	bl	_DIV_8
	mov	x19, x0
	ldr	x8, [x21]
	ldr	x0, [x8, #8]
	bl	_DIV_8
	cmp	x23, x22
	cinc	x1, x0, eq
	mov	x0, x19
	bl	_SceneTriggerAt_b
Lloh12:
	adrp	x8, _scene_num_triggers@GOTPAGE
Lloh13:
	ldr	x8, [x8, _scene_num_triggers@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_4
LBB0_3:
	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_4:
	ldr	x8, [x20]
	ldr	x9, [x21]
	str	x8, [x9]
Lloh15:
	adrp	x8, _last_joy@GOTPAGE
Lloh16:
	ldr	x8, [x8, _last_joy@GOTPAGEOFF]
	ldr	w9, [x8]
	and	w9, w9, #0xf0
Lloh17:
	adrp	x10, _script_actor@GOTPAGE
Lloh18:
	ldr	x10, [x10, _script_actor@GOTPAGEOFF]
	str	w9, [x8]
Lloh19:
	str	xzr, [x10]
Lloh20:
	adrp	x8, _triggers@GOTPAGE
Lloh21:
	ldr	x8, [x8, _triggers@GOTPAGEOFF]
Lloh22:
	ldr	x8, [x8]
	add	x0, x8, x0, lsl #2
	bl	_ScriptStart
	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
	b	_ScriptRunnerUpdate
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotStr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_check_triggers,8,3             ; @check_triggers
	.comm	_script_ptr,8,3                 ; @script_ptr
	.comm	_FALSE,8,3                      ; @FALSE
	.comm	_actors,8,3                     ; @actors
	.comm	_ACTOR_MAX_Y,8,3                ; @ACTOR_MAX_Y
	.comm	_scene_num_triggers,8,3         ; @scene_num_triggers
	.comm	_last_joy,4,2                   ; @last_joy
	.comm	_script_actor,8,3               ; @script_actor
	.comm	_triggers,8,3                   ; @triggers
.subsections_via_symbols
