	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function add_fpattern
_add_fpattern:                          ## @add_fpattern
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r15
	movq	_fpatterns@GOTPCREL(%rip), %rbx
	movl	(%rbx), %ecx
	movq	_fpattern_sz@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ecx
	jne	LBB0_2
## %bb.1:
	movq	_fpattern@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	movl	%ecx, %edx
	addl	%edx, %edx
	addl	%ecx, %ecx
	incl	%ecx
	movl	%ecx, (%rax)
	leal	4(,%rdx,4), %esi
	callq	_grep_realloc
	movq	%rax, (%r12)
LBB0_2:
	movq	%r15, %rdi
	callq	_grep_strdup
	movq	_fpattern@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movslq	(%rbx), %rdx
	movl	%eax, 4(%rcx,%rdx,8)
	movslq	(%rbx), %rax
	movl	%r14d, (%rcx,%rax,8)
	incl	(%rbx)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_fpatterns,4,2                  ## @fpatterns
	.comm	_fpattern_sz,4,2                ## @fpattern_sz
	.comm	_fpattern,8,3                   ## @fpattern
	.no_dead_strip	_add_fpattern
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function add_fpattern
_add_fpattern:                          ; @add_fpattern
	.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	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x21, _fpatterns@GOTPAGE
Lloh1:
	ldr	x21, [x21, _fpatterns@GOTPAGEOFF]
	ldr	w8, [x21]
Lloh2:
	adrp	x9, _fpattern_sz@GOTPAGE
Lloh3:
	ldr	x9, [x9, _fpattern_sz@GOTPAGEOFF]
	ldr	w10, [x9]
Lloh4:
	adrp	x22, _fpattern@GOTPAGE
Lloh5:
	ldr	x22, [x22, _fpattern@GOTPAGEOFF]
	cmp	w8, w10
	b.ne	LBB0_2
; %bb.1:
	ldr	x0, [x22]
	mov	w10, #1
	bfi	w10, w8, #1, #31
	str	w10, [x9]
	lsl	w1, w10, #2
	bl	_grep_realloc
	str	x0, [x22]
LBB0_2:
	mov	x0, x20
	bl	_grep_strdup
	ldr	x8, [x22]
	ldrsw	x9, [x21]
	add	x9, x8, x9, lsl #3
	str	w0, [x9, #4]
	ldrsw	x9, [x21]
	lsl	x9, x9, #3
	str	w19, [x8, x9]
	ldr	w8, [x21]
	add	w8, w8, #1
	str	w8, [x21]
	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
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_fpatterns,4,2                  ; @fpatterns
	.comm	_fpattern_sz,4,2                ; @fpattern_sz
	.comm	_fpattern,8,3                   ; @fpattern
	.no_dead_strip	_add_fpattern
.subsections_via_symbols
