	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ada_which_variant_applies      ## -- Begin function ada_which_variant_applies
	.p2align	4, 0x90
_ada_which_variant_applies:             ## @ada_which_variant_applies
	.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
	movq	%rsi, %rbx
	movq	%rdi, %r15
	callq	_ada_variant_discrim_name
	movl	$0, -44(%rbp)
	leaq	-44(%rbp), %rcx
	movq	%rbx, %rdi
	movq	%rax, %rsi
	movl	$1, %edx
	callq	_ada_lookup_struct_elt_type
	movl	$-1, %r12d
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movslq	-44(%rbp), %rcx
	addq	%rcx, %r14
	movq	%rax, %rdi
	movq	%r14, %rsi
	callq	_unpack_long
	movl	%eax, %r14d
	movq	%r15, %rdi
	callq	_TYPE_NFIELDS
	testl	%eax, %eax
	jle	LBB0_7
## %bb.2:
	xorl	%ebx, %ebx
	movl	$-1, %r13d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	incl	%ebx
	movq	%r15, %rdi
	callq	_TYPE_NFIELDS
	movl	%r12d, %r13d
	cmpl	%eax, %ebx
	jge	LBB0_7
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_ada_is_others_clause
	movl	%ebx, %r12d
	testq	%rax, %rax
	jne	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%r14d, %edi
	movq	%r15, %rsi
	movl	%ebx, %edx
	callq	_ada_in_variant
	movl	%r13d, %r12d
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movl	%ebx, %r12d
LBB0_7:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ada_which_variant_applies      ; -- Begin function ada_which_variant_applies
	.p2align	2
_ada_which_variant_applies:             ; @ada_which_variant_applies
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	bl	_ada_variant_discrim_name
	mov	x1, x0
	str	wzr, [sp, #12]
	add	x3, sp, #12
	mov	x0, x21
	mov	w2, #1
	bl	_ada_lookup_struct_elt_type
	cbz	x0, LBB0_7
; %bb.1:
	ldrsw	x8, [sp, #12]
	add	x1, x20, x8
	bl	_unpack_long
	mov	x20, x0
	mov	x0, x19
	bl	_TYPE_NFIELDS
	cmp	w0, #1
	b.lt	LBB0_7
; %bb.2:
	mov	w21, #0
	mov	w23, #-1
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w21, w21, #1
	mov	x0, x19
	bl	_TYPE_NFIELDS
	mov	x23, x22
	cmp	w21, w0
	b.ge	LBB0_8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x21
	bl	_ada_is_others_clause
	mov	x22, x21
	cbnz	x0, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_ada_in_variant
	mov	x22, x23
	cbz	x0, LBB0_3
; %bb.6:
	mov	x22, x21
	b	LBB0_8
LBB0_7:
	mov	w22, #-1
LBB0_8:
	mov	x0, x22
	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
	add	sp, sp, #80
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
