	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function emit_expansion
_emit_expansion:                        ## @emit_expansion
	.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
	movq	%r9, -64(%rbp)                  ## 8-byte Spill
	movl	%r8d, %r15d
	movl	%ecx, %ebx
	movl	%esi, %r14d
	movq	%rdi, %r13
	movslq	%edx, %rax
	addq	%rax, %rdi
	incq	%rdi
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	callq	_strlen
                                        ## kill: def $eax killed $eax def $rax
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	subl	%ebx, %r15d
	movq	%rax, %rbx
	leal	(%r14,%r15), %eax
	leal	(%rbx,%rax), %edi
	incl	%edi
	callq	_malloc
	movq	%rax, %r12
	movl	$-1, %eax
	testq	%r12, %r12
	je	LBB0_11
## %bb.1:
	testl	%r14d, %r14d
	jle	LBB0_2
## %bb.3:
	movq	%r12, %rdi
	movq	%r13, %rsi
	movl	%r14d, %edx
	callq	_memcpy
	testl	%r15d, %r15d
	jle	LBB0_6
LBB0_5:
	movl	%r14d, %edi
	addq	%r12, %rdi
	movslq	-44(%rbp), %rax                 ## 4-byte Folded Reload
	addq	%rax, %r13
	movq	%r13, %rsi
	movl	%r15d, %edx
	callq	_memcpy
	addl	%r15d, %r14d
LBB0_6:
	movq	16(%rbp), %r15
	testl	%ebx, %ebx
	jle	LBB0_8
## %bb.7:
	movl	%r14d, %eax
	movq	%r12, %rdi
	addq	%rax, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	%ebx, %edx
	callq	_memcpy
	addl	%ebx, %r14d
LBB0_8:
	movl	%r14d, %eax
	movb	$0, (%r12,%rax)
	movq	%r12, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	%r15, %rdx
	callq	_append
	testq	%rax, %rax
	je	LBB0_9
## %bb.10:
	movq	%r12, %rdi
	callq	_free
	movl	$-1, %eax
	jmp	LBB0_11
LBB0_2:
	xorl	%r14d, %r14d
	testl	%r15d, %r15d
	jg	LBB0_5
	jmp	LBB0_6
LBB0_9:
	xorl	%eax, %eax
LBB0_11:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_emit_expansion
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function emit_expansion
_emit_expansion:                        ; @emit_expansion
	.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, x6
	mov	x20, x5
	mov	x22, x4
	mov	x25, x3
	mov	x21, x1
	mov	x26, x0
	add	x8, x0, w2, sxtw
	add	x23, x8, #1
	mov	x0, x23
	bl	_strlen
	mov	x24, x0
	sub	w27, w22, w25
	add	w8, w21, w27
	add	w8, w8, w0
	add	w0, w8, #1
	bl	_malloc
	cbz	x0, LBB0_8
; %bb.1:
	mov	x22, x0
	cmp	w21, #1
	b.lt	LBB0_10
; %bb.2:
	mov	x0, x22
	mov	x1, x26
	mov	x2, x21
	bl	_memcpy
	cmp	w27, #1
	b.lt	LBB0_4
LBB0_3:
	add	x0, x22, w21, uxtw
	add	x1, x26, w25, sxtw
	mov	x2, x27
	bl	_memcpy
	add	w21, w21, w27
LBB0_4:
	cmp	w24, #1
	b.lt	LBB0_6
; %bb.5:
	add	x0, x22, w21, uxtw
	mov	x1, x23
	mov	x2, x24
	bl	_memcpy
	add	w21, w21, w24
LBB0_6:
	strb	wzr, [x22, w21, uxtw]
	mov	x0, x22
	mov	x1, x20
	mov	x2, x19
	bl	_append
	cbz	x0, LBB0_9
; %bb.7:
	mov	x0, x22
	bl	_free
LBB0_8:
	mov	w0, #-1
LBB0_9:
	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
LBB0_10:
	mov	w21, #0
	cmp	w27, #1
	b.ge	LBB0_3
	b	LBB0_4
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_emit_expansion
.subsections_via_symbols
