	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ts_accum
_ts_accum:                              ## @ts_accum
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movq	%rsi, %r12
	movl	%edi, %r15d
	movl	%edx, %edi
	callq	_DatumGetTSVector
	movq	%rax, %r14
	testq	%r12, %r12
	jne	LBB0_2
## %bb.1:
	movl	%r15d, %edi
	movl	$4, %esi
	callq	_MemoryContextAllocZero
	movq	%rax, %r12
	movl	$1, (%rax)
LBB0_2:
	testq	%r14, %r14
	je	LBB0_10
## %bb.3:
	movl	(%r14), %eax
	testl	%eax, %eax
	je	LBB0_4
## %bb.6:
	xorl	%ecx, %ecx
	cmpl	$2, %eax
	jl	LBB0_9
## %bb.7:
	leal	-1(%rax), %edx
	xorl	%ecx, %ecx
	movl	%edx, %esi
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	incl	%ecx
	shrl	%esi
	cmpl	$1, %edx
	movl	%esi, %edx
	ja	LBB0_8
LBB0_9:
	movl	$1, %r13d
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %r13d
	movl	%r13d, %ecx
	subl	%eax, %ecx
	movl	%ecx, %ebx
	shrl	$31, %ebx
	addl	%ecx, %ebx
	sarl	%ebx
	movl	%r13d, %ecx
	sarl	%ecx
	subl	%ebx, %ecx
	movl	%r15d, %edi
	movq	%r12, %rsi
	movq	%r14, %rdx
	callq	_insertStatEntry
	movl	%r15d, %edi
	movq	%r12, %rsi
	movq	%r14, %rdx
	xorl	%ecx, %ecx
	movl	%r13d, %r8d
	movl	%ebx, %r9d
	callq	_chooseNextStatEntry
	jmp	LBB0_10
LBB0_4:
	movl	%ebx, %edi
	callq	_DatumGetPointer
	cmpq	%rax, %r14
	je	LBB0_10
## %bb.5:
	movq	%r14, %rdi
	callq	_pfree
LBB0_10:
	movq	%r12, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_ts_accum
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ts_accum
_ts_accum:                              ; @ts_accum
	.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	x22, x2
	mov	x19, x1
	mov	x21, x0
	mov	x0, x2
	bl	_DatumGetTSVector
	mov	x20, x0
	cbnz	x19, LBB0_2
; %bb.1:
	mov	x0, x21
	mov	w1, #4
	bl	_MemoryContextAllocZero
	mov	x19, x0
	mov	w8, #1
	str	w8, [x0]
LBB0_2:
	cbz	x20, LBB0_11
; %bb.3:
	ldr	w8, [x20]
	cbz	w8, LBB0_7
; %bb.4:
	cmp	w8, #2
	b.lt	LBB0_9
; %bb.5:
	mov	w9, #0
	sub	w10, w8, #1
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	add	w9, w9, #1
	lsr	w11, w10, #1
	cmp	w10, #1
	mov	x10, x11
	b.hi	LBB0_6
	b	LBB0_10
LBB0_7:
	mov	x0, x22
	bl	_DatumGetPointer
	cmp	x20, x0
	b.eq	LBB0_11
; %bb.8:
	mov	x0, x20
	bl	_pfree
	b	LBB0_11
LBB0_9:
	mov	w9, #0
LBB0_10:
	mov	w10, #1
	lsl	w22, w10, w9
	sub	w8, w22, w8
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w23, w8, #1
	asr	w8, w22, #1
	sub	w3, w8, w23
	mov	x0, x21
	mov	x1, x19
	mov	x2, x20
	bl	_insertStatEntry
	mov	x0, x21
	mov	x1, x19
	mov	x2, x20
	mov	w3, #0
	mov	x4, x22
	mov	x5, x23
	bl	_chooseNextStatEntry
LBB0_11:
	mov	x0, x19
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_ts_accum
.subsections_via_symbols
