	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function add_patterns_from_buffer
_add_patterns_from_buffer:              ## @add_patterns_from_buffer
	.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	%r8, %r12
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r13
	movq	%rdi, -48(%rbp)
	movq	%rdi, (%r8)
	leaq	-48(%rbp), %rdi
	callq	_skip_utf8_bom
	movq	-48(%rbp), %rcx
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	subq	%rcx, %r13
	addq	(%r12), %r13
LBB0_2:
	cmpq	$2, %r13
	jae	LBB0_3
LBB0_10:
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	xorl	%ebx, %ebx
	cmpb	$10, (%rcx)
	sete	%bl
	leaq	(%rbx,%rcx), %r14
	incl	%ebx
	movl	$1, %r15d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	incl	%ebx
	leaq	(%rcx,%r15), %r14
	incq	%r14
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	%r15
	cmpq	%r15, %r13
	je	LBB0_10
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	cmpb	$10, (%rcx,%r15)
	jne	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	leaq	(%rcx,%r15), %rax
	cmpq	%r14, %rax
	je	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpb	$35, (%r14)
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	xorl	%eax, %eax
	cmpb	$13, -1(%rcx,%r15)
	sete	%al
	movl	%r15d, %edx
	subl	%eax, %edx
	movslq	%edx, %rax
	movb	$0, (%rcx,%rax)
	movq	%r14, %rdi
	callq	_trim_trailing_spaces
	movq	%r14, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	movq	%r12, %rcx
	movl	%ebx, %r8d
	callq	_add_pattern
	movq	-48(%rbp), %rcx
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_add_patterns_from_buffer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function add_patterns_from_buffer
_add_patterns_from_buffer:              ; @add_patterns_from_buffer
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x4
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	str	x0, [sp, #8]
	str	x0, [x4]
	add	x0, sp, #8
	bl	_skip_utf8_bom
	ldr	x8, [sp, #8]
	cbz	x0, LBB0_2
; %bb.1:
	ldr	x9, [x19]
	sub	x10, x22, x8
	add	x22, x10, x9
LBB0_2:
	cmp	x22, #2
	b.hs	LBB0_4
LBB0_3:
	mov	w0, #0
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_4:
	mov	x9, x8
	ldrb	w10, [x9], #1
	cmp	w10, #10
	csel	x24, x8, x9, ne
	mov	w25, #1
	cinc	w23, w25, eq
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	w23, w23, #1
	add	x9, x8, x25
	add	x24, x9, #1
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x25, x25, #1
	cmp	x22, x25
	b.eq	LBB0_3
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	add	x9, x8, x25
	ldrb	w10, [x9]
	cmp	w10, #10
	b.ne	LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	cmp	x9, x24
	b.eq	LBB0_5
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	ldrb	w9, [x24]
	cmp	w9, #35
	b.eq	LBB0_5
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
	add	x9, x8, x25
	ldurb	w9, [x9, #-1]
	cmp	w9, #13
	cset	w9, eq
	sub	w9, w25, w9
	strb	wzr, [x8, w9, sxtw]
	mov	x0, x24
	bl	_trim_trailing_spaces
	mov	x0, x24
	mov	x1, x21
	mov	x2, x20
	mov	x3, x19
	mov	x4, x23
	bl	_add_pattern
	ldr	x8, [sp, #8]
	b	LBB0_5
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_add_patterns_from_buffer
.subsections_via_symbols
