	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_G_CheckSpot                    ## -- Begin function G_CheckSpot
	.p2align	4, 0x90
_G_CheckSpot:                           ## @G_CheckSpot
	.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	%rsi, %r12
	movq	_players@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movslq	%edi, %r13
	shlq	$4, %r13
	movq	8(%rdx,%r13), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	_FRACBITS@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	(%r12), %r15d
	shll	%cl, %r15d
	movl	4(%r12), %r14d
	shll	%cl, %r14d
	movq	%rax, %rdi
	movl	%r15d, %esi
	movl	%r14d, %edx
	callq	_P_CheckPosition
	testl	%eax, %eax
	je	LBB0_11
## %bb.2:
	movq	_bodyqueslot@GOTPCREL(%rip), %rdi
	movq	(%rdi), %rcx
	movq	_BODYQUESIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	cmpq	%rsi, %rcx
	jb	LBB0_14
## %bb.3:
	movq	_bodyque@GOTPCREL(%rip), %rax
	movq	(%rax), %r8
	movq	%rcx, %rax
	orq	%rsi, %rax
	movq	%rdi, %rbx
	shrq	$32, %rax
	je	LBB0_12
## %bb.4:
	movq	%rcx, %rax
	xorl	%edx, %edx
	divq	%rsi
	jmp	LBB0_13
LBB0_5:
	movl	$1, %r14d
	testl	%edi, %edi
	jle	LBB0_19
## %bb.6:
	movl	(%r12), %r8d
	movq	_FRACBITS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	shll	%cl, %r8d
	movl	%edi, %esi
	shlq	$4, %rsi
	xorl	%edi, %edi
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_8 Depth=1
	addq	$16, %rdi
	cmpq	%rdi, %rsi
	je	LBB0_19
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rdx,%rdi), %rbx
	cmpl	%r8d, (%rbx)
	jne	LBB0_7
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movl	4(%r12), %eax
	shll	%cl, %eax
	cmpl	%eax, 4(%rbx)
	jne	LBB0_7
LBB0_11:
	xorl	%r14d, %r14d
	jmp	LBB0_19
LBB0_12:
	movl	%ecx, %eax
	xorl	%edx, %edx
	divl	%esi
                                        ## kill: def $edx killed $edx def $rdx
LBB0_13:
	movq	(%r8,%rdx,8), %rdi
	callq	_P_RemoveMobj
	movq	%rbx, %rdi
	movq	(%rbx), %rcx
	movq	_BODYQUESIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
LBB0_14:
	movq	_players@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rax
	movq	8(%rax,%r13), %r8
	movq	_bodyque@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	%rcx, %rax
	orq	%rsi, %rax
	movq	%rdx, %r13
	shrq	$32, %rax
	je	LBB0_16
## %bb.15:
	movq	%rcx, %rax
	xorl	%edx, %edx
	divq	%rsi
	jmp	LBB0_17
LBB0_16:
	movl	%ecx, %eax
	xorl	%edx, %edx
	divl	%esi
                                        ## kill: def $edx killed $edx def $rdx
LBB0_17:
	movq	%r8, (%rbx,%rdx,8)
	incq	%rcx
	movq	%rcx, (%rdi)
	movl	%r15d, %edi
	movl	%r14d, %esi
	callq	_R_PointInSubsector
	movq	_ANG45@GOTPCREL(%rip), %rcx
	movslq	8(%r12), %rsi
	imulq	$-1240768329, %rsi, %rdx        ## imm = 0xB60B60B7
	shrq	$32, %rdx
	addl	%esi, %edx
	movl	%edx, %esi
	shrl	$31, %esi
	sarl	$5, %edx
	addl	%esi, %edx
	imull	(%rcx), %edx
	movq	_ANGLETOFINESHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %edx
	movq	_finecosine@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rcx,%rdx,4), %ecx
	leal	(%rcx,%rcx,4), %ecx
	leal	(%r15,%rcx,4), %edi
	movq	_finesine@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rcx,%rdx,4), %ecx
	leal	(%rcx,%rcx,4), %ecx
	leal	(%r14,%rcx,4), %esi
	movq	(%rax), %rax
	movl	(%rax), %edx
	movq	_MT_TFOG@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_P_SpawnMobj
	movq	(%r13), %rcx
	movq	_consoleplayer@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	shlq	$4, %rdx
	movl	$1, %r14d
	cmpl	$1, (%rcx,%rdx)
	je	LBB0_19
## %bb.18:
	movq	_sfx_telept@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rax, %rdi
	callq	_S_StartSound
LBB0_19:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_players,8,3                    ## @players
	.comm	_FRACBITS,4,2                   ## @FRACBITS
	.comm	_bodyqueslot,8,3                ## @bodyqueslot
	.comm	_BODYQUESIZE,8,3                ## @BODYQUESIZE
	.comm	_bodyque,8,3                    ## @bodyque
	.comm	_ANG45,4,2                      ## @ANG45
	.comm	_ANGLETOFINESHIFT,4,2           ## @ANGLETOFINESHIFT
	.comm	_finecosine,8,3                 ## @finecosine
	.comm	_finesine,8,3                   ## @finesine
	.comm	_MT_TFOG,4,2                    ## @MT_TFOG
	.comm	_consoleplayer,8,3              ## @consoleplayer
	.comm	_sfx_telept,4,2                 ## @sfx_telept
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_G_CheckSpot                    ; -- Begin function G_CheckSpot
	.p2align	2
_G_CheckSpot:                           ; @G_CheckSpot
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x1
	mov	x22, x0
Lloh0:
	adrp	x23, _players@GOTPAGE
Lloh1:
	ldr	x23, [x23, _players@GOTPAGEOFF]
	ldr	x11, [x23]
	add	x8, x11, w0, sxtw #4
	ldr	x0, [x8, #8]
	cbz	x0, LBB0_6
; %bb.1:
Lloh2:
	adrp	x8, _FRACBITS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _FRACBITS@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	ldp	w9, w10, [x19]
	lsl	w21, w9, w8
	lsl	w20, w10, w8
	mov	x1, x21
	mov	x2, x20
	bl	_P_CheckPosition
	cbz	w0, LBB0_13
; %bb.2:
	sxtw	x24, w22
Lloh5:
	adrp	x22, _bodyqueslot@GOTPAGE
Lloh6:
	ldr	x22, [x22, _bodyqueslot@GOTPAGEOFF]
	ldr	x8, [x22]
Lloh7:
	adrp	x26, _BODYQUESIZE@GOTPAGE
Lloh8:
	ldr	x26, [x26, _BODYQUESIZE@GOTPAGEOFF]
	ldr	x9, [x26]
Lloh9:
	adrp	x25, _bodyque@GOTPAGE
Lloh10:
	ldr	x25, [x25, _bodyque@GOTPAGEOFF]
	cmp	x8, x9
	b.lo	LBB0_4
; %bb.3:
	ldr	x10, [x25]
	udiv	x11, x8, x9
	msub	x8, x11, x9, x8
	ldr	x0, [x10, x8, lsl #3]
	bl	_P_RemoveMobj
	ldr	x8, [x22]
	ldr	x9, [x26]
LBB0_4:
	ldr	x10, [x23]
	add	x10, x10, x24, lsl #4
	ldr	x10, [x10, #8]
	ldr	x11, [x25]
	udiv	x12, x8, x9
	msub	x9, x12, x9, x8
	str	x10, [x11, x9, lsl #3]
	add	x8, x8, #1
	str	x8, [x22]
	mov	x0, x21
	mov	x1, x20
	bl	_R_PointInSubsector
Lloh11:
	adrp	x8, _ANG45@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ANG45@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	ldrsw	x9, [x19, #8]
	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
Lloh14:
	adrp	x9, _ANGLETOFINESHIFT@GOTPAGE
Lloh15:
	ldr	x9, [x9, _ANGLETOFINESHIFT@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
Lloh17:
	adrp	x10, _finecosine@GOTPAGE
Lloh18:
	ldr	x10, [x10, _finecosine@GOTPAGEOFF]
	asr	w8, w8, w9
Lloh19:
	ldr	x9, [x10]
	lsl	x10, x8, #2
	ldr	w8, [x9, x10]
	mov	w9, #20
	madd	w8, w8, w9, w21
Lloh20:
	adrp	x11, _finesine@GOTPAGE
Lloh21:
	ldr	x11, [x11, _finesine@GOTPAGEOFF]
Lloh22:
	ldr	x11, [x11]
	ldr	w10, [x11, x10]
	madd	w1, w10, w9, w20
	ldr	x9, [x0]
	ldr	w2, [x9]
Lloh23:
	adrp	x9, _MT_TFOG@GOTPAGE
Lloh24:
	ldr	x9, [x9, _MT_TFOG@GOTPAGEOFF]
Lloh25:
	ldr	w3, [x9]
	mov	x0, x8
	bl	_P_SpawnMobj
Lloh26:
	adrp	x8, _consoleplayer@GOTPAGE
Lloh27:
	ldr	x8, [x8, _consoleplayer@GOTPAGEOFF]
	ldr	x9, [x23]
Lloh28:
	ldr	x8, [x8]
	lsl	x8, x8, #4
	ldr	w8, [x9, x8]
	cmp	w8, #1
	b.eq	LBB0_12
; %bb.5:
Lloh29:
	adrp	x8, _sfx_telept@GOTPAGE
Lloh30:
	ldr	x8, [x8, _sfx_telept@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
	bl	_S_StartSound
	b	LBB0_12
LBB0_6:
	cmp	w22, #1
	b.lt	LBB0_12
; %bb.7:
	ldr	w9, [x19]
Lloh32:
	adrp	x8, _FRACBITS@GOTPAGE
Lloh33:
	ldr	x8, [x8, _FRACBITS@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
	lsl	w9, w9, w8
	mov	w10, w22
	add	x11, x11, #8
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	x11, x11, #16
	subs	x10, x10, #1
	b.eq	LBB0_12
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x12, [x11]
	ldr	w13, [x12]
	cmp	w13, w9
	b.ne	LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w12, [x12, #4]
	ldr	w13, [x19, #4]
	lsl	w13, w13, w8
	cmp	w12, w13
	b.ne	LBB0_8
; %bb.11:
	mov	w0, #0
	b	LBB0_13
LBB0_12:
	mov	w0, #1
LBB0_13:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.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	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_players,8,3                    ; @players
	.comm	_FRACBITS,4,2                   ; @FRACBITS
	.comm	_bodyqueslot,8,3                ; @bodyqueslot
	.comm	_BODYQUESIZE,8,3                ; @BODYQUESIZE
	.comm	_bodyque,8,3                    ; @bodyque
	.comm	_ANG45,4,2                      ; @ANG45
	.comm	_ANGLETOFINESHIFT,4,2           ; @ANGLETOFINESHIFT
	.comm	_finecosine,8,3                 ; @finecosine
	.comm	_finesine,8,3                   ; @finesine
	.comm	_MT_TFOG,4,2                    ; @MT_TFOG
	.comm	_consoleplayer,8,3              ; @consoleplayer
	.comm	_sfx_telept,4,2                 ; @sfx_telept
.subsections_via_symbols
