	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ltsConcatWorkerTapes
_ltsConcatWorkerTapes:                  ## @ltsConcatWorkerTapes
	.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	$56, %rsp
	.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, %r13
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	xorl	%edi, %edi
	cmpl	$2, (%r12)
	setge	%dil
	callq	_Assert
	movq	%rsp, -56(%rbp)                 ## 8-byte Spill
	movq	_MAXPGPATH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	movq	40(%r12), %r15
	xorl	%edi, %edi
	movq	%rbx, %rsi
	callq	_pg_itoa
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_BufFileOpenShared
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_BufFileSize
	movq	%rax, %r14
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	movl	(%r13), %eax
	movl	%eax, 12(%r15)
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, 32(%r12)
	movq	$0, (%r15)
	movq	_MaxAllocSize@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_Min
	movq	%r15, %r13
	movl	%eax, 8(%r15)
	movq	_BLCKSZ@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	%r14, %rax
	orq	%rcx, %rax
	shrq	$32, %rax
	je	LBB0_1
## %bb.2:
	movq	%r14, %rax
	cqto
	idivq	%rcx
	movq	%rax, %rdx
	jmp	LBB0_3
LBB0_1:
	movl	%r14d, %eax
	xorl	%edx, %edx
	divl	%ecx
	movl	%eax, %edx
LBB0_3:
	movq	-56(%rbp), %rsp                 ## 8-byte Reload
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	cmpl	$3, (%r14)
	jl	LBB0_4
## %bb.5:
	movl	$1, %r15d
	xorl	%r12d, %r12d
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	%r14, %rax
	cqto
	idivq	%rcx
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	-88(%rbp), %rsp                 ## 8-byte Reload
	addq	%rax, %rdx
	incq	%r15
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movslq	(%r14), %rcx
	decq	%rcx
	addq	$16, %r12
	cmpq	%rcx, %r15
	jge	LBB0_10
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rsp, -88(%rbp)                 ## 8-byte Spill
	movq	_MAXPGPATH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	movq	40(%r14), %r13
	movl	%r15d, %edi
	movq	%rbx, %rsi
	callq	_pg_itoa
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_BufFileOpenShared
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_BufFileSize
	movq	%r14, %rcx
	movq	%rax, %r14
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax,%r15,4), %eax
	movl	%eax, 28(%r13,%r12)
	movq	32(%rcx), %rdi
	movq	%rbx, %rsi
	callq	_BufFileAppend
	movq	%rax, 16(%r13,%r12)
	movq	_MaxAllocSize@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_Min
	movl	%eax, 24(%r13,%r12)
	movq	_BLCKSZ@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	%r14, %rax
	orq	%rcx, %rax
	shrq	$32, %rax
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	%r14d, %eax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $eax killed $eax def $rax
	jmp	LBB0_9
LBB0_4:
	movq	%rdx, %rax
	jmp	LBB0_11
LBB0_10:
	addq	%r12, %r13
LBB0_11:
	addq	(%r13), %rax
	movq	%rax, 8(%r14)
	movq	%rax, 16(%r14)
	subq	%rdx, %rax
	movq	%rax, 24(%r14)
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_13
## %bb.12:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAXPGPATH,4,2                  ## @MAXPGPATH
	.comm	_MaxAllocSize,4,2               ## @MaxAllocSize
	.comm	_BLCKSZ,8,3                     ## @BLCKSZ
	.no_dead_strip	_ltsConcatWorkerTapes
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ltsConcatWorkerTapes
_ltsConcatWorkerTapes:                  ; @ltsConcatWorkerTapes
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #32
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	ldr	w8, [x0]
	cmp	w8, #1
	cset	w0, gt
	bl	_Assert
	mov	x25, sp
Lloh3:
	adrp	x28, _MAXPGPATH@GOTPAGE
Lloh4:
	ldr	x28, [x28, _MAXPGPATH@GOTPAGEOFF]
	ldr	w8, [x28]
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x22, x9, x8
	mov	sp, x22
	ldr	x24, [x19, #40]
	mov	w0, #0
	mov	x1, x22
	bl	_pg_itoa
	mov	x0, x20
	mov	x1, x22
	bl	_BufFileOpenShared
	mov	x22, x0
	bl	_BufFileSize
	mov	x23, x0
	ldr	w8, [x21]
	str	w8, [x24, #12]
	str	x22, [x19, #32]
	str	xzr, [x24]
Lloh7:
	adrp	x8, _MaxAllocSize@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MaxAllocSize@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	mov	x1, x23
	bl	_Min
	str	w0, [x24, #8]
Lloh10:
	adrp	x8, _BLCKSZ@GOTPAGE
Lloh11:
	ldr	x8, [x8, _BLCKSZ@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	sdiv	x26, x23, x8
	mov	sp, x25
	ldr	w8, [x19]
	cmp	w8, #3
	b.lt	LBB0_4
; %bb.1:
	mov	x25, #0
	mov	w22, #1
	stur	x21, [x29, #-104]               ; 8-byte Folded Spill
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x8, sp
	stur	x8, [x29, #-96]                 ; 8-byte Folded Spill
	ldr	w8, [x28]
	mov	x9, x8
Lloh13:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh14:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x23, x9, x8
	mov	sp, x23
	ldr	x27, [x19, #40]
	mov	x0, x22
	mov	x1, x23
	bl	_pg_itoa
	mov	x0, x20
	mov	x1, x23
	bl	_BufFileOpenShared
	mov	x23, x0
	bl	_BufFileSize
	mov	x24, x0
	ldr	w8, [x21, x22, lsl #2]
	mov	x21, x20
	add	x20, x27, x25
	str	w8, [x20, #28]
	ldr	x0, [x19, #32]
	mov	x1, x23
	bl	_BufFileAppend
	str	x0, [x20, #16]
Lloh15:
	adrp	x8, _MaxAllocSize@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MaxAllocSize@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	mov	x1, x24
	bl	_Min
Lloh18:
	adrp	x8, _BLCKSZ@GOTPAGE
Lloh19:
	ldr	x8, [x8, _BLCKSZ@GOTPAGEOFF]
	str	w0, [x20, #24]
	mov	x20, x21
	ldp	x21, x9, [x29, #-104]           ; 16-byte Folded Reload
Lloh20:
	ldr	x8, [x8]
	sdiv	x8, x24, x8
	add	x26, x8, x26
	mov	sp, x9
	add	x22, x22, #1
	ldrsw	x9, [x19]
	sub	x9, x9, #1
	add	x25, x25, #16
	cmp	x22, x9
	b.lt	LBB0_2
; %bb.3:
	add	x24, x27, x25
	b	LBB0_5
LBB0_4:
	mov	x8, x26
LBB0_5:
	ldr	x9, [x24]
	add	x8, x9, x8
	sub	x9, x8, x26
	stp	x8, x8, [x19, #8]
	str	x9, [x19, #24]
	ldur	x8, [x29, #-88]
Lloh21:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh22:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_7
; %bb.6:
	sub	sp, x29, #80
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_7:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_MAXPGPATH,4,2                  ; @MAXPGPATH
	.comm	_MaxAllocSize,4,2               ; @MaxAllocSize
	.comm	_BLCKSZ,8,3                     ; @BLCKSZ
	.no_dead_strip	_ltsConcatWorkerTapes
.subsections_via_symbols
