	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ada_value_subscript            ## -- Begin function ada_value_subscript
	.p2align	4, 0x90
_ada_value_subscript:                   ## @ada_value_subscript
	.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	%rdx, %r14
	movl	%esi, %ebx
	callq	_ada_coerce_to_simple_array
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_VALUE_TYPE
	movl	%eax, %edi
	callq	_check_typedef
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_TYPE_CODE
	movq	_TYPE_CODE_ARRAY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_TYPE_FIELD_BITSIZE
	testq	%rax, %rax
	jle	LBB0_2
## %bb.8:
	movq	%r13, %rdi
	movl	%ebx, %esi
	movq	%r14, %rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_value_subscript_packed         ## TAILCALL
LBB0_2:
	testl	%ebx, %ebx
	jle	LBB0_7
## %bb.3:
	movl	%ebx, %r12d
	xorl	%ebx, %ebx
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	(%r14,%rbx,8), %rdi
	callq	_value_pos_atr
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_value_subscript
	movq	%rax, %r13
	incq	%rbx
	cmpq	%rbx, %r12
	je	LBB0_7
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	callq	_TYPE_CODE
	movq	_TYPE_CODE_ARRAY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	callq	_error
	jmp	LBB0_6
LBB0_7:
	movq	%r13, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TYPE_CODE_ARRAY,8,3            ## @TYPE_CODE_ARRAY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"too many subscripts (%d expected)"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ada_value_subscript            ; -- Begin function ada_value_subscript
	.p2align	2
_ada_value_subscript:                   ; @ada_value_subscript
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x2
	mov	x23, x1
	bl	_ada_coerce_to_simple_array
	mov	x20, x0
	bl	_VALUE_TYPE
	bl	_check_typedef
	mov	x21, x0
	bl	_TYPE_CODE
Lloh0:
	adrp	x24, _TYPE_CODE_ARRAY@GOTPAGE
Lloh1:
	ldr	x24, [x24, _TYPE_CODE_ARRAY@GOTPAGEOFF]
	ldr	x8, [x24]
	cmp	x0, x8
	b.ne	LBB0_3
; %bb.1:
	mov	x0, x21
	mov	w1, #0
	bl	_TYPE_FIELD_BITSIZE
	cmp	x0, #1
	b.lt	LBB0_3
; %bb.2:
	mov	x0, x20
	mov	x1, x23
	mov	x2, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_value_subscript_packed
LBB0_3:
	cmp	w23, #1
	b.lt	LBB0_8
; %bb.4:
	mov	x22, #0
	mov	w25, w23
Lloh2:
	adrp	x23, l_.str@PAGE
Lloh3:
	add	x23, x23, l_.str@PAGEOFF
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x0, [x19, x22, lsl #3]
	bl	_value_pos_atr
	mov	x1, x0
	mov	x0, x20
	bl	_value_subscript
	mov	x20, x0
	add	x22, x22, #1
	cmp	x25, x22
	b.eq	LBB0_8
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	bl	_TYPE_CODE
	ldr	x8, [x24]
	cmp	x0, x8
	b.eq	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x23
	mov	x1, x22
	bl	_error
	b	LBB0_5
LBB0_8:
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_TYPE_CODE_ARRAY,8,3            ; @TYPE_CODE_ARRAY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"too many subscripts (%d expected)"

.subsections_via_symbols
