	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_kt_pipeline                    ## -- Begin function kt_pipeline
	.p2align	4, 0x90
_kt_pipeline:                           ## @kt_pipeline
	.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
	movl	%edi, %r12d
	cmpl	$2, %edi
	movl	$1, %r13d
	cmovgel	%edi, %r13d
	movl	%r13d, -80(%rbp)
	movl	%ecx, -76(%rbp)
	movq	%rsi, -72(%rbp)
	movq	%rdx, -48(%rbp)
	leaq	-60(%rbp), %rdi
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	callq	_pthread_mutex_init
	leaq	-64(%rbp), %rdi
	xorl	%esi, %esi
	callq	_pthread_cond_init
	movl	%r13d, %edi
	shll	$5, %edi
	callq	_alloca
	movq	%rax, -56(%rbp)
	cmpl	$2, %r12d
	jl	LBB0_3
## %bb.1:
	movl	%r13d, %ecx
	andl	$2147483646, %ecx               ## imm = 0x7FFFFFFE
	leaq	48(%rax), %rdx
	xorl	%ebx, %ebx
	xorps	%xmm0, %xmm0
	leaq	-80(%rbp), %rsi
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movups	%xmm0, -32(%rdx)
	movq	%rsi, -40(%rdx)
	movq	$0, -48(%rdx)
	movups	%xmm0, (%rdx)
	movq	%rsi, -8(%rdx)
	movq	$0, -16(%rdx)
	addq	$2, %rbx
	addq	$64, %rdx
	cmpq	%rbx, %rcx
	jne	LBB0_2
LBB0_3:
	testb	$1, %r13b
	je	LBB0_5
## %bb.4:
	shlq	$5, %rbx
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rax,%rbx)
	leaq	-80(%rbp), %rcx
	movq	%rcx, 8(%rax,%rbx)
	movq	$0, (%rax,%rbx)
LBB0_5:
	leal	(,%r13,4), %edi
	callq	_alloca
	movq	%rax, %r12
	movq	%r13, -88(%rbp)                 ## 8-byte Spill
	shlq	$5, %r13
	xorl	%r15d, %r15d
	movq	_ktp_worker@GOTPCREL(%rip), %r14
	movq	%rax, %rbx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %edx
	movq	-56(%rbp), %rcx
	addq	%r15, %rcx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_pthread_create
	addq	$32, %r15
	addq	$4, %rbx
	cmpq	%r15, %r13
	jne	LBB0_6
## %bb.7:
	xorl	%ebx, %ebx
	movq	-88(%rbp), %r14                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12,%rbx,4), %edi
	xorl	%esi, %esi
	callq	_pthread_join
	incq	%rbx
	cmpq	%rbx, %r14
	jne	LBB0_8
## %bb.9:
	leaq	-60(%rbp), %rdi
	callq	_pthread_mutex_destroy
	leaq	-64(%rbp), %rdi
	callq	_pthread_cond_destroy
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ktp_worker,4,2                 ## @ktp_worker
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_kt_pipeline                    ; -- Begin function kt_pipeline
	.p2align	2
_kt_pipeline:                           ; @kt_pipeline
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	w0, #1
	csinc	w23, w0, wzr, gt
	stp	w23, w3, [sp, #8]
	str	x1, [sp, #16]
	str	x2, [sp, #40]
	add	x21, sp, #8
	add	x19, x21, #20
	mov	x0, x19
	mov	w1, #0
	bl	_pthread_mutex_init
	add	x20, x21, #16
	mov	x0, x20
	mov	w1, #0
	bl	_pthread_cond_init
	lsl	w0, w23, #5
	bl	_alloca
	str	x0, [sp, #32]
	add	x8, x0, #16
	mov	x9, x23
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	stp	xzr, xzr, [x8]
	stp	xzr, x21, [x8, #-16]
	add	x8, x8, #32
	subs	x9, x9, #1
	b.ne	LBB0_1
; %bb.2:
	lsl	w0, w23, #2
	bl	_alloca
	mov	x21, x0
	mov	x24, #0
	lsl	x25, x23, #5
Lloh0:
	adrp	x26, _ktp_worker@GOTPAGE
Lloh1:
	ldr	x26, [x26, _ktp_worker@GOTPAGEOFF]
	mov	x22, x0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w2, [x26]
	ldr	x8, [sp, #32]
	add	x3, x8, x24
	mov	x0, x22
	mov	w1, #0
	bl	_pthread_create
	add	x24, x24, #32
	add	x22, x22, #4
	cmp	x25, x24
	b.ne	LBB0_3
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x21], #4
	mov	w1, #0
	bl	_pthread_join
	subs	x23, x23, #1
	b.ne	LBB0_4
; %bb.5:
	mov	x0, x19
	bl	_pthread_mutex_destroy
	mov	x0, x20
	bl	_pthread_cond_destroy
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_ktp_worker,4,2                 ; @ktp_worker
.subsections_via_symbols
