	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ExecHashIncreaseNumBatches
_ExecHashIncreaseNumBatches:            ## @ExecHashIncreaseNumBatches
	.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
	cmpl	$0, 8(%rdi)
	je	LBB0_20
## %bb.1:
	movq	%rdi, %rbx
	movslq	(%rdi), %r12
	movl	4(%rdi), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	_INT_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, %edi
	shrl	$31, %edi
	addl	%eax, %edi
	sarl	%edi
	movq	_MaxAllocSize@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	sarl	$4, %esi
	callq	_Min
	cmpl	%eax, %r12d
	jg	LBB0_20
## %bb.2:
	leal	(%r12,%r12), %r14d
	xorl	%edi, %edi
	testl	%r12d, %r12d
	setg	%dil
	callq	_Assert
	movl	64(%rbx), %edi
	callq	_MemoryContextSwitchTo
	movl	%eax, %r15d
	movq	24(%rbx), %rdi
	movl	%r12d, %r13d
	shll	$4, %r13d
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.4:
	movl	%r13d, %esi
	callq	_repalloc
	movq	%rax, 24(%rbx)
	movq	56(%rbx), %rdi
	movl	%r13d, %esi
	callq	_repalloc
	movq	%rax, 56(%rbx)
	movq	%r12, %r13
	shlq	$3, %r13
	movq	24(%rbx), %rdi
	addq	%r13, %rdi
	leal	(,%r12,8), %r12d
	xorl	%esi, %esi
	movl	%r12d, %edx
	callq	_MemSet
	addq	56(%rbx), %r13
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	%r12d, %edx
	callq	_MemSet
	jmp	LBB0_5
LBB0_3:
	movl	%r13d, %edi
	callq	_palloc0
	movq	%rax, 24(%rbx)
	movl	%r13d, %edi
	callq	_palloc0
	movq	%rax, 56(%rbx)
	xorl	%eax, %eax
	callq	_PrepareTempTablespaces
LBB0_5:
	movl	%r15d, %edi
	callq	_MemoryContextSwitchTo
	movl	%r14d, (%rbx)
	movl	16(%rbx), %edx
	cmpl	20(%rbx), %edx
	jne	LBB0_7
## %bb.6:
	movq	32(%rbx), %rdi
	jmp	LBB0_8
LBB0_7:
	setg	%al
	movzbl	%al, %edi
	callq	_Assert
	movl	16(%rbx), %esi
	movl	%esi, 20(%rbx)
	movl	48(%rbx), %eax
	movl	%eax, 52(%rbx)
	movq	32(%rbx), %rdi
	shll	$3, %esi
	callq	_repalloc
	movq	%rax, %rdi
	movq	%rax, 32(%rbx)
	movl	20(%rbx), %edx
LBB0_8:
	shll	$3, %edx
	xorl	%esi, %esi
	callq	_memset
	movq	40(%rbx), %r15
	movq	$0, 40(%rbx)
	testq	%r15, %r15
	movq	%rbx, %rax
	je	LBB0_19
## %bb.9:
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	%r15, %rdi
	callq	_pfree
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, %r15
	testq	%rax, %rax
	je	LBB0_17
LBB0_10:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_12 Depth 2
	movq	8(%r15), %rax
	cmpq	$0, (%r15)
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	je	LBB0_16
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	xorl	%r13d, %r13d
	movq	%r15, -80(%rbp)                 ## 8-byte Spill
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_12 Depth=2
	setg	%al
	movzbl	%al, %edi
	callq	_Assert
	movq	%r15, %rdi
	callq	_HJTUPLE_MINTUPLE
	movl	(%r15), %esi
	movslq	-44(%rbp), %rdx
	shlq	$3, %rdx
	addq	24(%rbx), %rdx
	movq	%rax, %rdi
	callq	_ExecHashJoinSaveTuple
	subl	%r14d, 12(%rbx)
	incq	-64(%rbp)                       ## 8-byte Folded Spill
LBB0_15:                                ##   in Loop: Header=BB0_12 Depth=2
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	movl	%r14d, %edi
	callq	_MAXALIGN
	addq	%rax, %r13
	xorl	%eax, %eax
	callq	_CHECK_FOR_INTERRUPTS
	incq	%rbx
	cmpq	(%r15), %r13
	jae	LBB0_16
LBB0_12:                                ##   Parent Loop BB0_10 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	callq	_HASH_CHUNK_DATA
	movq	%rax, %r12
	leaq	(%rax,%r13), %r15
	movq	%r15, %rdi
	callq	_HJTUPLE_MINTUPLE
	movl	(%rax), %r14d
	movq	_HJTUPLE_OVERHEAD@GOTPCREL(%rip), %rax
	addl	(%rax), %r14d
	movl	(%r12,%r13), %esi
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	leaq	-52(%rbp), %rdx
	leaq	-44(%rbp), %rcx
	callq	_ExecHashGetBucketAndBatch
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	cmpl	%eax, -44(%rbp)
	jne	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=2
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_dense_alloc
	movslq	%eax, %r12
	movq	%r12, %rdi
	movq	%r15, %rsi
	movl	%r14d, %edx
	callq	_memcpy
	movq	32(%rbx), %rax
	movslq	-52(%rbp), %rcx
	movq	(%rax,%rcx,8), %rdx
	movq	%rdx, 8(%r12)
	movq	%r12, (%rax,%rcx,8)
	jmp	LBB0_15
LBB0_17:
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	testq	%rcx, %rcx
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	je	LBB0_19
## %bb.18:
	cmpq	%rbx, %rcx
	jne	LBB0_20
LBB0_19:
	movl	$0, 8(%rax)
LBB0_20:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_INT_MAX,4,2                    ## @INT_MAX
	.comm	_MaxAllocSize,4,2               ## @MaxAllocSize
	.comm	_HJTUPLE_OVERHEAD,4,2           ## @HJTUPLE_OVERHEAD
	.no_dead_strip	_ExecHashIncreaseNumBatches
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ExecHashIncreaseNumBatches
_ExecHashIncreaseNumBatches:            ; @ExecHashIncreaseNumBatches
	.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
	ldr	w8, [x0, #8]
	cbz	w8, LBB0_20
; %bb.1:
	mov	x19, x0
	ldp	w23, w24, [x0]
                                        ; kill: def $w23 killed $w23 def $x23
	sxtw	x23, w23
Lloh0:
	adrp	x8, _INT_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _INT_MAX@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w0, w8, #1
Lloh3:
	adrp	x8, _MaxAllocSize@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MaxAllocSize@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	asr	w1, w8, #4
	bl	_Min
	cmp	w23, w0
	b.gt	LBB0_20
; %bb.2:
	lsl	w22, w23, #1
	cmp	w23, #0
	cset	w0, gt
	bl	_Assert
	ldr	w0, [x19, #64]
	bl	_MemoryContextSwitchTo
	mov	x20, x0
	ldr	x0, [x19, #24]
	lsl	w21, w23, #4
	cbz	x0, LBB0_4
; %bb.3:
	mov	x1, x21
	bl	_repalloc
	str	x0, [x19, #24]
	ldr	x0, [x19, #56]
	mov	x1, x21
	bl	_repalloc
	str	x0, [x19, #56]
	ldr	x8, [x19, #24]
	lsl	x25, x23, #3
	add	x0, x8, x25
	lsl	w21, w23, #3
	mov	w1, #0
	mov	x2, x21
	bl	_MemSet
	ldr	x8, [x19, #56]
	add	x0, x8, x25
	mov	w1, #0
	mov	x2, x21
	bl	_MemSet
	b	LBB0_5
LBB0_4:
	mov	x0, x21
	bl	_palloc0
	str	x0, [x19, #24]
	mov	x0, x21
	bl	_palloc0
	str	x0, [x19, #56]
	bl	_PrepareTempTablespaces
LBB0_5:
	mov	x0, x20
	bl	_MemoryContextSwitchTo
	str	w22, [x19]
	ldp	w8, w9, [x19, #16]
	cmp	w8, w9
	b.ne	LBB0_7
; %bb.6:
	ldr	x0, [x19, #32]
	b	LBB0_8
LBB0_7:
	cset	w0, gt
	bl	_Assert
	ldr	w8, [x19, #16]
	str	w8, [x19, #20]
	ldr	w9, [x19, #48]
	str	w9, [x19, #52]
	ldr	x0, [x19, #32]
	lsl	w1, w8, #3
	bl	_repalloc
	str	x0, [x19, #32]
	ldr	w8, [x19, #20]
LBB0_8:
	lsl	w2, w8, #3
	mov	w1, #0
	bl	_memset
	ldr	x20, [x19, #40]
	str	xzr, [x19, #40]
	cbz	x20, LBB0_19
; %bb.9:
	mov	x25, #0
	mov	x26, #0
Lloh6:
	adrp	x27, _HJTUPLE_OVERHEAD@GOTPAGE
Lloh7:
	ldr	x27, [x27, _HJTUPLE_OVERHEAD@GOTPAGEOFF]
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x20
	bl	_pfree
	ldr	x8, [sp]                        ; 8-byte Folded Reload
	mov	x20, x8
	cbz	x8, LBB0_17
LBB0_11:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_15 Depth 2
	ldp	x8, x9, [x20]
	str	x9, [sp]                        ; 8-byte Folded Spill
	cbz	x8, LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x28, #0
	b	LBB0_15
LBB0_13:                                ;   in Loop: Header=BB0_15 Depth=2
	cset	w0, gt
	bl	_Assert
	mov	x0, x22
	bl	_HJTUPLE_MINTUPLE
	ldr	w1, [x22]
	ldr	x8, [x19, #24]
	ldrsw	x9, [sp, #8]
	add	x2, x8, x9, lsl #3
	bl	_ExecHashJoinSaveTuple
	ldr	w8, [x19, #12]
	sub	w8, w8, w21
	str	w8, [x19, #12]
	add	x26, x26, #1
LBB0_14:                                ;   in Loop: Header=BB0_15 Depth=2
	mov	x0, x21
	bl	_MAXALIGN
	add	x28, x0, x28
	bl	_CHECK_FOR_INTERRUPTS
	ldr	x8, [x20]
	add	x25, x25, #1
	cmp	x28, x8
	b.hs	LBB0_10
LBB0_15:                                ;   Parent Loop BB0_11 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x20
	bl	_HASH_CHUNK_DATA
	add	x22, x0, x28
	mov	x0, x22
	bl	_HJTUPLE_MINTUPLE
	ldr	w8, [x27]
	ldr	w9, [x0]
	add	w21, w9, w8
	ldr	w1, [x22]
	add	x2, sp, #12
	add	x3, sp, #8
	mov	x0, x19
	bl	_ExecHashGetBucketAndBatch
	ldr	w8, [sp, #8]
	cmp	w8, w24
	b.ne	LBB0_13
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=2
	mov	x0, x19
	mov	x1, x21
	bl	_dense_alloc
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x23, w0
	mov	x0, x23
	mov	x1, x22
	mov	x2, x21
	bl	_memcpy
	ldr	x8, [x19, #32]
	ldrsw	x9, [sp, #12]
	lsl	x9, x9, #3
	ldr	x10, [x8, x9]
	str	x10, [x23, #8]
	str	x23, [x8, x9]
	b	LBB0_14
LBB0_17:
	cbz	x26, LBB0_19
; %bb.18:
	cmp	x26, x25
	b.ne	LBB0_20
LBB0_19:
	str	wzr, [x19, #8]
LBB0_20:
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_INT_MAX,4,2                    ; @INT_MAX
	.comm	_MaxAllocSize,4,2               ; @MaxAllocSize
	.comm	_HJTUPLE_OVERHEAD,4,2           ; @HJTUPLE_OVERHEAD
	.no_dead_strip	_ExecHashIncreaseNumBatches
.subsections_via_symbols
