	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ginPostingListDecodeAllSegments ## -- Begin function ginPostingListDecodeAllSegments
	.p2align	4, 0x90
_ginPostingListDecodeAllSegments:       ## @ginPostingListDecodeAllSegments
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r13
	movslq	%esi, %rbx
	addq	%rdi, %rbx
	movl	(%rdi), %r14d
	leal	(%r14,%r14), %eax
	leal	4(,%rax,4), %edi
	callq	_palloc
	movq	%rax, %r12
	xorl	%r15d, %r15d
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	cmpq	%r13, %rbx
	jbe	LBB0_15
## %bb.1:
	leal	(%r14,%r14), %ebx
	incl	%ebx
	xorl	%r15d, %r15d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %r13                 ## 8-byte Reload
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdi
	callq	_GinNextPostingListSegment
	movq	%rax, %r13
	cmpq	%rax, -80(%rbp)                 ## 8-byte Folded Reload
	jbe	LBB0_15
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_10 Depth 2
	cmpl	%ebx, %r15d
	jge	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	leal	(%rbx,%rbx), %r14d
	shll	$3, %ebx
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_repalloc
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	%r14d, %ebx
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	leaq	16(%r13), %r14
	movq	%r14, %rdi
	callq	_ItemPointerGetOffsetNumber
	movl	%eax, %edi
	callq	_OffsetNumberIsValid
	movl	%eax, %edi
	callq	_Assert
	movslq	%r15d, %rax
	testl	%r15d, %r15d
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	je	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	leaq	(%r12,%rax,4), %rsi
	addq	$-4, %rsi
	movq	%r14, %rdi
	callq	_ginCompareItemPointers
	testq	%rax, %rax
	setg	%al
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movb	$1, %al
	movq	-48(%rbp), %r12                 ## 8-byte Reload
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movzbl	%al, %edi
	callq	_Assert
	movl	16(%r13), %eax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%r12,%rcx,4)
	movq	%r14, %rdi
	callq	_itemptr_to_uint64
	movl	%eax, %r14d
	movq	8(%r13), %rcx
	movq	%rcx, -64(%rbp)
	movslq	(%r13), %rax
	incl	%r15d
	testq	%rax, %rax
	jle	LBB0_14
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	addq	%rax, %rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movslq	%r15d, %r15
	leaq	(,%r15,4), %r13
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_10 Depth=2
	leaq	-64(%rbp), %rdi
	callq	_decode_varbyte
	addl	%eax, %r14d
	leaq	(%r12,%r13), %rsi
	movl	%r14d, %edi
	callq	_uint64_to_itemptr
	incq	%r15
	addq	$4, %r13
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	cmpq	%rax, -64(%rbp)
	jae	LBB0_13
LBB0_10:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movslq	%ebx, %rax
	cmpq	%rax, %r15
	jl	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=2
	movq	%r12, %rdi
	leal	(%rbx,%rbx), %r12d
	shll	$3, %ebx
	movl	%ebx, %esi
	callq	_repalloc
	movl	%r12d, %ebx
	movq	%rax, %r12
	jmp	LBB0_12
LBB0_15:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	testq	%rax, %rax
	je	LBB0_17
## %bb.16:
	movl	%r15d, (%rax)
LBB0_17:
	movq	%r12, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ginPostingListDecodeAllSegments ; -- Begin function ginPostingListDecodeAllSegments
	.p2align	2
_ginPostingListDecodeAllSegments:       ; @ginPostingListDecodeAllSegments
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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, x2
	mov	x20, x0
	add	x23, x0, w1, sxtw
	ldr	w8, [x0]
	mov	w24, #1
	bfi	w24, w8, #1, #31
	lsl	w0, w24, #2
	bl	_palloc
	mov	x21, x0
	cmp	x23, x20
	b.ls	LBB0_14
; %bb.1:
	mov	w25, #0
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x25, x26
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x20
	bl	_GinNextPostingListSegment
	mov	x20, x0
	cmp	x23, x0
	b.ls	LBB0_15
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_12 Depth 2
	cmp	w25, w24
	b.lt	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	lsl	w22, w24, #1
	lsl	w1, w24, #3
	mov	x0, x21
	bl	_repalloc
	mov	x21, x0
	mov	x24, x22
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x22, x20, #16
	mov	x0, x22
	bl	_ItemPointerGetOffsetNumber
	bl	_OffsetNumberIsValid
	bl	_Assert
	cbz	w25, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x8, x21, w25, sxtw #2
	sub	x1, x8, #4
	mov	x0, x22
	bl	_ginCompareItemPointers
	cmp	x0, #0
	cset	w0, gt
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	w0, #1
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	bl	_Assert
	ldr	w8, [x20, #16]
	str	w8, [x21, w25, sxtw #2]
	mov	x0, x22
	bl	_itemptr_to_uint64
	ldr	x8, [x20, #8]
	str	x8, [sp, #8]
	ldrsw	x9, [x20]
	add	w25, w25, #1
	cmp	w9, #1
	b.lt	LBB0_3
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x22, x0
	add	x27, x8, x9
	sxtw	x26, w25
	sbfiz	x25, x25, #2, #32
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=2
	add	x0, sp, #8
	bl	_decode_varbyte
	add	w22, w22, w0
	add	x1, x21, x25
	mov	x0, x22
	bl	_uint64_to_itemptr
	add	x26, x26, #1
	ldr	x8, [sp, #8]
	add	x25, x25, #4
	cmp	x8, x27
	b.hs	LBB0_2
LBB0_12:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	cmp	x26, w24, sxtw
	b.lt	LBB0_11
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=2
	lsl	w28, w24, #1
	lsl	w1, w24, #3
	mov	x0, x21
	bl	_repalloc
	mov	x21, x0
	mov	x24, x28
	b	LBB0_11
LBB0_14:
	mov	w25, #0
LBB0_15:
	cbz	x19, LBB0_17
; %bb.16:
	str	w25, [x19]
LBB0_17:
	mov	x0, x21
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
