	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dupEvents
_dupEvents:                             ## @dupEvents
	.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
	xorl	%r15d, %r15d
	testq	%rdi, %rdi
	je	LBB0_13
## %bb.1:
	testl	%esi, %esi
	jle	LBB0_13
## %bb.2:
	movq	%rdx, %r14
	movq	%rdi, %r12
	movl	%esi, %ebx
	movq	%rbx, %r13
	shlq	$5, %r13
	movq	%r13, %rdi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_12
## %bb.3:
	movq	%rax, %r15
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	shlq	$5, %rbx
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movl	$1, %ebx
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	28(%r12,%r14), %eax
	movl	%eax, 28(%r15,%r14)
	movl	24(%r12,%r14), %eax
	movl	%eax, 24(%r15,%r14)
	movq	$0, 16(%r15,%r14)
	movl	$0, (%r15,%r14)
	movq	8(%r12,%r14), %rdi
	callq	_strdup
	movq	%rax, 8(%r15,%r14)
	testq	%rax, %rax
	je	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	8(%r12,%r14), %rdi
	callq	_strlen
	addq	%rax, %r13
	incq	%r13
	incq	%rbx
	addq	$32, %r14
	cmpq	%r14, -56(%rbp)                 ## 8-byte Folded Reload
	jne	LBB0_4
## %bb.6:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	addq	%r13, (%rax)
	jmp	LBB0_13
LBB0_8:
	cmpl	$1, %ebx
	je	LBB0_11
## %bb.9:
	addq	%r15, %r14
	addq	$-24, %r14
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rdi
	callq	_free
	decq	%rbx
	addq	$-32, %r14
	cmpq	$1, %rbx
	jg	LBB0_10
LBB0_11:
	movq	%r15, %rdi
	callq	_free
LBB0_12:
	xorl	%r15d, %r15d
LBB0_13:
	movq	%r15, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_dupEvents
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dupEvents
_dupEvents:                             ; @dupEvents
	.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, #0
	cbz	x0, LBB0_11
; %bb.1:
	cmp	w1, #1
	b.lt	LBB0_11
; %bb.2:
	mov	x20, x2
	mov	x21, x0
	mov	w8, w1
	lsl	x22, x8, #5
	mov	x0, x22
	bl	_malloc
	mov	x19, x0
	cbz	x0, LBB0_11
; %bb.3:
	mov	x24, #0
	mov	w23, #1
	mov	x25, x22
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add	x27, x21, x24
	ldr	d0, [x27, #24]
	add	x26, x19, x24
	str	d0, [x26, #24]
	str	xzr, [x26, #16]
	str	wzr, [x26]
	ldr	x0, [x27, #8]
	bl	_strdup
	str	x0, [x26, #8]
	cbz	x0, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [x27, #8]
	bl	_strlen
	add	x8, x25, x0
	add	x25, x8, #1
	add	x23, x23, #1
	add	x24, x24, #32
	cmp	x22, x24
	b.ne	LBB0_4
; %bb.6:
	ldr	x8, [x20]
	add	x8, x8, x25
	str	x8, [x20]
	b	LBB0_11
LBB0_7:
	cmp	w23, #1
	b.eq	LBB0_10
; %bb.8:
	sub	x20, x26, #24
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x20], #-32
	bl	_free
	sub	x23, x23, #1
	cmp	x23, #1
	b.gt	LBB0_9
LBB0_10:
	mov	x0, x19
	bl	_free
	mov	x19, #0
LBB0_11:
	mov	x0, x19
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_dupEvents
.subsections_via_symbols
