	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function replace_variables
_replace_variables:                     ## @replace_variables
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, -48(%rbp)                 ## 4-byte Spill
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %r14
	movl	$1, -44(%rbp)                   ## 4-byte Folded Spill
	xorl	%r15d, %r15d
	xorl	%r12d, %r12d
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_1 Depth=1
	incl	%r15d
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_13 Depth 2
	movslq	%r15d, %r13
	movb	(%r14,%r13), %al
	cmpb	$39, %al
	je	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	testb	%al, %al
	je	LBB0_3
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	testl	%r12d, %r12d
	jne	LBB0_20
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	xorl	%ecx, %ecx
	testl	%r12d, %r12d
	sete	%cl
	movl	%ecx, %r12d
	testl	%r12d, %r12d
	jne	LBB0_20
LBB0_6:                                 ##   in Loop: Header=BB0_1 Depth=1
	cmpb	$63, %al
	je	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpb	$58, %al
	jne	LBB0_20
## %bb.8:                               ##   in Loop: Header=BB0_1 Depth=1
	movslq	%r15d, %rax
	cmpb	$58, 1(%rax,%r14)
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_1 Depth=1
	addl	$2, %r15d
	incl	%r15d
	jmp	LBB0_1
LBB0_10:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	_CHAR_BIT@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	shlq	$3, %rax
	leaq	(%rax,%rax,4), %rax
	movabsq	$-6148914691236517205, %rcx     ## imm = 0xAAAAAAAAAAAAAAAB
	mulq	%rcx
	movq	%rdx, %rbx
	shrq	%rbx
	movl	%ebx, %edi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	callq	_ecpg_alloc
	xorl	%ecx, %ecx
	testq	%rax, %rax
	je	LBB0_18
## %bb.11:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	movl	%ebx, %esi
	leaq	L_.str(%rip), %rdx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	callq	_snprintf
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movq	(%r14), %rdi
	movslq	%r15d, %rax
	movb	1(%rax,%rdi), %al
	testb	%al, %al
	movl	%r12d, -60(%rbp)                ## 4-byte Spill
	movl	$1, %r12d
	je	LBB0_16
## %bb.12:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	%r13, %rbx
	.p2align	4, 0x90
LBB0_13:                                ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movsbl	%al, %edi
	callq	_isvarchar
	testq	%rax, %rax
	je	LBB0_14
## %bb.15:                              ##   in Loop: Header=BB0_13 Depth=2
	incl	%r12d
	movq	(%r14), %rdi
	movzbl	2(%rdi,%rbx), %eax
	incq	%rbx
	testb	%al, %al
	jne	LBB0_13
	jmp	LBB0_16
LBB0_14:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	(%r14), %rdi
LBB0_16:                                ##   in Loop: Header=BB0_1 Depth=1
	callq	_strlen
	movl	%eax, %ebx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_strlen
                                        ## kill: def $eax killed $eax def $rax
	subl	%r12d, %ebx
	leal	(%rbx,%rax), %edi
	incl	%edi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	callq	_ecpg_alloc
	testq	%rax, %rax
	je	LBB0_17
## %bb.19:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	%rax, %r14
	incl	-44(%rbp)                       ## 4-byte Folded Spill
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	(%rbx), %rsi
	movq	%rax, %rdi
	movl	%r15d, %edx
	callq	_memcpy
	movq	%r14, %rdi
	addq	%r13, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_strcpy
	movq	(%rbx), %rax
	addq	%r13, %rax
	movl	%r12d, %esi
	addq	%rax, %rsi
	movq	%r14, %rdi
	callq	_strcat
	movq	(%rbx), %rdi
	callq	_ecpg_free
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_ecpg_free
	movq	%r14, (%rbx)
	cmpb	$1, (%r14,%r13)
	sbbl	$0, %r15d
	movl	-60(%rbp), %r12d                ## 4-byte Reload
	jmp	LBB0_20
LBB0_3:
	movl	$1, %ecx
	jmp	LBB0_18
LBB0_17:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_ecpg_free
	xorl	%ecx, %ecx
LBB0_18:
	movl	%ecx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CHAR_BIT,4,2                   ## @CHAR_BIT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"$%d"

	.no_dead_strip	_replace_variables
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function replace_variables
_replace_variables:                     ; @replace_variables
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x1
	mov	x20, x0
	mov	w21, #0
	mov	w27, #0
	ldr	x24, [x0]
	mov	w22, #1
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	add	w21, w21, #1
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_13 Depth 2
	sxtw	x28, w21
	ldrb	w8, [x24, x28]
	cmp	w8, #39
	b.eq	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	cbz	w8, LBB0_20
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	cbnz	w27, LBB0_1
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_2 Depth=1
	cmp	w27, #0
	cset	w27, eq
	cbnz	w27, LBB0_1
LBB0_6:                                 ;   in Loop: Header=BB0_2 Depth=1
	cmp	w8, #63
	b.eq	LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	w8, #58
	b.ne	LBB0_1
; %bb.8:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x8, x28, x24
	ldrb	w8, [x8, #1]
	cmp	w8, #58
	b.ne	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_2 Depth=1
	add	w21, w21, #2
	add	w21, w21, #1
	b	LBB0_2
LBB0_10:                                ;   in Loop: Header=BB0_2 Depth=1
Lloh0:
	adrp	x8, _CHAR_BIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CHAR_BIT@GOTPAGEOFF]
Lloh2:
	ldrsw	x8, [x8]
	add	x8, x8, x8, lsl #2
	lsl	x8, x8, #3
	mov	x9, #-6148914691236517206
	movk	x9, #43691
	umulh	x8, x8, x9
	lsr	x24, x8, #1
	mov	x0, x24
	mov	x1, x19
	bl	_ecpg_alloc
	cbz	x0, LBB0_22
; %bb.11:                               ;   in Loop: Header=BB0_2 Depth=1
	mov	x25, x0
	mov	x1, x24
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	x3, x22
	bl	_snprintf
	ldr	x0, [x20]
	add	x8, x28, x0
	ldrb	w8, [x8, #1]
	cbz	w8, LBB0_16
; %bb.12:                               ;   in Loop: Header=BB0_2 Depth=1
	mov	w23, #2
LBB0_13:                                ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	sxtb	w0, w8
	bl	_isvarchar
	cbz	x0, LBB0_17
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=2
	ldr	x0, [x20]
	add	x8, x0, x28
	ldrb	w8, [x8, x23]
	add	x23, x23, #1
	cbnz	w8, LBB0_13
; %bb.15:                               ;   in Loop: Header=BB0_2 Depth=1
	sub	w23, w23, #1
	b	LBB0_18
LBB0_16:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w23, #1
	b	LBB0_18
LBB0_17:                                ;   in Loop: Header=BB0_2 Depth=1
	sub	w23, w23, #1
	ldr	x0, [x20]
LBB0_18:                                ;   in Loop: Header=BB0_2 Depth=1
	bl	_strlen
	mov	x24, x0
	mov	x0, x25
	bl	_strlen
	sub	w8, w24, w23
	add	w8, w8, w0
	add	w0, w8, #1
	mov	x1, x19
	bl	_ecpg_alloc
	cbz	x0, LBB0_21
; %bb.19:                               ;   in Loop: Header=BB0_2 Depth=1
	mov	x24, x0
	add	w22, w22, #1
	ldr	x1, [x20]
	mov	x2, x21
	bl	_memcpy
	add	x26, x24, x28
	mov	x0, x26
	mov	x1, x25
	bl	_strcpy
	ldr	x8, [x20]
	add	x8, x8, x28
	add	x1, x8, w23, uxtw
	mov	x0, x24
	bl	_strcat
	ldr	x0, [x20]
	bl	_ecpg_free
	mov	x0, x25
	bl	_ecpg_free
	str	x24, [x20]
	ldrb	w8, [x26]
	cmp	w8, #0
	cset	w8, eq
	sub	w21, w21, w8
	b	LBB0_1
LBB0_20:
	mov	w0, #1
	b	LBB0_22
LBB0_21:
	mov	x0, x25
	bl	_ecpg_free
	mov	w0, #0
LBB0_22:
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_CHAR_BIT,4,2                   ; @CHAR_BIT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"$%d"

	.no_dead_strip	_replace_variables
.subsections_via_symbols
