	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AAS_NextModelReachability      ## -- Begin function AAS_NextModelReachability
	.p2align	4, 0x90
_AAS_NextModelReachability:             ## @AAS_NextModelReachability
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_aasworld@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	testl	%edi, %edi
	jle	LBB0_3
## %bb.1:
	xorl	%eax, %eax
	cmpl	%edi, %r8d
	jle	LBB0_12
## %bb.2:
	incl	%edi
	jmp	LBB0_4
LBB0_3:
	movl	$1, %edi
LBB0_4:
	xorl	%eax, %eax
	cmpl	%r8d, %edi
	jge	LBB0_12
## %bb.5:
	movq	8(%rcx), %rdx
	movq	_TRAVELTYPE_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r9d
	movq	_TRAVEL_ELEVATOR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r11d
	movq	_TRAVEL_FUNCBOB@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r10d
	movl	%edi, %edi
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_8 Depth=1
	cmpl	%esi, 4(%rdx,%rdi,8)
	je	LBB0_11
LBB0_7:                                 ##   in Loop: Header=BB0_8 Depth=1
	incq	%rdi
	cmpl	%edi, %r8d
	je	LBB0_12
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rdx,%rdi,8), %ecx
	andl	%r9d, %ecx
	cmpl	%r11d, %ecx
	je	LBB0_6
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	cmpl	%r10d, %ecx
	jne	LBB0_7
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	movzwl	4(%rdx,%rdi,8), %ecx
	cmpl	%esi, %ecx
	jne	LBB0_7
LBB0_11:
	movl	%edi, %eax
LBB0_12:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_aasworld,16,3                  ## @aasworld
	.comm	_TRAVELTYPE_MASK,4,2            ## @TRAVELTYPE_MASK
	.comm	_TRAVEL_ELEVATOR,4,2            ## @TRAVEL_ELEVATOR
	.comm	_TRAVEL_FUNCBOB,4,2             ## @TRAVEL_FUNCBOB
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AAS_NextModelReachability      ; -- Begin function AAS_NextModelReachability
	.p2align	2
_AAS_NextModelReachability:             ; @AAS_NextModelReachability
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x9, _aasworld@GOTPAGE
Lloh1:
	ldr	x9, [x9, _aasworld@GOTPAGEOFF]
	ldr	w8, [x9]
	cmp	w0, #1
	b.lt	LBB0_3
; %bb.1:
	cmp	w8, w0
	b.le	LBB0_10
; %bb.2:
	add	w0, w0, #1
	cmp	w0, w8
	b.lt	LBB0_4
	b	LBB0_10
LBB0_3:
	mov	w0, #1
	cmp	w0, w8
	b.ge	LBB0_10
LBB0_4:
	ldr	x12, [x9, #8]
Lloh2:
	adrp	x9, _TRAVELTYPE_MASK@GOTPAGE
Lloh3:
	ldr	x9, [x9, _TRAVELTYPE_MASK@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
Lloh5:
	adrp	x10, _TRAVEL_ELEVATOR@GOTPAGE
Lloh6:
	ldr	x10, [x10, _TRAVEL_ELEVATOR@GOTPAGEOFF]
Lloh7:
	ldr	w10, [x10]
Lloh8:
	adrp	x11, _TRAVEL_FUNCBOB@GOTPAGE
Lloh9:
	ldr	x11, [x11, _TRAVEL_FUNCBOB@GOTPAGEOFF]
Lloh10:
	ldr	w11, [x11]
	add	x12, x12, w0, uxtw #3
	add	x12, x12, #4
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	w13, [x12]
	cmp	w13, w1
	b.ne	LBB0_9
	b	LBB0_11
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldur	w13, [x12, #-4]
	and	w13, w9, w13
	cmp	w13, w10
	b.eq	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	cmp	w13, w11
	b.ne	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	ldrh	w13, [x12]
	cmp	w13, w1
	b.eq	LBB0_11
LBB0_9:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	w0, w0, #1
	add	x12, x12, #8
	cmp	w8, w0
	b.ne	LBB0_6
LBB0_10:
	mov	w0, #0
LBB0_11:
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_aasworld,16,3                  ; @aasworld
	.comm	_TRAVELTYPE_MASK,4,2            ; @TRAVELTYPE_MASK
	.comm	_TRAVEL_ELEVATOR,4,2            ; @TRAVEL_ELEVATOR
	.comm	_TRAVEL_FUNCBOB,4,2             ; @TRAVEL_FUNCBOB
.subsections_via_symbols
