	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function group
_group:                                 ## @group
	.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	%ecx, %r14d
	movl	%edx, %r15d
	movl	%esi, %ebx
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leal	40(,%rbx,4), %edi
	callq	_malloc
	movq	%rax, %r13
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_barf
LBB0_2:
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	testl	%ebx, %ebx
	je	LBB0_14
## %bb.3:
	movq	%r12, -80(%rbp)                 ## 8-byte Spill
	movl	%r15d, -60(%rbp)                ## 4-byte Spill
	movl	%r14d, -64(%rbp)                ## 4-byte Spill
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movl	%ebx, %r15d
	xorl	%r12d, %r12d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	%r12
	cmpq	%r12, %r15
	je	LBB0_9
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	$40, %edi
	callq	_malloc
	movq	%rax, %r14
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	leaq	L_.str(%rip), %rdi
	callq	_barf
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	leaq	-56(%rbp), %rdi
	callq	_fdpair
	movq	_loops@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	imull	%ebx, %eax
	movl	%eax, (%r14)
	movl	-56(%rbp), %eax
	movq	8(%r14), %rcx
	movl	%eax, (%rcx)
	movl	-52(%rbp), %eax
	movl	%eax, 4(%rcx)
	movl	-60(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 16(%r14)
	movl	-64(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 20(%r14)
	movq	_receiver@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r14, %rdi
	callq	_create_worker
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx,%r12,4)
	movl	-52(%rbp), %eax
	movq	24(%r13), %rcx
	movl	%eax, (%rcx,%r12,4)
	movq	_thread_mode@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	-56(%rbp), %edi
	callq	_close
	jmp	LBB0_8
LBB0_9:
	xorl	%ebx, %ebx
	movl	-60(%rbp), %r14d                ## 4-byte Reload
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movl	%r14d, 16(%r13)
	movl	-64(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 20(%r13)
	movl	%r15d, 32(%r13)
	movq	_sender@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r13, %rdi
	callq	_create_worker
	leal	(%r15,%rbx), %ecx
	movl	%eax, (%r12,%rcx,4)
	incq	%rbx
	cmpq	%rbx, %r15
	jne	LBB0_10
## %bb.11:
	movq	_thread_mode@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_14
## %bb.12:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	24(%r13), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_close
	incq	%rbx
	cmpq	%rbx, %r15
	jne	LBB0_13
LBB0_14:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_16
## %bb.15:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	addl	%eax, %eax
                                        ## kill: def $eax killed $eax killed $rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"malloc()"

	.comm	_loops,4,2                      ## @loops
	.comm	_receiver,8,3                   ## @receiver
	.comm	_thread_mode,4,2                ## @thread_mode
	.comm	_sender,8,3                     ## @sender
	.no_dead_strip	_group
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function group
_group:                                 ; @group
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x3
	mov	x22, x2
	mov	x19, x1
	mov	x23, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #8]
	lsl	w8, w1, #2
	add	w0, w8, #40
	bl	_malloc
	mov	x20, x0
	cbnz	x0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_barf
LBB0_2:
	cbz	w19, LBB0_14
; %bb.3:
	mov	x24, #0
	mov	w27, w19
	lsl	x26, x27, #2
Lloh5:
	adrp	x28, _receiver@GOTPAGE
Lloh6:
	ldr	x28, [x28, _receiver@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x24, x24, #4
	cmp	x26, x24
	b.eq	LBB0_9
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	w0, #40
	bl	_malloc
	mov	x25, x0
	cbnz	x0, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
	bl	_barf
LBB0_7:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, sp
	bl	_fdpair
Lloh9:
	adrp	x8, _loops@GOTPAGE
Lloh10:
	ldr	x8, [x8, _loops@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	mul	w8, w8, w19
	str	w8, [x25]
	ldr	w8, [sp]
	ldr	x9, [x25, #8]
	str	w8, [x9]
	ldr	w8, [sp, #4]
	str	w8, [x9, #4]
	stp	w22, w21, [x25, #16]
	ldr	x1, [x28]
	mov	x0, x25
	bl	_create_worker
	str	w0, [x23, x24]
	ldr	w8, [sp, #4]
	ldr	x9, [x20, #24]
	str	w8, [x9, x24]
Lloh12:
	adrp	x8, _thread_mode@GOTPAGE
Lloh13:
	ldr	x8, [x8, _thread_mode@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	cbnz	w8, LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [sp]
	bl	_close
	b	LBB0_4
LBB0_9:
	mov	x24, #0
Lloh15:
	adrp	x25, _sender@GOTPAGE
Lloh16:
	ldr	x25, [x25, _sender@GOTPAGEOFF]
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	stp	w22, w21, [x20, #16]
	str	w27, [x20, #32]
	ldr	x1, [x25]
	mov	x0, x20
	bl	_create_worker
	add	w8, w27, w24
	str	w0, [x23, w8, uxtw #2]
	add	x24, x24, #1
	cmp	x27, x24
	b.ne	LBB0_10
; %bb.11:
Lloh17:
	adrp	x8, _thread_mode@GOTPAGE
Lloh18:
	ldr	x8, [x8, _thread_mode@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	cbnz	w8, LBB0_14
; %bb.12:
	mov	x21, #0
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #24]
	ldr	w0, [x8, x21]
	bl	_close
	add	x21, x21, #4
	cmp	x26, x21
	b.ne	LBB0_13
LBB0_14:
	ldr	x8, [sp, #8]
Lloh20:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh21:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_16
; %bb.15:
	lsl	w0, w19, #1
	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
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_16:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"malloc()"

	.comm	_loops,4,2                      ; @loops
	.comm	_receiver,8,3                   ; @receiver
	.comm	_thread_mode,4,2                ; @thread_mode
	.comm	_sender,8,3                     ; @sender
	.no_dead_strip	_group
.subsections_via_symbols
