	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_PIT_CheckThing                 ## -- Begin function PIT_CheckThing
	.p2align	4, 0x90
_PIT_CheckThing:                        ## @PIT_CheckThing
	.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
	movl	(%rdi), %r12d
	movq	_MF_SOLID@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	_MF_SPECIAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ecx, %edx
	orl	%r13d, %edx
	movq	_MF_SHOOTABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	orl	%r9d, %edx
	movb	$1, %r14b
	testl	%r12d, %edx
	je	LBB0_24
## %bb.1:
	movq	%rdi, %rbx
	movq	_tmthing@GOTPCREL(%rip), %r15
	movq	(%r15), %rsi
	movq	8(%rsi), %rdx
	addq	8(%rdi), %rdx
	movq	88(%rdi), %rdi
	movq	_tmx@GOTPCREL(%rip), %rax
	subq	(%rax), %rdi
	movq	%rdi, %rax
	negq	%rax
	cmovsq	%rdi, %rax
	cmpq	%rdx, %rax
	jge	LBB0_24
## %bb.2:
	movq	80(%rbx), %rax
	movq	_tmy@GOTPCREL(%rip), %rdi
	subq	(%rdi), %rax
	movq	%rax, %rdi
	negq	%rdi
	cmovsq	%rax, %rdi
	cmpq	%rdx, %rdi
	jge	LBB0_24
## %bb.3:
	cmpq	%rbx, %rsi
	je	LBB0_24
## %bb.4:
	movl	(%rsi), %edx
	movq	_MF_SKULLFLY@GOTPCREL(%rip), %rax
	testl	%edx, (%rax)
	je	LBB0_6
## %bb.5:
	xorl	%r14d, %r14d
	movq	%rax, %r12
	xorl	%eax, %eax
	callq	_P_Random
                                        ## kill: def $eax killed $eax def $rax
	leal	7(%rax), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	andl	$-8, %ecx
	negl	%ecx
	addl	%eax, %ecx
	incl	%ecx
	movq	(%r15), %rdx
	movq	48(%rdx), %rax
	imull	(%rax), %ecx
	movq	%rbx, %rdi
	movq	%rdx, %rsi
	callq	_P_DamageMobj
	movl	(%r12), %eax
	notl	%eax
	movq	(%r15), %rdi
	andl	%eax, (%rdi)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 56(%rdi)
	movq	$0, 72(%rdi)
	movq	48(%rdi), %rax
	movl	4(%rax), %esi
	callq	_P_SetMobjState
LBB0_24:
	movzbl	%r14b, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	_MF_MISSILE@GOTPCREL(%rip), %rax
	testl	%edx, (%rax)
	je	LBB0_20
## %bb.7:
	movq	16(%rsi), %rcx
	movq	16(%rbx), %rdx
	movq	24(%rbx), %rax
	addq	%rdx, %rax
	cmpq	%rax, %rcx
	jg	LBB0_24
## %bb.8:
	addq	24(%rsi), %rcx
	cmpq	%rdx, %rcx
	jl	LBB0_24
## %bb.9:
	movq	40(%rsi), %rcx
	testq	%rcx, %rcx
	je	LBB0_18
## %bb.10:
	movq	32(%rcx), %rsi
	movq	32(%rbx), %rdx
	cmpq	%rdx, %rsi
	je	LBB0_15
## %bb.11:
	movq	_MT_KNIGHT@GOTPCREL(%rip), %rax
	movq	(%rax), %r8
	movq	_MT_BRUISER@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	cmpq	%r8, %rsi
	jne	LBB0_13
## %bb.12:
	cmpq	%rdi, %rdx
	je	LBB0_15
LBB0_13:
	cmpq	%rdi, %rsi
	jne	LBB0_18
## %bb.14:
	cmpq	%r8, %rdx
	jne	LBB0_18
LBB0_15:
	cmpq	%rbx, %rcx
	je	LBB0_24
## %bb.16:
	movq	_MT_PLAYER@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	jne	LBB0_17
LBB0_18:
	testl	%r12d, %r9d
	je	LBB0_23
## %bb.19:
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_P_Random
                                        ## kill: def $eax killed $eax def $rax
	leal	7(%rax), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	andl	$-8, %ecx
	negl	%ecx
	addl	%eax, %ecx
	incl	%ecx
	movq	(%r15), %rsi
	movq	40(%rsi), %rdx
	movq	48(%rsi), %rax
	imull	(%rax), %ecx
	movq	%rbx, %rdi
	callq	_P_DamageMobj
	jmp	LBB0_24
LBB0_20:
	testl	%r12d, %ecx
	je	LBB0_23
## %bb.21:
	movq	_tmflags@GOTPCREL(%rip), %rax
	movq	_MF_PICKUP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_23
## %bb.22:
	movq	%rbx, %rdi
	callq	_P_TouchSpecialThing
LBB0_23:
	testl	%r12d, %r13d
	sete	%r14b
	jmp	LBB0_24
LBB0_17:
	xorl	%r14d, %r14d
	jmp	LBB0_24
	.cfi_endproc
                                        ## -- End function
	.comm	_MF_SOLID,4,2                   ## @MF_SOLID
	.comm	_MF_SPECIAL,4,2                 ## @MF_SPECIAL
	.comm	_MF_SHOOTABLE,4,2               ## @MF_SHOOTABLE
	.comm	_tmthing,8,3                    ## @tmthing
	.comm	_tmx,8,3                        ## @tmx
	.comm	_tmy,8,3                        ## @tmy
	.comm	_MF_SKULLFLY,4,2                ## @MF_SKULLFLY
	.comm	_MF_MISSILE,4,2                 ## @MF_MISSILE
	.comm	_MT_KNIGHT,8,3                  ## @MT_KNIGHT
	.comm	_MT_BRUISER,8,3                 ## @MT_BRUISER
	.comm	_MT_PLAYER,8,3                  ## @MT_PLAYER
	.comm	_tmflags,4,2                    ## @tmflags
	.comm	_MF_PICKUP,4,2                  ## @MF_PICKUP
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_PIT_CheckThing                 ; -- Begin function PIT_CheckThing
	.p2align	2
_PIT_CheckThing:                        ; @PIT_CheckThing
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _MF_SOLID@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MF_SOLID@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x10, _MF_SPECIAL@GOTPAGE
Lloh4:
	ldr	x10, [x10, _MF_SPECIAL@GOTPAGEOFF]
Lloh5:
	ldr	w11, [x10]
	orr	w12, w11, w9
Lloh6:
	adrp	x10, _MF_SHOOTABLE@GOTPAGE
Lloh7:
	ldr	x10, [x10, _MF_SHOOTABLE@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	orr	w12, w12, w10
	tst	w12, w8
	b.eq	LBB0_3
; %bb.1:
	mov	x19, x0
	ldr	x12, [x0, #8]
Lloh9:
	adrp	x20, _tmthing@GOTPAGE
Lloh10:
	ldr	x20, [x20, _tmthing@GOTPAGEOFF]
	ldr	x1, [x20]
	ldr	x13, [x1, #8]
Lloh11:
	adrp	x14, _tmx@GOTPAGE
Lloh12:
	ldr	x14, [x14, _tmx@GOTPAGEOFF]
	ldr	x15, [x0, #88]
Lloh13:
	ldr	x14, [x14]
	subs	x14, x15, x14
	cneg	x14, x14, mi
	add	x12, x13, x12
	cmp	x14, x12
	b.ge	LBB0_3
; %bb.2:
Lloh14:
	adrp	x13, _tmy@GOTPAGE
Lloh15:
	ldr	x13, [x13, _tmy@GOTPAGEOFF]
	ldr	x14, [x19, #80]
Lloh16:
	ldr	x13, [x13]
	subs	x13, x14, x13
	cneg	x13, x13, mi
	cmp	x13, x12
	ccmp	x1, x19, #4, lt
	b.ne	LBB0_5
LBB0_3:
	mov	w0, #1
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_5:
	ldr	w12, [x1]
Lloh17:
	adrp	x21, _MF_SKULLFLY@GOTPAGE
Lloh18:
	ldr	x21, [x21, _MF_SKULLFLY@GOTPAGEOFF]
	ldr	w13, [x21]
	tst	w13, w12
	b.eq	LBB0_8
; %bb.6:
	bl	_P_Random
	negs	w8, w0
	and	w8, w8, #0x7
	and	w9, w0, #0x7
	csneg	w8, w9, w8, mi
	ldr	x1, [x20]
	ldr	x9, [x1, #48]
	ldr	w9, [x9]
	madd	w3, w9, w8, w9
	mov	x0, x19
	mov	x2, x1
	bl	_P_DamageMobj
	ldr	w8, [x21]
	ldr	x0, [x20]
	ldr	w9, [x0]
	bic	w8, w9, w8
	str	w8, [x0]
	stp	xzr, xzr, [x0, #64]
	str	xzr, [x0, #56]
	ldr	x8, [x0, #48]
	ldr	w1, [x8, #4]
	bl	_P_SetMobjState
LBB0_7:
	mov	w0, #0
	b	LBB0_4
LBB0_8:
Lloh19:
	adrp	x13, _MF_MISSILE@GOTPAGE
Lloh20:
	ldr	x13, [x13, _MF_MISSILE@GOTPAGEOFF]
Lloh21:
	ldr	w13, [x13]
	tst	w13, w12
	b.eq	LBB0_19
; %bb.9:
	ldr	x11, [x1, #16]
	ldp	x12, x13, [x19, #16]
	add	x13, x13, x12
	cmp	x11, x13
	b.gt	LBB0_3
; %bb.10:
	ldr	x13, [x1, #24]
	add	x11, x13, x11
	cmp	x11, x12
	b.lt	LBB0_3
; %bb.11:
	ldr	x11, [x1, #40]
	cbz	x11, LBB0_17
; %bb.12:
	ldr	x13, [x11, #32]
	ldr	x12, [x19, #32]
	cmp	x13, x12
	b.eq	LBB0_15
; %bb.13:
Lloh22:
	adrp	x14, _MT_KNIGHT@GOTPAGE
Lloh23:
	ldr	x14, [x14, _MT_KNIGHT@GOTPAGEOFF]
Lloh24:
	ldr	x14, [x14]
Lloh25:
	adrp	x15, _MT_BRUISER@GOTPAGE
Lloh26:
	ldr	x15, [x15, _MT_BRUISER@GOTPAGEOFF]
Lloh27:
	ldr	x15, [x15]
	cmp	x13, x14
	ccmp	x12, x15, #0, eq
	b.eq	LBB0_15
; %bb.14:
	cmp	x13, x15
	ccmp	x12, x14, #0, eq
	b.ne	LBB0_17
LBB0_15:
	cmp	x11, x19
	b.eq	LBB0_3
; %bb.16:
Lloh28:
	adrp	x11, _MT_PLAYER@GOTPAGE
Lloh29:
	ldr	x11, [x11, _MT_PLAYER@GOTPAGEOFF]
Lloh30:
	ldr	x11, [x11]
	cmp	x12, x11
	b.ne	LBB0_7
LBB0_17:
	tst	w10, w8
	b.eq	LBB0_24
; %bb.18:
	bl	_P_Random
	negs	w8, w0
	and	w8, w8, #0x7
	and	w9, w0, #0x7
	csneg	w8, w9, w8, mi
	ldr	x1, [x20]
	ldp	x2, x9, [x1, #40]
	ldr	w9, [x9]
	madd	w3, w9, w8, w9
	mov	x0, x19
	bl	_P_DamageMobj
	b	LBB0_7
LBB0_19:
	and	w20, w9, w8
	tst	w11, w8
	b.eq	LBB0_22
; %bb.20:
Lloh31:
	adrp	x8, _tmflags@GOTPAGE
Lloh32:
	ldr	x8, [x8, _tmflags@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
Lloh34:
	adrp	x9, _MF_PICKUP@GOTPAGE
Lloh35:
	ldr	x9, [x9, _MF_PICKUP@GOTPAGEOFF]
Lloh36:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_22
; %bb.21:
	mov	x0, x19
	bl	_P_TouchSpecialThing
LBB0_22:
	cmp	w20, #0
LBB0_23:
	cset	w0, eq
	b	LBB0_4
LBB0_24:
	tst	w9, w8
	b	LBB0_23
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_MF_SOLID,4,2                   ; @MF_SOLID
	.comm	_MF_SPECIAL,4,2                 ; @MF_SPECIAL
	.comm	_MF_SHOOTABLE,4,2               ; @MF_SHOOTABLE
	.comm	_tmthing,8,3                    ; @tmthing
	.comm	_tmx,8,3                        ; @tmx
	.comm	_tmy,8,3                        ; @tmy
	.comm	_MF_SKULLFLY,4,2                ; @MF_SKULLFLY
	.comm	_MF_MISSILE,4,2                 ; @MF_MISSILE
	.comm	_MT_KNIGHT,8,3                  ; @MT_KNIGHT
	.comm	_MT_BRUISER,8,3                 ; @MT_BRUISER
	.comm	_MT_PLAYER,8,3                  ; @MT_PLAYER
	.comm	_tmflags,4,2                    ; @tmflags
	.comm	_MF_PICKUP,4,2                  ; @MF_PICKUP
.subsections_via_symbols
