	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function emit_rewrite_lines
_emit_rewrite_lines:                    ## @emit_rewrite_lines
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r14
	testl	%ecx, %ecx
	jle	LBB0_8
## %bb.1:
	movl	%ecx, %r15d
	movq	%rdx, %rbx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	incl	4(%r14)
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	%r12d, %edx
	callq	_emit_add_line
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movslq	%r12d, %rax
	addq	%rax, %rbx
	subl	%r12d, %r15d
	jle	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movl	$10, %esi
	movl	%r15d, %edx
	callq	_memchr
	movq	%rax, %r13
	subq	%rbx, %rax
	incq	%rax
	testq	%r13, %r13
	movl	%r15d, %r12d
	cmovneq	%rax, %r12
	cmpl	$43, -44(%rbp)                  ## 4-byte Folded Reload
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	incl	8(%r14)
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	%r12d, %edx
	callq	_emit_del_line
	jmp	LBB0_5
LBB0_6:
	testq	%r13, %r13
	je	LBB0_8
## %bb.7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movl	(%r14), %edi
	movq	_DIFF_SYMBOL_NO_LF_EOF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_emit_diff_symbol               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DIFF_SYMBOL_NO_LF_EOF,4,2      ## @DIFF_SYMBOL_NO_LF_EOF
	.no_dead_strip	_emit_rewrite_lines
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function emit_rewrite_lines
_emit_rewrite_lines:                    ; @emit_rewrite_lines
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
	cmp	w3, #1
	b.lt	LBB0_8
; %bb.1:
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x19, #4]
	add	w8, w8, #1
	str	w8, [x19, #4]
	mov	x0, x19
	mov	x1, x21
	mov	x2, x24
	bl	_emit_add_line
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	sub	w20, w20, w24
	add	x21, x21, w24, sxtw
	cmp	w20, #0
	b.le	LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	mov	w1, #10
	mov	x2, x20
	bl	_memchr
	mov	x23, x0
	sub	x8, x0, x21
	mov	w9, w20
	cmp	x0, #0
	csinc	x24, x9, x8, eq
	cmp	w22, #43
	b.eq	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x19, #8]
	add	w8, w8, #1
	str	w8, [x19, #8]
	mov	x0, x19
	mov	x1, x21
	mov	x2, x24
	bl	_emit_del_line
	b	LBB0_3
LBB0_6:
	cbz	x23, LBB0_8
; %bb.7:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_8:
	ldr	w0, [x19]
Lloh0:
	adrp	x8, _DIFF_SYMBOL_NO_LF_EOF@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DIFF_SYMBOL_NO_LF_EOF@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x2, #0
	mov	w3, #0
	mov	w4, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_emit_diff_symbol
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_DIFF_SYMBOL_NO_LF_EOF,4,2      ; @DIFF_SYMBOL_NO_LF_EOF
	.no_dead_strip	_emit_rewrite_lines
.subsections_via_symbols
