	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_P_RadiusAttack                 ## -- Begin function P_RadiusAttack
	.p2align	4, 0x90
_P_RadiusAttack:                        ## @P_RadiusAttack
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_MAXRADIUS@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	addl	%edx, %r9d
	movq	_FRACBITS@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %r9d
	movl	(%rdi), %r14d
	leal	(%r14,%r9), %eax
	movq	_bmaporgy@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	subl	%ebx, %eax
	movq	_MAPBLOCKSHIFT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	sarl	%cl, %eax
	addl	%r9d, %ebx
	subl	%ebx, %r14d
	sarl	%cl, %r14d
	movl	4(%rdi), %r11d
	movq	_bmaporgx@GOTPCREL(%rip), %rbx
	movl	(%rbx), %r8d
	movl	%r11d, %r13d
	subl	%r9d, %r13d
	subl	%r8d, %r13d
	sarl	%cl, %r13d
	movq	_bombspot@GOTPCREL(%rip), %rbx
	movq	%rdi, (%rbx)
	movq	_bombsource@GOTPCREL(%rip), %rdi
	movq	%rsi, (%rdi)
	movq	_bombdamage@GOTPCREL(%rip), %rsi
	movl	%edx, (%rsi)
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	cmpl	%eax, %r14d
	jle	LBB0_1
LBB0_6:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%r11, %r10
	addl	%r9d, %r10d
	subl	%r8d, %r10d
                                        ## kill: def $cl killed $cl killed $ecx
	sarl	%cl, %r10d
	movq	%r10, -56(%rbp)                 ## 8-byte Spill
	leal	1(%r10), %r15d
	movq	_PIT_RadiusAttack@GOTPCREL(%rip), %r12
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	leal	1(%r14), %eax
	cmpl	-44(%rbp), %r14d                ## 4-byte Folded Reload
	movl	%eax, %r14d
	je	LBB0_6
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	cmpl	-56(%rbp), %r13d                ## 4-byte Folded Reload
	jg	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%r13d, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%r12), %edx
	movl	%ebx, %edi
	movl	%r14d, %esi
	callq	_P_BlockThingsIterator
	incl	%ebx
	cmpl	%ebx, %r15d
	jne	LBB0_4
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_MAXRADIUS,4,2                  ## @MAXRADIUS
	.comm	_FRACBITS,4,2                   ## @FRACBITS
	.comm	_bmaporgy,4,2                   ## @bmaporgy
	.comm	_MAPBLOCKSHIFT,4,2              ## @MAPBLOCKSHIFT
	.comm	_bmaporgx,4,2                   ## @bmaporgx
	.comm	_bombspot,8,3                   ## @bombspot
	.comm	_bombsource,8,3                 ## @bombsource
	.comm	_bombdamage,4,2                 ## @bombdamage
	.comm	_PIT_RadiusAttack,4,2           ## @PIT_RadiusAttack
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_P_RadiusAttack                 ; -- Begin function P_RadiusAttack
	.p2align	2
_P_RadiusAttack:                        ; @P_RadiusAttack
	.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
Lloh0:
	adrp	x8, _MAXRADIUS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAXRADIUS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _FRACBITS@GOTPAGE
Lloh4:
	ldr	x9, [x9, _FRACBITS@GOTPAGEOFF]
	add	w8, w8, w2
Lloh5:
	ldr	w9, [x9]
	lsl	w8, w8, w9
Lloh6:
	adrp	x9, _bmaporgy@GOTPAGE
Lloh7:
	ldr	x9, [x9, _bmaporgy@GOTPAGEOFF]
Lloh8:
	ldr	w11, [x9]
	ldp	w12, w10, [x0]
	add	w9, w12, w8
	sub	w13, w9, w11
Lloh9:
	adrp	x9, _MAPBLOCKSHIFT@GOTPAGE
Lloh10:
	ldr	x9, [x9, _MAPBLOCKSHIFT@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	asr	w21, w13, w9
	add	w11, w8, w11
	sub	w11, w12, w11
Lloh12:
	adrp	x12, _bmaporgx@GOTPAGE
Lloh13:
	ldr	x12, [x12, _bmaporgx@GOTPAGEOFF]
	asr	w19, w11, w9
Lloh14:
	adrp	x11, _bombspot@GOTPAGE
Lloh15:
	ldr	x11, [x11, _bombspot@GOTPAGEOFF]
Lloh16:
	str	x0, [x11]
Lloh17:
	adrp	x13, _bombsource@GOTPAGE
Lloh18:
	ldr	x13, [x13, _bombsource@GOTPAGEOFF]
Lloh19:
	ldr	w11, [x12]
Lloh20:
	str	x1, [x13]
Lloh21:
	adrp	x12, _bombdamage@GOTPAGE
Lloh22:
	ldr	x12, [x12, _bombdamage@GOTPAGEOFF]
Lloh23:
	str	w2, [x12]
	cmp	w19, w21
	b.le	LBB0_2
LBB0_1:
	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
LBB0_2:
	add	w12, w8, w11
	sub	w12, w10, w12
	asr	w22, w12, w9
	add	w8, w10, w8
	sub	w8, w8, w11
	asr	w23, w8, w9
	add	w24, w23, #1
Lloh24:
	adrp	x25, _PIT_RadiusAttack@GOTPAGE
Lloh25:
	ldr	x25, [x25, _PIT_RadiusAttack@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w8, w19, #1
	cmp	w19, w21
	mov	x19, x8
	b.eq	LBB0_1
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	cmp	w22, w23
	b.gt	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x20, x22
LBB0_6:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w2, [x25]
	mov	x0, x20
	mov	x1, x19
	bl	_P_BlockThingsIterator
	add	w20, w20, #1
	cmp	w24, w20
	b.ne	LBB0_6
	b	LBB0_3
	.loh AdrpLdrGotStr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotStr	Lloh17, Lloh18, Lloh20
	.loh AdrpLdrGotStr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh19
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_MAXRADIUS,4,2                  ; @MAXRADIUS
	.comm	_FRACBITS,4,2                   ; @FRACBITS
	.comm	_bmaporgy,4,2                   ; @bmaporgy
	.comm	_MAPBLOCKSHIFT,4,2              ; @MAPBLOCKSHIFT
	.comm	_bmaporgx,4,2                   ; @bmaporgx
	.comm	_bombspot,8,3                   ; @bombspot
	.comm	_bombsource,8,3                 ; @bombsource
	.comm	_bombdamage,4,2                 ; @bombdamage
	.comm	_PIT_RadiusAttack,4,2           ; @PIT_RadiusAttack
.subsections_via_symbols
