	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_chg_conv_to_array              ## -- Begin function chg_conv_to_array
	.p2align	4, 0x90
_chg_conv_to_array:                     ## @chg_conv_to_array
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	testq	%rdi, %rdi
	jns	LBB0_2
## %bb.1:
	negl	%edi
	movl	%edi, (%rsi)
	movl	$1, %eax
LBB0_16:
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
LBB0_2:
	je	LBB0_9
## %bb.3:
	movq	(%rdi), %rax
	testq	%rax, %rax
	jle	LBB0_10
## %bb.4:
	cltq
	incq	%rax
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, -8(%rdi,%rax,8)
	leaq	-1(%rax), %rax
	je	LBB0_5
## %bb.6:
	testl	%eax, %eax
	jle	LBB0_16
## %bb.7:
	movl	%eax, %edx
	cmpq	$4, %rdx
	jae	LBB0_11
## %bb.8:
	movq	%rdx, %rcx
	movq	%rsi, %r10
	jmp	LBB0_14
LBB0_9:
	xorl	%eax, %eax
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
LBB0_10:
	movl	%eax, %edi
	popq	%rbp
	jmp	_trp_conv_to_array_rev          ## TAILCALL
LBB0_11:
	movl	%eax, %ecx
	andl	$3, %ecx
	subq	%rcx, %rdx
	leaq	(%rsi,%rdx,4), %r10
	addq	$8, %rsi
	movl	%eax, %edx
	movq	%rcx, %r8
	subq	%rdx, %r8
	leaq	(%rdi,%rdx,8), %r9
	addq	$-8, %r9
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movdqu	-16(%r9,%rdx,8), %xmm0
	movdqu	(%r9,%rdx,8), %xmm1
	pshufd	$226, %xmm1, %xmm1              ## xmm1 = xmm1[2,0,2,3]
	pshufd	$226, %xmm0, %xmm0              ## xmm0 = xmm0[2,0,2,3]
	punpcklqdq	%xmm0, %xmm1            ## xmm1 = xmm1[0],xmm0[0]
	movdqu	%xmm1, -8(%rsi)
	addq	$16, %rsi
	addq	$-4, %rdx
	cmpq	%rdx, %r8
	jne	LBB0_12
## %bb.13:
	testq	%rcx, %rcx
	je	LBB0_16
LBB0_14:
	incq	%rcx
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movl	-8(%rdi,%rcx,8), %edx
	movl	%edx, (%r10)
	addq	$4, %r10
	decq	%rcx
	cmpq	$1, %rcx
	ja	LBB0_15
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_chg_conv_to_array              ; -- Begin function chg_conv_to_array
	.p2align	2
_chg_conv_to_array:                     ; @chg_conv_to_array
	.cfi_startproc
; %bb.0:
	cbz	x0, LBB0_12
; %bb.1:
	mov	x8, x0
	ldr	x0, [x0]
	cmp	x0, #1
	b.lt	LBB0_7
; %bb.2:
	sxtw	x9, w0
	add	w0, w0, #1
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x8, x9, lsl #3]
	sub	x9, x9, #1
	sub	w0, w0, #1
	cbz	x10, LBB0_3
; %bb.4:
	cmp	w0, #1
	b.lt	LBB0_12
; %bb.5:
	add	x9, x9, #1
	and	x10, x9, #0xffffffff
	cmp	x10, #8
	b.hs	LBB0_8
; %bb.6:
	mov	x9, x10
	mov	x10, x1
	b	LBB0_11
LBB0_7:
                                        ; kill: def $w0 killed $w0 killed $x0
	b	_trp_conv_to_array_rev
LBB0_8:
	and	x9, x9, #0x7
	sub	x10, x10, x9
	add	x10, x1, x10, lsl #2
	add	x11, x8, w0, uxtw #3
	sub	x11, x11, #24
	sub	x12, x0, x9
	add	x13, x1, #16
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q1, q0, [x11]
	ext.16b	v0, v0, v0, #8
	ext.16b	v1, v1, v1, #8
	ldp	q3, q2, [x11, #-32]
	ext.16b	v2, v2, v2, #8
	ext.16b	v3, v3, v3, #8
	xtn.2s	v0, v0
	xtn.2s	v1, v1
	xtn.2s	v2, v2
	xtn.2s	v3, v3
	stp	d0, d1, [x13, #-16]
	stp	d2, d3, [x13], #32
	sub	x11, x11, #64
	subs	x12, x12, #8
	b.ne	LBB0_9
; %bb.10:
	cbz	x9, LBB0_12
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x8, x9, lsl #3]
	str	w11, [x10], #4
	subs	x9, x9, #1
	b.hi	LBB0_11
LBB0_12:
                                        ; kill: def $w0 killed $w0 killed $x0
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
