	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SP_func_door                   ## -- Begin function SP_func_door
	.p2align	4, 0x90
_SP_func_door:                          ## @SP_func_door
	.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, 120(%rbx)
	movq	%rax, 128(%rbx)
	leaq	L_.str.1(%rip), %rdi
	callq	_G_SoundIndex
	movq	%rax, 104(%rbx)
	movq	%rax, 112(%rbx)
	movq	_Blocked_Door@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 100(%rbx)
	cmpl	$0, (%rbx)
	jne	LBB0_2
## %bb.1:
	movl	$400, (%rbx)                    ## imm = 0x190
LBB0_2:
	movl	4(%rbx), %eax
	imull	$1000, %eax, %ecx               ## imm = 0x3E8
	testl	%eax, %eax
	movl	$2000, %eax                     ## imm = 0x7D0
	cmovnel	%ecx, %eax
	movl	%eax, 4(%rbx)
	leaq	L_.str.2(%rip), %rdi
	leaq	L_.str.3(%rip), %rsi
	leaq	-12(%rbp), %rdx
	callq	_G_SpawnFloat
	leaq	8(%rbx), %rdx
	leaq	L_.str.4(%rip), %rdi
	leaq	L_.str.5(%rip), %rsi
	callq	_G_SpawnInt
	movq	48(%rbx), %rsi
	movq	64(%rbx), %rdi
	callq	_VectorCopy
	movl	96(%rbx), %esi
	movq	%rbx, %rdi
	callq	_trap_SetBrushModel
	movl	72(%rbx), %edi
	movq	80(%rbx), %rsi
	callq	_G_SetMovedir
	movq	80(%rbx), %rax
	movl	(%rax), %edi
	callq	_fabs
	ud2
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sound/movers/doors/dr1_strt.wav"

L_.str.1:                               ## @.str.1
	.asciz	"sound/movers/doors/dr1_end.wav"

	.comm	_Blocked_Door,4,2               ## @Blocked_Door
L_.str.2:                               ## @.str.2
	.asciz	"lip"

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

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

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

	.comm	_level,8,3                      ## @level
	.comm	_FRAMETIME,8,3                  ## @FRAMETIME
	.comm	_FL_TEAMSLAVE,4,2               ## @FL_TEAMSLAVE
	.comm	_qtrue,4,2                      ## @qtrue
	.comm	_Think_MatchTeam,4,2            ## @Think_MatchTeam
	.comm	_Think_SpawnNewDoorTrigger,4,2  ## @Think_SpawnNewDoorTrigger
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SP_func_door                   ; -- Begin function SP_func_door
	.p2align	2
_SP_func_door:                          ; @SP_func_door
	.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, #120]
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_G_SoundIndex
	stp	x0, x0, [x19, #104]
Lloh4:
	adrp	x8, _Blocked_Door@GOTPAGE
Lloh5:
	ldr	x8, [x8, _Blocked_Door@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	str	w8, [x19, #100]
	ldr	w8, [x19]
	cbnz	w8, LBB0_2
; %bb.1:
	mov	w8, #400
	str	w8, [x19]
LBB0_2:
	ldr	w8, [x19, #4]
	mov	w9, #1000
	mul	w9, w8, w9
	mov	w10, #2000
	cmp	w8, #0
	csel	w8, w10, w9, eq
	str	w8, [x19, #4]
Lloh7:
	adrp	x0, l_.str.2@PAGE
Lloh8:
	add	x0, x0, l_.str.2@PAGEOFF
Lloh9:
	adrp	x1, l_.str.3@PAGE
Lloh10:
	add	x1, x1, l_.str.3@PAGEOFF
	add	x2, sp, #12
	bl	_G_SpawnFloat
	add	x2, x19, #8
Lloh11:
	adrp	x0, l_.str.4@PAGE
Lloh12:
	add	x0, x0, l_.str.4@PAGEOFF
Lloh13:
	adrp	x1, l_.str.5@PAGE
Lloh14:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_G_SpawnInt
	ldr	x0, [x19, #64]
	ldr	x1, [x19, #48]
	bl	_VectorCopy
	ldr	w1, [x19, #96]
	mov	x0, x19
	bl	_trap_SetBrushModel
	ldr	w0, [x19, #72]
	ldr	x1, [x19, #80]
	bl	_G_SetMovedir
	ldr	x8, [x19, #80]
	ldr	w0, [x8]
	bl	_fabs
	brk	#0x1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sound/movers/doors/dr1_strt.wav"

l_.str.1:                               ; @.str.1
	.asciz	"sound/movers/doors/dr1_end.wav"

	.comm	_Blocked_Door,4,2               ; @Blocked_Door
l_.str.2:                               ; @.str.2
	.asciz	"lip"

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

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

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

	.comm	_level,8,3                      ; @level
	.comm	_FRAMETIME,8,3                  ; @FRAMETIME
	.comm	_FL_TEAMSLAVE,4,2               ; @FL_TEAMSLAVE
	.comm	_qtrue,4,2                      ; @qtrue
	.comm	_Think_MatchTeam,4,2            ; @Think_MatchTeam
	.comm	_Think_SpawnNewDoorTrigger,4,2  ; @Think_SpawnNewDoorTrigger
.subsections_via_symbols
