	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function prep_header_patterns
_prep_header_patterns:                  ## @prep_header_patterns
	.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	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_GREP_HEADER_FIELD_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$3, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	movq	(%r15), %rbx
	testq	%rbx, %rbx
	je	LBB0_28
## %bb.1:
	movq	_GREP_PATTERN_HEAD@GOTPCREL(%rip), %r12
	movq	_GREP_HEADER_FIELD_MIN@GOTPCREL(%rip), %r13
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_4 Depth=1
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_BUG
LBB0_3:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_compile_regexp
	movq	16(%rbx), %rbx
	testq	%rbx, %rbx
	je	LBB0_8
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rax
	cmpq	(%r12), %rax
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_BUG
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	8(%rbx), %esi
	cmpl	(%r13), %esi
	jl	LBB0_2
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_GREP_HEADER_FIELD_MAX@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	jg	LBB0_3
	jmp	LBB0_2
LBB0_8:
	movq	_GREP_HEADER_FIELD_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	testq	%r12, %r12
	je	LBB0_10
## %bb.9:
	leaq	(,%r12,8), %rsi
	movq	%r14, %rdi
	callq	___bzero
LBB0_10:
	movq	(%r15), %rbx
	testq	%rbx, %rbx
	je	LBB0_20
## %bb.11:
	leaq	-56(%rbp), %r12
	leaq	L_.str.2(%rip), %r15
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_14 Depth=1
	movq	%r13, %rdi
	callq	_grep_or_expr
	movslq	8(%rbx), %rcx
	movq	%rax, (%r14,%rcx,8)
LBB0_13:                                ##   in Loop: Header=BB0_14 Depth=1
	movq	16(%rbx), %rbx
	testq	%rbx, %rbx
	je	LBB0_19
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movq	%rbx, -56(%rbp)
	movq	%r12, %rdi
	callq	_compile_pattern_atom
	movq	%rax, %r13
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	-56(%rbp), %rax
	cmpq	16(%rbx), %rax
	je	LBB0_17
LBB0_16:                                ##   in Loop: Header=BB0_14 Depth=1
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_BUG
LBB0_17:                                ##   in Loop: Header=BB0_14 Depth=1
	movslq	8(%rbx), %rax
	movq	(%r14,%rax,8), %rsi
	testq	%rsi, %rsi
	jne	LBB0_12
## %bb.18:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	%r13, (%r14,%rax,8)
	jmp	LBB0_13
LBB0_19:
	movq	_GREP_HEADER_FIELD_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
LBB0_20:
	testl	%r12d, %r12d
	je	LBB0_28
## %bb.21:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	jmp	LBB0_24
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_24 Depth=1
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_grep_or_expr
	movq	_GREP_HEADER_FIELD_MAX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r12d
LBB0_23:                                ##   in Loop: Header=BB0_24 Depth=1
	incq	%rbx
	movl	%r12d, %ecx
	cmpq	%rcx, %rbx
	jae	LBB0_29
LBB0_24:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r14,%rbx,8), %r15
	testq	%r15, %r15
	je	LBB0_23
## %bb.25:                              ##   in Loop: Header=BB0_24 Depth=1
	testq	%rax, %rax
	jne	LBB0_22
## %bb.26:                              ##   in Loop: Header=BB0_24 Depth=1
	xorl	%eax, %eax
	callq	_grep_true_expr
	jmp	LBB0_22
LBB0_28:
	xorl	%eax, %eax
LBB0_29:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_31
## %bb.30:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_31:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_GREP_HEADER_FIELD_MAX,4,2      ## @GREP_HEADER_FIELD_MAX
	.comm	_GREP_PATTERN_HEAD,8,3          ## @GREP_PATTERN_HEAD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"a non-header pattern in grep header list."

	.comm	_GREP_HEADER_FIELD_MIN,4,2      ## @GREP_HEADER_FIELD_MIN
L_.str.1:                               ## @.str.1
	.asciz	"unknown header field %d"

L_.str.2:                               ## @.str.2
	.asciz	"malformed header expr"

	.no_dead_strip	_prep_header_patterns
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function prep_header_patterns
_prep_header_patterns:                  ; @prep_header_patterns
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	sub	sp, sp, #16
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
Lloh3:
	adrp	x24, _GREP_HEADER_FIELD_MAX@GOTPAGE
Lloh4:
	ldr	x24, [x24, _GREP_HEADER_FIELD_MAX@GOTPAGEOFF]
	ldr	w8, [x24]
	lsl	x8, x8, #3
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0xffffffff0
	sub	x19, x9, x8
	mov	sp, x19
	ldr	x21, [x0]
	cbz	x21, LBB0_25
; %bb.1:
Lloh7:
	adrp	x25, _GREP_PATTERN_HEAD@GOTPAGE
Lloh8:
	ldr	x25, [x25, _GREP_PATTERN_HEAD@GOTPAGEOFF]
Lloh9:
	adrp	x26, _GREP_HEADER_FIELD_MIN@GOTPAGE
Lloh10:
	ldr	x26, [x26, _GREP_HEADER_FIELD_MIN@GOTPAGEOFF]
Lloh11:
	adrp	x22, l_.str.1@PAGE
Lloh12:
	add	x22, x22, l_.str.1@PAGEOFF
Lloh13:
	adrp	x23, l_.str@PAGE
Lloh14:
	add	x23, x23, l_.str@PAGEOFF
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x21
	mov	x1, x20
	bl	_compile_regexp
	ldr	x21, [x21, #16]
	cbz	x21, LBB0_7
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21]
	ldr	x9, [x25]
	cmp	x8, x9
	b.eq	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x23
	bl	_BUG
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x21, #8]
	ldr	w9, [x26]
	ldr	w10, [x24]
	cmp	w8, w9
	ccmp	w10, w8, #4, ge
	b.gt	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	str	x8, [sp, #-16]!
	mov	x0, x22
	bl	_BUG
	add	sp, sp, #16
	b	LBB0_2
LBB0_7:
	ldr	w21, [x24]
	cbz	w21, LBB0_9
; %bb.8:
	lsl	x1, x21, #3
	mov	x0, x19
	bl	_bzero
LBB0_9:
	ldr	x22, [x20]
	cbz	x22, LBB0_18
; %bb.10:
Lloh15:
	adrp	x20, l_.str.2@PAGE
Lloh16:
	add	x20, x20, l_.str.2@PAGEOFF
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	mov	x0, x21
	bl	_grep_or_expr
	ldrsw	x8, [x22, #8]
	str	x0, [x19, x8, lsl #3]
	ldr	x22, [x22, #16]
	cbz	x22, LBB0_17
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	stur	x22, [x29, #-80]
	sub	x0, x29, #80
	bl	_compile_pattern_atom
	mov	x21, x0
	cbz	x0, LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	ldur	x8, [x29, #-80]
	ldr	x9, [x22, #16]
	cmp	x8, x9
	b.eq	LBB0_15
LBB0_14:                                ;   in Loop: Header=BB0_12 Depth=1
	mov	x0, x20
	bl	_BUG
LBB0_15:                                ;   in Loop: Header=BB0_12 Depth=1
	ldrsw	x8, [x22, #8]
	ldr	x1, [x19, x8, lsl #3]
	cbnz	x1, LBB0_11
; %bb.16:                               ;   in Loop: Header=BB0_12 Depth=1
	str	x21, [x19, x8, lsl #3]
	ldr	x22, [x22, #16]
	cbnz	x22, LBB0_12
LBB0_17:
	ldr	w21, [x24]
LBB0_18:
	cbz	w21, LBB0_25
; %bb.19:
	mov	x22, #0
	mov	x1, #0
	b	LBB0_22
LBB0_20:                                ;   in Loop: Header=BB0_22 Depth=1
	mov	x0, x20
	bl	_grep_or_expr
	mov	x1, x0
	ldr	w21, [x24]
LBB0_21:                                ;   in Loop: Header=BB0_22 Depth=1
	add	x22, x22, #1
	cmp	x22, w21, uxtw
	b.hs	LBB0_26
LBB0_22:                                ; =>This Inner Loop Header: Depth=1
	ldr	x20, [x19, x22, lsl #3]
	cbz	x20, LBB0_21
; %bb.23:                               ;   in Loop: Header=BB0_22 Depth=1
	cbnz	x1, LBB0_20
; %bb.24:                               ;   in Loop: Header=BB0_22 Depth=1
	bl	_grep_true_expr
	mov	x1, x0
	b	LBB0_20
LBB0_25:
	mov	x1, #0
LBB0_26:
	ldur	x8, [x29, #-72]
Lloh17:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh18:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_28
; %bb.27:
	mov	x0, x1
	sub	sp, x29, #64
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_28:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_GREP_HEADER_FIELD_MAX,4,2      ; @GREP_HEADER_FIELD_MAX
	.comm	_GREP_PATTERN_HEAD,8,3          ; @GREP_PATTERN_HEAD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"a non-header pattern in grep header list."

	.comm	_GREP_HEADER_FIELD_MIN,4,2      ; @GREP_HEADER_FIELD_MIN
l_.str.1:                               ; @.str.1
	.asciz	"unknown header field %d"

l_.str.2:                               ; @.str.2
	.asciz	"malformed header expr"

	.no_dead_strip	_prep_header_patterns
.subsections_via_symbols
