	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ada_index_type                 ## -- Begin function ada_index_type
	.p2align	4, 0x90
_ada_index_type:                        ## @ada_index_type
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %ebx
	callq	_desc_base_type
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_ada_array_arity
	cmpl	%ebx, %eax
	jge	LBB0_1
## %bb.7:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_1:
	movq	%r14, %rdi
	callq	_ada_is_simple_array
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	cmpl	$2, %ebx
	jl	LBB0_5
## %bb.3:
	decl	%ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	callq	_TYPE_TARGET_TYPE
	movq	%rax, %r14
	decl	%ebx
	jne	LBB0_4
LBB0_5:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_TYPE_FIELD_TYPE
	movq	%rax, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_TYPE_TARGET_TYPE               ## TAILCALL
LBB0_6:
	movq	%r14, %rdi
	callq	_desc_bounds_type
	movl	%eax, %edi
	movl	%ebx, %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_desc_index_type                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ada_index_type                 ; -- Begin function ada_index_type
	.p2align	2
_ada_index_type:                        ; @ada_index_type
	.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
	mov	x20, x1
	bl	_desc_base_type
	mov	x19, x0
	bl	_ada_array_arity
	cmp	w0, w20
	b.ge	LBB0_2
; %bb.1:
	mov	x0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_2:
	mov	x0, x19
	bl	_ada_is_simple_array
	cbz	x0, LBB0_7
; %bb.3:
	cmp	w20, #2
	b.lt	LBB0_6
; %bb.4:
	sub	w20, w20, #1
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_TYPE_TARGET_TYPE
	mov	x19, x0
	subs	w20, w20, #1
	b.ne	LBB0_5
LBB0_6:
	mov	x0, x19
	mov	w1, #0
	bl	_TYPE_FIELD_TYPE
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_TYPE_TARGET_TYPE
LBB0_7:
	mov	x0, x19
	bl	_desc_bounds_type
	mov	x1, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_desc_index_type
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
