	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function desc_bounds
_desc_bounds:                           ## @desc_bounds
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	%rdi, -40(%rbp)
	callq	_VALUE_TYPE
	movl	%eax, %edi
	callq	_check_typedef
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_is_thin_pntr
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	%rbx, %rdi
	callq	_thin_descriptor_type
	movl	%eax, %edi
	callq	_desc_bounds_type
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_TYPE_CODE
	movq	_TYPE_CODE_PTR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.2:
	movq	%r15, %rdi
	callq	_value_as_long
	movq	%rax, %rbx
	jmp	LBB0_4
LBB0_5:
	movq	%rbx, %rdi
	callq	_is_thick_pntr
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	leaq	L_.str(%rip), %rdx
	leaq	L_.str.1(%rip), %r8
	leaq	-40(%rbp), %rdi
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	callq	_value_struct_elt
	jmp	LBB0_8
LBB0_3:
	movq	%r15, %rdi
	callq	_VALUE_ADDRESS
	movq	%rax, %r12
	movq	%r15, %rdi
	callq	_VALUE_OFFSET
	movq	%rax, %rbx
	addq	%r12, %rbx
LBB0_4:
	movq	%r14, %rdi
	callq	_lookup_pointer_type
	movl	%eax, %r15d
	movq	%r14, %rdi
	callq	_TYPE_LENGTH
	subq	%rax, %rbx
	movl	%r15d, %edi
	movq	%rbx, %rsi
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_value_from_longest             ## TAILCALL
LBB0_6:
	xorl	%eax, %eax
LBB0_8:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TYPE_CODE_PTR,8,3              ## @TYPE_CODE_PTR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"P_BOUNDS"

L_.str.1:                               ## @.str.1
	.asciz	"Bad GNAT array descriptor"

	.no_dead_strip	_desc_bounds
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function desc_bounds
_desc_bounds:                           ; @desc_bounds
	.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
	mov	x19, x0
	str	x0, [sp, #8]
	bl	_VALUE_TYPE
	bl	_check_typedef
	mov	x21, x0
	bl	_is_thin_pntr
	cbz	x0, LBB0_3
; %bb.1:
	mov	x0, x21
	bl	_thin_descriptor_type
	bl	_desc_bounds_type
	mov	x20, x0
	mov	x0, x21
	bl	_TYPE_CODE
Lloh0:
	adrp	x8, _TYPE_CODE_PTR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TYPE_CODE_PTR@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_6
; %bb.2:
	mov	x0, x19
	bl	_value_as_long
	mov	x19, x0
	b	LBB0_7
LBB0_3:
	mov	x0, x21
	bl	_is_thick_pntr
	cbz	x0, LBB0_5
; %bb.4:
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
Lloh5:
	adrp	x4, l_.str.1@PAGE
Lloh6:
	add	x4, x4, l_.str.1@PAGEOFF
	add	x0, sp, #8
	mov	x1, #0
	mov	x3, #0
	bl	_value_struct_elt
LBB0_5:
	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_6:
	mov	x0, x19
	bl	_VALUE_ADDRESS
	mov	x21, x0
	mov	x0, x19
	bl	_VALUE_OFFSET
	add	x19, x0, x21
LBB0_7:
	mov	x0, x20
	bl	_lookup_pointer_type
	mov	x21, x0
	mov	x0, x20
	bl	_TYPE_LENGTH
	sub	x1, x19, x0
	mov	x0, x21
	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
	b	_value_from_longest
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_TYPE_CODE_PTR,8,3              ; @TYPE_CODE_PTR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"P_BOUNDS"

l_.str.1:                               ; @.str.1
	.asciz	"Bad GNAT array descriptor"

	.no_dead_strip	_desc_bounds
.subsections_via_symbols
