	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function inittapes
LCPI0_0:
	.long	0                               ## 0x0
	.long	1                               ## 0x1
	.space	4
	.space	4
LCPI0_1:
	.long	2                               ## 0x2
	.long	2                               ## 0x2
	.space	4
	.space	4
LCPI0_2:
	.quad	4294967297                      ## 0x100000001
	.quad	4294967297                      ## 0x100000001
LCPI0_3:
	.long	4                               ## 0x4
	.long	4                               ## 0x4
	.space	4
	.space	4
LCPI0_4:
	.long	6                               ## 0x6
	.long	6                               ## 0x6
	.space	4
	.space	4
LCPI0_5:
	.long	8                               ## 0x8
	.long	8                               ## 0x8
	.space	4
	.space	4
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_inittapes:                             ## @inittapes
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	callq	_LEADER
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_Assert
	testl	%ebx, %ebx
	je	LBB0_2
## %bb.1:
	movl	88(%r14), %edi
	callq	_tuplesort_merge_order
	movl	%eax, %r15d
	jmp	LBB0_3
LBB0_2:
	movq	%r14, %rdi
	callq	_WORKER
	movl	%eax, %edi
	callq	_Assert
	movq	_MINORDER@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
LBB0_3:
	leal	1(%r15), %ebx
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_inittapestate
	movq	72(%r14), %rdx
	movl	64(%r14), %ecx
	movl	%ebx, %edi
	xorl	%esi, %esi
	callq	_LogicalTapeSetCreate
	movl	%eax, 80(%r14)
	movq	$0, 56(%r14)
	movq	(%r14), %r8
	testl	%r15d, %r15d
	js	LBB0_4
## %bb.5:
	movq	48(%r14), %rdi
	movq	8(%r14), %r10
	movq	16(%r14), %rax
	movl	%ebx, %r11d
	cmpl	$4, %ebx
	jae	LBB0_7
## %bb.6:
	xorl	%r15d, %r15d
LBB0_17:
	movq	%r15, %rcx
	notq	%rcx
	testb	$1, %r11b
	je	LBB0_19
## %bb.18:
	movl	$1, (%r8,%r15,4)
	movq	$0, (%rdi,%r15,8)
	movl	$1, (%r10,%r15,4)
	movl	%r15d, (%rax,%r15,4)
	orq	$1, %r15
LBB0_19:
	addq	%r11, %rcx
	je	LBB0_22
## %bb.20:
	leaq	(%rax,%r15,4), %rax
	addq	$4, %rax
	leaq	(%r10,%r15,4), %rcx
	addq	$4, %rcx
	leaq	(%rdi,%r15,8), %rdi
	addq	$8, %rdi
	leaq	(%r8,%r15,4), %rbx
	addq	$4, %rbx
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_21:                                ## =>This Inner Loop Header: Depth=1
	movl	$1, -4(%rbx,%rdx,4)
	movq	$0, -8(%rdi,%rdx,8)
	movl	$1, -4(%rcx,%rdx,4)
	leaq	(%r15,%rdx), %rsi
	movl	%esi, -4(%rax,%rdx,4)
	movl	$1, (%rbx,%rdx,4)
	movq	$0, (%rdi,%rdx,8)
	movl	$1, (%rcx,%rdx,4)
	incl	%esi
	movl	%esi, (%rax,%rdx,4)
	leaq	(%r15,%rdx), %rsi
	addq	$2, %rsi
	addq	$2, %rdx
	cmpq	%r11, %rsi
	jne	LBB0_21
	jmp	LBB0_22
LBB0_4:
	movq	8(%r14), %r10
LBB0_22:
	movq	24(%r14), %rax
	movl	$0, (%r8,%rax,4)
	movl	$0, (%r10,%rax,4)
	movl	$1, 32(%r14)
	movq	$0, 40(%r14)
	movq	_TSS_BUILDRUNS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%r14)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	%r10, %rcx
	subq	%r8, %rcx
	xorl	%r15d, %r15d
	cmpq	$16, %rcx
	jb	LBB0_17
## %bb.8:
	movq	%rax, %rcx
	subq	%r8, %rcx
	cmpq	$16, %rcx
	jb	LBB0_17
## %bb.9:
	movq	%rax, %rcx
	subq	%r10, %rcx
	cmpq	$16, %rcx
	jb	LBB0_17
## %bb.10:
	movl	%r11d, %r15d
	andl	$-4, %r15d
	leaq	-4(%r15), %rcx
	movq	%rcx, %r9
	shrq	$2, %r9
	incq	%r9
	testq	%rcx, %rcx
	je	LBB0_11
## %bb.12:
	movq	%r9, %rcx
	andq	$-2, %rcx
	movdqa	LCPI0_0(%rip), %xmm1            ## xmm1 = <0,1,u,u>
	xorl	%ebx, %ebx
	movdqa	LCPI0_1(%rip), %xmm8            ## xmm8 = <2,2,u,u>
	movaps	LCPI0_2(%rip), %xmm2            ## xmm2 = [4294967297,4294967297]
	xorps	%xmm3, %xmm3
	movdqa	LCPI0_3(%rip), %xmm4            ## xmm4 = <4,4,u,u>
	movdqa	LCPI0_4(%rip), %xmm5            ## xmm5 = <6,6,u,u>
	movdqa	LCPI0_5(%rip), %xmm6            ## xmm6 = <8,8,u,u>
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movdqa	%xmm1, %xmm7
	paddd	%xmm8, %xmm7
	movups	%xmm2, (%r8,%rbx,4)
	movups	%xmm3, (%rdi,%rbx,8)
	movups	%xmm3, 16(%rdi,%rbx,8)
	movups	%xmm2, (%r10,%rbx,4)
	movdqa	%xmm1, %xmm0
	punpcklqdq	%xmm7, %xmm0            ## xmm0 = xmm0[0],xmm7[0]
	movdqu	%xmm0, (%rax,%rbx,4)
	movdqa	%xmm1, %xmm0
	paddd	%xmm4, %xmm0
	movdqa	%xmm1, %xmm7
	paddd	%xmm5, %xmm7
	punpcklqdq	%xmm7, %xmm0            ## xmm0 = xmm0[0],xmm7[0]
	movups	%xmm2, 16(%r8,%rbx,4)
	movups	%xmm3, 32(%rdi,%rbx,8)
	movups	%xmm3, 48(%rdi,%rbx,8)
	movups	%xmm2, 16(%r10,%rbx,4)
	movdqu	%xmm0, 16(%rax,%rbx,4)
	addq	$8, %rbx
	paddd	%xmm6, %xmm1
	addq	$-2, %rcx
	jne	LBB0_13
## %bb.14:
	testb	$1, %r9b
	je	LBB0_16
LBB0_15:
	movdqa	LCPI0_1(%rip), %xmm0            ## xmm0 = <2,2,u,u>
	paddd	%xmm1, %xmm0
	movaps	LCPI0_2(%rip), %xmm2            ## xmm2 = [4294967297,4294967297]
	movups	%xmm2, (%r8,%rbx,4)
	xorps	%xmm3, %xmm3
	movups	%xmm3, (%rdi,%rbx,8)
	movups	%xmm3, 16(%rdi,%rbx,8)
	movups	%xmm2, (%r10,%rbx,4)
	punpcklqdq	%xmm0, %xmm1            ## xmm1 = xmm1[0],xmm0[0]
	movdqu	%xmm1, (%rax,%rbx,4)
LBB0_16:
	cmpq	%r11, %r15
	jne	LBB0_17
	jmp	LBB0_22
LBB0_11:
	movdqa	LCPI0_0(%rip), %xmm1            ## xmm1 = <0,1,u,u>
	xorl	%ebx, %ebx
	testb	$1, %r9b
	jne	LBB0_15
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_MINORDER,4,2                   ## @MINORDER
	.comm	_TSS_BUILDRUNS,4,2              ## @TSS_BUILDRUNS
	.comm	_LOG,4,2                        ## @LOG
	.comm	_trace_sort,8,3                 ## @trace_sort
	.no_dead_strip	_inittapes
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function inittapes
lCPI0_0:
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_inittapes:                             ; @inittapes
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x1
	mov	x19, x0
	bl	_LEADER
	cmp	w0, #0
	cset	w0, eq
	bl	_Assert
	cbz	w20, LBB0_2
; %bb.1:
	ldr	w0, [x19, #88]
	bl	_tuplesort_merge_order
	mov	x21, x0
	b	LBB0_3
LBB0_2:
	mov	x0, x19
	bl	_WORKER
	bl	_Assert
Lloh0:
	adrp	x8, _MINORDER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MINORDER@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
LBB0_3:
	add	w20, w21, #1
	mov	x0, x19
	mov	x1, x20
	bl	_inittapestate
	ldr	x2, [x19, #72]
	ldr	w3, [x19, #64]
	mov	x0, x20
	mov	x1, #0
	bl	_LogicalTapeSetCreate
	str	w0, [x19, #80]
	str	xzr, [x19, #56]
	ldr	x8, [x19]
	tbnz	w21, #31, LBB0_6
; %bb.4:
	ldr	x10, [x19, #48]
	ldp	x9, x11, [x19, #8]
	cmp	w20, #8
	b.hs	LBB0_7
; %bb.5:
	mov	x12, #0
	b	LBB0_13
LBB0_6:
	ldr	x9, [x19, #8]
	b	LBB0_15
LBB0_7:
	mov	x12, #0
	sub	x13, x9, x8
	cmp	x13, #32
	b.lo	LBB0_13
; %bb.8:
	sub	x13, x11, x8
	cmp	x13, #32
	b.lo	LBB0_13
; %bb.9:
	sub	x13, x11, x9
	cmp	x13, #32
	b.lo	LBB0_13
; %bb.10:
	mov	x13, #0
	and	x12, x20, #0xfffffff8
	lsl	x14, x20, #2
	and	x14, x14, #0x3ffffffe0
	add	x15, x8, #16
Lloh3:
	adrp	x16, lCPI0_0@PAGE
Lloh4:
	ldr	d0, [x16, lCPI0_0@PAGEOFF]
	add	x16, x10, #32
	movi.2s	v1, #2
	movi.2s	v2, #4
	movi.2s	v3, #6
	movi.2s	v4, #1
	movi.2d	v5, #0000000000000000
	movi.2s	v6, #8
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	add	x17, x15, x13
	stur	d4, [x17, #-16]
	add.2s	v7, v0, v1
	add.2s	v16, v0, v2
	stur	d4, [x17, #-8]
	add.2s	v17, v0, v3
	str	d4, [x17]
	str	d4, [x17, #8]
	stp	q5, q5, [x16, #-32]
	stp	q5, q5, [x16], #64
	add	x17, x9, x13
	str	d4, [x17]
	str	d4, [x17, #8]
	str	d4, [x17, #16]
	str	d4, [x17, #24]
	add	x17, x11, x13
	str	d0, [x17]
	str	d7, [x17, #8]
	add.2s	v0, v0, v6
	str	d16, [x17, #16]
	add	x13, x13, #32
	str	d17, [x17, #24]
	cmp	x14, x13
	b.ne	LBB0_11
; %bb.12:
	cmp	x12, x20
	b.eq	LBB0_15
LBB0_13:
	mov	w13, #1
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	lsl	x14, x12, #2
	str	w13, [x8, x14]
	str	xzr, [x10, x12, lsl #3]
	str	w13, [x9, x14]
	str	w12, [x11, x14]
	add	x12, x12, #1
	cmp	x20, x12
	b.ne	LBB0_14
LBB0_15:
	ldr	x10, [x19, #24]
	lsl	x10, x10, #2
	str	wzr, [x8, x10]
	str	wzr, [x9, x10]
	mov	w8, #1
	str	xzr, [x19, #40]
Lloh5:
	adrp	x9, _TSS_BUILDRUNS@GOTPAGE
Lloh6:
	ldr	x9, [x9, _TSS_BUILDRUNS@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	stp	w8, w9, [x19, #32]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdr	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_MINORDER,4,2                   ; @MINORDER
	.comm	_TSS_BUILDRUNS,4,2              ; @TSS_BUILDRUNS
	.comm	_LOG,4,2                        ; @LOG
	.comm	_trace_sort,8,3                 ; @trace_sort
	.no_dead_strip	_inittapes
.subsections_via_symbols
