	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_append_header_grep_pattern     ## -- Begin function append_header_grep_pattern
	.p2align	4, 0x90
_append_header_grep_pattern:            ## @append_header_grep_pattern
	.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	%rdx, %r14
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movq	%rdx, %rdi
	callq	_strlen
	movq	_GREP_PATTERN_HEAD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	movl	%eax, %esi
	xorl	%ecx, %ecx
	movl	%r15d, %r9d
	callq	_create_grep_pat
	movq	_GREP_HEADER_REFLOG@GOTPCREL(%rip), %rcx
	cmpl	%r15d, (%rcx)
	jne	LBB0_2
## %bb.1:
	movl	$1, (%rbx)
LBB0_2:
	addq	$4, %rbx
	movq	%rbx, %rdi
	movq	%rax, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_do_append_grep_pat             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"header"

	.comm	_GREP_PATTERN_HEAD,4,2          ## @GREP_PATTERN_HEAD
	.comm	_GREP_HEADER_REFLOG,4,2         ## @GREP_HEADER_REFLOG
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_append_header_grep_pattern     ; -- Begin function append_header_grep_pattern
	.p2align	2
_append_header_grep_pattern:            ; @append_header_grep_pattern
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x20, x2
	mov	x21, x1
	mov	x19, x0
	mov	x0, x2
	bl	_strlen
	mov	x1, x0
Lloh0:
	adrp	x8, _GREP_PATTERN_HEAD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GREP_PATTERN_HEAD@GOTPAGEOFF]
Lloh2:
	ldr	w4, [x8]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	mov	w3, #0
	mov	x5, x21
	bl	_create_grep_pat
	mov	x1, x0
Lloh5:
	adrp	x8, _GREP_HEADER_REFLOG@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GREP_HEADER_REFLOG@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmp	w8, w21
	b.ne	LBB0_2
; %bb.1:
	mov	w8, #1
	str	w8, [x19]
LBB0_2:
	add	x0, x19, #4
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_do_append_grep_pat
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"header"

	.comm	_GREP_PATTERN_HEAD,4,2          ; @GREP_PATTERN_HEAD
	.comm	_GREP_HEADER_REFLOG,4,2         ; @GREP_HEADER_REFLOG
.subsections_via_symbols
