	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_A_Punch                        ## -- Begin function A_Punch
	.p2align	4, 0x90
_A_Punch:                               ## @A_Punch
	.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, %r14
	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), %ecx
	addl	$2, %ecx
                                        ## kill: def $eax killed $eax killed $rax def $rax
	addl	%eax, %eax
	movq	(%r14), %rdx
	movq	8(%r14), %rsi
	movq	_pw_strength@GOTPCREL(%rip), %rdi
	movq	(%rdi), %rdi
	cmpq	$0, (%rsi,%rdi,8)
	leal	4(%rax,%rax), %eax
	leal	(%rax,%rax,4), %r15d
	cmovel	%ecx, %r15d
	movl	(%rdx), %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	(%r14), %rdi
	movq	_MELEERANGE@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movl	%ebx, %esi
	callq	_P_AimLineAttack
	movq	(%r14), %rdi
	movl	(%r12), %edx
	movl	%ebx, %esi
	movl	%eax, %ecx
	movl	%r15d, %r8d
	callq	_P_LineAttack
	movq	_linetarget@GOTPCREL(%rip), %rbx
	cmpq	$0, (%rbx)
	je	LBB0_2
## %bb.1:
	movq	(%r14), %rdi
	movq	_sfx_punch@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_S_StartSound
	movq	(%r14), %rax
	movl	4(%rax), %esi
	movl	8(%rax), %edi
	movq	(%rbx), %rax
	movl	(%rax), %ecx
	movl	4(%rax), %edx
	callq	_R_PointToAngle2
	movq	(%r14), %rcx
	movl	%eax, (%rcx)
LBB0_2:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_pw_strength,8,3                ## @pw_strength
	.comm	_MELEERANGE,4,2                 ## @MELEERANGE
	.comm	_linetarget,8,3                 ## @linetarget
	.comm	_sfx_punch,4,2                  ## @sfx_punch
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_A_Punch                        ; -- Begin function A_Punch
	.p2align	2
_A_Punch:                               ; @A_Punch
	.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
	mov	x19, x0
	bl	_P_Random
	mov	w8, #26215
	movk	w8, #26214, lsl #16
	smull	x8, w0, w8
	lsr	x9, x8, #63
	asr	x8, x8, #34
	add	w8, w8, w9
	mov	w9, #10
	msub	w8, w8, w9, w0
Lloh0:
	adrp	x9, _pw_strength@GOTPAGE
Lloh1:
	ldr	x9, [x9, _pw_strength@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldp	x11, x10, [x19]
	ldr	x9, [x10, x9, lsl #3]
	lsl	w8, w8, #1
	add	w8, w8, #2
	cmp	x9, #0
	add	w9, w8, w8, lsl #2
	lsl	w9, w9, #1
	csel	w20, w8, w9, eq
	ldr	w22, [x11]
	bl	_P_Random
	mov	x21, x0
	bl	_P_Random
	sub	w8, w21, w0
	add	w21, w22, w8, lsl #18
	ldr	x0, [x19]
Lloh3:
	adrp	x22, _MELEERANGE@GOTPAGE
Lloh4:
	ldr	x22, [x22, _MELEERANGE@GOTPAGEOFF]
	ldr	w2, [x22]
	mov	x1, x21
	bl	_P_AimLineAttack
	mov	x3, x0
	ldr	x0, [x19]
	ldr	w2, [x22]
	mov	x1, x21
	mov	x4, x20
	bl	_P_LineAttack
Lloh5:
	adrp	x20, _linetarget@GOTPAGE
Lloh6:
	ldr	x20, [x20, _linetarget@GOTPAGEOFF]
	ldr	x8, [x20]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	x0, [x19]
Lloh7:
	adrp	x8, _sfx_punch@GOTPAGE
Lloh8:
	ldr	x8, [x8, _sfx_punch@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	bl	_S_StartSound
	ldr	x8, [x19]
	ldp	w1, w0, [x8, #4]
	ldr	x8, [x20]
	ldp	w3, w2, [x8]
	bl	_R_PointToAngle2
	ldr	x8, [x19]
	str	w0, [x8]
LBB0_2:
	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
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_pw_strength,8,3                ; @pw_strength
	.comm	_MELEERANGE,4,2                 ; @MELEERANGE
	.comm	_linetarget,8,3                 ; @linetarget
	.comm	_sfx_punch,4,2                  ; @sfx_punch
.subsections_via_symbols
