	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function compile_grep_patterns_real
_compile_grep_patterns_real:            ## @compile_grep_patterns_real
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	callq	_prep_header_patterns
	movq	%rax, %r14
	movq	16(%r15), %rbx
	testq	%rbx, %rbx
	jne	LBB0_2
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_compile_regexp
	movq	8(%rbx), %rbx
	testq	%rbx, %rbx
	je	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rbx), %eax
	addl	$-128, %eax
	cmpl	$2, %eax
	jbe	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$1, (%r15)
	movq	8(%rbx), %rbx
	testq	%rbx, %rbx
	jne	LBB0_2
LBB0_6:
	cmpl	$0, 4(%r15)
	jne	LBB0_8
## %bb.7:
	testq	%r14, %r14
	jne	LBB0_8
## %bb.9:
	cmpl	$0, (%r15)
	jne	LBB0_11
## %bb.10:
	cmpl	$0, 24(%r15)
	jne	LBB0_11
	jmp	LBB0_21
LBB0_8:
	movl	$1, (%r15)
LBB0_11:
	movq	16(%r15), %rax
	movq	%rax, -32(%rbp)
	testq	%rax, %rax
	je	LBB0_14
## %bb.12:
	leaq	-32(%rbp), %rdi
	callq	_compile_pattern_expr
	movq	%rax, 8(%r15)
	movq	-32(%rbp), %rax
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	movl	4(%rax), %esi
	leaq	L_.str(%rip), %rdi
	callq	_die
LBB0_14:
	testq	%r14, %r14
	je	LBB0_21
## %bb.15:
	movq	8(%r15), %rsi
	testq	%rsi, %rsi
	je	LBB0_20
## %bb.16:
	cmpl	$0, 4(%r15)
	je	LBB0_18
## %bb.17:
	movq	%r14, %rdi
	callq	_grep_splice_or
	jmp	LBB0_19
LBB0_18:
	movq	%rsi, %rdi
	movq	%r14, %rsi
	callq	_grep_or_expr
LBB0_19:
	movq	%rax, %r14
LBB0_20:
	movq	%r14, 8(%r15)
	movl	$1, 4(%r15)
LBB0_21:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"incomplete pattern expression: %s"

	.no_dead_strip	_compile_grep_patterns_real
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function compile_grep_patterns_real
_compile_grep_patterns_real:            ; @compile_grep_patterns_real
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
	bl	_prep_header_patterns
	mov	x20, x0
	ldr	x21, [x19, #16]
	cbz	x21, LBB0_5
; %bb.1:
	mov	w22, #1
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	str	w22, [x19]
	ldr	x21, [x21, #8]
	cbz	x21, LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x21]
	sub	w8, w8, #128
	cmp	w8, #2
	b.hi	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x21
	mov	x1, x19
	bl	_compile_regexp
	ldr	x21, [x21, #8]
	cbnz	x21, LBB0_3
LBB0_5:
	ldr	w8, [x19, #4]
	cmp	w8, #0
	ccmp	x20, #0, #0, eq
	b.eq	LBB0_7
; %bb.6:
	mov	w8, #1
	str	w8, [x19]
	b	LBB0_9
LBB0_7:
	ldr	w8, [x19]
	cbnz	w8, LBB0_9
; %bb.8:
	ldr	w8, [x19, #24]
	cbz	w8, LBB0_19
LBB0_9:
	ldr	x8, [x19, #16]
	str	x8, [sp, #8]
	cbz	x8, LBB0_12
; %bb.10:
	add	x0, sp, #8
	bl	_compile_pattern_expr
	str	x0, [x19, #8]
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_12
; %bb.11:
	ldr	w1, [x8, #4]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_die
LBB0_12:
	cbz	x20, LBB0_19
; %bb.13:
	ldr	x1, [x19, #8]
	cbz	x1, LBB0_18
; %bb.14:
	ldr	w8, [x19, #4]
	cbz	w8, LBB0_16
; %bb.15:
	mov	x0, x20
	bl	_grep_splice_or
	b	LBB0_17
LBB0_16:
	mov	x0, x1
	mov	x1, x20
	bl	_grep_or_expr
LBB0_17:
	mov	x20, x0
LBB0_18:
	str	x20, [x19, #8]
	mov	w8, #1
	str	w8, [x19, #4]
LBB0_19:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"incomplete pattern expression: %s"

	.no_dead_strip	_compile_grep_patterns_real
.subsections_via_symbols
