	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ada_array_element_type         ## -- Begin function ada_array_element_type
	.p2align	4, 0x90
_ada_array_element_type:                ## @ada_array_element_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	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	callq	_desc_base_type
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_TYPE_CODE
	movq	_TYPE_CODE_STRUCT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.1:
	movq	%r12, %rdi
	callq	_desc_data_type
	movq	%rax, %r15
	movq	%r12, %rdi
	callq	_ada_array_arity
	testl	%eax, %eax
	je	LBB0_11
## %bb.2:
	cmpl	%r14d, %eax
	movl	%eax, %ebx
	cmovgl	%r14d, %ebx
	testl	%r14d, %r14d
	cmovsl	%eax, %ebx
	movq	%r15, %rdi
	callq	_TYPE_TARGET_TYPE
	movq	%rax, %r12
	testl	%ebx, %ebx
	jle	LBB0_12
	.p2align	4, 0x90
## %bb.3:
	testq	%r12, %r12
	je	LBB0_12
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	callq	_TYPE_TARGET_TYPE
	movq	%rax, %rdi
	callq	_check_typedef
	movq	%rax, %r12
	cmpl	$2, %ebx
	jb	LBB0_12
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	decl	%ebx
	testq	%r12, %r12
	jne	LBB0_4
	jmp	LBB0_12
LBB0_6:
	movq	%r12, %rdi
	callq	_TYPE_CODE
	movq	_TYPE_CODE_ARRAY@GOTPCREL(%rip), %rbx
	cmpq	(%rbx), %rax
	jne	LBB0_11
## %bb.7:
	testl	%r14d, %r14d
	je	LBB0_12
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	callq	_TYPE_CODE
	cmpq	(%rbx), %rax
	jne	LBB0_12
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movq	%r12, %rdi
	callq	_TYPE_TARGET_TYPE
	movq	%rax, %r12
	decl	%r14d
	jne	LBB0_8
	jmp	LBB0_12
LBB0_11:
	xorl	%r12d, %r12d
LBB0_12:
	movq	%r12, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TYPE_CODE_STRUCT,8,3           ## @TYPE_CODE_STRUCT
	.comm	_TYPE_CODE_ARRAY,8,3            ## @TYPE_CODE_ARRAY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ada_array_element_type         ; -- Begin function ada_array_element_type
	.p2align	2
_ada_array_element_type:                ; @ada_array_element_type
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x1
	bl	_desc_base_type
	mov	x19, x0
	bl	_TYPE_CODE
Lloh0:
	adrp	x8, _TYPE_CODE_STRUCT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TYPE_CODE_STRUCT@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_6
; %bb.1:
	mov	x0, x19
	bl	_desc_data_type
	mov	x21, x0
	mov	x0, x19
	bl	_ada_array_arity
	cbz	w0, LBB0_10
; %bb.2:
	cmp	w0, w20
	mov	w8, #-1
	ccmp	w20, w8, #4, gt
	csel	w20, w20, w0, gt
	mov	x0, x21
	bl	_TYPE_TARGET_TYPE
	mov	x19, x0
	cmp	w20, #1
	b.lt	LBB0_11
; %bb.3:
	cbz	x19, LBB0_11
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_TYPE_TARGET_TYPE
	bl	_check_typedef
	mov	x19, x0
	cmp	w20, #2
	b.lo	LBB0_11
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	sub	w20, w20, #1
	cbnz	x19, LBB0_4
	b	LBB0_11
LBB0_6:
	mov	x0, x19
	bl	_TYPE_CODE
Lloh3:
	adrp	x21, _TYPE_CODE_ARRAY@GOTPAGE
Lloh4:
	ldr	x21, [x21, _TYPE_CODE_ARRAY@GOTPAGEOFF]
	ldr	x8, [x21]
	cmp	x0, x8
	b.ne	LBB0_10
; %bb.7:
	cbz	w20, LBB0_11
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_TYPE_CODE
	ldr	x8, [x21]
	cmp	x0, x8
	b.ne	LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x19
	bl	_TYPE_TARGET_TYPE
	mov	x19, x0
	subs	w20, w20, #1
	b.ne	LBB0_8
	b	LBB0_11
LBB0_10:
	mov	x19, #0
LBB0_11:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_TYPE_CODE_STRUCT,8,3           ; @TYPE_CODE_STRUCT
	.comm	_TYPE_CODE_ARRAY,8,3            ; @TYPE_CODE_ARRAY
.subsections_via_symbols
