	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_P_RespawnSpecials              ## -- Begin function P_RespawnSpecials
	.p2align	4, 0x90
_P_RespawnSpecials:                     ## @P_RespawnSpecials
	.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	_deathmatch@GOTPCREL(%rip), %rax
	cmpl	$2, (%rax)
	jne	LBB0_13
## %bb.1:
	movq	_iquehead@GOTPCREL(%rip), %rcx
	movq	_iquetail@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rax, (%rcx)
	je	LBB0_13
## %bb.2:
	movq	_leveltime@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_itemrespawntime@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	subl	(%rdx,%rax,4), %ecx
	cmpl	$1050, %ecx                     ## imm = 0x41A
	jl	LBB0_13
## %bb.3:
	movq	_itemrespawnque@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r12
	leaq	(%rax,%rax,2), %r13
	movq	_FRACBITS@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	(%r12,%r13,8), %r14d
	shll	%cl, %r14d
	movl	4(%r12,%r13,8), %ebx
	shll	%cl, %ebx
	movl	%r14d, %edi
	movl	%ebx, %esi
	callq	_R_PointInSubsector
	movq	(%rax), %rax
	movl	(%rax), %edx
	movq	_MT_IFOG@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%r14d, %edi
	movl	%ebx, %esi
	callq	_P_SpawnMobj
	movq	_sfx_itmbk@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rax, %rdi
	callq	_S_StartSound
	movq	_NUMMOBJTYPES@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	testl	%edx, %edx
	jle	LBB0_4
## %bb.5:
	movq	8(%r12,%r13,8), %rsi
	movq	_mobjinfo@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	xorl	%ecx, %ecx
	movq	%rax, %rdi
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	(%rdi), %rsi
	je	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	incq	%rcx
	addq	$16, %rdi
	cmpq	%rcx, %rdx
	jne	LBB0_6
## %bb.8:
	movl	%edx, %ecx
	jmp	LBB0_9
LBB0_4:
	movq	_mobjinfo@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	xorl	%ecx, %ecx
LBB0_9:
	leaq	(%r12,%r13,8), %r15
	movl	%ecx, %edx
	shlq	$4, %rdx
	movq	_MF_SPAWNCEILING@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	andl	8(%rax,%rdx), %esi
	jne	LBB0_10
## %bb.11:
	movq	_ONFLOORZ@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_10:
	movq	_ONCEILINGZ@GOTPCREL(%rip), %rax
LBB0_12:
	movl	(%rax), %edx
	movl	%r14d, %edi
	movl	%ebx, %esi
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_P_SpawnMobj
	movups	(%r15), %xmm0
	movups	%xmm0, 8(%rax)
	movq	16(%r15), %rcx
	movq	%rcx, 24(%rax)
	movq	_ANG45@GOTPCREL(%rip), %rcx
	movslq	16(%r12,%r13,8), %rdx
	imulq	$-1240768329, %rdx, %rsi        ## imm = 0xB60B60B7
	shrq	$32, %rsi
	addl	%edx, %esi
	movl	%esi, %edx
	shrl	$31, %edx
	sarl	$5, %esi
	addl	%edx, %esi
	imull	(%rcx), %esi
	movl	%esi, (%rax)
	movq	_iquetail@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rax
	incq	%rax
	movq	_ITEMQUESIZE@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	decq	%rcx
	andq	%rax, %rcx
	movq	%rcx, (%rdx)
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_deathmatch,4,2                 ## @deathmatch
	.comm	_iquehead,8,3                   ## @iquehead
	.comm	_iquetail,8,3                   ## @iquetail
	.comm	_leveltime,4,2                  ## @leveltime
	.comm	_itemrespawntime,8,3            ## @itemrespawntime
	.comm	_itemrespawnque,8,3             ## @itemrespawnque
	.comm	_FRACBITS,4,2                   ## @FRACBITS
	.comm	_MT_IFOG,4,2                    ## @MT_IFOG
	.comm	_sfx_itmbk,4,2                  ## @sfx_itmbk
	.comm	_NUMMOBJTYPES,4,2               ## @NUMMOBJTYPES
	.comm	_mobjinfo,8,3                   ## @mobjinfo
	.comm	_MF_SPAWNCEILING,4,2            ## @MF_SPAWNCEILING
	.comm	_ONCEILINGZ,4,2                 ## @ONCEILINGZ
	.comm	_ONFLOORZ,4,2                   ## @ONFLOORZ
	.comm	_ANG45,4,2                      ## @ANG45
	.comm	_ITEMQUESIZE,4,2                ## @ITEMQUESIZE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_P_RespawnSpecials              ; -- Begin function P_RespawnSpecials
	.p2align	2
_P_RespawnSpecials:                     ; @P_RespawnSpecials
	.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, _deathmatch@GOTPAGE
Lloh1:
	ldr	x8, [x8, _deathmatch@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, #2
	b.ne	LBB0_10
; %bb.1:
Lloh3:
	adrp	x8, _iquehead@GOTPAGE
Lloh4:
	ldr	x8, [x8, _iquehead@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
Lloh6:
	adrp	x21, _iquetail@GOTPAGE
Lloh7:
	ldr	x21, [x21, _iquetail@GOTPAGEOFF]
	ldr	x22, [x21]
	cmp	x8, x22
	b.eq	LBB0_10
; %bb.2:
Lloh8:
	adrp	x8, _leveltime@GOTPAGE
Lloh9:
	ldr	x8, [x8, _leveltime@GOTPAGEOFF]
Lloh10:
	adrp	x9, _itemrespawntime@GOTPAGE
Lloh11:
	ldr	x9, [x9, _itemrespawntime@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
Lloh13:
	ldr	x9, [x9]
	ldr	w9, [x9, x22, lsl #2]
	sub	w8, w8, w9
	cmp	w8, #1050
	b.lt	LBB0_10
; %bb.3:
Lloh14:
	adrp	x8, _itemrespawnque@GOTPAGE
Lloh15:
	ldr	x8, [x8, _itemrespawnque@GOTPAGEOFF]
Lloh16:
	ldr	x23, [x8]
	mov	w8, #24
Lloh17:
	adrp	x9, _FRACBITS@GOTPAGE
Lloh18:
	ldr	x9, [x9, _FRACBITS@GOTPAGEOFF]
	madd	x24, x22, x8, x23
Lloh19:
	ldr	w8, [x9]
	ldp	w9, w10, [x24]
	lsl	w20, w9, w8
	lsl	w19, w10, w8
	mov	x0, x20
	mov	x1, x19
	bl	_R_PointInSubsector
	ldr	x8, [x0]
	ldr	w2, [x8]
Lloh20:
	adrp	x8, _MT_IFOG@GOTPAGE
Lloh21:
	ldr	x8, [x8, _MT_IFOG@GOTPAGEOFF]
Lloh22:
	ldr	w3, [x8]
	mov	x0, x20
	mov	x1, x19
	bl	_P_SpawnMobj
Lloh23:
	adrp	x8, _sfx_itmbk@GOTPAGE
Lloh24:
	ldr	x8, [x8, _sfx_itmbk@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	bl	_S_StartSound
Lloh26:
	adrp	x8, _NUMMOBJTYPES@GOTPAGE
Lloh27:
	ldr	x8, [x8, _NUMMOBJTYPES@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x8]
	cmp	w9, #0
	b.le	LBB0_8
; %bb.4:
	mov	x3, #0
	mov	w8, #24
	madd	x8, x22, x8, x23
	ldr	x10, [x8, #8]
Lloh29:
	adrp	x8, _mobjinfo@GOTPAGE
Lloh30:
	ldr	x8, [x8, _mobjinfo@GOTPAGEOFF]
Lloh31:
	ldr	x8, [x8]
	mov	x11, x8
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x12, [x11]
	cmp	x10, x12
	b.eq	LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x3, x3, #1
	add	x11, x11, #16
	cmp	x9, x3
	b.ne	LBB0_5
; %bb.7:
	mov	x3, x9
	b	LBB0_9
LBB0_8:
	mov	w3, #0
Lloh32:
	adrp	x8, _mobjinfo@GOTPAGE
Lloh33:
	ldr	x8, [x8, _mobjinfo@GOTPAGEOFF]
Lloh34:
	ldr	x8, [x8]
LBB0_9:
	add	x8, x8, w3, uxtw #4
	ldr	w8, [x8, #8]
Lloh35:
	adrp	x9, _MF_SPAWNCEILING@GOTPAGE
Lloh36:
	ldr	x9, [x9, _MF_SPAWNCEILING@GOTPAGEOFF]
Lloh37:
	adrp	x10, _ONFLOORZ@GOTPAGE
Lloh38:
	ldr	x10, [x10, _ONFLOORZ@GOTPAGEOFF]
Lloh39:
	ldr	w9, [x9]
Lloh40:
	adrp	x11, _ONCEILINGZ@GOTPAGE
Lloh41:
	ldr	x11, [x11, _ONCEILINGZ@GOTPAGEOFF]
	tst	w9, w8
	csel	x8, x10, x11, eq
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x19
                                        ; kill: def $w3 killed $w3 killed $x3
	bl	_P_SpawnMobj
	ldr	x8, [x24, #16]
	ldr	q0, [x24]
	stur	q0, [x0, #8]
	str	x8, [x0, #24]
Lloh42:
	adrp	x8, _ANG45@GOTPAGE
Lloh43:
	ldr	x8, [x8, _ANG45@GOTPAGEOFF]
Lloh44:
	ldr	w8, [x8]
	mov	w9, #24
	mul	x9, x22, x9
	add	x9, x23, x9
	ldrsw	x9, [x9, #16]
	mov	x10, #-40777
	movk	x10, #46603, lsl #16
	mul	x10, x9, x10
	lsr	x10, x10, #32
	add	w9, w10, w9
	asr	w10, w9, #5
	add	w9, w10, w9, lsr #31
	mul	w8, w9, w8
	str	w8, [x0]
	ldr	x8, [x21]
	add	x8, x8, #1
Lloh45:
	adrp	x9, _ITEMQUESIZE@GOTPAGE
Lloh46:
	ldr	x9, [x9, _ITEMQUESIZE@GOTPAGEOFF]
Lloh47:
	ldrsw	x9, [x9]
	sub	x9, x9, #1
	and	x8, x8, x9
	str	x8, [x21]
LBB0_10:
	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	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh12
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh39
	.cfi_endproc
                                        ; -- End function
	.comm	_deathmatch,4,2                 ; @deathmatch
	.comm	_iquehead,8,3                   ; @iquehead
	.comm	_iquetail,8,3                   ; @iquetail
	.comm	_leveltime,4,2                  ; @leveltime
	.comm	_itemrespawntime,8,3            ; @itemrespawntime
	.comm	_itemrespawnque,8,3             ; @itemrespawnque
	.comm	_FRACBITS,4,2                   ; @FRACBITS
	.comm	_MT_IFOG,4,2                    ; @MT_IFOG
	.comm	_sfx_itmbk,4,2                  ; @sfx_itmbk
	.comm	_NUMMOBJTYPES,4,2               ; @NUMMOBJTYPES
	.comm	_mobjinfo,8,3                   ; @mobjinfo
	.comm	_MF_SPAWNCEILING,4,2            ; @MF_SPAWNCEILING
	.comm	_ONCEILINGZ,4,2                 ; @ONCEILINGZ
	.comm	_ONFLOORZ,4,2                   ; @ONFLOORZ
	.comm	_ANG45,4,2                      ; @ANG45
	.comm	_ITEMQUESIZE,4,2                ; @ITEMQUESIZE
.subsections_via_symbols
