	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gbt_num_picksplit              ## -- Begin function gbt_num_picksplit
	.p2align	4, 0x90
_gbt_num_picksplit:                     ## @gbt_num_picksplit
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r12
	movq	%rdi, %r15
	movslq	(%rdi), %r13
	movl	%r13d, %edi
	shll	$4, %edi
	callq	_palloc
	movq	%rax, %r14
	leal	4(,%r13,4), %ebx
	movl	%ebx, %edi
	callq	_palloc
	movq	%rax, (%r12)
	movl	%ebx, %edi
	callq	_palloc
	movq	%rax, 8(%r12)
	xorl	%edi, %edi
	callq	_PointerGetDatum
	movq	%rax, 40(%r12)
	xorl	%edi, %edi
	callq	_PointerGetDatum
	movq	%rax, 32(%r12)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%r12)
	movq	_FirstOffsetNumber@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	cmpl	%eax, %r13d
	jle	LBB0_3
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rcx
	movslq	%eax, %rbx
	movl	(%rcx,%rbx,4), %edi
	callq	_DatumGetPointer
	movq	%rbx, %rcx
	shlq	$4, %rcx
	movq	%rax, 8(%r14,%rcx)
	movl	%ebx, (%r14,%rcx)
	movl	%ebx, %edi
	callq	_OffsetNumberNext
                                        ## kill: def $eax killed $eax def $rax
	cmpl	%r13d, %eax
	jl	LBB0_1
## %bb.2:
	movq	_FirstOffsetNumber@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
LBB0_3:
	movq	%rax, %rcx
	shlq	$4, %rcx
	movq	%r14, %rdi
	addq	%rcx, %rdi
	movl	%r13d, %esi
	subl	%eax, %esi
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %ecx
	movl	$16, %edx
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	callq	_qsort_arg
	movq	(%rbx), %rax
	cmpl	%eax, %r13d
	jle	LBB0_10
## %bb.4:
	leaq	40(%r12), %rcx
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	leaq	32(%r12), %rcx
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	leaq	16(%r12), %rcx
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	leaq	24(%r12), %rcx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movl	%eax, %r15d
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movslq	%r15d, %rcx
	movq	%r13, %rdx
	subq	%rax, %rdx
	shrq	%rdx
	movq	%rcx, %rbx
	shlq	$4, %rbx
	movq	8(%r14,%rbx), %rsi
	cmpq	%rcx, %rdx
	jae	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	callq	_gbt_num_bin_union
	movl	(%r14,%rbx), %ecx
	movq	8(%r12), %rdx
	movq	24(%r12), %rax
	movl	%ecx, (%rdx,%rax,4)
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	callq	_gbt_num_bin_union
	movl	(%r14,%rbx), %ecx
	movq	(%r12), %rdx
	movq	16(%r12), %rax
	movl	%ecx, (%rdx,%rax,4)
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	incq	%rax
	movq	%rax, (%rcx)
	movl	%r15d, %edi
	callq	_OffsetNumberNext
	movl	%eax, %r15d
	cmpl	%r13d, %eax
	movq	_FirstOffsetNumber@GOTPCREL(%rip), %rax
	jge	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	(%rax), %rax
	jmp	LBB0_5
LBB0_10:
	movq	%r12, %rax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FirstOffsetNumber,8,3          ## @FirstOffsetNumber
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gbt_num_picksplit              ; -- Begin function gbt_num_picksplit
	.p2align	2
_gbt_num_picksplit:                     ; @gbt_num_picksplit
	.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, x3
	mov	x21, x2
	mov	x20, x1
	mov	x25, x0
	ldrsw	x27, [x0]
	lsl	w0, w27, #4
	bl	_palloc
	mov	x22, x0
	lsl	w8, w27, #2
	add	w23, w8, #4
	mov	x0, x23
	bl	_palloc
	str	x0, [x20]
	mov	x0, x23
	bl	_palloc
	str	x0, [x20, #8]
	mov	w0, #0
	bl	_PointerGetDatum
	mov	x8, x20
	str	x0, [x8, #40]!
	str	x8, [sp, #8]                    ; 8-byte Folded Spill
	mov	w0, #0
	bl	_PointerGetDatum
	mov	x24, x20
	str	x0, [x24, #32]!
	mov	x28, x24
	str	xzr, [x28, #-16]!
	mov	x23, x24
	str	xzr, [x23, #-8]!
Lloh0:
	adrp	x8, _FirstOffsetNumber@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FirstOffsetNumber@GOTPAGEOFF]
Lloh2:
	ldr	x26, [x8]
	cmp	w27, w26
	b.le	LBB0_3
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x25, #8]
	ldr	w0, [x8, w26, sxtw #2]
	bl	_DatumGetPointer
	add	x8, x22, w26, sxtw #4
	str	x0, [x8, #8]
	str	w26, [x8]
	mov	x0, x26
	bl	_OffsetNumberNext
	mov	x26, x0
	cmp	w0, w27
	b.lt	LBB0_1
; %bb.2:
Lloh3:
	adrp	x25, _FirstOffsetNumber@GOTPAGE
Lloh4:
	ldr	x25, [x25, _FirstOffsetNumber@GOTPAGEOFF]
	ldr	x26, [x25]
	b	LBB0_4
LBB0_3:
Lloh5:
	adrp	x25, _FirstOffsetNumber@GOTPAGE
Lloh6:
	ldr	x25, [x25, _FirstOffsetNumber@GOTPAGEOFF]
LBB0_4:
	add	x0, x22, x26, lsl #4
	sub	w1, w27, w26
	ldr	w3, [x21]
	mov	w2, #16
	mov	x4, x19
	bl	_qsort_arg
	ldr	x8, [x25]
	cmp	w27, w8
	b.le	LBB0_11
; %bb.5:
	mov	x0, x8
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	sxtw	x25, w0
	sub	x8, x27, x8
	add	x9, x22, w0, sxtw #4
	ldr	x1, [x9, #8]
	cmp	x25, x8, lsr #1
	lsl	x26, x25, #4
	b.ls	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x24
	mov	x2, x21
	mov	x3, x19
	bl	_gbt_num_bin_union
	ldr	w9, [x22, x26]
	ldr	x10, [x20, #8]
	ldr	x8, [x20, #24]
	str	w9, [x10, x8, lsl #2]
	mov	x9, x23
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
	mov	x2, x21
	mov	x3, x19
	bl	_gbt_num_bin_union
	ldr	w9, [x22, x26]
	ldr	x10, [x20]
	ldr	x8, [x20, #16]
	str	w9, [x10, x8, lsl #2]
	mov	x9, x28
LBB0_9:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x8, x8, #1
	str	x8, [x9]
	mov	x0, x25
	bl	_OffsetNumberNext
                                        ; kill: def $w0 killed $w0 def $x0
	cmp	w0, w27
Lloh7:
	adrp	x8, _FirstOffsetNumber@GOTPAGE
Lloh8:
	ldr	x8, [x8, _FirstOffsetNumber@GOTPAGEOFF]
	b.ge	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x8]
	b	LBB0_6
LBB0_11:
	mov	x0, x20
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_FirstOffsetNumber,8,3          ; @FirstOffsetNumber
.subsections_via_symbols
