	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function start_threads
_start_threads:                         ## @start_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	_grep_mutex@GOTPCREL(%rip), %rdi
	xorl	%esi, %esi
	callq	_pthread_mutex_init
	movq	_grep_read_mutex@GOTPCREL(%rip), %rdi
	xorl	%esi, %esi
	callq	_pthread_mutex_init
	movq	_grep_attr_mutex@GOTPCREL(%rip), %rdi
	xorl	%esi, %esi
	callq	_pthread_mutex_init
	movq	_cond_add@GOTPCREL(%rip), %rdi
	xorl	%esi, %esi
	callq	_pthread_cond_init
	movq	_cond_write@GOTPCREL(%rip), %rdi
	xorl	%esi, %esi
	callq	_pthread_cond_init
	movq	_cond_result@GOTPCREL(%rip), %rdi
	xorl	%esi, %esi
	callq	_pthread_cond_init
	movq	_grep_use_locks@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	movq	_todo@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_3
## %bb.1:
	xorl	%r12d, %r12d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rdi
	addq	%r12, %rdi
	xorl	%esi, %esi
	callq	_strbuf_init
	incq	%rbx
	movq	(%r14), %rdi
	callq	_ARRAY_SIZE
	cltq
	addq	$4, %r12
	cmpq	%rax, %rbx
	jl	LBB0_2
LBB0_3:
	movq	_num_threads@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movl	$4, %esi
	callq	_xcalloc
	movq	_threads@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	cmpl	$0, (%rbx)
	jle	LBB0_11
## %bb.4:
	movq	%r15, %rdi
	callq	_grep_opt_dup
	movq	%rax, %rbx
	movq	_strbuf_out@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movq	%rbx, %rdi
	callq	_compile_grep_patterns
	movq	_threads@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	_run@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	movq	%rbx, %rcx
	callq	_pthread_create
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movl	%eax, %r14d
	leaq	L_.str(%rip), %rdi
	callq	__
	movl	%eax, %ebx
	movl	%r14d, %edi
	callq	_strerror
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_die
LBB0_6:
	movq	_num_threads@GOTPCREL(%rip), %rax
	cmpl	$2, (%rax)
	jl	LBB0_11
## %bb.7:
	movl	$1, %r14d
	movl	$4, %r13d
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_8 Depth=1
	incq	%r14
	movq	_num_threads@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	addq	$4, %r13
	cmpq	%rax, %r14
	jge	LBB0_11
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	callq	_grep_opt_dup
	movq	%rax, %rbx
	movq	_strbuf_out@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movq	$0, (%rbx)
	movq	%rbx, %rdi
	callq	_compile_grep_patterns
	movq	_threads@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	%r13, %rdi
	movq	_run@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	movq	%rbx, %rcx
	callq	_pthread_create
	testl	%eax, %eax
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rdi
	callq	__
	movl	%eax, %r12d
	movl	%ebx, %edi
	callq	_strerror
	movl	%r12d, %edi
	movl	%eax, %esi
	callq	_die
	jmp	LBB0_10
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_grep_mutex,4,2                 ## @grep_mutex
	.comm	_grep_read_mutex,4,2            ## @grep_read_mutex
	.comm	_grep_attr_mutex,4,2            ## @grep_attr_mutex
	.comm	_cond_add,4,2                   ## @cond_add
	.comm	_cond_write,4,2                 ## @cond_write
	.comm	_cond_result,4,2                ## @cond_result
	.comm	_grep_use_locks,4,2             ## @grep_use_locks
	.comm	_todo,8,3                       ## @todo
	.comm	_num_threads,4,2                ## @num_threads
	.comm	_threads,8,3                    ## @threads
	.comm	_strbuf_out,4,2                 ## @strbuf_out
	.comm	_run,4,2                        ## @run
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"grep: failed to create thread: %s"

	.no_dead_strip	_start_threads
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function start_threads
_start_threads:                         ; @start_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, x0
Lloh0:
	adrp	x0, _grep_mutex@GOTPAGE
Lloh1:
	ldr	x0, [x0, _grep_mutex@GOTPAGEOFF]
	mov	x1, #0
	bl	_pthread_mutex_init
Lloh2:
	adrp	x0, _grep_read_mutex@GOTPAGE
Lloh3:
	ldr	x0, [x0, _grep_read_mutex@GOTPAGEOFF]
	mov	x1, #0
	bl	_pthread_mutex_init
Lloh4:
	adrp	x0, _grep_attr_mutex@GOTPAGE
Lloh5:
	ldr	x0, [x0, _grep_attr_mutex@GOTPAGEOFF]
	mov	x1, #0
	bl	_pthread_mutex_init
Lloh6:
	adrp	x0, _cond_add@GOTPAGE
Lloh7:
	ldr	x0, [x0, _cond_add@GOTPAGEOFF]
	mov	x1, #0
	bl	_pthread_cond_init
Lloh8:
	adrp	x0, _cond_write@GOTPAGE
Lloh9:
	ldr	x0, [x0, _cond_write@GOTPAGEOFF]
	mov	x1, #0
	bl	_pthread_cond_init
Lloh10:
	adrp	x0, _cond_result@GOTPAGE
Lloh11:
	ldr	x0, [x0, _cond_result@GOTPAGEOFF]
	mov	x1, #0
	bl	_pthread_cond_init
Lloh12:
	adrp	x8, _grep_use_locks@GOTPAGE
Lloh13:
	ldr	x8, [x8, _grep_use_locks@GOTPAGEOFF]
	mov	w9, #1
Lloh14:
	str	w9, [x8]
Lloh15:
	adrp	x20, _todo@GOTPAGE
Lloh16:
	ldr	x20, [x20, _todo@GOTPAGEOFF]
	ldr	x0, [x20]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x21, #0
	mov	x22, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20]
	add	x0, x8, x21
	mov	w1, #0
	bl	_strbuf_init
	add	x22, x22, #1
	ldr	x0, [x20]
	bl	_ARRAY_SIZE
	add	x21, x21, #4
	cmp	x22, w0, sxtw
	b.lt	LBB0_2
LBB0_3:
Lloh17:
	adrp	x23, _num_threads@GOTPAGE
Lloh18:
	ldr	x23, [x23, _num_threads@GOTPAGEOFF]
	ldr	w0, [x23]
	mov	w1, #4
	bl	_xcalloc
Lloh19:
	adrp	x24, _threads@GOTPAGE
Lloh20:
	ldr	x24, [x24, _threads@GOTPAGEOFF]
	str	x0, [x24]
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.4:
	mov	x0, x19
	bl	_grep_opt_dup
	mov	x20, x0
Lloh21:
	adrp	x25, _strbuf_out@GOTPAGE
Lloh22:
	ldr	x25, [x25, _strbuf_out@GOTPAGEOFF]
	ldr	w8, [x25]
	str	w8, [x0, #8]
	bl	_compile_grep_patterns
	ldr	x0, [x24]
Lloh23:
	adrp	x26, _run@GOTPAGE
Lloh24:
	ldr	x26, [x26, _run@GOTPAGEOFF]
	ldr	w2, [x26]
	mov	x1, #0
	mov	x3, x20
	bl	_pthread_create
	cbz	w0, LBB0_6
; %bb.5:
	mov	x20, x0
Lloh25:
	adrp	x0, l_.str@PAGE
Lloh26:
	add	x0, x0, l_.str@PAGEOFF
	bl	__
	mov	x21, x0
	mov	x0, x20
	bl	_strerror
	mov	x1, x0
	mov	x0, x21
	bl	_die
LBB0_6:
	ldr	w8, [x23]
	cmp	w8, #2
	b.lt	LBB0_11
; %bb.7:
	mov	w27, #1
	mov	w28, #4
Lloh27:
	adrp	x20, l_.str@PAGE
Lloh28:
	add	x20, x20, l_.str@PAGEOFF
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	x27, x27, #1
	ldrsw	x8, [x23]
	add	x28, x28, #4
	cmp	x27, x8
	b.ge	LBB0_11
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_grep_opt_dup
	mov	x21, x0
	ldr	w8, [x25]
	str	w8, [x0, #8]
	str	xzr, [x0]
	bl	_compile_grep_patterns
	ldr	x8, [x24]
	add	x0, x8, x28
	ldr	w2, [x26]
	mov	x1, #0
	mov	x3, x21
	bl	_pthread_create
	cbz	w0, LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x21, x0
	mov	x0, x20
	bl	__
	mov	x22, x0
	mov	x0, x21
	bl	_strerror
	mov	x1, x0
	mov	x0, x22
	bl	_die
	b	LBB0_8
LBB0_11:
	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
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotStr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_grep_mutex,4,2                 ; @grep_mutex
	.comm	_grep_read_mutex,4,2            ; @grep_read_mutex
	.comm	_grep_attr_mutex,4,2            ; @grep_attr_mutex
	.comm	_cond_add,4,2                   ; @cond_add
	.comm	_cond_write,4,2                 ; @cond_write
	.comm	_cond_result,4,2                ; @cond_result
	.comm	_grep_use_locks,4,2             ; @grep_use_locks
	.comm	_todo,8,3                       ; @todo
	.comm	_num_threads,4,2                ; @num_threads
	.comm	_threads,8,3                    ; @threads
	.comm	_strbuf_out,4,2                 ; @strbuf_out
	.comm	_run,4,2                        ; @run
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"grep: failed to create thread: %s"

	.no_dead_strip	_start_threads
.subsections_via_symbols
