	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function replaceVariable
_replaceVariable:                       ## @replaceVariable
	.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
	movl	%edx, %r12d
	movq	%rsi, %r13
	movq	%rdi, %r14
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%rcx, %rdi
	callq	_strlen
	movl	%eax, %r15d
	movl	%eax, %ebx
	subl	%r12d, %ebx
	jle	LBB0_2
## %bb.1:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	(%r14), %r14
	subq	%r14, %r13
	movq	%r14, %rdi
	callq	_strlen
                                        ## kill: def $eax killed $eax def $rax
	leal	(%rbx,%rax), %esi
	incl	%esi
	movq	%r14, %rdi
	callq	_pg_realloc
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	addq	%rax, %r13
LBB0_2:
	movslq	%r15d, %rbx
	cmpl	%r12d, %r15d
	je	LBB0_4
## %bb.3:
	leaq	(%rbx,%r13), %r14
	movslq	%r12d, %r12
	addq	%r13, %r12
	movq	%r12, %rdi
	callq	_strlen
                                        ## kill: def $eax killed $eax def $rax
	leal	1(%rax), %edx
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_memmove
LBB0_4:
	movq	%r13, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	%r15d, %edx
	callq	_memcpy
	addq	%r13, %rbx
	movq	%rbx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_replaceVariable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function replaceVariable
_replaceVariable:                       ; @replaceVariable
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x3
	mov	x22, x2
	mov	x21, x1
	mov	x23, x0
	mov	x0, x3
	bl	_strlen
	mov	x20, x0
	subs	w25, w0, w22
	b.le	LBB0_2
; %bb.1:
	ldr	x24, [x23]
	sub	x21, x21, x24
	mov	x0, x24
	bl	_strlen
	add	w8, w25, w0
	add	w1, w8, #1
	mov	x0, x24
	bl	_pg_realloc
	str	x0, [x23]
	add	x21, x0, x21
LBB0_2:
	sxtw	x24, w20
	cmp	w20, w22
	b.eq	LBB0_4
; %bb.3:
	add	x23, x21, x24
	add	x22, x21, w22, sxtw
	mov	x0, x22
	bl	_strlen
	add	w2, w0, #1
	mov	x0, x23
	mov	x1, x22
	bl	_memmove
LBB0_4:
	mov	x0, x21
	mov	x1, x19
	mov	x2, x20
	bl	_memcpy
	add	x0, x21, x24
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_replaceVariable
.subsections_via_symbols
