	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_P_KillMobj                     ## -- Begin function P_KillMobj
	.p2align	4, 0x90
_P_KillMobj:                            ## @P_KillMobj
	.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	_MF_SHOOTABLE@GOTPCREL(%rip), %rcx
	movq	_MF_FLOAT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%rcx), %eax
	movq	%rsi, %rbx
	movq	_MF_SKULLFLY@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	notl	%eax
	andl	(%rsi), %eax
	movl	%eax, (%rsi)
	movl	4(%rsi), %ecx
	movq	_MT_SKULL@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	je	LBB0_2
## %bb.1:
	movq	_MF_NOGRAVITY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	andl	%ecx, %eax
	movl	%eax, (%rbx)
LBB0_2:
	movq	_MF_CORPSE@GOTPCREL(%rip), %rdx
	movq	_MF_DROPOFF@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rdx), %ecx
	orl	%eax, %ecx
	movl	%ecx, (%rbx)
	sarl	$2, 8(%rbx)
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.3:
	movq	40(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_8
## %bb.4:
	movq	_MF_COUNTKILL@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_6
## %bb.5:
	incl	16(%rax)
LBB0_6:
	movq	40(%rbx), %rcx
	testq	%rcx, %rcx
	je	LBB0_11
## %bb.7:
	movq	8(%rax), %rax
	movq	_players@GOTPCREL(%rip), %rdx
	subq	(%rdx), %rcx
	sarq	$3, %rcx
	movabsq	$-6148914691236517204, %rdx     ## imm = 0xAAAAAAAAAAAAAAAC
	imulq	%rcx, %rdx
	incl	(%rax,%rdx)
	jmp	LBB0_11
LBB0_8:
	movq	_netgame@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_11
## %bb.9:
	movq	_MF_COUNTKILL@GOTPCREL(%rip), %rax
	testl	%ecx, (%rax)
	je	LBB0_11
## %bb.10:
	movq	_players@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	incl	16(%rax)
LBB0_11:
	movq	40(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_17
## %bb.12:
	testq	%rdi, %rdi
	jne	LBB0_14
## %bb.13:
	movq	8(%rax), %rcx
	movq	_players@GOTPCREL(%rip), %rdx
	movq	%rax, %rsi
	subq	(%rdx), %rsi
	sarq	$3, %rsi
	movabsq	$-6148914691236517204, %rdx     ## imm = 0xAAAAAAAAAAAAAAAC
	imulq	%rsi, %rdx
	incl	(%rcx,%rdx)
LBB0_14:
	movq	_MF_SOLID@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	andl	%ecx, (%rbx)
	movq	_PST_DEAD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, (%rax)
	movq	%rax, %rdi
	callq	_P_DropWeapon
	movq	_players@GOTPCREL(%rip), %rax
	movq	_consoleplayer@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	leaq	(%rcx,%rcx,2), %rcx
	shlq	$3, %rcx
	addq	(%rax), %rcx
	cmpq	%rcx, 40(%rbx)
	jne	LBB0_17
## %bb.15:
	movq	_automapactive@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_17
## %bb.16:
	xorl	%eax, %eax
	callq	_AM_Stop
LBB0_17:
	movq	24(%rbx), %rax
	xorl	%ecx, %ecx
	subl	16(%rax), %ecx
	cmpl	%ecx, 32(%rbx)
	jge	LBB0_19
## %bb.18:
	movq	8(%rax), %rsi
	testq	%rsi, %rsi
	jne	LBB0_20
LBB0_19:
	movq	(%rax), %rsi
LBB0_20:
	movq	%rbx, %rdi
	callq	_P_SetMobjState
	xorl	%eax, %eax
	callq	_P_Random
	andl	$3, %eax
	movl	12(%rbx), %ecx
	subl	%eax, %ecx
	cmpl	$2, %ecx
	movl	$1, %edx
	cmovgel	%ecx, %edx
	movl	4(%rbx), %eax
	movl	%edx, 12(%rbx)
	addl	$-128, %eax
	cmpl	$3, %eax
	ja	LBB0_22
## %bb.21:
	cltq
	leaq	l_switch.table.P_KillMobj(%rip), %rcx
	movq	(%rcx,%rax,8), %rax
	movl	(%rax), %ecx
	movl	16(%rbx), %esi
	movl	20(%rbx), %edi
	movq	_ONFLOORZ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_P_SpawnMobj
	movq	_MF_DROPPED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, (%rax)
LBB0_22:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MF_SHOOTABLE,4,2               ## @MF_SHOOTABLE
	.comm	_MF_FLOAT,4,2                   ## @MF_FLOAT
	.comm	_MF_SKULLFLY,4,2                ## @MF_SKULLFLY
	.comm	_MT_SKULL,4,2                   ## @MT_SKULL
	.comm	_MF_NOGRAVITY,4,2               ## @MF_NOGRAVITY
	.comm	_MF_CORPSE,4,2                  ## @MF_CORPSE
	.comm	_MF_DROPOFF,4,2                 ## @MF_DROPOFF
	.comm	_MF_COUNTKILL,4,2               ## @MF_COUNTKILL
	.comm	_players,8,3                    ## @players
	.comm	_netgame,4,2                    ## @netgame
	.comm	_MF_SOLID,4,2                   ## @MF_SOLID
	.comm	_PST_DEAD,4,2                   ## @PST_DEAD
	.comm	_consoleplayer,8,3              ## @consoleplayer
	.comm	_automapactive,8,3              ## @automapactive
	.comm	_MT_CLIP,4,2                    ## @MT_CLIP
	.comm	_MT_SHOTGUN,4,2                 ## @MT_SHOTGUN
	.comm	_MT_CHAINGUN,4,2                ## @MT_CHAINGUN
	.comm	_ONFLOORZ,4,2                   ## @ONFLOORZ
	.comm	_MF_DROPPED,4,2                 ## @MF_DROPPED
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.P_KillMobj
l_switch.table.P_KillMobj:
	.quad	_MT_CLIP
	.quad	_MT_SHOTGUN
	.quad	_MT_CLIP
	.quad	_MT_CHAINGUN

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_P_KillMobj                     ; -- Begin function P_KillMobj
	.p2align	2
_P_KillMobj:                            ; @P_KillMobj
	.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, x1
Lloh0:
	adrp	x8, _MF_SHOOTABLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MF_SHOOTABLE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _MF_FLOAT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MF_FLOAT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh6:
	adrp	x9, _MF_SKULLFLY@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MF_SKULLFLY@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w8, w9
	ldp	w9, w10, [x1]
	bic	w8, w9, w8
	str	w8, [x1]
Lloh9:
	adrp	x9, _MT_SKULL@GOTPAGE
Lloh10:
	ldr	x9, [x9, _MT_SKULL@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	cmp	w10, w9
	b.eq	LBB0_2
; %bb.1:
Lloh12:
	adrp	x9, _MF_NOGRAVITY@GOTPAGE
Lloh13:
	ldr	x9, [x9, _MF_NOGRAVITY@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	bic	w8, w8, w9
	str	w8, [x19]
LBB0_2:
Lloh15:
	adrp	x9, _MF_CORPSE@GOTPAGE
Lloh16:
	ldr	x9, [x9, _MF_CORPSE@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
Lloh18:
	adrp	x10, _MF_DROPOFF@GOTPAGE
Lloh19:
	ldr	x10, [x10, _MF_DROPOFF@GOTPAGEOFF]
Lloh20:
	ldr	w10, [x10]
	orr	w9, w10, w9
	orr	w8, w9, w8
	str	w8, [x19]
	ldr	w9, [x19, #8]
	asr	w9, w9, #2
	str	w9, [x19, #8]
	cbz	x0, LBB0_8
; %bb.3:
	ldr	x9, [x0, #40]
	cbz	x9, LBB0_8
; %bb.4:
Lloh21:
	adrp	x10, _MF_COUNTKILL@GOTPAGE
Lloh22:
	ldr	x10, [x10, _MF_COUNTKILL@GOTPAGEOFF]
Lloh23:
	ldr	w10, [x10]
	tst	w10, w8
	b.eq	LBB0_6
; %bb.5:
	ldr	w8, [x9, #16]
	add	w8, w8, #1
	str	w8, [x9, #16]
LBB0_6:
	ldr	x8, [x19, #40]
	cbz	x8, LBB0_11
; %bb.7:
	ldr	x9, [x9, #8]
Lloh24:
	adrp	x10, _players@GOTPAGE
Lloh25:
	ldr	x10, [x10, _players@GOTPAGEOFF]
Lloh26:
	ldr	x10, [x10]
	sub	x8, x8, x10
	asr	x8, x8, #3
	mov	x10, #-6148914691236517206
	movk	x10, #43692
	mul	x8, x8, x10
	ldr	w10, [x9, x8]
	add	w10, w10, #1
	str	w10, [x9, x8]
	b	LBB0_11
LBB0_8:
Lloh27:
	adrp	x9, _netgame@GOTPAGE
Lloh28:
	ldr	x9, [x9, _netgame@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	cbnz	w9, LBB0_11
; %bb.9:
Lloh30:
	adrp	x9, _MF_COUNTKILL@GOTPAGE
Lloh31:
	ldr	x9, [x9, _MF_COUNTKILL@GOTPAGEOFF]
Lloh32:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_11
; %bb.10:
Lloh33:
	adrp	x8, _players@GOTPAGE
Lloh34:
	ldr	x8, [x8, _players@GOTPAGEOFF]
Lloh35:
	ldr	x8, [x8]
	ldr	w9, [x8, #16]
	add	w9, w9, #1
	str	w9, [x8, #16]
LBB0_11:
	ldr	x8, [x19, #40]
	cbz	x8, LBB0_17
; %bb.12:
	cbnz	x0, LBB0_14
; %bb.13:
	ldr	x9, [x8, #8]
Lloh36:
	adrp	x10, _players@GOTPAGE
Lloh37:
	ldr	x10, [x10, _players@GOTPAGEOFF]
Lloh38:
	ldr	x10, [x10]
	sub	x10, x8, x10
	asr	x10, x10, #3
	mov	x11, #-6148914691236517206
	movk	x11, #43692
	mul	x10, x10, x11
	ldr	w11, [x9, x10]
	add	w11, w11, #1
	str	w11, [x9, x10]
LBB0_14:
Lloh39:
	adrp	x9, _MF_SOLID@GOTPAGE
Lloh40:
	ldr	x9, [x9, _MF_SOLID@GOTPAGEOFF]
Lloh41:
	ldr	w9, [x9]
	ldr	w10, [x19]
	bic	w9, w10, w9
	str	w9, [x19]
Lloh42:
	adrp	x9, _PST_DEAD@GOTPAGE
Lloh43:
	ldr	x9, [x9, _PST_DEAD@GOTPAGEOFF]
Lloh44:
	ldr	w9, [x9]
	str	w9, [x8]
	mov	x0, x8
	bl	_P_DropWeapon
	ldr	x8, [x19, #40]
Lloh45:
	adrp	x9, _players@GOTPAGE
Lloh46:
	ldr	x9, [x9, _players@GOTPAGEOFF]
Lloh47:
	ldr	x9, [x9]
Lloh48:
	adrp	x10, _consoleplayer@GOTPAGE
Lloh49:
	ldr	x10, [x10, _consoleplayer@GOTPAGEOFF]
Lloh50:
	ldr	x10, [x10]
	mov	w11, #24
	madd	x9, x10, x11, x9
	cmp	x8, x9
	b.ne	LBB0_17
; %bb.15:
Lloh51:
	adrp	x8, _automapactive@GOTPAGE
Lloh52:
	ldr	x8, [x8, _automapactive@GOTPAGEOFF]
Lloh53:
	ldr	x8, [x8]
	cbz	x8, LBB0_17
; %bb.16:
	bl	_AM_Stop
LBB0_17:
	ldr	w9, [x19, #32]
	ldr	x8, [x19, #24]
	ldr	w10, [x8, #16]
	neg	w10, w10
	cmp	w9, w10
	b.ge	LBB0_19
; %bb.18:
	ldr	x1, [x8, #8]
	cbnz	x1, LBB0_20
LBB0_19:
	ldr	x1, [x8]
LBB0_20:
	mov	x0, x19
	bl	_P_SetMobjState
	bl	_P_Random
	and	w8, w0, #0x3
	ldr	w9, [x19, #12]
	sub	w8, w9, w8
	cmp	w8, #1
	csinc	w8, w8, wzr, gt
	str	w8, [x19, #12]
	ldr	w8, [x19, #4]
	sub	w8, w8, #128
	cmp	w8, #3
	b.hi	LBB0_22
; %bb.21:
Lloh54:
	adrp	x9, l_switch.table.P_KillMobj@PAGE
Lloh55:
	add	x9, x9, l_switch.table.P_KillMobj@PAGEOFF
	ldr	x8, [x9, w8, sxtw #3]
	ldr	w3, [x8]
	ldp	w1, w0, [x19, #16]
Lloh56:
	adrp	x8, _ONFLOORZ@GOTPAGE
Lloh57:
	ldr	x8, [x8, _ONFLOORZ@GOTPAGEOFF]
Lloh58:
	ldr	w2, [x8]
	bl	_P_SpawnMobj
Lloh59:
	adrp	x8, _MF_DROPPED@GOTPAGE
Lloh60:
	ldr	x8, [x8, _MF_DROPPED@GOTPAGEOFF]
Lloh61:
	ldr	w8, [x8]
	ldr	w9, [x0]
	orr	w8, w9, w8
	str	w8, [x0]
LBB0_22:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpAdd	Lloh54, Lloh55
	.cfi_endproc
                                        ; -- End function
	.comm	_MF_SHOOTABLE,4,2               ; @MF_SHOOTABLE
	.comm	_MF_FLOAT,4,2                   ; @MF_FLOAT
	.comm	_MF_SKULLFLY,4,2                ; @MF_SKULLFLY
	.comm	_MT_SKULL,4,2                   ; @MT_SKULL
	.comm	_MF_NOGRAVITY,4,2               ; @MF_NOGRAVITY
	.comm	_MF_CORPSE,4,2                  ; @MF_CORPSE
	.comm	_MF_DROPOFF,4,2                 ; @MF_DROPOFF
	.comm	_MF_COUNTKILL,4,2               ; @MF_COUNTKILL
	.comm	_players,8,3                    ; @players
	.comm	_netgame,4,2                    ; @netgame
	.comm	_MF_SOLID,4,2                   ; @MF_SOLID
	.comm	_PST_DEAD,4,2                   ; @PST_DEAD
	.comm	_consoleplayer,8,3              ; @consoleplayer
	.comm	_automapactive,8,3              ; @automapactive
	.comm	_MT_CLIP,4,2                    ; @MT_CLIP
	.comm	_MT_SHOTGUN,4,2                 ; @MT_SHOTGUN
	.comm	_MT_CHAINGUN,4,2                ; @MT_CHAINGUN
	.comm	_ONFLOORZ,4,2                   ; @ONFLOORZ
	.comm	_MF_DROPPED,4,2                 ; @MF_DROPPED
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.P_KillMobj
l_switch.table.P_KillMobj:
	.quad	_MT_CLIP
	.quad	_MT_SHOTGUN
	.quad	_MT_CLIP
	.quad	_MT_CHAINGUN

.subsections_via_symbols
