	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mergeins
_mergeins:                              ## @mergeins
	.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
	testl	%ecx, %ecx
	jle	LBB0_15
## %bb.1:
	movl	%ecx, %ebx
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	(%rdi), %rax
	movl	(%rax), %edi
	callq	_CANCEL_REQUESTED
	testq	%rax, %rax
	je	LBB0_2
## %bb.27:
	movq	_REG_CANCEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_NERR                           ## TAILCALL
LBB0_2:
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_sortins
	xorl	%eax, %eax
	callq	_NISERR
	testq	%rax, %rax
	jne	LBB0_15
## %bb.3:
	xorl	%eax, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	_sortins_cmp@GOTPCREL(%rip), %rcx
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	$8, %edx
	callq	_qsort
	cmpl	$2, %ebx
	jb	LBB0_10
## %bb.4:
	movl	%ebx, %r14d
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leaq	8(%rax), %rbx
	decq	%r14
	xorl	%eax, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	_NOTREACHED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_assert
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	%r12, %r15
	movq	%r13, %r12
	addq	$8, %rbx
	decq	%r14
	je	LBB0_10
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %r13
	movq	%r15, %r12
	movslq	-64(%rbp), %r15                 ## 4-byte Folded Reload
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%r15,8), %rdi
	movq	%rbx, %rsi
	callq	_sortins_cmp
	testl	%eax, %eax
	je	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpl	$-1, %eax
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	(%rbx), %rax
	leal	1(%r15), %ecx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, 8(%rcx,%r15,8)
	jmp	LBB0_9
LBB0_10:
	movq	(%r15), %rax
	movq	%rax, -48(%rbp)
	xorl	%ebx, %ebx
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	testl	%r13d, %r13d
	js	LBB0_11
## %bb.16:
	testq	%rax, %rax
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_12
## %bb.17:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movslq	%ebx, %rax
	movq	(%r14,%rax,8), %rax
	movq	%rax, -72(%rbp)
	leaq	-72(%rbp), %rdi
	leaq	-48(%rbp), %rsi
	callq	_sortins_cmp
	cmpl	$1, %eax
	je	LBB0_23
## %bb.19:                              ##   in Loop: Header=BB0_18 Depth=1
	testl	%eax, %eax
	je	LBB0_22
## %bb.20:                              ##   in Loop: Header=BB0_18 Depth=1
	cmpl	$-1, %eax
	jne	LBB0_24
## %bb.21:                              ##   in Loop: Header=BB0_18 Depth=1
	movq	-72(%rbp), %rax
	movl	8(%rax), %esi
	movl	(%rax), %ecx
	movl	4(%rax), %edx
	movq	%r12, %rdi
	movq	%r15, %r8
	callq	_createarc
	incl	%ebx
	cmpl	%r13d, %ebx
	jle	LBB0_26
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_18 Depth=1
	incl	%ebx
LBB0_23:                                ##   in Loop: Header=BB0_18 Depth=1
	movq	-48(%rbp), %rax
	movq	16(%rax), %rax
	movq	%rax, -48(%rbp)
	cmpl	%r13d, %ebx
	jle	LBB0_26
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_24:                                ##   in Loop: Header=BB0_18 Depth=1
	movq	_NOTREACHED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_assert
	cmpl	%r13d, %ebx
	jg	LBB0_12
LBB0_26:                                ##   in Loop: Header=BB0_18 Depth=1
	cmpq	$0, -48(%rbp)
	jne	LBB0_18
	jmp	LBB0_12
LBB0_11:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
LBB0_12:
	cmpl	%r13d, %ebx
	jg	LBB0_15
## %bb.13:
	movslq	%ebx, %rax
	leaq	(%r14,%rax,8), %r14
	subl	%ebx, %r13d
	incl	%r13d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r14,%rbx,8), %rax
	movl	8(%rax), %esi
	movl	(%rax), %ecx
	movl	4(%rax), %edx
	movq	%r12, %rdi
	movq	%r15, %r8
	callq	_createarc
	incq	%rbx
	cmpl	%ebx, %r13d
	jne	LBB0_14
LBB0_15:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_REG_CANCEL,4,2                 ## @REG_CANCEL
	.comm	_NOTREACHED,4,2                 ## @NOTREACHED
	.no_dead_strip	_mergeins
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mergeins
_mergeins:                              ; @mergeins
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	cmp	w3, #1
	b.lt	LBB0_26
; %bb.1:
	mov	x22, x3
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
	ldr	x8, [x0]
	ldr	w0, [x8]
	bl	_CANCEL_REQUESTED
	cbz	x0, LBB0_3
; %bb.2:
Lloh0:
	adrp	x8, _REG_CANCEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _REG_CANCEL@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_NERR
LBB0_3:
	mov	x0, x20
	mov	x1, x19
	bl	_sortins
	bl	_NISERR
	cbnz	x0, LBB0_26
; %bb.4:
Lloh3:
	adrp	x3, _sortins_cmp@GOTPAGE
Lloh4:
	ldr	x3, [x3, _sortins_cmp@GOTPAGEOFF]
	mov	x0, x21
	mov	x1, x22
	mov	w2, #8
	bl	_qsort
Lloh5:
	adrp	x24, _NOTREACHED@GOTPAGE
Lloh6:
	ldr	x24, [x24, _NOTREACHED@GOTPAGEOFF]
	cmp	w22, #2
	b.lo	LBB0_11
; %bb.5:
	mov	w23, #0
	mov	w8, w22
	add	x22, x21, #8
	sub	x25, x8, #1
	b	LBB0_8
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=1
	ldr	w0, [x24]
	bl	_assert
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	x22, x22, #8
	subs	x25, x25, #1
	b.eq	LBB0_12
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, x21, w23, sxtw #3
	mov	x1, x22
	bl	_sortins_cmp
	cbz	w0, LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	cmn	w0, #1
	b.ne	LBB0_6
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	sxtw	x8, w23
	ldr	x9, [x22]
	add	x23, x8, #1
	str	x9, [x21, x23, lsl #3]
                                        ; kill: def $w23 killed $w23 killed $x23 def $x23
	b	LBB0_7
LBB0_11:
	mov	w23, #0
LBB0_12:
	mov	w22, #0
	ldr	x8, [x19]
	str	x8, [sp, #8]
	tbnz	w23, #31, LBB0_23
; %bb.13:
	cbz	x8, LBB0_23
; %bb.14:
	mov	w22, #0
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21, w22, sxtw #3]
	str	x8, [sp]
	mov	x0, sp
	add	x1, sp, #8
	bl	_sortins_cmp
	cmp	w0, #1
	b.eq	LBB0_20
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=1
	cbz	w0, LBB0_19
; %bb.17:                               ;   in Loop: Header=BB0_15 Depth=1
	cmn	w0, #1
	b.ne	LBB0_21
; %bb.18:                               ;   in Loop: Header=BB0_15 Depth=1
	ldr	x8, [sp]
	ldp	w2, w1, [x8, #4]
	ldr	w3, [x8]
	mov	x0, x20
	mov	x4, x19
	bl	_createarc
	add	w22, w22, #1
	cmp	w22, w23
	b.le	LBB0_22
	b	LBB0_23
LBB0_19:                                ;   in Loop: Header=BB0_15 Depth=1
	add	w22, w22, #1
LBB0_20:                                ;   in Loop: Header=BB0_15 Depth=1
	ldr	x8, [sp, #8]
	ldr	x8, [x8, #16]
	str	x8, [sp, #8]
	cmp	w22, w23
	b.le	LBB0_22
	b	LBB0_23
LBB0_21:                                ;   in Loop: Header=BB0_15 Depth=1
	ldr	w0, [x24]
	bl	_assert
	cmp	w22, w23
	b.gt	LBB0_23
LBB0_22:                                ;   in Loop: Header=BB0_15 Depth=1
	ldr	x8, [sp, #8]
	cbnz	x8, LBB0_15
LBB0_23:
	cmp	w22, w23
	b.gt	LBB0_26
; %bb.24:
	add	x21, x21, w22, sxtw #3
	sub	w8, w23, w22
	add	w22, w8, #1
LBB0_25:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21], #8
	ldp	w2, w1, [x8, #4]
	ldr	w3, [x8]
	mov	x0, x20
	mov	x4, x19
	bl	_createarc
	subs	w22, w22, #1
	b.ne	LBB0_25
LBB0_26:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_REG_CANCEL,4,2                 ; @REG_CANCEL
	.comm	_NOTREACHED,4,2                 ; @NOTREACHED
	.no_dead_strip	_mergeins
.subsections_via_symbols
