	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_P_UpdateSpecials               ## -- Begin function P_UpdateSpecials
	.p2align	4, 0x90
_P_UpdateSpecials:                      ## @P_UpdateSpecials
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_levelTimer@GOTPCREL(%rip), %rax
	cmpl	$1, (%rax)
	jne	LBB0_3
## %bb.1:
	movq	_levelTimeCount@GOTPCREL(%rip), %rax
	decl	(%rax)
	jne	LBB0_3
## %bb.2:
	xorl	%eax, %eax
	callq	_G_ExitLevel
LBB0_3:
	movq	_anims@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	_lastanim@GOTPCREL(%rip), %rax
	movq	(%rax), %r10
	cmpq	%r10, %rcx
	jae	LBB0_11
## %bb.4:
	movq	_texturetranslation@GOTPCREL(%rip), %r9
	movq	_flattranslation@GOTPCREL(%rip), %r8
	movq	_leveltime@GOTPCREL(%rip), %r11
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_5 Depth=1
	addq	$24, %rcx
	cmpq	%r10, %rcx
	jae	LBB0_11
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_9 Depth 2
	movl	4(%rcx), %edi
	testl	%edi, %edi
	jle	LBB0_10
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpq	$0, 16(%rcx)
	movq	%r9, %rax
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%r8, %rax
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	movl	(%rcx), %ebx
	movslq	%ebx, %rsi
	movq	(%rax), %r14
	.p2align	4, 0x90
LBB0_9:                                 ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%r11), %eax
	cltd
	idivl	8(%rcx)
	addl	%esi, %eax
	cltd
	idivl	%edi
	addl	%ebx, %edx
	movl	%edx, (%r14,%rsi,4)
	incq	%rsi
	movl	(%rcx), %ebx
	movl	4(%rcx), %edi
	leal	(%rdi,%rbx), %eax
	cltq
	cmpq	%rax, %rsi
	jl	LBB0_9
	jmp	LBB0_10
LBB0_11:
	movq	_numlinespecials@GOTPCREL(%rip), %r8
	movl	(%r8), %edx
	testl	%edx, %edx
	jle	LBB0_16
## %bb.12:
	movq	_linespeciallist@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	_sides@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	xorl	%edi, %edi
	movq	_FRACUNIT@GOTPCREL(%rip), %rbx
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_13 Depth=1
	incq	%rdi
	movslq	%edx, %rax
	cmpq	%rax, %rdi
	jge	LBB0_16
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rcx,%rdi,8), %rax
	cmpl	$48, (%rax)
	jne	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	movl	(%rbx), %edx
	movq	8(%rax), %rax
	movq	(%rax), %rax
	shlq	$4, %rax
	addl	%edx, 12(%rsi,%rax)
	movl	(%r8), %edx
	jmp	LBB0_15
LBB0_16:
	movq	_MAXBUTTONS@GOTPCREL(%rip), %r14
	movl	(%r14), %ecx
	testl	%ecx, %ecx
	jle	LBB0_28
## %bb.17:
	xorl	%ebx, %ebx
	movq	_buttonlist@GOTPCREL(%rip), %r15
	movq	_sfx_swtchn@GOTPCREL(%rip), %r13
	xorl	%r12d, %r12d
	jmp	LBB0_18
LBB0_24:                                ##   in Loop: Header=BB0_18 Depth=1
	movl	8(%rax,%rbx), %ecx
	movq	_sides@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	16(%rax,%rbx), %rsi
	movq	(%rsi), %rsi
	movq	(%rsi), %rsi
	shlq	$4, %rsi
	movl	%ecx, 4(%rdx,%rsi)
LBB0_26:                                ##   in Loop: Header=BB0_18 Depth=1
	leaq	(%rax,%rbx), %rdi
	addq	$4, %rdi
	movl	(%r13), %esi
	callq	_S_StartSound
	movq	(%r15), %rdi
	addq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movl	(%r14), %ecx
LBB0_27:                                ##   in Loop: Header=BB0_18 Depth=1
	incq	%r12
	movslq	%ecx, %rax
	addq	$32, %rbx
	cmpq	%rax, %r12
	jge	LBB0_28
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rax
	movq	24(%rax,%rbx), %rdx
	testq	%rdx, %rdx
	je	LBB0_27
## %bb.19:                              ##   in Loop: Header=BB0_18 Depth=1
	decq	%rdx
	movq	%rdx, 24(%rax,%rbx)
	jne	LBB0_27
## %bb.20:                              ##   in Loop: Header=BB0_18 Depth=1
	movl	(%rax,%rbx), %ecx
	cmpl	$130, %ecx
	je	LBB0_25
## %bb.21:                              ##   in Loop: Header=BB0_18 Depth=1
	cmpl	$129, %ecx
	je	LBB0_24
## %bb.22:                              ##   in Loop: Header=BB0_18 Depth=1
	cmpl	$128, %ecx
	jne	LBB0_26
## %bb.23:                              ##   in Loop: Header=BB0_18 Depth=1
	movl	8(%rax,%rbx), %ecx
	movq	_sides@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	16(%rax,%rbx), %rsi
	movq	(%rsi), %rsi
	movq	(%rsi), %rsi
	shlq	$4, %rsi
	movl	%ecx, 8(%rdx,%rsi)
	jmp	LBB0_26
LBB0_25:                                ##   in Loop: Header=BB0_18 Depth=1
	movl	8(%rax,%rbx), %ecx
	movq	_sides@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	16(%rax,%rbx), %rsi
	movq	(%rsi), %rsi
	movq	(%rsi), %rsi
	shlq	$4, %rsi
	movl	%ecx, (%rdx,%rsi)
	jmp	LBB0_26
LBB0_28:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_levelTimer,4,2                 ## @levelTimer
	.comm	_levelTimeCount,4,2             ## @levelTimeCount
	.comm	_anims,8,3                      ## @anims
	.comm	_lastanim,8,3                   ## @lastanim
	.comm	_leveltime,4,2                  ## @leveltime
	.comm	_texturetranslation,8,3         ## @texturetranslation
	.comm	_flattranslation,8,3            ## @flattranslation
	.comm	_numlinespecials,4,2            ## @numlinespecials
	.comm	_linespeciallist,8,3            ## @linespeciallist
	.comm	_FRACUNIT,4,2                   ## @FRACUNIT
	.comm	_sides,8,3                      ## @sides
	.comm	_MAXBUTTONS,4,2                 ## @MAXBUTTONS
	.comm	_buttonlist,8,3                 ## @buttonlist
	.comm	_sfx_swtchn,4,2                 ## @sfx_swtchn
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_P_UpdateSpecials               ; -- Begin function P_UpdateSpecials
	.p2align	2
_P_UpdateSpecials:                      ; @P_UpdateSpecials
	.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	x8, _levelTimer@GOTPAGE
Lloh1:
	ldr	x8, [x8, _levelTimer@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, #1
	b.ne	LBB0_3
; %bb.1:
Lloh3:
	adrp	x8, _levelTimeCount@GOTPAGE
Lloh4:
	ldr	x8, [x8, _levelTimeCount@GOTPAGEOFF]
	ldr	w9, [x8]
	subs	w9, w9, #1
	str	w9, [x8]
	b.ne	LBB0_3
; %bb.2:
	bl	_G_ExitLevel
LBB0_3:
Lloh5:
	adrp	x8, _anims@GOTPAGE
Lloh6:
	ldr	x8, [x8, _anims@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
Lloh8:
	adrp	x9, _lastanim@GOTPAGE
Lloh9:
	ldr	x9, [x9, _lastanim@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.hs	LBB0_9
; %bb.4:
Lloh11:
	adrp	x10, _texturetranslation@GOTPAGE
Lloh12:
	ldr	x10, [x10, _texturetranslation@GOTPAGEOFF]
Lloh13:
	adrp	x11, _flattranslation@GOTPAGE
Lloh14:
	ldr	x11, [x11, _flattranslation@GOTPAGEOFF]
Lloh15:
	adrp	x12, _leveltime@GOTPAGE
Lloh16:
	ldr	x12, [x12, _leveltime@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x8, x8, #24
	cmp	x8, x9
	b.hs	LBB0_9
LBB0_6:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
	ldr	w13, [x8, #4]
	cmp	w13, #1
	b.lt	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w14, [x8]
	ldr	x16, [x8, #16]
	sxtw	x15, w14
	cmp	x16, #0
	csel	x16, x11, x10, eq
	ldr	x16, [x16]
LBB0_8:                                 ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w17, [x12]
	ldr	w0, [x8, #8]
	sdiv	w17, w17, w0
	add	w17, w15, w17
	sdiv	w0, w17, w13
	msub	w13, w0, w13, w17
	add	w13, w13, w14
	str	w13, [x16, x15, lsl #2]
	add	x15, x15, #1
	ldp	w14, w13, [x8]
	add	w17, w13, w14
	cmp	x15, w17, sxtw
	b.lt	LBB0_8
	b	LBB0_5
LBB0_9:
Lloh17:
	adrp	x8, _numlinespecials@GOTPAGE
Lloh18:
	ldr	x8, [x8, _numlinespecials@GOTPAGEOFF]
	ldr	w11, [x8]
Lloh19:
	adrp	x19, _sides@GOTPAGE
Lloh20:
	ldr	x19, [x19, _sides@GOTPAGEOFF]
	cmp	w11, #1
	b.lt	LBB0_14
; %bb.10:
	mov	x9, #0
Lloh21:
	adrp	x10, _linespeciallist@GOTPAGE
Lloh22:
	ldr	x10, [x10, _linespeciallist@GOTPAGEOFF]
Lloh23:
	ldr	x10, [x10]
	ldr	x12, [x19]
Lloh24:
	adrp	x13, _FRACUNIT@GOTPAGE
Lloh25:
	ldr	x13, [x13, _FRACUNIT@GOTPAGEOFF]
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	add	x9, x9, #1
	cmp	x9, w11, sxtw
	b.ge	LBB0_14
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	x14, [x10, x9, lsl #3]
	ldr	w15, [x14]
	cmp	w15, #48
	b.ne	LBB0_11
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	w11, [x13]
	ldr	x14, [x14, #8]
	ldr	x14, [x14]
	add	x14, x12, x14, lsl #4
	ldr	w15, [x14, #12]
	add	w11, w15, w11
	str	w11, [x14, #12]
	ldr	w11, [x8]
	b	LBB0_11
LBB0_14:
Lloh26:
	adrp	x20, _MAXBUTTONS@GOTPAGE
Lloh27:
	ldr	x20, [x20, _MAXBUTTONS@GOTPAGEOFF]
	ldr	w9, [x20]
	cmp	w9, #1
	b.lt	LBB0_26
; %bb.15:
	mov	x21, #0
	mov	x22, #0
Lloh28:
	adrp	x23, _buttonlist@GOTPAGE
Lloh29:
	ldr	x23, [x23, _buttonlist@GOTPAGEOFF]
Lloh30:
	adrp	x24, _sfx_swtchn@GOTPAGE
Lloh31:
	ldr	x24, [x24, _sfx_swtchn@GOTPAGEOFF]
	b	LBB0_19
LBB0_16:                                ;   in Loop: Header=BB0_19 Depth=1
	add	x9, x8, x21
	ldr	w10, [x9, #8]
	ldr	x11, [x19]
	ldr	x9, [x9, #16]
	ldr	x9, [x9]
	ldr	x9, [x9]
	add	x9, x11, x9, lsl #4
	str	w10, [x9, #4]
LBB0_17:                                ;   in Loop: Header=BB0_19 Depth=1
	add	x8, x8, x21
	add	x0, x8, #4
	ldr	w1, [x24]
	bl	_S_StartSound
	ldr	x8, [x23]
	add	x0, x8, x21
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	ldr	w9, [x20]
LBB0_18:                                ;   in Loop: Header=BB0_19 Depth=1
	add	x22, x22, #1
	add	x21, x21, #32
	cmp	x22, w9, sxtw
	b.ge	LBB0_26
LBB0_19:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x23]
	add	x10, x8, x21
	ldr	x11, [x10, #24]
	cbz	x11, LBB0_18
; %bb.20:                               ;   in Loop: Header=BB0_19 Depth=1
	subs	x11, x11, #1
	str	x11, [x10, #24]
	b.ne	LBB0_18
; %bb.21:                               ;   in Loop: Header=BB0_19 Depth=1
	ldr	w9, [x8, x21]
	cmp	w9, #130
	b.eq	LBB0_25
; %bb.22:                               ;   in Loop: Header=BB0_19 Depth=1
	cmp	w9, #129
	b.eq	LBB0_16
; %bb.23:                               ;   in Loop: Header=BB0_19 Depth=1
	cmp	w9, #128
	b.ne	LBB0_17
; %bb.24:                               ;   in Loop: Header=BB0_19 Depth=1
	add	x9, x8, x21
	ldr	w10, [x9, #8]
	ldr	x11, [x19]
	ldr	x9, [x9, #16]
	ldr	x9, [x9]
	ldr	x9, [x9]
	add	x9, x11, x9, lsl #4
	str	w10, [x9, #8]
	b	LBB0_17
LBB0_25:                                ;   in Loop: Header=BB0_19 Depth=1
	add	x9, x8, x21
	ldr	w10, [x9, #8]
	ldr	x11, [x19]
	ldr	x9, [x9, #16]
	ldr	x9, [x9]
	ldr	x9, [x9]
	lsl	x9, x9, #4
	str	w10, [x11, x9]
	b	LBB0_17
LBB0_26:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_levelTimer,4,2                 ; @levelTimer
	.comm	_levelTimeCount,4,2             ; @levelTimeCount
	.comm	_anims,8,3                      ; @anims
	.comm	_lastanim,8,3                   ; @lastanim
	.comm	_leveltime,4,2                  ; @leveltime
	.comm	_texturetranslation,8,3         ; @texturetranslation
	.comm	_flattranslation,8,3            ; @flattranslation
	.comm	_numlinespecials,4,2            ; @numlinespecials
	.comm	_linespeciallist,8,3            ; @linespeciallist
	.comm	_FRACUNIT,4,2                   ; @FRACUNIT
	.comm	_sides,8,3                      ; @sides
	.comm	_MAXBUTTONS,4,2                 ; @MAXBUTTONS
	.comm	_buttonlist,8,3                 ; @buttonlist
	.comm	_sfx_swtchn,4,2                 ; @sfx_swtchn
.subsections_via_symbols
