	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_P_DeathThink                   ## -- Begin function P_DeathThink
	.p2align	4, 0x90
_P_DeathThink:                          ## @P_DeathThink
	.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
	callq	_P_MovePsprites
	movl	(%rbx), %eax
	movq	_FRACUNIT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	leal	(%rsi,%rsi), %ecx
	leal	(%rcx,%rcx,2), %ecx
	cmpl	%ecx, %eax
	jle	LBB0_2
## %bb.1:
	subl	%esi, %eax
	movl	%eax, (%rbx)
	movl	(%rdx), %ecx
	addl	%ecx, %ecx
	leal	(%rcx,%rcx,2), %ecx
LBB0_2:
	cmpl	%ecx, %eax
	jge	LBB0_4
## %bb.3:
	movl	%ecx, (%rbx)
LBB0_4:
	movq	$0, 40(%rbx)
	movq	24(%rbx), %rax
	movq	(%rax), %rcx
	xorl	%edx, %edx
	cmpq	8(%rax), %rcx
	setle	%dl
	movq	_onground@GOTPCREL(%rip), %rax
	movl	%edx, (%rax)
	movq	%rbx, %rdi
	callq	_P_CalcHeight
	movq	32(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_9
## %bb.5:
	movq	24(%rbx), %rcx
	cmpq	%rcx, %rax
	je	LBB0_9
## %bb.6:
	movl	20(%rcx), %esi
	movl	24(%rcx), %edi
	movl	20(%rax), %ecx
	movl	24(%rax), %edx
	callq	_R_PointToAngle2
	movq	24(%rbx), %r8
	movl	16(%r8), %edx
	movl	%eax, %edi
	subl	%edx, %edi
	movq	_ANG5@GOTPCREL(%rip), %rsi
	movl	(%rsi), %ecx
	cmpl	%ecx, %edi
	jb	LBB0_8
## %bb.7:
	movl	%ecx, %esi
	negl	%esi
	cmpl	%esi, %edi
	ja	LBB0_8
## %bb.11:
	movq	_ANG180@GOTPCREL(%rip), %rax
	cmpl	(%rax), %edi
	jae	LBB0_13
## %bb.12:
	addl	%edx, %ecx
	movl	%ecx, 16(%r8)
	jmp	LBB0_14
LBB0_8:
	movl	%eax, 16(%r8)
LBB0_9:
	movq	16(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_14
## %bb.10:
	decq	%rax
	movq	%rax, 16(%rbx)
LBB0_14:
	movq	_BT_USE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%rbx)
	je	LBB0_16
## %bb.15:
	movq	_PST_REBORN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
LBB0_16:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_13:
	subl	%ecx, %edx
	movl	%edx, 16(%r8)
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_FRACUNIT,4,2                   ## @FRACUNIT
	.comm	_onground,4,2                   ## @onground
	.comm	_ANG5,4,2                       ## @ANG5
	.comm	_ANG180,4,2                     ## @ANG180
	.comm	_BT_USE,4,2                     ## @BT_USE
	.comm	_PST_REBORN,4,2                 ## @PST_REBORN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_P_DeathThink                   ; -- Begin function P_DeathThink
	.p2align	2
_P_DeathThink:                          ; @P_DeathThink
	.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
	bl	_P_MovePsprites
	ldr	w8, [x19]
Lloh0:
	adrp	x10, _FRACUNIT@GOTPAGE
Lloh1:
	ldr	x10, [x10, _FRACUNIT@GOTPAGEOFF]
	ldr	w11, [x10]
	add	w9, w11, w11, lsl #1
	lsl	w9, w9, #1
	cmp	w8, w9
	b.le	LBB0_2
; %bb.1:
	sub	w8, w8, w11
	str	w8, [x19]
	ldr	w9, [x10]
	add	w9, w9, w9, lsl #1
	lsl	w9, w9, #1
LBB0_2:
	cmp	w8, w9
	b.ge	LBB0_4
; %bb.3:
	str	w9, [x19]
LBB0_4:
	str	xzr, [x19, #40]
	ldr	x8, [x19, #24]
	ldp	x9, x8, [x8]
	cmp	x9, x8
	cset	w8, le
Lloh2:
	adrp	x9, _onground@GOTPAGE
Lloh3:
	ldr	x9, [x9, _onground@GOTPAGEOFF]
Lloh4:
	str	w8, [x9]
	mov	x0, x19
	bl	_P_CalcHeight
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_8
; %bb.5:
	ldr	x9, [x19, #24]
	cmp	x8, x9
	b.eq	LBB0_8
; %bb.6:
	ldp	w1, w0, [x9, #20]
	ldp	w3, w2, [x8, #20]
	bl	_R_PointToAngle2
	ldr	x8, [x19, #24]
Lloh5:
	adrp	x10, _ANG5@GOTPAGE
Lloh6:
	ldr	x10, [x10, _ANG5@GOTPAGEOFF]
	ldr	w9, [x8, #16]
Lloh7:
	ldr	w10, [x10]
	neg	w12, w10
	sub	w11, w0, w9
	cmp	w11, w10
	ccmp	w11, w12, #2, hs
	b.ls	LBB0_10
; %bb.7:
	str	w0, [x8, #16]
LBB0_8:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_14
; %bb.9:
	sub	x8, x8, #1
	str	x8, [x19, #16]
	b	LBB0_14
LBB0_10:
Lloh8:
	adrp	x12, _ANG180@GOTPAGE
Lloh9:
	ldr	x12, [x12, _ANG180@GOTPAGEOFF]
Lloh10:
	ldr	w12, [x12]
	cmp	w11, w12
	b.hs	LBB0_12
; %bb.11:
	add	w9, w10, w9
	b	LBB0_13
LBB0_12:
	sub	w9, w9, w10
LBB0_13:
	str	w9, [x8, #16]
LBB0_14:
	ldr	w8, [x19, #8]
Lloh11:
	adrp	x9, _BT_USE@GOTPAGE
Lloh12:
	ldr	x9, [x9, _BT_USE@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_16
; %bb.15:
Lloh14:
	adrp	x8, _PST_REBORN@GOTPAGE
Lloh15:
	ldr	x8, [x8, _PST_REBORN@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	str	w8, [x19, #4]
LBB0_16:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotStr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_FRACUNIT,4,2                   ; @FRACUNIT
	.comm	_onground,4,2                   ; @onground
	.comm	_ANG5,4,2                       ; @ANG5
	.comm	_ANG180,4,2                     ; @ANG180
	.comm	_BT_USE,4,2                     ; @BT_USE
	.comm	_PST_REBORN,4,2                 ; @PST_REBORN
.subsections_via_symbols
