	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function replace_token
_replace_token:                         ## @replace_token
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r14
	cmpq	$0, (%rdi)
	je	LBB0_1
## %bb.2:
	movl	$1, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, (%r14,%rbx,8)
	leaq	1(%rbx), %rbx
	jne	LBB0_3
	jmp	LBB0_4
LBB0_1:
	movl	$1, %ebx
LBB0_4:
	leal	(,%rbx,8), %edi
	callq	_pg_malloc
	movq	%rax, %r12
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_strlen
	movl	%eax, %r15d
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_strlen
                                        ## kill: def $eax killed $eax def $rax
	movslq	%eax, %rcx
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	subl	%r15d, %eax
	incl	%eax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movslq	%r15d, %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movl	%ebx, %eax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movq	%r12, %rbx
	xorl	%r12d, %r12d
	movq	%rbx, -96(%rbp)                 ## 8-byte Spill
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	%r15, (%rbx,%r12,8)
	incq	%r12
	cmpq	%r12, -104(%rbp)                ## 8-byte Folded Reload
	je	LBB0_9
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14,%r12,8), %r15
	testq	%r15, %r15
	je	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%r15, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_strstr
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%rax, %r13
	movq	%r15, %rdi
	callq	_strlen
                                        ## kill: def $eax killed $eax def $rax
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	leal	(%rax,%rcx), %edi
	callq	_pg_malloc
	movq	%rax, %r15
	movq	(%r14,%r12,8), %rsi
	subq	%rsi, %r13
	movq	%rax, %rdi
	movl	%r13d, %edx
	callq	_memcpy
	movslq	%r13d, %r14
	movq	%r15, %rbx
	addq	%r14, %rbx
	movq	%rbx, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	-80(%rbp), %r13                 ## 8-byte Reload
	movl	%r13d, %edx
	callq	_memcpy
	addq	%r13, %rbx
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax,%r12,8), %rsi
	addq	-72(%rbp), %rsi                 ## 8-byte Folded Reload
	addq	%r14, %rsi
	movq	%rbx, %rdi
	movq	-96(%rbp), %rbx                 ## 8-byte Reload
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	callq	_strcpy
	jmp	LBB0_8
LBB0_9:
	movq	%rbx, %rax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_replace_token
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function replace_token
_replace_token:                         ; @replace_token
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	str	x2, [sp, #8]                    ; 8-byte Folded Spill
	mov	x20, x1
	mov	x21, x0
	ldr	x8, [x0]
	cbz	x8, LBB0_3
; %bb.1:
	mov	w19, #1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21, x19, lsl #3]
	add	x19, x19, #1
	cbnz	x8, LBB0_2
	b	LBB0_4
LBB0_3:
	mov	w19, #1
LBB0_4:
	lsl	w0, w19, #3
	bl	_pg_malloc
	mov	x22, x0
	mov	x0, x20
	bl	_strlen
	mov	x24, x0
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
	bl	_strlen
                                        ; kill: def $w0 killed $w0 def $x0
	mov	x26, #0
	sub	w8, w0, w24
	add	w8, w8, #1
	str	w8, [sp, #4]                    ; 4-byte Folded Spill
	sxtw	x23, w0
	sxtw	x28, w24
	mov	w8, w19
	lsl	x19, x8, #3
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	str	x24, [x22, x26]
	add	x26, x26, #8
	cmp	x19, x26
	b.eq	LBB0_9
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x24, [x21, x26]
	cbz	x24, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x24
	mov	x1, x20
	bl	_strstr
	cbz	x0, LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x25, x0
	mov	x0, x24
	bl	_strlen
	ldr	w8, [sp, #4]                    ; 4-byte Folded Reload
	add	w0, w8, w0
	bl	_pg_malloc
	mov	x24, x0
	ldr	x1, [x21, x26]
	sub	x25, x25, x1
	mov	x2, x25
	bl	_memcpy
	sxtw	x27, w25
	add	x25, x24, x27
	mov	x0, x25
	ldr	x1, [sp, #8]                    ; 8-byte Folded Reload
	mov	x2, x23
	bl	_memcpy
	add	x0, x25, x23
	ldr	x8, [x21, x26]
	add	x8, x8, x28
	add	x1, x8, x27
	bl	_strcpy
	b	LBB0_5
LBB0_9:
	mov	x0, x22
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_replace_token
.subsections_via_symbols
