	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_prune_append_rel_partitions    ## -- Begin function prune_append_rel_partitions
	.p2align	4, 0x90
_prune_append_rel_partitions:           ## @prune_append_rel_partitions
	.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	%rbx
	subq	$88, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	24(%rdi), %r14
	xorl	%edi, %edi
	cmpq	$0, 8(%rbx)
	setne	%dil
	callq	_Assert
	movq	(%rbx), %rdx
	testq	%rdx, %rdx
	je	LBB0_5
## %bb.1:
	movq	_enable_partition_pruning@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_7
## %bb.2:
	movq	_NIL@GOTPCREL(%rip), %r15
	cmpq	(%r15), %r14
	je	LBB0_7
## %bb.3:
	movq	_PARTTARGET_PLANNER@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-40(%rbp), %rcx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_gen_partprune_steps
	cmpq	$0, -32(%rbp)
	je	LBB0_8
LBB0_5:
	xorl	%eax, %eax
LBB0_6:
	addq	$88, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	decq	%rdx
	xorl	%edi, %edi
	xorl	%esi, %esi
	addq	$88, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_bms_add_range                  ## TAILCALL
LBB0_8:
	movq	-40(%rbp), %r14
	cmpq	(%r15), %r14
	je	LBB0_10
## %bb.9:
	movq	8(%rbx), %rax
	movl	12(%rax), %ecx
	movl	%ecx, -44(%rbp)
	movl	(%rax), %r15d
	movl	%r15d, -104(%rbp)
	movq	(%rbx), %rcx
	movq	%rcx, -96(%rbp)
	movl	16(%rbx), %ecx
	movl	%ecx, -48(%rbp)
	movl	8(%rax), %ecx
	movl	%ecx, -52(%rbp)
	movl	4(%rax), %eax
	movl	%eax, -56(%rbp)
	movq	%r14, %rdi
	callq	_list_length
	imull	%eax, %r15d
	shll	$2, %r15d
	movl	%r15d, %edi
	callq	_palloc0
	movq	%rax, -64(%rbp)
	movq	_CurrentMemoryContext@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -72(%rbp)
	xorps	%xmm0, %xmm0
	movups	%xmm0, -88(%rbp)
	leaq	-104(%rbp), %rdi
	movq	%r14, %rsi
	callq	_get_matching_partitions
	jmp	LBB0_6
LBB0_10:
	movq	(%rbx), %rdx
	decq	%rdx
	xorl	%edi, %edi
	xorl	%esi, %esi
	callq	_bms_add_range
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_enable_partition_pruning,4,2   ## @enable_partition_pruning
	.comm	_NIL,8,3                        ## @NIL
	.comm	_PARTTARGET_PLANNER,4,2         ## @PARTTARGET_PLANNER
	.comm	_CurrentMemoryContext,4,2       ## @CurrentMemoryContext
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_prune_append_rel_partitions    ; -- Begin function prune_append_rel_partitions
	.p2align	2
_prune_append_rel_partitions:           ; @prune_append_rel_partitions
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	mov	x19, x0
	ldr	x20, [x0, #24]
	ldr	x8, [x0, #8]
	cmp	x8, #0
	cset	w0, ne
	bl	_Assert
	ldr	x8, [x19]
	cbz	x8, LBB0_4
; %bb.1:
Lloh0:
	adrp	x9, _enable_partition_pruning@GOTPAGE
Lloh1:
	ldr	x9, [x9, _enable_partition_pruning@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x21, _NIL@GOTPAGE
Lloh4:
	ldr	x21, [x21, _NIL@GOTPAGEOFF]
	ldr	x10, [x21]
	cmp	w9, #0
	ccmp	x20, x10, #4, ne
	b.ne	LBB0_3
; %bb.2:
	sub	x2, x8, #1
	mov	x0, #0
	mov	w1, #0
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #128
	b	_bms_add_range
LBB0_3:
Lloh5:
	adrp	x8, _PARTTARGET_PLANNER@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PARTTARGET_PLANNER@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	sub	x3, x29, #48
	mov	x0, x19
	mov	x1, x20
	bl	_gen_partprune_steps
	ldur	x8, [x29, #-40]
	cbz	x8, LBB0_6
LBB0_4:
	mov	x0, #0
LBB0_5:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_6:
	ldur	x20, [x29, #-48]
	ldr	x8, [x21]
	cmp	x20, x8
	b.eq	LBB0_8
; %bb.7:
	ldp	x9, x8, [x19]
	ldr	w10, [x8, #12]
	str	w10, [sp, #60]
	ldr	w21, [x8]
	str	w21, [sp]
	str	x9, [sp, #8]
	ldr	w9, [x19, #16]
	str	w9, [sp, #56]
	ldur	d0, [x8, #4]
	str	d0, [sp, #48]
	mov	x0, x20
	bl	_list_length
	mul	w8, w21, w0
	lsl	w0, w8, #2
	bl	_palloc0
	str	x0, [sp, #40]
Lloh8:
	adrp	x8, _CurrentMemoryContext@GOTPAGE
Lloh9:
	ldr	x8, [x8, _CurrentMemoryContext@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	w8, [sp, #32]
	stp	xzr, xzr, [sp, #16]
	mov	x0, sp
	mov	x1, x20
	bl	_get_matching_partitions
	b	LBB0_5
LBB0_8:
	ldr	x8, [x19]
	sub	x2, x8, #1
	mov	x0, #0
	mov	w1, #0
	bl	_bms_add_range
	b	LBB0_5
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_enable_partition_pruning,4,2   ; @enable_partition_pruning
	.comm	_NIL,8,3                        ; @NIL
	.comm	_PARTTARGET_PLANNER,4,2         ; @PARTTARGET_PLANNER
	.comm	_CurrentMemoryContext,4,2       ; @CurrentMemoryContext
.subsections_via_symbols
