	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function findVariant
_findVariant:                           ## @findVariant
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rsi, %r10
	movl	%r8d, %r13d
	leaq	-1(%r13), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movl	%r13d, %r12d
	andl	$3, %r12d
	andl	$-4, %r13d
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_11 Depth 2
                                        ##       Child Loop BB0_12 Depth 3
                                        ##       Child Loop BB0_17 Depth 3
                                        ##     Child Loop BB0_34 Depth 2
                                        ##     Child Loop BB0_3 Depth 2
	movq	(%r14), %r15
	testl	%r8d, %r8d
	jle	LBB0_5
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	testq	%r15, %r15
	je	LBB0_25
## %bb.10:                              ##   in Loop: Header=BB0_4 Depth=1
	xorl	%r11d, %r11d
	movq	%r14, %rbx
	movq	%r15, %rcx
LBB0_11:                                ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_12 Depth 3
                                        ##       Child Loop BB0_17 Depth 3
	movq	(%r15), %rax
	.p2align	4, 0x90
LBB0_12:                                ##   Parent Loop BB0_4 Depth=1
                                        ##     Parent Loop BB0_11 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movq	(%rcx), %rsi
	cmpq	%rax, %rsi
	jge	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=3
	movq	24(%rcx), %rcx
	movq	%rcx, (%rbx)
	testq	%rcx, %rcx
	jne	LBB0_12
	jmp	LBB0_25
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_11 Depth=2
	movl	$-1, %r9d
	jle	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_11 Depth=2
	movq	%rcx, %r15
	movl	%r9d, %r11d
	jmp	LBB0_23
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_11 Depth=2
	jne	LBB0_22
	.p2align	4, 0x90
LBB0_17:                                ##   Parent Loop BB0_4 Depth=1
                                        ##     Parent Loop BB0_11 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	cmpq	%rdx, 8(%rcx)
	jne	LBB0_20
## %bb.18:                              ##   in Loop: Header=BB0_17 Depth=3
	cmpl	%r8d, 16(%rcx)
	je	LBB0_19
LBB0_20:                                ##   in Loop: Header=BB0_17 Depth=3
	movq	24(%rcx), %rcx
	movq	%rcx, (%rbx)
	testq	%rcx, %rcx
	je	LBB0_25
## %bb.21:                              ##   in Loop: Header=BB0_17 Depth=3
	movq	(%rcx), %rsi
	cmpq	%rax, %rsi
	je	LBB0_17
	jmp	LBB0_22
LBB0_19:                                ##   in Loop: Header=BB0_11 Depth=2
	movq	%rax, %rsi
	movq	%rcx, %r15
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_11 Depth=2
	cmpq	(%r15), %rsi
	movl	$-1, %eax
	cmovnel	%eax, %r11d
	cmovneq	%rcx, %r15
LBB0_23:                                ##   in Loop: Header=BB0_11 Depth=2
	incl	%r11d
	cmpl	%r8d, %r11d
	jge	LBB0_6
## %bb.24:                              ##   in Loop: Header=BB0_11 Depth=2
	movslq	%r11d, %rcx
	leaq	(%r14,%rcx,8), %rbx
	movq	(%r14,%rcx,8), %rcx
	testq	%rcx, %rcx
	jne	LBB0_11
	jmp	LBB0_25
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_4 Depth=1
	xorl	%r11d, %r11d
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	cmpl	%r8d, %r11d
	jne	LBB0_30
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%rdi, %rbx
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	(%r15), %rsi
	movq	%r10, -64(%rbp)                 ## 8-byte Spill
	movq	%r10, %rdi
	callq	_matchIdSubst
	testq	%rax, %rax
	je	LBB0_8
## %bb.26:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	%rbx, %rdi
	testq	%rbx, %rbx
	je	LBB0_28
## %bb.27:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	(%r15), %rsi
	callq	_matchIdSubst
	movq	%rbx, %rdi
	testq	%rax, %rax
	jne	LBB0_29
LBB0_28:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	%rdi, 32(%r15)
	movq	%r15, %rdi
LBB0_29:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	movq	-64(%rbp), %r10                 ## 8-byte Reload
LBB0_30:                                ##   in Loop: Header=BB0_4 Depth=1
	testl	%r8d, %r8d
	jle	LBB0_4
LBB0_31:                                ##   in Loop: Header=BB0_4 Depth=1
	cmpq	$3, -72(%rbp)                   ## 8-byte Folded Reload
	jae	LBB0_33
## %bb.32:                              ##   in Loop: Header=BB0_4 Depth=1
	xorl	%eax, %eax
	jmp	LBB0_1
LBB0_33:                                ##   in Loop: Header=BB0_4 Depth=1
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_34:                                ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%r14,%rax,8), %rcx
	movq	8(%r14,%rax,8), %rsi
	movq	24(%rcx), %rcx
	movq	%rcx, (%r14,%rax,8)
	movq	24(%rsi), %rcx
	movq	%rcx, 8(%r14,%rax,8)
	movq	16(%r14,%rax,8), %rcx
	movq	24(%rcx), %rcx
	movq	%rcx, 16(%r14,%rax,8)
	movq	24(%r14,%rax,8), %rcx
	movq	24(%rcx), %rcx
	movq	%rcx, 24(%r14,%rax,8)
	addq	$4, %rax
	cmpq	%rax, %r13
	jne	LBB0_34
LBB0_1:                                 ##   in Loop: Header=BB0_4 Depth=1
	testq	%r12, %r12
	je	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_4 Depth=1
	leaq	(%r14,%rax,8), %rax
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_3:                                 ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%rax,%rcx,8), %rsi
	movq	24(%rsi), %rsi
	movq	%rsi, (%rax,%rcx,8)
	incq	%rcx
	cmpq	%rcx, %r12
	jne	LBB0_3
	jmp	LBB0_4
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	movq	-64(%rbp), %r10                 ## 8-byte Reload
	movq	%rbx, %rdi
	testl	%r8d, %r8d
	jg	LBB0_31
	jmp	LBB0_4
LBB0_25:
	movq	%rdi, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_findVariant
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function findVariant
_findVariant:                           ; @findVariant
	.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, x4
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x23, x0
	mov	w24, w4
LBB0_1:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_4 Depth 2
                                        ;       Child Loop BB0_5 Depth 3
                                        ;       Child Loop BB0_9 Depth 3
                                        ;     Child Loop BB0_26 Depth 2
	ldr	x25, [x20]
	cmp	w19, #1
	b.lt	LBB0_18
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	cbz	x25, LBB0_27
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	w8, #0
	mov	x10, x20
	mov	x9, x25
LBB0_4:                                 ;   Parent Loop BB0_1 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_5 Depth 3
                                        ;       Child Loop BB0_9 Depth 3
	ldr	x11, [x25]
LBB0_5:                                 ;   Parent Loop BB0_1 Depth=1
                                        ;     Parent Loop BB0_4 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	x12, [x9]
	cmp	x12, x11
	b.ge	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=3
	ldr	x9, [x9, #24]
	str	x9, [x10]
	cbnz	x9, LBB0_5
	b	LBB0_27
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=2
	b.le	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=2
	mov	w8, #-1
	mov	x25, x9
	b	LBB0_16
LBB0_9:                                 ;   Parent Loop BB0_1 Depth=1
                                        ;     Parent Loop BB0_4 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	cmp	x12, x11
	b.ne	LBB0_15
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=3
	ldr	x12, [x9, #8]
	cmp	x12, x21
	b.ne	LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=3
	ldr	w12, [x9, #16]
	cmp	w12, w19
	b.eq	LBB0_14
LBB0_12:                                ;   in Loop: Header=BB0_9 Depth=3
	ldr	x9, [x9, #24]
	str	x9, [x10]
	cbz	x9, LBB0_27
; %bb.13:                               ;   in Loop: Header=BB0_9 Depth=3
	ldr	x12, [x9]
	b	LBB0_9
LBB0_14:                                ;   in Loop: Header=BB0_4 Depth=2
	mov	x12, x11
	mov	x25, x9
LBB0_15:                                ;   in Loop: Header=BB0_4 Depth=2
	ldr	x10, [x25]
	cmp	x12, x10
	csel	x25, x25, x9, eq
	csinv	w8, w8, wzr, eq
LBB0_16:                                ;   in Loop: Header=BB0_4 Depth=2
	sxtw	x8, w8
	add	x8, x8, #1
	cmp	w8, w19
	b.ge	LBB0_19
; %bb.17:                               ;   in Loop: Header=BB0_4 Depth=2
	ldr	x9, [x20, w8, sxtw #3]
	add	x10, x20, x8, lsl #3
	cbnz	x9, LBB0_4
	b	LBB0_27
LBB0_18:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	w8, #0
LBB0_19:                                ;   in Loop: Header=BB0_1 Depth=1
	cmp	w8, w19
	b.ne	LBB0_24
; %bb.20:                               ;   in Loop: Header=BB0_1 Depth=1
	ldr	x1, [x25]
	mov	x0, x22
	bl	_matchIdSubst
	cbz	x0, LBB0_24
; %bb.21:                               ;   in Loop: Header=BB0_1 Depth=1
	cbz	x23, LBB0_23
; %bb.22:                               ;   in Loop: Header=BB0_1 Depth=1
	ldr	x1, [x25]
	mov	x0, x23
	bl	_matchIdSubst
	cbnz	x0, LBB0_24
LBB0_23:                                ;   in Loop: Header=BB0_1 Depth=1
	str	x23, [x25, #32]
	mov	x23, x25
LBB0_24:                                ;   in Loop: Header=BB0_1 Depth=1
	cmp	w19, #1
	b.lt	LBB0_1
; %bb.25:                               ;   in Loop: Header=BB0_1 Depth=1
	mov	x8, x24
	mov	x9, x20
LBB0_26:                                ;   Parent Loop BB0_1 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x10, [x9]
	ldr	x10, [x10, #24]
	str	x10, [x9], #8
	subs	x8, x8, #1
	b.ne	LBB0_26
	b	LBB0_1
LBB0_27:
	mov	x0, x23
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_findVariant
.subsections_via_symbols
