	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_P_RemoveMobj                   ## -- Begin function P_RemoveMobj
	.p2align	4, 0x90
_P_RemoveMobj:                          ## @P_RemoveMobj
	.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
	movl	(%rdi), %eax
	movq	_MF_SPECIAL@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_6
## %bb.1:
	movq	_MF_DROPPED@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_2
LBB0_6:
	movq	%rbx, %rdi
	callq	_P_UnsetThingPosition
	movq	%rbx, %rdi
	callq	_S_StopSound
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_P_RemoveThinker                ## TAILCALL
LBB0_2:
	movq	8(%rbx), %rax
	movq	_MT_INV@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_6
## %bb.3:
	movq	_MT_INS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_6
## %bb.4:
	movl	16(%rbx), %ecx
	movq	_itemrespawnque@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	_iquehead@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rax
	movl	%ecx, (%rdx,%rax,4)
	movq	_leveltime@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_itemrespawntime@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	%ecx, (%rdx,%rax,4)
	incq	%rax
	movq	_ITEMQUESIZE@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	decq	%rcx
	andq	%rcx, %rax
	movq	%rax, (%rsi)
	movq	_iquetail@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	jne	LBB0_6
## %bb.5:
	incq	%rax
	andq	%rcx, %rax
	movq	%rax, (%rdx)
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_MF_SPECIAL,4,2                 ## @MF_SPECIAL
	.comm	_MF_DROPPED,4,2                 ## @MF_DROPPED
	.comm	_MT_INV,8,3                     ## @MT_INV
	.comm	_MT_INS,8,3                     ## @MT_INS
	.comm	_itemrespawnque,8,3             ## @itemrespawnque
	.comm	_iquehead,8,3                   ## @iquehead
	.comm	_leveltime,4,2                  ## @leveltime
	.comm	_itemrespawntime,8,3            ## @itemrespawntime
	.comm	_ITEMQUESIZE,4,2                ## @ITEMQUESIZE
	.comm	_iquetail,8,3                   ## @iquetail
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_P_RemoveMobj                   ; -- Begin function P_RemoveMobj
	.p2align	2
_P_RemoveMobj:                          ; @P_RemoveMobj
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _MF_SPECIAL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MF_SPECIAL@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.1:
Lloh3:
	adrp	x9, _MF_DROPPED@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MF_DROPPED@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_5
; %bb.2:
	ldr	x8, [x19, #8]
Lloh6:
	adrp	x9, _MT_INV@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MT_INV@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
Lloh9:
	adrp	x10, _MT_INS@GOTPAGE
Lloh10:
	ldr	x10, [x10, _MT_INS@GOTPAGEOFF]
Lloh11:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.eq	LBB0_5
; %bb.3:
	ldr	w8, [x19, #16]
Lloh12:
	adrp	x9, _itemrespawnque@GOTPAGE
Lloh13:
	ldr	x9, [x9, _itemrespawnque@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
Lloh15:
	adrp	x10, _iquehead@GOTPAGE
Lloh16:
	ldr	x10, [x10, _iquehead@GOTPAGEOFF]
	ldr	x11, [x10]
	lsl	x12, x11, #2
	str	w8, [x9, x12]
Lloh17:
	adrp	x8, _leveltime@GOTPAGE
Lloh18:
	ldr	x8, [x8, _leveltime@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
Lloh20:
	adrp	x9, _itemrespawntime@GOTPAGE
Lloh21:
	ldr	x9, [x9, _itemrespawntime@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	str	w8, [x9, x12]
	add	x9, x11, #1
Lloh23:
	adrp	x8, _ITEMQUESIZE@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ITEMQUESIZE@GOTPAGEOFF]
Lloh25:
	ldrsw	x8, [x8]
	sub	x8, x8, #1
	and	x9, x9, x8
	str	x9, [x10]
Lloh26:
	adrp	x10, _iquetail@GOTPAGE
Lloh27:
	ldr	x10, [x10, _iquetail@GOTPAGEOFF]
	ldr	x11, [x10]
	cmp	x9, x11
	b.ne	LBB0_5
; %bb.4:
	add	x9, x9, #1
	and	x8, x9, x8
	str	x8, [x10]
LBB0_5:
	mov	x0, x19
	bl	_P_UnsetThingPosition
	mov	x0, x19
	bl	_S_StopSound
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_P_RemoveThinker
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_MF_SPECIAL,4,2                 ; @MF_SPECIAL
	.comm	_MF_DROPPED,4,2                 ; @MF_DROPPED
	.comm	_MT_INV,8,3                     ; @MT_INV
	.comm	_MT_INS,8,3                     ; @MT_INS
	.comm	_itemrespawnque,8,3             ; @itemrespawnque
	.comm	_iquehead,8,3                   ; @iquehead
	.comm	_leveltime,4,2                  ; @leveltime
	.comm	_itemrespawntime,8,3            ; @itemrespawntime
	.comm	_ITEMQUESIZE,4,2                ; @ITEMQUESIZE
	.comm	_iquetail,8,3                   ; @iquetail
.subsections_via_symbols
