	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function make_threads
_make_threads:                          ## @make_threads
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r12d
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	imull	%esi, %r12d
	leal	(,%r12,8), %edi
	movl	$64, %esi
	callq	_round_to
	movl	%eax, %r14d
	movl	$24, %edi
	movl	$64, %esi
	callq	_round_to
	movl	%eax, %r15d
	movl	%eax, %esi
	imull	%r12d, %esi
	addl	%r14d, %esi
	movl	$1, %edi
	callq	_calloc
	movq	%rax, %rbx
	leaq	L_.str(%rip), %rdi
	movl	$24, %esi
	movl	%r15d, %edx
	callq	_printf
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	testq	%rbx, %rbx
	je	LBB0_1
## %bb.4:
	testl	%r12d, %r12d
	jle	LBB0_9
## %bb.5:
	movslq	%r14d, %rax
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rbx
	addq	%rax, %rbx
	movslq	%r15d, %r15
	movl	%r12d, %r12d
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, (%r14)
	movslq	%r13d, %rax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx,%rax,4), %eax
	movl	%eax, (%rbx)
	movl	$65536, 4(%rbx)                 ## imm = 0x10000
	movl	$1, %edi
	movl	$65536, %esi                    ## imm = 0x10000
	callq	_calloc
	movq	%rax, 16(%rbx)
	movq	(%r14), %rcx
	leaq	8(%rcx), %rdi
	movq	_rx_body@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	callq	_pthread_create
	testq	%rax, %rax
	jne	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	incl	%r13d
	cmpl	-44(%rbp), %r13d                ## 4-byte Folded Reload
	movl	$0, %eax
	cmovel	%eax, %r13d
	addq	%r15, %rbx
	addq	$8, %r14
	decq	%r12
	jne	LBB0_6
LBB0_9:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
LBB0_3:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	callq	_make_threads.cold.1
	jmp	LBB0_2
LBB0_7:
	callq	_make_threads.cold.2
LBB0_2:
	xorl	%eax, %eax
	jmp	LBB0_3
	.cfi_endproc
                                        ## -- End function
	.p2align	4, 0x90                         ## -- Begin function make_threads.cold.1
_make_threads.cold.1:                   ## @make_threads.cold.1
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	leaq	L_.str.1(%rip), %rdi
	callq	_perror
	pushq	$1
	popq	%rdi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.p2align	4, 0x90                         ## -- Begin function make_threads.cold.2
_make_threads.cold.2:                   ## @make_threads.cold.2
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	leaq	L_.str.2(%rip), %rdi
	callq	_perror
	pushq	$1
	popq	%rdi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"td len %d -> %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"no room for pointers!"

	.comm	_rx_body,4,2                    ## @rx_body
L_.str.2:                               ## @.str.2
	.asciz	"unable to create thread"

	.no_dead_strip	_make_threads
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function make_threads
_make_threads:                          ; @make_threads
	.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
	mov	x19, x1
	mov	x20, x0
	mul	w24, w2, w1
	lsl	w0, w24, #3
	mov	w1, #64
	bl	_round_to
	mov	x22, x0
	mov	w0, #24
	mov	w1, #64
	bl	_round_to
	mov	x23, x0
	madd	w1, w0, w24, w22
	mov	w0, #1
	bl	_calloc
	mov	x21, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	w1, #24
	mov	x2, x23
	bl	_printf
	cbz	x21, LBB0_7
; %bb.1:
	cmp	w24, #1
	b.lt	LBB0_5
; %bb.2:
	mov	w25, #0
	sxtw	x23, w23
	mov	w26, #65536
Lloh2:
	adrp	x27, _rx_body@GOTPAGE
Lloh3:
	ldr	x27, [x27, _rx_body@GOTPAGEOFF]
	mov	x28, x21
	add	x22, x21, w22, sxtw
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	str	x22, [x28]
	ldr	w8, [x20, w25, sxtw #2]
	stp	w8, w26, [x22]
	mov	w0, #1
	mov	w1, #65536
	bl	_calloc
	str	x0, [x22, #16]
	ldr	x3, [x28]
	add	x0, x3, #8
	ldr	w2, [x27]
	mov	x1, #0
	bl	_pthread_create
	cbnz	x0, LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	w8, w25, #1
	cmp	w8, w19
	csinc	w25, wzr, w25, eq
	add	x22, x22, x23
	add	x28, x28, #8
	subs	x24, x24, #1
	b.ne	LBB0_3
LBB0_5:
	mov	x0, x21
	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_6:
	bl	_make_threads.cold.2
LBB0_7:
	bl	_make_threads.cold.1
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.p2align	2                               ; -- Begin function make_threads.cold.1
_make_threads.cold.1:                   ; @make_threads.cold.1
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_perror
	mov	w0, #1
	bl	_exit
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.p2align	2                               ; -- Begin function make_threads.cold.2
_make_threads.cold.2:                   ; @make_threads.cold.2
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh6:
	adrp	x0, l_.str.2@PAGE
Lloh7:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_perror
	mov	w0, #1
	bl	_exit
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"td len %d -> %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"no room for pointers!"

	.comm	_rx_body,4,2                    ; @rx_body
l_.str.2:                               ; @.str.2
	.asciz	"unable to create thread"

	.no_dead_strip	_make_threads
.subsections_via_symbols
