	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CheckGauntletAttack            ## -- Begin function CheckGauntletAttack
	.p2align	4, 0x90
_CheckGauntletAttack:                   ## @CheckGauntletAttack
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	(%rdi), %rax
	movl	16(%rax), %edi
	movq	_forward@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	_right@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	movq	_up@GOTPCREL(%rip), %rbx
	movl	(%rbx), %ecx
	callq	_AngleVectors
	movl	(%r12), %esi
	movl	(%r14), %edx
	movl	(%rbx), %ecx
	movq	_muzzle@GOTPCREL(%rip), %rbx
	movl	(%rbx), %r8d
	movq	%r15, %rdi
	callq	_CalcMuzzlePoint
	movl	(%rbx), %edi
	movl	(%r12), %edx
	movl	$32, %esi
	callq	_VectorMA
	movl	(%rbx), %esi
	movl	24(%r15), %r9d
	movq	_MASK_SHOT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	subq	$8, %rsp
	leaq	-80(%rbp), %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	pushq	%rax
	callq	_trap_Trace
	addq	$16, %rsp
	movq	_SURF_NOIMPACT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_qfalse@GOTPCREL(%rip), %r13
	testl	%eax, -80(%rbp)
	jne	LBB0_8
## %bb.1:
	movq	_g_entities@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movq	-72(%rbp), %r12
	shlq	$5, %r12
	cmpq	$0, 8(%r14,%r12)
	je	LBB0_8
## %bb.2:
	leaq	(%r14,%r12), %rbx
	cmpq	$0, (%rbx)
	je	LBB0_4
## %bb.3:
	leaq	(%r14,%r12), %rax
	addq	$8, %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	-64(%rbp), %edi
	movq	_EV_MISSILE_HIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_G_TempEntity
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%rax, %rbx
	movl	24(%r14,%r12), %eax
	movl	%eax, 28(%rbx)
	movl	-60(%rbp), %edi
	callq	_DirToByte
	movl	%eax, 20(%rbx)
	movl	16(%r15), %eax
	movl	%eax, 16(%rbx)
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	cmpq	$0, (%rax)
	je	LBB0_8
LBB0_4:
	movq	(%r15), %rax
	movq	8(%rax), %rax
	movq	_PW_QUAD@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	$0, (%rax,%rcx,8)
	je	LBB0_5
## %bb.6:
	movq	_EV_POWERUP_QUAD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_G_AddEvent
	movq	_g_quadfactor@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_7
LBB0_5:
	movl	$1, %eax
LBB0_7:
	movq	_forward@GOTPCREL(%rip), %rdx
	movq	_s_quadFactor@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	imull	$50, %eax, %r9d
	movl	(%rdx), %ecx
	movl	-64(%rbp), %r8d
	movq	_MOD_GAUNTLET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	%r15, %rdx
	pushq	%rax
	pushq	$0
	callq	_G_Damage
	addq	$16, %rsp
	movq	_qtrue@GOTPCREL(%rip), %r13
LBB0_8:
	movl	(%r13), %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_forward,4,2                    ## @forward
	.comm	_right,4,2                      ## @right
	.comm	_up,4,2                         ## @up
	.comm	_muzzle,4,2                     ## @muzzle
	.comm	_MASK_SHOT,4,2                  ## @MASK_SHOT
	.comm	_SURF_NOIMPACT,4,2              ## @SURF_NOIMPACT
	.comm	_qfalse,4,2                     ## @qfalse
	.comm	_g_entities,8,3                 ## @g_entities
	.comm	_EV_MISSILE_HIT,4,2             ## @EV_MISSILE_HIT
	.comm	_PW_QUAD,8,3                    ## @PW_QUAD
	.comm	_EV_POWERUP_QUAD,4,2            ## @EV_POWERUP_QUAD
	.comm	_g_quadfactor,4,2               ## @g_quadfactor
	.comm	_s_quadFactor,4,2               ## @s_quadFactor
	.comm	_MOD_GAUNTLET,4,2               ## @MOD_GAUNTLET
	.comm	_qtrue,4,2                      ## @qtrue
	.comm	_PW_DOUBLER,8,3                 ## @PW_DOUBLER
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CheckGauntletAttack            ; -- Begin function CheckGauntletAttack
	.p2align	2
_CheckGauntletAttack:                   ; @CheckGauntletAttack
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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, x0
	ldr	x8, [x0]
	ldr	w0, [x8, #16]
Lloh0:
	adrp	x22, _forward@GOTPAGE
Lloh1:
	ldr	x22, [x22, _forward@GOTPAGEOFF]
	ldr	w1, [x22]
Lloh2:
	adrp	x20, _right@GOTPAGE
Lloh3:
	ldr	x20, [x20, _right@GOTPAGEOFF]
	ldr	w2, [x20]
Lloh4:
	adrp	x21, _up@GOTPAGE
Lloh5:
	ldr	x21, [x21, _up@GOTPAGEOFF]
	ldr	w3, [x21]
	bl	_AngleVectors
	ldr	w1, [x22]
	ldr	w2, [x20]
	ldr	w3, [x21]
Lloh6:
	adrp	x20, _muzzle@GOTPAGE
Lloh7:
	ldr	x20, [x20, _muzzle@GOTPAGEOFF]
	ldr	w4, [x20]
	mov	x0, x19
	bl	_CalcMuzzlePoint
	ldr	w0, [x20]
	ldr	w2, [x22]
	mov	w1, #32
	bl	_VectorMA
	ldr	w1, [x20]
	ldr	w5, [x19, #24]
Lloh8:
	adrp	x8, _MASK_SHOT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MASK_SHOT@GOTPAGEOFF]
Lloh10:
	ldr	w6, [x8]
	add	x0, sp, #8
	mov	x2, #0
	mov	x3, #0
	bl	_trap_Trace
	ldr	w8, [sp, #8]
Lloh11:
	adrp	x9, _SURF_NOIMPACT@GOTPAGE
Lloh12:
	ldr	x9, [x9, _SURF_NOIMPACT@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
LBB0_1:
Lloh14:
	adrp	x8, _qfalse@GOTPAGE
Lloh15:
	ldr	x8, [x8, _qfalse@GOTPAGEOFF]
LBB0_2:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_3:
Lloh16:
	adrp	x8, _g_entities@GOTPAGE
Lloh17:
	ldr	x8, [x8, _g_entities@GOTPAGEOFF]
Lloh18:
	ldr	x24, [x8]
	ldr	x25, [sp, #16]
	add	x20, x24, x25, lsl #5
	mov	x23, x20
	ldr	x8, [x23, #8]!
	cbz	x8, LBB0_1
; %bb.4:
	ldr	x8, [x20]
	cbz	x8, LBB0_6
; %bb.5:
	ldr	w0, [sp, #24]
Lloh19:
	adrp	x8, _EV_MISSILE_HIT@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EV_MISSILE_HIT@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	bl	_G_TempEntity
	mov	x21, x0
	add	x8, x24, x25, lsl #5
	ldr	w8, [x8, #24]
	str	w8, [x0, #28]
	ldr	w0, [sp, #28]
	bl	_DirToByte
	str	w0, [x21, #20]
	ldr	w8, [x19, #16]
	str	w8, [x21, #16]
	ldr	x8, [x23]
	cbz	x8, LBB0_1
LBB0_6:
	ldr	x8, [x19]
	ldr	x8, [x8, #8]
Lloh22:
	adrp	x9, _PW_QUAD@GOTPAGE
Lloh23:
	ldr	x9, [x9, _PW_QUAD@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	ldr	x8, [x8, x9, lsl #3]
	cbz	x8, LBB0_8
; %bb.7:
Lloh25:
	adrp	x8, _EV_POWERUP_QUAD@GOTPAGE
Lloh26:
	ldr	x8, [x8, _EV_POWERUP_QUAD@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_G_AddEvent
Lloh28:
	adrp	x8, _g_quadfactor@GOTPAGE
Lloh29:
	ldr	x8, [x8, _g_quadfactor@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	b	LBB0_9
LBB0_8:
	mov	w8, #1
LBB0_9:
Lloh31:
	adrp	x9, _s_quadFactor@GOTPAGE
Lloh32:
	ldr	x9, [x9, _s_quadFactor@GOTPAGEOFF]
Lloh33:
	str	w8, [x9]
	mov	w9, #50
	mul	w5, w8, w9
	ldr	w3, [x22]
	ldr	w4, [sp, #24]
Lloh34:
	adrp	x8, _MOD_GAUNTLET@GOTPAGE
Lloh35:
	ldr	x8, [x8, _MOD_GAUNTLET@GOTPAGEOFF]
Lloh36:
	ldr	w7, [x8]
	mov	x0, x20
	mov	x1, x19
	mov	x2, x19
	mov	w6, #0
	bl	_G_Damage
Lloh37:
	adrp	x8, _qtrue@GOTPAGE
Lloh38:
	ldr	x8, [x8, _qtrue@GOTPAGEOFF]
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotStr	Lloh31, Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_forward,4,2                    ; @forward
	.comm	_right,4,2                      ; @right
	.comm	_up,4,2                         ; @up
	.comm	_muzzle,4,2                     ; @muzzle
	.comm	_MASK_SHOT,4,2                  ; @MASK_SHOT
	.comm	_SURF_NOIMPACT,4,2              ; @SURF_NOIMPACT
	.comm	_qfalse,4,2                     ; @qfalse
	.comm	_g_entities,8,3                 ; @g_entities
	.comm	_EV_MISSILE_HIT,4,2             ; @EV_MISSILE_HIT
	.comm	_PW_QUAD,8,3                    ; @PW_QUAD
	.comm	_EV_POWERUP_QUAD,4,2            ; @EV_POWERUP_QUAD
	.comm	_g_quadfactor,4,2               ; @g_quadfactor
	.comm	_s_quadFactor,4,2               ; @s_quadFactor
	.comm	_MOD_GAUNTLET,4,2               ; @MOD_GAUNTLET
	.comm	_qtrue,4,2                      ; @qtrue
	.comm	_PW_DOUBLER,8,3                 ; @PW_DOUBLER
.subsections_via_symbols
