	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ExecInitPartitionDispatchInfo
_ExecInitPartitionDispatchInfo:         ## @ExecInitPartitionDispatchInfo
	.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	%r8d, -44(%rbp)                 ## 4-byte Spill
	movq	%rcx, %r12
	movq	%rdx, %r14
	movq	%rsi, %r13
	movq	%rdi, %rbx
	cmpq	$0, (%rdi)
	jne	LBB0_2
## %bb.1:
	movl	8(%rbx), %edi
	callq	_CreatePartitionDirectory
	movq	%rax, (%rbx)
LBB0_2:
	movl	20(%r13), %edi
	callq	_MemoryContextSwitchTo
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	16(%r13), %edi
	callq	_RelationGetRelid
	cmpq	%r14, %rax
	jne	LBB0_4
## %bb.3:
	movl	16(%r13), %r15d
	jmp	LBB0_5
LBB0_4:
	movq	_RowExclusiveLock@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_table_open
	movl	%eax, %r15d
LBB0_5:
	movq	(%rbx), %rdi
	movl	%r15d, %esi
	callq	_PartitionDirectoryLookup
	movq	%rax, %r14
	movq	_PartitionDispatchData@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_indexes@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_offsetof
                                        ## kill: def $eax killed $eax def $rax
	movl	(%r14), %ecx
	leal	(%rax,%rcx,4), %edi
	callq	_palloc
	movq	%rax, %rbx
	movl	%r15d, 24(%rax)
	movl	%r15d, %edi
	callq	_RelationGetPartitionKey
	movl	%eax, 44(%rbx)
	movq	_NIL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%rbx)
	movq	%r14, 32(%rbx)
	testq	%r12, %r12
	je	LBB0_8
## %bb.6:
	movl	%r15d, %edi
	callq	_RelationGetDescr
	movl	%eax, %r15d
	movl	24(%r12), %edi
	callq	_RelationGetDescr
	movl	%eax, %edi
	movl	%r15d, %esi
	callq	_convert_tuples_by_name_map_if_req
	movq	%rax, 16(%rbx)
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:
	movq	_TTSOpsVirtual@GOTPCREL(%rip), %rsi
	movl	%r15d, %edi
	callq	_MakeSingleTupleTableSlot
	jmp	LBB0_10
LBB0_8:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%rbx)
	jmp	LBB0_11
LBB0_9:
	xorl	%eax, %eax
LBB0_10:
	movq	%rax, 8(%rbx)
LBB0_11:
	movq	(%rbx), %rdi
	movl	(%r14), %edx
	shll	$2, %edx
	movl	$-1, %esi
	callq	_memset
	movl	(%r13), %r14d
	movl	4(%r13), %esi
	movslq	%r14d, %r15
	leal	1(%r15), %eax
	movl	%eax, (%r13)
	cmpl	%esi, %eax
	jge	LBB0_13
## %bb.12:
	movq	8(%r13), %rax
	jmp	LBB0_17
LBB0_13:
	testl	%esi, %esi
	je	LBB0_15
## %bb.14:
	leal	(%rsi,%rsi), %eax
	movl	%eax, 4(%r13)
	movq	8(%r13), %rdi
	shll	$4, %esi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_repalloc
	jmp	LBB0_16
LBB0_15:
	movl	$4, 4(%r13)
	movl	$32, %edi
	callq	_palloc
LBB0_16:
	movq	%rax, 8(%r13)
LBB0_17:
	movq	%rbx, (%rax,%r15,8)
	testq	%r12, %r12
	je	LBB0_19
## %bb.18:
	movq	(%r12), %rax
	movslq	-44(%rbp), %r15                 ## 4-byte Folded Reload
	xorl	%edi, %edi
	cmpl	$-1, (%rax,%r15,4)
	sete	%dil
	callq	_Assert
	movq	(%r12), %rax
	movl	%r14d, (%rax,%r15,4)
LBB0_19:
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	callq	_MemoryContextSwitchTo
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RowExclusiveLock,4,2           ## @RowExclusiveLock
	.comm	_PartitionDispatchData,4,2      ## @PartitionDispatchData
	.comm	_indexes,4,2                    ## @indexes
	.comm	_NIL,4,2                        ## @NIL
	.comm	_TTSOpsVirtual,4,2              ## @TTSOpsVirtual
	.no_dead_strip	_ExecInitPartitionDispatchInfo
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ExecInitPartitionDispatchInfo
_ExecInitPartitionDispatchInfo:         ; @ExecInitPartitionDispatchInfo
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x20, x4
	mov	x19, x3
	mov	x24, x2
	mov	x22, x1
	mov	x23, x0
	ldr	x8, [x0]
	cbnz	x8, LBB0_2
; %bb.1:
	ldr	w0, [x23, #8]
	bl	_CreatePartitionDirectory
	str	x0, [x23]
LBB0_2:
	ldr	w0, [x22, #20]
	bl	_MemoryContextSwitchTo
	mov	x21, x0
	ldr	w0, [x22, #16]
	bl	_RelationGetRelid
	cmp	x0, x24
	b.ne	LBB0_4
; %bb.3:
	ldr	w25, [x22, #16]
	b	LBB0_5
LBB0_4:
Lloh0:
	adrp	x8, _RowExclusiveLock@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RowExclusiveLock@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x24
	bl	_table_open
	mov	x25, x0
LBB0_5:
	ldr	x0, [x23]
	mov	x1, x25
	bl	_PartitionDirectoryLookup
	mov	x24, x0
Lloh3:
	adrp	x8, _PartitionDispatchData@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PartitionDispatchData@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x8, _indexes@GOTPAGE
Lloh7:
	ldr	x8, [x8, _indexes@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_offsetof
	ldr	w8, [x24]
	add	w0, w0, w8, lsl #2
	bl	_palloc
	mov	x23, x0
	str	w25, [x0, #24]
	mov	x0, x25
	bl	_RelationGetPartitionKey
Lloh9:
	adrp	x8, _NIL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _NIL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	stp	w8, w0, [x23, #40]
	str	x24, [x23, #32]
	cbz	x19, LBB0_9
; %bb.6:
	mov	x0, x25
	bl	_RelationGetDescr
	mov	x25, x0
	ldr	w0, [x19, #24]
	bl	_RelationGetDescr
	mov	x1, x25
	bl	_convert_tuples_by_name_map_if_req
	str	x0, [x23, #16]
	cbz	x0, LBB0_8
; %bb.7:
Lloh12:
	adrp	x1, _TTSOpsVirtual@GOTPAGE
Lloh13:
	ldr	x1, [x1, _TTSOpsVirtual@GOTPAGEOFF]
	mov	x0, x25
	bl	_MakeSingleTupleTableSlot
LBB0_8:
	str	x0, [x23, #8]
	b	LBB0_10
LBB0_9:
	stp	xzr, xzr, [x23, #8]
LBB0_10:
	ldr	x0, [x23]
	ldr	w8, [x24]
	lsl	w2, w8, #2
	mov	w1, #-1
	bl	_memset
	ldp	w24, w8, [x22]
	sxtw	x25, w24
	add	w9, w24, #1
	str	w9, [x22]
	cmp	w9, w8
	b.ge	LBB0_12
; %bb.11:
	ldr	x0, [x22, #8]
	str	x23, [x0, x25, lsl #3]
	cbnz	x19, LBB0_16
	b	LBB0_17
LBB0_12:
	cbz	w8, LBB0_14
; %bb.13:
	lsl	w9, w8, #1
	str	w9, [x22, #4]
	ldr	x0, [x22, #8]
	lsl	w1, w8, #4
	bl	_repalloc
	b	LBB0_15
LBB0_14:
	mov	w8, #4
	str	w8, [x22, #4]
	mov	w0, #32
	bl	_palloc
LBB0_15:
	str	x0, [x22, #8]
	str	x23, [x0, x25, lsl #3]
	cbz	x19, LBB0_17
LBB0_16:
	ldr	x8, [x19]
	sbfiz	x20, x20, #2, #32
	ldr	w8, [x8, x20]
	cmn	w8, #1
	cset	w0, eq
	bl	_Assert
	ldr	x8, [x19]
	str	w24, [x8, x20]
LBB0_17:
	mov	x0, x21
	bl	_MemoryContextSwitchTo
	mov	x0, x23
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_RowExclusiveLock,4,2           ; @RowExclusiveLock
	.comm	_PartitionDispatchData,4,2      ; @PartitionDispatchData
	.comm	_indexes,4,2                    ; @indexes
	.comm	_NIL,4,2                        ; @NIL
	.comm	_TTSOpsVirtual,4,2              ; @TTSOpsVirtual
	.no_dead_strip	_ExecInitPartitionDispatchInfo
.subsections_via_symbols
