	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SP_func_plat                   ## -- Begin function SP_func_plat
	.p2align	4, 0x90
_SP_func_plat:                          ## @SP_func_plat
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rdi
	callq	_G_SoundIndex
	movq	%rax, 104(%rbx)
	movq	%rax, 112(%rbx)
	leaq	L_.str.1(%rip), %rdi
	callq	_G_SoundIndex
	movq	%rax, 88(%rbx)
	movq	%rax, 96(%rbx)
	movl	56(%rbx), %edi
	callq	_VectorClear
	leaq	L_.str.2(%rip), %rdi
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdx
	callq	_G_SpawnFloat
	leaq	84(%rbx), %rdx
	leaq	L_.str.4(%rip), %rdi
	leaq	L_.str.5(%rip), %rsi
	callq	_G_SpawnInt
	leaq	4(%rbx), %rdx
	leaq	L_.str.6(%rip), %rdi
	leaq	L_.str.7(%rip), %rsi
	callq	_G_SpawnFloat
	leaq	L_.str.8(%rip), %rdi
	leaq	L_.str.9(%rip), %rsi
	leaq	-16(%rbp), %rdx
	callq	_G_SpawnFloat
	movl	$1148846080, 4(%rbx)            ## imm = 0x447A0000
	movl	80(%rbx), %esi
	movq	%rbx, %rdi
	callq	_trap_SetBrushModel
	leaq	L_.str.10(%rip), %rdi
	leaq	L_.str.11(%rip), %rsi
	leaq	-12(%rbp), %rdx
	callq	_G_SpawnFloat
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	64(%rbx), %rax
	movq	72(%rbx), %rcx
	movss	8(%rax), %xmm0                  ## xmm0 = mem[0],zero,zero,zero
	subss	8(%rcx), %xmm0
	subss	-16(%rbp), %xmm0
	movss	%xmm0, -12(%rbp)
LBB0_2:
	movq	8(%rbx), %rsi
	movq	48(%rbx), %rdi
	callq	_VectorCopy
	movq	8(%rbx), %rdi
	movq	16(%rbx), %rsi
	callq	_VectorCopy
	movq	16(%rbx), %rax
	movss	8(%rax), %xmm0                  ## xmm0 = mem[0],zero,zero,zero
	subss	-12(%rbp), %xmm0
	movss	%xmm0, 8(%rax)
	movq	%rbx, %rdi
	callq	_InitMover
	movq	_Touch_Plat@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 44(%rbx)
	movq	_Blocked_Door@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%rbx)
	movq	%rbx, 32(%rbx)
	cmpl	$0, 24(%rbx)
	jne	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	callq	_SpawnPlatTrigger
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sound/movers/plats/pt1_strt.wav"

L_.str.1:                               ## @.str.1
	.asciz	"sound/movers/plats/pt1_end.wav"

L_.str.2:                               ## @.str.2
	.asciz	"speed"

L_.str.3:                               ## @.str.3
	.asciz	"200"

L_.str.4:                               ## @.str.4
	.asciz	"dmg"

L_.str.5:                               ## @.str.5
	.asciz	"2"

L_.str.6:                               ## @.str.6
	.asciz	"wait"

L_.str.7:                               ## @.str.7
	.asciz	"1"

L_.str.8:                               ## @.str.8
	.asciz	"lip"

L_.str.9:                               ## @.str.9
	.asciz	"8"

L_.str.10:                              ## @.str.10
	.asciz	"height"

L_.str.11:                              ## @.str.11
	.asciz	"0"

	.comm	_Touch_Plat,4,2                 ## @Touch_Plat
	.comm	_Blocked_Door,4,2               ## @Blocked_Door
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SP_func_plat                   ; -- Begin function SP_func_plat
	.p2align	2
_SP_func_plat:                          ; @SP_func_plat
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_G_SoundIndex
	stp	x0, x0, [x19, #104]
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_G_SoundIndex
	stp	x0, x0, [x19, #88]
	ldr	w0, [x19, #56]
	bl	_VectorClear
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
Lloh6:
	adrp	x1, l_.str.3@PAGE
Lloh7:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x2, x19
	bl	_G_SpawnFloat
	add	x2, x19, #84
Lloh8:
	adrp	x0, l_.str.4@PAGE
Lloh9:
	add	x0, x0, l_.str.4@PAGEOFF
Lloh10:
	adrp	x1, l_.str.5@PAGE
Lloh11:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_G_SpawnInt
	add	x2, x19, #4
Lloh12:
	adrp	x0, l_.str.6@PAGE
Lloh13:
	add	x0, x0, l_.str.6@PAGEOFF
Lloh14:
	adrp	x1, l_.str.7@PAGE
Lloh15:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	_G_SpawnFloat
Lloh16:
	adrp	x0, l_.str.8@PAGE
Lloh17:
	add	x0, x0, l_.str.8@PAGEOFF
Lloh18:
	adrp	x1, l_.str.9@PAGE
Lloh19:
	add	x1, x1, l_.str.9@PAGEOFF
	add	x2, sp, #12
	bl	_G_SpawnFloat
	mov	w8, #1148846080
	str	w8, [x19, #4]
	ldr	w1, [x19, #80]
	mov	x0, x19
	bl	_trap_SetBrushModel
Lloh20:
	adrp	x0, l_.str.10@PAGE
Lloh21:
	add	x0, x0, l_.str.10@PAGEOFF
Lloh22:
	adrp	x1, l_.str.11@PAGE
Lloh23:
	add	x1, x1, l_.str.11@PAGEOFF
	add	x2, sp, #8
	bl	_G_SpawnFloat
	cbnz	w0, LBB0_2
; %bb.1:
	ldp	x8, x9, [x19, #64]
	ldr	s0, [x8, #8]
	ldr	s1, [x9, #8]
	fsub	s0, s0, s1
	ldr	s1, [sp, #12]
	fsub	s0, s0, s1
	str	s0, [sp, #8]
LBB0_2:
	ldr	x0, [x19, #48]
	ldr	x1, [x19, #8]
	bl	_VectorCopy
	ldp	x0, x1, [x19, #8]
	bl	_VectorCopy
	ldr	s0, [sp, #8]
	ldr	x8, [x19, #16]
	ldr	s1, [x8, #8]
	fsub	s0, s1, s0
	str	s0, [x8, #8]
	mov	x0, x19
	bl	_InitMover
Lloh24:
	adrp	x8, _Touch_Plat@GOTPAGE
Lloh25:
	ldr	x8, [x8, _Touch_Plat@GOTPAGEOFF]
Lloh26:
	adrp	x9, _Blocked_Door@GOTPAGE
Lloh27:
	ldr	x9, [x9, _Blocked_Door@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
Lloh29:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #40]
	str	x19, [x19, #32]
	ldr	w8, [x19, #24]
	cbnz	w8, LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_SpawnPlatTrigger
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh28
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sound/movers/plats/pt1_strt.wav"

l_.str.1:                               ; @.str.1
	.asciz	"sound/movers/plats/pt1_end.wav"

l_.str.2:                               ; @.str.2
	.asciz	"speed"

l_.str.3:                               ; @.str.3
	.asciz	"200"

l_.str.4:                               ; @.str.4
	.asciz	"dmg"

l_.str.5:                               ; @.str.5
	.asciz	"2"

l_.str.6:                               ; @.str.6
	.asciz	"wait"

l_.str.7:                               ; @.str.7
	.asciz	"1"

l_.str.8:                               ; @.str.8
	.asciz	"lip"

l_.str.9:                               ; @.str.9
	.asciz	"8"

l_.str.10:                              ; @.str.10
	.asciz	"height"

l_.str.11:                              ; @.str.11
	.asciz	"0"

	.comm	_Touch_Plat,4,2                 ; @Touch_Plat
	.comm	_Blocked_Door,4,2               ; @Blocked_Door
.subsections_via_symbols
