	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_A_Saw                          ## -- Begin function A_Saw
	.p2align	4, 0x90
_A_Saw:                                 ## @A_Saw
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	xorl	%eax, %eax
	callq	_P_Random
	cltq
	imulq	$1717986919, %rax, %rcx         ## imm = 0x66666667
	movq	%rcx, %rdx
	shrq	$63, %rdx
	sarq	$34, %rcx
	addl	%edx, %ecx
	addl	%ecx, %ecx
	leal	(%rcx,%rcx,4), %ecx
	subl	%ecx, %eax
	leal	(%rax,%rax), %r14d
	addl	$2, %r14d
	movq	(%r15), %rax
	movl	(%rax), %r12d
	xorl	%eax, %eax
	callq	_P_Random
	movl	%eax, %ebx
	xorl	%eax, %eax
	callq	_P_Random
	subl	%eax, %ebx
	shll	$18, %ebx
	addl	%r12d, %ebx
	movq	(%r15), %rdi
	movq	_MELEERANGE@GOTPCREL(%rip), %r12
	movq	(%r12), %rdx
	incq	%rdx
	movl	%ebx, %esi
	callq	_P_AimLineAttack
	movq	(%r15), %rdi
	movq	(%r12), %rdx
	incq	%rdx
	movl	%ebx, %esi
	movl	%eax, %ecx
	movl	%r14d, %r8d
	callq	_P_LineAttack
	movq	_linetarget@GOTPCREL(%rip), %rbx
	cmpq	$0, (%rbx)
	movq	(%r15), %rdi
	je	LBB0_9
## %bb.1:
	movq	_sfx_sawhit@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_S_StartSound
	movq	(%r15), %rax
	movl	8(%rax), %esi
	movl	12(%rax), %edi
	movq	(%rbx), %rax
	movl	(%rax), %ecx
	movl	4(%rax), %edx
	callq	_R_PointToAngle2
	movq	(%r15), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	subl	%esi, %edi
	movq	_ANG180@GOTPCREL(%rip), %rbx
	movq	_ANG90@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	cmpl	(%rbx), %edi
	jle	LBB0_5
## %bb.2:
	movslq	%edx, %r8
	imulq	$-1717986919, %r8, %rdx         ## imm = 0x99999999
	movq	%rdx, %rbx
	shrq	$63, %rbx
	sarq	$35, %rdx
	addl	%ebx, %edx
	cmpl	%edx, %edi
	jge	LBB0_7
## %bb.3:
	imulq	$818089009, %r8, %rdx           ## imm = 0x30C30C31
	jmp	LBB0_4
LBB0_9:
	movq	_sfx_sawful@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_S_StartSound                   ## TAILCALL
LBB0_5:
	movslq	%edx, %r8
	imulq	$1717986919, %r8, %rdx          ## imm = 0x66666667
	movq	%rdx, %rbx
	shrq	$63, %rbx
	sarq	$35, %rdx
	addl	%ebx, %edx
	cmpl	%edx, %edi
	jle	LBB0_7
## %bb.6:
	imulq	$-818089009, %r8, %rdx          ## imm = 0xCF3CF3CF
LBB0_4:
	movq	%rdx, %rsi
	shrq	$63, %rsi
	sarq	$34, %rdx
	addl	%esi, %edx
	addl	%eax, %edx
	jmp	LBB0_8
LBB0_7:
	addl	%esi, %edx
LBB0_8:
	movl	%edx, (%rcx)
	movq	_MF_JUSTATTACKED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 4(%rcx)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MELEERANGE,8,3                 ## @MELEERANGE
	.comm	_linetarget,8,3                 ## @linetarget
	.comm	_sfx_sawful,4,2                 ## @sfx_sawful
	.comm	_sfx_sawhit,4,2                 ## @sfx_sawhit
	.comm	_ANG180,4,2                     ## @ANG180
	.comm	_ANG90,4,2                      ## @ANG90
	.comm	_MF_JUSTATTACKED,4,2            ## @MF_JUSTATTACKED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_A_Saw                          ; -- Begin function A_Saw
	.p2align	2
_A_Saw:                                 ; @A_Saw
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
	bl	_P_Random
	mov	w22, #26215
	movk	w22, #26214, lsl #16
	smull	x8, w0, w22
	lsr	x9, x8, #63
	asr	x8, x8, #34
	add	w8, w8, w9
	mov	w9, #10
	msub	w8, w8, w9, w0
	lsl	w8, w8, #1
	add	w20, w8, #2
	ldr	x8, [x19]
	ldr	w23, [x8]
	bl	_P_Random
	mov	x21, x0
	bl	_P_Random
	sub	w8, w21, w0
	add	w21, w23, w8, lsl #18
	ldr	x0, [x19]
Lloh0:
	adrp	x23, _MELEERANGE@GOTPAGE
Lloh1:
	ldr	x23, [x23, _MELEERANGE@GOTPAGEOFF]
	ldr	x8, [x23]
	add	x2, x8, #1
	mov	x1, x21
	bl	_P_AimLineAttack
	mov	x3, x0
	ldr	x0, [x19]
	ldr	x8, [x23]
	add	x2, x8, #1
	mov	x1, x21
	mov	x4, x20
	bl	_P_LineAttack
Lloh2:
	adrp	x20, _linetarget@GOTPAGE
Lloh3:
	ldr	x20, [x20, _linetarget@GOTPAGEOFF]
	ldr	x8, [x20]
	ldr	x0, [x19]
	cbz	x8, LBB0_2
; %bb.1:
Lloh4:
	adrp	x8, _sfx_sawhit@GOTPAGE
Lloh5:
	ldr	x8, [x8, _sfx_sawhit@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	bl	_S_StartSound
	ldr	x8, [x19]
	ldp	w1, w0, [x8, #8]
	ldr	x8, [x20]
	ldp	w3, w2, [x8]
	bl	_R_PointToAngle2
	ldr	x8, [x19]
Lloh7:
	adrp	x9, _ANG180@GOTPAGE
Lloh8:
	ldr	x9, [x9, _ANG180@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	ldp	w10, w11, [x8]
	sub	w12, w0, w10
Lloh10:
	adrp	x13, _ANG90@GOTPAGE
Lloh11:
	ldr	x13, [x13, _ANG90@GOTPAGEOFF]
Lloh12:
	ldr	w13, [x13]
	smull	x14, w13, w22
	lsr	x15, x14, #63
	asr	x14, x14, #35
	add	w14, w14, w15
	cmp	w12, w14
	add	w14, w14, w10
	mov	w15, #62415
	movk	w15, #53052, lsl #16
	smull	x15, w13, w15
	lsr	x16, x15, #63
	asr	x15, x15, #34
	add	w15, w15, w16
	add	w15, w15, w0
	csel	w14, w14, w15, le
	mov	w15, #-1717986919
	smull	x15, w13, w15
	lsr	x16, x15, #63
	asr	x15, x15, #35
	add	w15, w15, w16
	cmp	w12, w15
	add	w10, w15, w10
	mov	w15, #3121
	movk	w15, #12483, lsl #16
	smull	x13, w13, w15
	lsr	x15, x13, #63
	asr	x13, x13, #34
	add	w13, w13, w15
	add	w13, w13, w0
	csel	w10, w10, w13, ge
	cmp	w12, w9
	csel	w9, w14, w10, le
	str	w9, [x8]
Lloh13:
	adrp	x9, _MF_JUSTATTACKED@GOTPAGE
Lloh14:
	ldr	x9, [x9, _MF_JUSTATTACKED@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	orr	w9, w11, w9
	str	w9, [x8, #4]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_2:
Lloh16:
	adrp	x8, _sfx_sawful@GOTPAGE
Lloh17:
	ldr	x8, [x8, _sfx_sawful@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_S_StartSound
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_MELEERANGE,8,3                 ; @MELEERANGE
	.comm	_linetarget,8,3                 ; @linetarget
	.comm	_sfx_sawful,4,2                 ; @sfx_sawful
	.comm	_sfx_sawhit,4,2                 ; @sfx_sawhit
	.comm	_ANG180,4,2                     ; @ANG180
	.comm	_ANG90,4,2                      ; @ANG90
	.comm	_MF_JUSTATTACKED,4,2            ; @MF_JUSTATTACKED
.subsections_via_symbols
