	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function insert_tobeinserted
_insert_tobeinserted:                   ## @insert_tobeinserted
	.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
	movq	%rcx, %r14
	movq	%rdx, %r12
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movl	%edi, %r13d
	movq	(%rdx), %rdi
	callq	_strlen
	movq	%rax, %rbx
	movq	%r14, %rdi
	callq	_strlen
	leaq	(%rbx,%rax), %rdi
	incq	%rdi
	movl	8(%r12), %esi
	callq	_ecpg_alloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movq	(%r12), %rsi
	movq	%rax, %rdi
	callq	_strcpy
	movslq	%r13d, %rbx
	leaq	(%r15,%rbx), %rdi
	decq	%rdi
	movq	%r14, %rsi
	callq	_strcpy
	addq	(%r12), %rbx
	movslq	-44(%rbp), %rax                 ## 4-byte Folded Reload
	leaq	(%rax,%rbx), %rsi
	decq	%rsi
	movq	%r15, %rdi
	callq	_strcat
	movq	(%r12), %rdi
	callq	_ecpg_free
	movq	%r15, (%r12)
	movl	$1, %ebx
	jmp	LBB0_3
LBB0_1:
	xorl	%ebx, %ebx
LBB0_3:
	movq	%r14, %rdi
	callq	_ecpg_free
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_insert_tobeinserted
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function insert_tobeinserted
_insert_tobeinserted:                   ; @insert_tobeinserted
	.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, x3
	mov	x20, x2
	mov	x21, x1
	mov	x23, x0
	ldr	x0, [x2]
	bl	_strlen
	mov	x22, x0
	mov	x0, x19
	bl	_strlen
	add	x8, x22, x0
	add	x0, x8, #1
	ldr	w1, [x20, #8]
	bl	_ecpg_alloc
	cbz	x0, LBB0_2
; %bb.1:
	mov	x22, x0
	ldr	x1, [x20]
	bl	_strcpy
	sxtw	x23, w23
	add	x8, x22, x23
	sub	x0, x8, #1
	mov	x1, x19
	bl	_strcpy
	ldr	x8, [x20]
	add	x8, x8, x23
	add	x8, x8, w21, sxtw
	sub	x1, x8, #1
	mov	x0, x22
	bl	_strcat
	ldr	x0, [x20]
	bl	_ecpg_free
	str	x22, [x20]
	mov	w20, #1
	b	LBB0_3
LBB0_2:
	mov	w20, #0
LBB0_3:
	mov	x0, x19
	bl	_ecpg_free
	mov	x0, x20
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_insert_tobeinserted
.subsections_via_symbols
