	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_kt_for                         ## -- Begin function kt_for
	.p2align	4, 0x90
_kt_for:                                ## @kt_for
	.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
	movl	%edi, %r14d
	movq	%rsi, -80(%rbp)
	movq	%rdx, -48(%rbp)
	movl	%edi, -72(%rbp)
	movq	%rcx, -64(%rbp)
	shll	$4, %edi
	callq	_alloca
	movq	%rax, %rbx
	movq	%rax, -56(%rbp)
	leal	(,%r14,4), %edi
	callq	_alloca
	testl	%r14d, %r14d
	jle	LBB0_10
## %bb.1:
	movq	%rax, %r12
	movl	%r14d, %r13d
	cmpl	$1, %r14d
	jne	LBB0_11
## %bb.2:
	xorl	%eax, %eax
	jmp	LBB0_3
LBB0_11:
	movl	%r13d, %ecx
	andl	$-2, %ecx
	leaq	24(%rbx), %rdx
	xorl	%eax, %eax
	leaq	-80(%rbp), %rsi
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	%rsi, -16(%rdx)
	movl	%eax, -24(%rdx)
	movq	%rsi, (%rdx)
	leal	1(%rax), %edi
	movl	%edi, -8(%rdx)
	addq	$2, %rax
	addq	$32, %rdx
	cmpq	%rcx, %rax
	jne	LBB0_12
LBB0_3:
	testb	$1, %r13b
	je	LBB0_5
## %bb.4:
	movq	%rax, %rcx
	shlq	$4, %rcx
	leaq	-80(%rbp), %rdx
	movq	%rdx, 8(%rbx,%rcx)
	movl	%eax, (%rbx,%rcx)
LBB0_5:
	movq	_ktf_worker@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	xorl	%esi, %esi
	movq	%rbx, %rcx
	callq	_pthread_create
	cmpl	$1, %r14d
	je	LBB0_8
## %bb.6:
	leaq	-1(%r13), %r14
	movq	%r12, %rbx
	addq	$4, %rbx
	movl	$16, %r15d
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	_ktf_worker@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-56(%rbp), %rcx
	addq	%r15, %rcx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_pthread_create
	addq	$4, %rbx
	addq	$16, %r15
	decq	%r14
	jne	LBB0_7
LBB0_8:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12,%rbx,4), %edi
	xorl	%esi, %esi
	callq	_pthread_join
	incq	%rbx
	cmpq	%rbx, %r13
	jne	LBB0_9
LBB0_10:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ktf_worker,4,2                 ## @ktf_worker
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_kt_for                         ; -- Begin function kt_for
	.p2align	2
_kt_for:                                ; @kt_for
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x20, x0
	str	x1, [sp, #8]
	str	w0, [sp, #16]
	str	x2, [sp, #40]
	str	x3, [sp, #24]
	lsl	w0, w0, #4
	bl	_alloca
	mov	x21, x0
	str	x0, [sp, #32]
	lsl	w0, w20, #2
	bl	_alloca
	cmp	w20, #1
	b.lt	LBB0_12
; %bb.1:
	mov	x19, x0
	mov	w22, w20
	cmp	w20, #4
	b.hs	LBB0_3
; %bb.2:
	mov	x8, #0
	b	LBB0_6
LBB0_3:
	mov	x9, #0
	and	x8, x22, #0xfffffffc
	add	x10, x21, #32
	add	x11, sp, #8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add	w12, w9, #1
	stur	x11, [x10, #-24]
	add	w13, w9, #2
	add	w14, w9, #3
	stur	x11, [x10, #-8]
	str	x11, [x10, #8]
	str	x11, [x10, #24]
	stur	w9, [x10, #-32]
	stur	w12, [x10, #-16]
	add	x9, x9, #4
	str	w13, [x10]
	str	w14, [x10, #16]
	add	x10, x10, #64
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.5:
	cmp	x8, x22
	b.eq	LBB0_8
LBB0_6:
	add	x9, x21, x8, lsl #4
	add	x9, x9, #8
	add	x10, sp, #8
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	str	x10, [x9]
	stur	w8, [x9, #-8]
	add	x8, x8, #1
	add	x9, x9, #16
	cmp	x22, x8
	b.ne	LBB0_7
LBB0_8:
Lloh0:
	adrp	x23, _ktf_worker@GOTPAGE
Lloh1:
	ldr	x23, [x23, _ktf_worker@GOTPAGEOFF]
	ldr	w2, [x23]
	mov	x0, x19
	mov	w1, #0
	mov	x3, x21
	bl	_pthread_create
	cmp	w20, #1
	b.eq	LBB0_11
; %bb.9:
	sub	x21, x22, #1
	add	x20, x19, #4
	mov	w24, #16
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [sp, #32]
	ldr	w2, [x23]
	add	x3, x8, x24
	mov	x0, x20
	mov	w1, #0
	bl	_pthread_create
	add	x20, x20, #4
	add	x24, x24, #16
	subs	x21, x21, #1
	b.ne	LBB0_10
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19], #4
	mov	w1, #0
	bl	_pthread_join
	subs	x22, x22, #1
	b.ne	LBB0_11
LBB0_12:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_ktf_worker,4,2                 ; @ktf_worker
.subsections_via_symbols
