	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function match_expr_eval
_match_expr_eval:                       ## @match_expr_eval
	.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
	movq	%r9, %rbx
	movl	%r8d, %r10d
	movq	%rdx, %r13
	movq	%rsi, %r12
	testq	%rsi, %rsi
	jne	LBB0_2
## %bb.1:
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r12
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	movl	%r10d, %r15d
	movq	%r13, %r14
	movq	%rcx, %r13
	callq	_die
	movq	%r12, %rdi
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	movq	%r13, %rcx
	movq	%r14, %r13
	movl	%r15d, %r10d
LBB0_2:
	movl	24(%rbp), %edx
	movl	(%r12), %esi
	leal	-128(%rsi), %eax
	cmpl	$4, %eax
	ja	LBB0_6
## %bb.3:
	movl	$1, %r15d
	leaq	LJTI0_0(%rip), %rsi
	movslq	(%rsi,%rax,4), %rax
	addq	%rsi, %rax
	jmpq	*%rax
LBB0_4:
	testl	%edx, %edx
	je	LBB0_16
## %bb.5:
	movq	16(%r12), %rsi
	movq	%rdi, %r14
	movq	%r13, %rdx
	movl	%r10d, %r8d
	movl	%r10d, %r15d
	movq	%rbx, %r9
	pushq	$0
	pushq	16(%rbp)
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	callq	_match_expr_eval
	movl	%r15d, %r8d
	movq	%rbx, %r15
	addq	$16, %rsp
	movq	16(%r12), %rcx
	orl	%eax, 4(%rcx)
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	jmp	LBB0_17
LBB0_6:
	leaq	L_.str.1(%rip), %rdi
	xorl	%r15d, %r15d
                                        ## kill: def $esi killed $esi killed $rsi
	xorl	%eax, %eax
	movq	%rdx, %r14
	callq	_die
	jmp	LBB0_12
LBB0_7:
	movq	24(%r12), %rsi
	movq	%rdx, %r14
	movq	%r13, %rdx
	movl	%r10d, %r8d
	movq	16(%rbp), %r9
	pushq	$0
	pushq	%rbx
	callq	_match_expr_eval
	movq	%r14, %rdx
	addq	$16, %rsp
	xorl	%r15d, %r15d
	testl	%eax, %eax
	sete	%r15b
	testl	%edx, %edx
	jne	LBB0_19
	jmp	LBB0_20
LBB0_8:
	movq	%rdx, %r14
	movl	32(%r12), %edi
	leaq	-64(%rbp), %r8
	movq	%r13, %rsi
	movq	%rcx, %rdx
	movl	%r10d, %ecx
	xorl	%r9d, %r9d
	callq	_match_one_pattern
	movl	%eax, %r15d
	testl	%eax, %eax
	je	LBB0_12
## %bb.9:
	movl	(%rbx), %ecx
	movl	-64(%rbp), %eax
	testl	%ecx, %ecx
	js	LBB0_11
## %bb.10:
	cmpl	%ecx, %eax
	jge	LBB0_12
LBB0_11:
	movl	%eax, (%rbx)
LBB0_12:
	movq	%r14, %rdx
	testl	%edx, %edx
	jne	LBB0_19
	jmp	LBB0_20
LBB0_13:
	movq	16(%r12), %rsi
	movq	%rdi, %r14
	movq	%r13, %rdx
	movl	%r10d, %r8d
	movl	%r10d, -48(%rbp)                ## 4-byte Spill
	movq	%rbx, %r9
	pushq	$0
	pushq	16(%rbp)
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%rcx, %r15
	callq	_match_expr_eval
	addq	$16, %rsp
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_15
## %bb.14:
	cmpl	$0, (%r14)
	je	LBB0_21
LBB0_15:
	movq	8(%r12), %rsi
	movq	%r14, %rdi
	movq	%r13, %rdx
	movq	%r15, %rcx
	movl	-48(%rbp), %r8d                 ## 4-byte Reload
	movq	-56(%rbp), %r9                  ## 8-byte Reload
	pushq	$0
	pushq	16(%rbp)
	callq	_match_expr_eval
	addq	$16, %rsp
	movl	%eax, %r15d
	andl	%ebx, %r15d
LBB0_22:
	movl	24(%rbp), %edx
	testl	%edx, %edx
	jne	LBB0_19
	jmp	LBB0_20
LBB0_16:
	movl	(%rdi), %eax
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movq	16(%r12), %rsi
	movq	%rdi, %r14
	movq	%r13, %rdx
	movl	%r10d, %r8d
	movl	%r10d, -48(%rbp)                ## 4-byte Spill
	movq	%rbx, %r9
	pushq	$0
	pushq	16(%rbp)
	movq	%rbx, %r15
	movq	%rcx, %rbx
	callq	_match_expr_eval
	movq	%rbx, %rcx
	movl	-48(%rbp), %r8d                 ## 4-byte Reload
	addq	$16, %rsp
	cmpl	$0, -56(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_23
LBB0_17:
	movq	8(%r12), %rsi
	movq	%r14, %rdi
	movl	%eax, %ebx
	movq	%r13, %rdx
	movq	%r15, %r9
	movl	24(%rbp), %r15d
	pushq	%r15
	pushq	16(%rbp)
	callq	_match_expr_eval
	movq	%r15, %rdx
	addq	$16, %rsp
	movl	%eax, %r15d
	orl	%ebx, %r15d
LBB0_18:
	testl	%edx, %edx
	je	LBB0_20
LBB0_19:
	orl	%r15d, 4(%r12)
LBB0_20:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_21:
	xorl	%r15d, %r15d
	jmp	LBB0_22
LBB0_23:
	movq	%r15, %r9
	movl	$1, %r15d
	testl	%eax, %eax
	jne	LBB0_20
## %bb.24:
	movq	8(%r12), %rsi
	movq	%r14, %rdi
	movq	%r13, %rdx
	pushq	$0
	pushq	16(%rbp)
	callq	_match_expr_eval
	addq	$16, %rsp
	xorl	%r15d, %r15d
	testl	%eax, %eax
	setne	%r15b
	jmp	LBB0_20
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_18, LBB0_18-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
LJTI0_0:
	.long	L0_0_set_18
	.long	L0_0_set_4
	.long	L0_0_set_7
	.long	L0_0_set_8
	.long	L0_0_set_13
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Not a valid grep expression"

L_.str.1:                               ## @.str.1
	.asciz	"Unexpected node type (internal error) %d"

	.no_dead_strip	_match_expr_eval
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function match_expr_eval
_match_expr_eval:                       ; @match_expr_eval
	.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	x20, x7
	mov	x23, x6
	mov	x21, x5
	mov	x22, x4
	mov	x24, x3
	mov	x25, x2
	mov	x19, x1
	mov	x26, x0
	cbnz	x1, LBB0_2
; %bb.1:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_die
LBB0_2:
	ldr	w9, [x19]
	sub	w8, w9, #128
	cmp	w8, #4
	b.hi	LBB0_6
; %bb.3:
	mov	w0, #1
Lloh2:
	adrp	x9, lJTI0_0@PAGE
Lloh3:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_4
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_4:
	cbz	w20, LBB0_19
; %bb.5:
	ldr	x1, [x19, #16]
	mov	x0, x26
	mov	x2, x25
	mov	x3, x24
	mov	x4, x22
	mov	x5, x21
	mov	x6, x23
	mov	w7, #0
	bl	_match_expr_eval
	mov	x27, x0
	ldr	x8, [x19, #16]
	ldr	w9, [x8, #4]
	orr	w9, w9, w0
	str	w9, [x8, #4]
	b	LBB0_20
LBB0_6:
	str	x9, [sp]
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_die
LBB0_7:
	mov	w0, #0
	cbnz	w20, LBB0_17
	b	LBB0_18
LBB0_8:
	ldr	x1, [x19, #24]
	mov	x0, x26
	mov	x2, x25
	mov	x3, x24
	mov	x4, x22
	mov	x5, x23
	mov	x6, x21
	mov	w7, #0
	bl	_match_expr_eval
	cmp	w0, #0
	cset	w0, eq
	cbnz	w20, LBB0_17
	b	LBB0_18
LBB0_9:
	ldr	w0, [x19, #32]
	add	x4, sp, #8
	mov	x1, x25
	mov	x2, x24
	mov	x3, x22
	mov	w5, #0
	bl	_match_one_pattern
	cbz	w0, LBB0_16
; %bb.10:
	ldr	w9, [x21]
	ldr	w8, [sp, #8]
	tbnz	w9, #31, LBB0_12
; %bb.11:
	cmp	w8, w9
	b.ge	LBB0_16
LBB0_12:
	str	w8, [x21]
	cbnz	w20, LBB0_17
	b	LBB0_18
LBB0_13:
	ldr	x1, [x19, #16]
	mov	x0, x26
	mov	x2, x25
	mov	x3, x24
	mov	x4, x22
	mov	x5, x21
	mov	x6, x23
	mov	w7, #0
	bl	_match_expr_eval
	mov	x27, x0
	cbnz	w0, LBB0_15
; %bb.14:
	ldr	w8, [x26]
	cbz	w8, LBB0_7
LBB0_15:
	ldr	x1, [x19, #8]
	mov	x0, x26
	mov	x2, x25
	mov	x3, x24
	mov	x4, x22
	mov	x5, x21
	mov	x6, x23
	mov	w7, #0
	bl	_match_expr_eval
	and	w0, w0, w27
LBB0_16:
	cbz	w20, LBB0_18
LBB0_17:
	ldr	w8, [x19, #4]
	orr	w8, w8, w0
	str	w8, [x19, #4]
LBB0_18:
	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_19:
	ldr	w28, [x26]
	ldr	x1, [x19, #16]
	mov	x0, x26
	mov	x2, x25
	mov	x3, x24
	mov	x4, x22
	mov	x5, x21
	mov	x6, x23
	mov	w7, #0
	bl	_match_expr_eval
	mov	x27, x0
	cbz	w28, LBB0_21
LBB0_20:
	ldr	x1, [x19, #8]
	mov	x0, x26
	mov	x2, x25
	mov	x3, x24
	mov	x4, x22
	mov	x5, x21
	mov	x6, x23
	mov	x7, x20
	bl	_match_expr_eval
	orr	w0, w0, w27
	cbnz	w20, LBB0_17
	b	LBB0_18
LBB0_21:
	cbz	w27, LBB0_23
; %bb.22:
	mov	w0, #1
	b	LBB0_18
LBB0_23:
	ldr	x1, [x19, #8]
	mov	x0, x26
	mov	x2, x25
	mov	x3, x24
	mov	x4, x22
	mov	x5, x21
	mov	x6, x23
	mov	w7, #0
	bl	_match_expr_eval
	cmp	w0, #0
	cset	w0, ne
	b	LBB0_18
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_16-LBB0_4)>>2
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_8-LBB0_4)>>2
	.byte	(LBB0_9-LBB0_4)>>2
	.byte	(LBB0_13-LBB0_4)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Not a valid grep expression"

l_.str.1:                               ; @.str.1
	.asciz	"Unexpected node type (internal error) %d"

	.no_dead_strip	_match_expr_eval
.subsections_via_symbols
