	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_GrappleState                   ## -- Begin function GrappleState
	.p2align	4, 0x90
_GrappleState:                          ## @GrappleState
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_MFL_GRAPPLEPULL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	$2, %r14d
	testl	%eax, (%rdi)
	je	LBB0_1
LBB0_7:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	xorl	%r14d, %r14d
	xorl	%edi, %edi
	callq	_AAS_NextEntity
	testl	%eax, %eax
	je	LBB0_7
## %bb.2:
	movl	%eax, %ebx
	movq	_entitytypemissile@GOTPCREL(%rip), %r12
	leaq	-48(%rbp), %r15
	movq	_weapindex_grapple@GOTPCREL(%rip), %r13
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	%ebx, %edi
	callq	_AAS_NextEntity
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_7
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	callq	_AAS_EntityType
	movq	(%r12), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%ebx, %edi
	movq	%r15, %rsi
	callq	_AAS_EntityInfo
	movl	-48(%rbp), %eax
	movq	(%r13), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_6
## %bb.5:
	movl	$1, %r14d
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_MFL_GRAPPLEPULL,4,2            ## @MFL_GRAPPLEPULL
	.comm	_entitytypemissile,8,3          ## @entitytypemissile
	.comm	_weapindex_grapple,8,3          ## @weapindex_grapple
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_GrappleState                   ; -- Begin function GrappleState
	.p2align	2
_GrappleState:                          ; @GrappleState
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _MFL_GRAPPLEPULL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MFL_GRAPPLEPULL@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.1:
	mov	w0, #2
LBB0_2:
	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
	add	sp, sp, #64
	ret
LBB0_3:
	mov	w0, #0
	bl	_AAS_NextEntity
	cbz	w0, LBB0_2
; %bb.4:
	mov	x19, x0
Lloh3:
	adrp	x20, _entitytypemissile@GOTPAGE
Lloh4:
	ldr	x20, [x20, _entitytypemissile@GOTPAGEOFF]
Lloh5:
	adrp	x21, _weapindex_grapple@GOTPAGE
Lloh6:
	ldr	x21, [x21, _weapindex_grapple@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x19
	bl	_AAS_NextEntity
	mov	x19, x0
	cbz	w0, LBB0_2
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_AAS_EntityType
	ldr	x8, [x20]
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x1, sp, #8
	mov	x0, x19
	bl	_AAS_EntityInfo
	ldr	w8, [sp, #8]
	ldr	x9, [x21]
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_5
; %bb.8:
	mov	w0, #1
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_MFL_GRAPPLEPULL,4,2            ; @MFL_GRAPPLEPULL
	.comm	_entitytypemissile,8,3          ; @entitytypemissile
	.comm	_weapindex_grapple,8,3          ; @weapindex_grapple
.subsections_via_symbols
