	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function sample_ping_pong
LCPI0_0:
	.byte	14                              ## 0xe
	.byte	15                              ## 0xf
	.byte	12                              ## 0xc
	.byte	13                              ## 0xd
	.byte	10                              ## 0xa
	.byte	11                              ## 0xb
	.byte	8                               ## 0x8
	.byte	9                               ## 0x9
	.byte	6                               ## 0x6
	.byte	7                               ## 0x7
	.byte	4                               ## 0x4
	.byte	5                               ## 0x5
	.byte	2                               ## 0x2
	.byte	3                               ## 0x3
	.byte	0                               ## 0x0
	.byte	1                               ## 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_sample_ping_pong:                      ## @sample_ping_pong
	.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	%rdi, %r15
	movslq	(%rdi), %rax
	movl	4(%rdi), %r13d
	movslq	%r13d, %rcx
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	leaq	(%rcx,%rax), %r12
	movq	8(%rdi), %rbx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	leal	(%rcx,%r12), %edi
	incl	%edi
	movl	$2, %esi
	callq	_calloc
	testq	%rax, %rax
	je	LBB0_10
## %bb.1:
	movq	%rax, %r14
	leal	(%r12,%r12), %edx
	movq	%rax, %rdi
	movq	%rbx, %rsi
	callq	_memcpy
	testl	%r13d, %r13d
	jle	LBB0_9
## %bb.2:
	cmpl	$16, %r13d
	jae	LBB0_11
LBB0_3:
	xorl	%r9d, %r9d
LBB0_4:
	movq	%r9, %rcx
	notq	%rcx
	testb	$1, %r13b
	je	LBB0_6
## %bb.5:
	movl	%r9d, %eax
	notl	%eax
	addl	%r12d, %eax
	cltq
	movzwl	(%rbx,%rax,2), %eax
	addq	%r9, %r12
	movw	%ax, (%r14,%r12,2)
	orq	$1, %r9
LBB0_6:
	addq	%r13, %rcx
	je	LBB0_9
## %bb.7:
	movq	%r13, %rcx
	subq	%r9, %rcx
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movl	%r9d, %edx
	notl	%edx
	addl	%esi, %edx
	addl	%r13d, %edx
	addq	%rsi, %r9
	addq	-56(%rbp), %r9                  ## 8-byte Folded Reload
	leaq	(%r14,%r9,2), %rax
	addq	$2, %rax
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movslq	%edx, %rdx
	movzwl	(%rbx,%rdx,2), %edi
	movw	%di, -2(%rax,%rsi,2)
	leal	-1(%rdx), %edi
	movslq	%edi, %rdi
	movzwl	(%rbx,%rdi,2), %edi
	movw	%di, (%rax,%rsi,2)
	addq	$2, %rsi
	addl	$-2, %edx
	cmpq	%rsi, %rcx
	jne	LBB0_8
LBB0_9:
	movq	8(%r15), %rdi
	callq	_free
	movq	%r14, 8(%r15)
	movslq	4(%r15), %rax
	leaq	(%rax,%rax), %rcx
	movl	%ecx, 4(%r15)
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movzwl	(%r14,%rdx,2), %ecx
	leaq	(%rdx,%rax,2), %rax
	movw	%cx, (%r14,%rax,2)
LBB0_10:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	leaq	-1(%r13), %rcx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	leal	(%rax,%r13), %edx
	decl	%edx
	movl	%edx, %esi
	subl	%ecx, %esi
	xorl	%r9d, %r9d
	cmpl	%edx, %esi
	jg	LBB0_4
## %bb.12:
	shrq	$32, %rcx
	jne	LBB0_4
## %bb.13:
	leaq	(%r14,%r12,2), %rcx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	addl	%edx, %eax
	decl	%eax
	cltq
	leaq	(%rbx,%rax,2), %rdx
	addq	$2, %rdx
	cmpq	%rdx, %rcx
	jae	LBB0_16
## %bb.14:
	leaq	(%r12,%r13), %rcx
	leaq	(%r14,%rcx,2), %rcx
	incq	%rax
	subq	%r13, %rax
	leaq	(%rbx,%rax,2), %rax
	cmpq	%rcx, %rax
	jb	LBB0_3
LBB0_16:
	movl	%r13d, %r9d
	andl	$-16, %r9d
	leaq	-16(%r9), %rcx
	movq	%rcx, %r8
	shrq	$4, %r8
	incq	%r8
	testq	%rcx, %rcx
	je	LBB0_22
## %bb.17:
	movq	%r8, %rsi
	andq	$-2, %rsi
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	leal	(%rax,%rcx), %edi
	addl	$-17, %edi
	movslq	%r13d, %rcx
	addq	%rax, %rcx
	leaq	(%r14,%rcx,2), %rcx
	addq	$48, %rcx
	xorl	%edx, %edx
	movdqa	LCPI0_0(%rip), %xmm0            ## xmm0 = [14,15,12,13,10,11,8,9,6,7,4,5,2,3,0,1]
	.p2align	4, 0x90
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	leal	16(%rdi), %eax
	cltq
	movdqu	-30(%rbx,%rax,2), %xmm1
	movdqu	-14(%rbx,%rax,2), %xmm2
	pshufb	%xmm0, %xmm2
	pshufb	%xmm0, %xmm1
	movdqu	%xmm2, -48(%rcx,%rdx,2)
	movdqu	%xmm1, -32(%rcx,%rdx,2)
	movslq	%edi, %rdi
	movdqu	-30(%rbx,%rdi,2), %xmm1
	movdqu	-14(%rbx,%rdi,2), %xmm2
	pshufb	%xmm0, %xmm2
	pshufb	%xmm0, %xmm1
	movdqu	%xmm2, -16(%rcx,%rdx,2)
	movdqu	%xmm1, (%rcx,%rdx,2)
	addq	$32, %rdx
	addl	$-32, %edi
	addq	$-2, %rsi
	jne	LBB0_18
## %bb.19:
	testb	$1, %r8b
	je	LBB0_21
LBB0_20:
	movl	%edx, %eax
	notl	%eax
	addl	%r12d, %eax
	cltq
	movdqu	-30(%rbx,%rax,2), %xmm0
	movdqu	-14(%rbx,%rax,2), %xmm1
	movdqa	LCPI0_0(%rip), %xmm2            ## xmm2 = [14,15,12,13,10,11,8,9,6,7,4,5,2,3,0,1]
	pshufb	%xmm2, %xmm1
	pshufb	%xmm2, %xmm0
	addq	%r12, %rdx
	movdqu	%xmm1, (%r14,%rdx,2)
	movdqu	%xmm0, 16(%r14,%rdx,2)
LBB0_21:
	cmpq	%r13, %r9
	jne	LBB0_4
	jmp	LBB0_9
LBB0_22:
	xorl	%edx, %edx
	testb	$1, %r8b
	jne	LBB0_20
	jmp	LBB0_21
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_sample_ping_pong
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sample_ping_pong
_sample_ping_pong:                      ; @sample_ping_pong
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
	ldp	w22, w23, [x0]
                                        ; kill: def $w22 killed $w22 def $x22
	sxtw	x22, w22
	ldr	x21, [x0, #8]
	add	w24, w23, w22
	add	w8, w23, w24
	add	w0, w8, #1
	mov	w1, #2
	bl	_calloc
	cbz	x0, LBB0_10
; %bb.1:
	mov	x20, x0
	lsl	w2, w24, #1
	mov	x1, x21
	bl	_memcpy
	cmp	w23, #1
	b.lt	LBB0_9
; %bb.2:
	sxtw	x8, w23
	cmp	w8, #8
	b.lo	LBB0_6
; %bb.3:
	sub	x10, x23, #1
	add	w9, w22, w8
	sub	w9, w9, #1
	sub	w11, w9, w10
	cmp	w11, w9
	lsr	x10, x10, #32
	ccmp	x10, #0, #0, le
	b.ne	LBB0_6
; %bb.4:
	sxtw	x10, w24
	add	x11, x20, x10, lsl #1
	add	w10, w22, w23
	sub	w10, w10, #1
	sxtw	x10, w10
	add	x10, x10, #1
	add	x12, x21, x10, lsl #1
	cmp	x11, x12
	b.hs	LBB0_11
; %bb.5:
	add	x12, x22, x8
	add	x12, x12, x23
	add	x12, x20, x12, lsl #1
	sub	x10, x10, x23
	add	x10, x21, x10, lsl #1
	cmp	x10, x12
	b.hs	LBB0_11
LBB0_6:
	mov	x10, #0
LBB0_7:
	mvn	w9, w10
	add	w8, w22, w8
	add	w8, w9, w8
	add	x9, x10, x22
	add	x9, x9, w23, sxtw
	add	x9, x20, x9, lsl #1
	sub	x10, x23, x10
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldrh	w11, [x21, w8, sxtw #1]
	strh	w11, [x9], #2
	sub	w8, w8, #1
	subs	x10, x10, #1
	b.ne	LBB0_8
LBB0_9:
	ldr	x0, [x19, #8]
	bl	_free
	str	x20, [x19, #8]
	ldr	w8, [x19, #4]
	lsl	w8, w8, #1
	str	w8, [x19, #4]
	ldrh	w9, [x20, x22, lsl #1]
	add	w8, w8, w22
	strh	w9, [x20, w8, sxtw #1]
LBB0_10:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_11:
	and	x10, x23, #0xfffffff8
	sub	x12, x21, #14
	mov	x13, x10
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	sbfiz	x14, x9, #1, #32
	ldr	q0, [x12, x14]
	rev64.8h	v0, v0
	ext.16b	v0, v0, v0, #8
	str	q0, [x11], #16
	sub	w9, w9, #8
	sub	x13, x13, #8
	cbnz	x13, LBB0_12
; %bb.13:
	cmp	x10, x23
	b.eq	LBB0_9
	b	LBB0_7
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_sample_ping_pong
.subsections_via_symbols
