	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function match_segments
_match_segments:                        ## @match_segments
	.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
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $r8d killed $r8d def $r8
	movl	$-1, %eax
	testl	%esi, %esi
	jle	LBB0_21
## %bb.1:
	movq	%r9, -48(%rbp)                  ## 8-byte Spill
	movslq	%ecx, %rax
	cmpl	%eax, %r8d
	cmovlel	%ecx, %r8d
	subl	%eax, %r8d
	movl	%eax, %ebx
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movl	%esi, %r15d
	leaq	(%rdx,%rax,8), %r12
	xorl	%r14d, %r14d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	%r14d, %r10d
	movl	%ecx, %r9d
LBB0_17:                                ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$15, %ebx
	jae	LBB0_18
LBB0_19:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%r14
	decl	%esi
	cmpq	%r15, %r14
	je	LBB0_20
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_3 Depth 2
                                        ##     Child Loop BB0_13 Depth 2
	movl	%esi, %r9d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpq	%rbx, %r8
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=2
	leaq	(%r14,%rbx), %rax
	movq	(%r12,%rbx,8), %r10
	movl	%eax, %eax
	cmpq	(%rdi,%rax,8), %r10
	jne	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=2
	incq	%rbx
	cmpq	%rbx, %r9
	jne	LBB0_3
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%esi, %ebx
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$9, %ebx
	jb	LBB0_19
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%r8d, %ebx
	cmpl	$9, %ebx
	jb	LBB0_19
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	testl	%ecx, %ecx
	jle	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	testl	%r14d, %r14d
	je	LBB0_10
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %r13
	movq	-56(%rbp), %r11                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_13:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	leal	-1(%r11), %eax
	movq	(%rdx,%rax,8), %r9
	leal	-1(%r13), %eax
	cmpq	(%rdi,%rax,8), %r9
	jne	LBB0_14
## %bb.15:                              ##   in Loop: Header=BB0_13 Depth=2
	incl	%ebx
	leaq	-1(%r13), %r10
	leaq	-1(%r11), %r9
	cmpq	$2, %r11
	jl	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_13 Depth=2
	movq	%r9, %r11
	cmpq	$1, %r13
	movq	%r10, %r13
	jg	LBB0_13
	jmp	LBB0_17
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %r10
	movq	%r11, %r9
	jmp	LBB0_17
LBB0_20:
	movl	$-1, %eax
	jmp	LBB0_21
LBB0_18:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	%r10d, (%rax)
	movq	16(%rbp), %rax
	movl	%r9d, (%rax)
	movq	24(%rbp), %rax
	movl	%ebx, (%rax)
	xorl	%eax, %eax
LBB0_21:
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_match_segments
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function match_segments
_match_segments:                        ; @match_segments
	.cfi_startproc
; %bb.0:
	cmp	w1, #1
	b.lt	LBB0_19
; %bb.1:
	mov	x8, #0
	mov	w9, w3
	cmp	w4, w3
	csel	w10, w4, w3, gt
	sub	w10, w10, w3
	mov	w11, w1
	add	x12, x2, w3, sxtw #3
	b	LBB0_5
LBB0_2:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x14, x8
	mov	x15, x3
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	cmp	w13, #15
	b.hs	LBB0_20
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x8, x8, #1
	sub	w1, w1, #1
	cmp	x8, x11
	b.eq	LBB0_19
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
                                        ;     Child Loop BB0_15 Depth 2
	mov	x13, #0
	mov	w14, w1
LBB0_6:                                 ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	cmp	x10, x13
	b.eq	LBB0_11
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=2
	add	x15, x8, x13
	ldr	x16, [x12, x13, lsl #3]
	ldr	x15, [x0, w15, uxtw #3]
	cmp	x16, x15
	b.ne	LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=2
	add	x13, x13, #1
	cmp	x14, x13
	b.ne	LBB0_6
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x13, x1
LBB0_10:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	w13, #9
	b.lo	LBB0_4
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x13, x10
	cmp	w13, #9
	b.lo	LBB0_4
LBB0_12:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	w3, #1
	b.lt	LBB0_2
; %bb.13:                               ;   in Loop: Header=BB0_5 Depth=1
	cbz	w8, LBB0_2
; %bb.14:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x16, #0
LBB0_15:                                ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x14, x8, x16
	add	x15, x9, x16
	sub	w17, w15, #1
	ldr	x17, [x2, w17, uxtw #3]
	sub	w4, w14, #1
	ldr	x4, [x0, w4, uxtw #3]
	cmp	x17, x4
	b.ne	LBB0_3
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=2
	add	w13, w13, #1
	sub	x16, x16, #1
	cmp	x15, #2
	b.lt	LBB0_18
; %bb.17:                               ;   in Loop: Header=BB0_15 Depth=2
	cmp	x14, #1
	b.gt	LBB0_15
LBB0_18:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x14, x8, x16
	add	x15, x9, x16
	b	LBB0_3
LBB0_19:
	mov	w0, #-1
	ret
LBB0_20:
	mov	w0, #0
	str	w14, [x5]
	str	w15, [x6]
	str	w13, [x7]
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_match_segments
.subsections_via_symbols
