	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_A_HeadAttack                   ## -- Begin function A_HeadAttack
	.p2align	4, 0x90
_A_HeadAttack:                          ## @A_HeadAttack
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	cmpl	$0, (%rdi)
	je	LBB0_3
## %bb.1:
	movq	%rdi, %rbx
	callq	_A_FaceTarget
	movq	%rbx, %rdi
	callq	_P_CheckMeleeRange
	testq	%rax, %rax
	je	LBB0_2
## %bb.4:
	xorl	%eax, %eax
	callq	_P_Random
	cltq
	imulq	$715827883, %rax, %rcx          ## imm = 0x2AAAAAAB
	movq	%rcx, %rdx
	shrq	$63, %rdx
	shrq	$32, %rcx
	addl	%edx, %ecx
	addl	%ecx, %ecx
	leal	(%rcx,%rcx,2), %ecx
	subl	%ecx, %eax
	leal	(%rax,%rax,4), %eax
	leal	(%rax,%rax), %ecx
	addl	$10, %ecx
	movl	(%rbx), %edi
	movq	%rbx, %rsi
	movq	%rbx, %rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_P_DamageMobj                   ## TAILCALL
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_2:
	movl	(%rbx), %esi
	movq	_MT_HEADSHOT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_P_SpawnMissile                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MT_HEADSHOT,4,2                ## @MT_HEADSHOT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_A_HeadAttack                   ; -- Begin function A_HeadAttack
	.p2align	2
_A_HeadAttack:                          ; @A_HeadAttack
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	w8, [x0]
	cbz	w8, LBB0_3
; %bb.1:
	mov	x19, x0
	bl	_A_FaceTarget
	mov	x0, x19
	bl	_P_CheckMeleeRange
	cbz	x0, LBB0_4
; %bb.2:
	bl	_P_Random
	mov	w8, #43691
	movk	w8, #10922, lsl #16
	smull	x8, w0, w8
	lsr	x9, x8, #63
	lsr	x8, x8, #32
	add	w8, w8, w9
	mov	w9, #6
	msub	w8, w8, w9, w0
	mov	w9, #10
	mul	w8, w8, w9
	add	w3, w8, #10
	ldr	w0, [x19]
	mov	x1, x19
	mov	x2, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_P_DamageMobj
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_4:
	ldr	w1, [x19]
Lloh0:
	adrp	x8, _MT_HEADSHOT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MT_HEADSHOT@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_P_SpawnMissile
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MT_HEADSHOT,4,2                ; @MT_HEADSHOT
.subsections_via_symbols
