	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ada_resolve_function           ## -- Begin function ada_resolve_function
	.p2align	4, 0x90
_ada_resolve_function:                  ## @ada_resolve_function
	.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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, -60(%rbp)                 ## 4-byte Spill
	movq	%rcx, %r15
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
	movq	%rdi, %rbx
	movq	16(%rbp), %rax
	xorl	%r12d, %r12d
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	movq	%r9, -88(%rbp)                  ## 8-byte Spill
	jne	LBB0_1
## %bb.2:
	movq	_builtin_type_void@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	jmp	LBB0_3
LBB0_1:
	xorl	%eax, %eax
LBB0_3:
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	jle	LBB0_12
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	xorl	%r13d, %r13d
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_6 Depth=2
	incl	%r12d
LBB0_11:                                ##   in Loop: Header=BB0_6 Depth=2
	incq	%r13
	cmpq	%r13, %r14
	je	LBB0_12
LBB0_6:                                 ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%rbx,%r13,8), %rdi
	callq	_SYMBOL_TYPE
	movl	%eax, %edi
	callq	_check_typedef
	movq	(%rbx,%r13,8), %rdi
	movq	%r15, %rsi
	movl	-60(%rbp), %edx                 ## 4-byte Reload
	callq	_ada_args_match
	testq	%rax, %rax
	je	LBB0_11
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=2
	movq	(%rbx,%r13,8), %rdi
	callq	_SYMBOL_TYPE
	movl	%eax, %edi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_return_match
	testq	%rax, %rax
	je	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=2
	movq	(%rbx,%r13,8), %rcx
	movslq	%r12d, %rax
	movq	%rcx, (%rbx,%rax,8)
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	testq	%rdx, %rdx
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=2
	movq	(%rdx,%r13,8), %rcx
	movq	%rcx, (%rdx,%rax,8)
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_4 Depth=1
	testl	%r12d, %r12d
	jg	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	cmpq	%rax, -56(%rbp)                 ## 8-byte Folded Reload
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	jne	LBB0_4
LBB0_14:
	testl	%r12d, %r12d
	je	LBB0_15
## %bb.16:
	xorl	%r14d, %r14d
	cmpl	$2, %r12d
	jl	LBB0_18
## %bb.17:
	leaq	L_.str(%rip), %rdi
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	callq	_printf_filtered
	movq	%rbx, %rdi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movl	%r12d, %edx
	movl	$1, %ecx
	callq	_user_select_syms
	jmp	LBB0_18
LBB0_15:
	movl	$-1, %r14d
LBB0_18:
	movl	%r14d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_builtin_type_void,8,3          ## @builtin_type_void
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Multiple matches for %s\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ada_resolve_function           ; -- Begin function ada_resolve_function
	.p2align	2
_ada_resolve_function:                  ; @ada_resolve_function
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x24, x6
	str	x5, [sp, #8]                    ; 8-byte Folded Spill
	mov	x23, x4
	mov	x25, x3
	mov	x26, x1
	mov	x22, x0
	mov	w20, #0
Lloh0:
	adrp	x8, _builtin_type_void@GOTPAGE
Lloh1:
	ldr	x8, [x8, _builtin_type_void@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x6, #0
	csel	x27, x8, xzr, eq
	str	w2, [sp, #28]                   ; 4-byte Folded Spill
	mov	w8, w2
	str	x8, [sp, #16]                   ; 8-byte Folded Spill
LBB0_1:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	ldr	w8, [sp, #28]                   ; 4-byte Folded Reload
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x28, [sp, #16]                  ; 8-byte Folded Reload
	mov	x21, x22
	mov	x19, x26
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=2
	add	w20, w20, #1
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=2
	add	x19, x19, #8
	add	x21, x21, #8
	subs	x28, x28, #1
	b.eq	LBB0_9
LBB0_5:                                 ;   Parent Loop BB0_1 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x0, [x21]
	bl	_SYMBOL_TYPE
	bl	_check_typedef
	ldr	x0, [x21]
	mov	x1, x25
	mov	x2, x23
	bl	_ada_args_match
	cbz	x0, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=2
	ldr	x0, [x21]
	bl	_SYMBOL_TYPE
	mov	x1, x24
	bl	_return_match
	cbz	x0, LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=2
	ldr	x8, [x21]
	str	x8, [x22, w20, sxtw #3]
	cbz	x26, LBB0_3
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=2
	sxtw	x8, w20
	ldr	x9, [x19]
	str	x9, [x26, x8, lsl #3]
	b	LBB0_3
LBB0_9:                                 ;   in Loop: Header=BB0_1 Depth=1
	cmp	w20, #0
	b.gt	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_1 Depth=1
	cmp	x24, x27
	mov	x24, x27
	b.ne	LBB0_1
LBB0_11:
	cbz	w20, LBB0_15
; %bb.12:
	cmp	w20, #2
	b.lt	LBB0_14
; %bb.13:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	ldr	x1, [sp, #8]                    ; 8-byte Folded Reload
	bl	_printf_filtered
	mov	x0, x22
	mov	x1, x26
	mov	x2, x20
	mov	w3, #1
	bl	_user_select_syms
LBB0_14:
	mov	w0, #0
	b	LBB0_16
LBB0_15:
	mov	w0, #-1
LBB0_16:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_builtin_type_void,8,3          ; @builtin_type_void
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Multiple matches for %s\n"

.subsections_via_symbols
