	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function brin_deconstruct_tuple
_brin_deconstruct_tuple:                ## @brin_deconstruct_tuple
	.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	%r9, -56(%rbp)                  ## 8-byte Spill
	movq	%r8, -72(%rbp)                  ## 8-byte Spill
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	8(%rdi), %rax
	cmpl	$0, (%rax)
	jle	LBB0_6
## %bb.1:
	movl	%ecx, %r14d
	movq	%rdx, %r13
	movq	16(%rbp), %r12
	xorl	%r15d, %r15d
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%r15d, %edi
	movq	%r13, %rsi
	callq	_att_isnull
	xorl	%ecx, %ecx
	testl	%eax, %eax
	sete	%cl
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	%ecx, (%rax,%r15,4)
	movq	8(%rbx), %rax
	movl	(%rax), %edi
	addl	%r15d, %edi
	movq	%r13, %rsi
	callq	_att_isnull
	testl	%eax, %eax
	sete	%cl
	movq	8(%rbx), %rax
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movzbl	%cl, %ecx
	movl	%ecx, (%r12,%r15,4)
	incq	%r15
	movslq	(%rax), %rcx
	cmpq	%rcx, %r15
	jge	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	testl	%r14d, %r14d
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	$0, (%rcx,%r15,4)
	xorl	%ecx, %ecx
	jmp	LBB0_5
LBB0_6:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_brtuple_disk_tupdesc
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	movq	8(%rbx), %rax
	cmpl	$0, (%rax)
	jle	LBB0_17
## %bb.7:
	xorl	%r13d, %r13d
	xorl	%r14d, %r14d
	xorl	%edx, %edx
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_8 Depth=1
	addl	%ecx, %edx
LBB0_16:                                ##   in Loop: Header=BB0_8 Depth=1
	incq	%r13
	movslq	(%rax), %rcx
	cmpq	%rcx, %r13
	jge	LBB0_17
LBB0_8:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_11 Depth 2
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	cmpl	$0, (%rcx,%r13,4)
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rcx
	movq	(%rcx,%r13,8), %rcx
	movl	(%rcx), %ecx
	jne	LBB0_18
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	testl	%ecx, %ecx
	jle	LBB0_16
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	movl	%edx, -60(%rbp)                 ## 4-byte Spill
	movslq	%edx, %rax
	movl	%eax, %ecx
	movq	%rcx, -96(%rbp)                 ## 8-byte Spill
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax,4), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_11 Depth=2
	movq	%r14, %rdi
	callq	_att_align_nominal
LBB0_14:                                ##   in Loop: Header=BB0_11 Depth=2
	movq	%rax, %r14
	addq	%rax, %r12
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_fetchatt
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx,%r15,4)
	movl	(%rbx), %esi
	movq	%r14, %rdi
	movq	%r12, %rdx
	callq	_att_addlength_pointer
	movq	%rax, %r14
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	(%rax,%r13,8), %rax
	incq	%r15
	cmpl	(%rax), %r15d
	jge	LBB0_15
LBB0_11:                                ##   Parent Loop BB0_8 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	leal	(%rax,%r15), %esi
	movl	-64(%rbp), %edi                 ## 4-byte Reload
	callq	_TupleDescAttr
	movq	%rax, %rbx
	movl	4(%rax), %esi
	cmpl	$-1, (%rax)
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	jne	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=2
	leaq	(%r12,%r14), %rcx
	movq	%r14, %rdi
	movl	$-1, %edx
	callq	_att_align_pointer
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_8 Depth=1
	movl	-60(%rbp), %edx                 ## 4-byte Reload
	addl	%r15d, %edx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	jmp	LBB0_16
LBB0_17:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_brin_deconstruct_tuple
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function brin_deconstruct_tuple
_brin_deconstruct_tuple:                ; @brin_deconstruct_tuple
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	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
	.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, x5
	str	x4, [sp, #16]                   ; 8-byte Folded Spill
	mov	x21, x1
	mov	x22, x0
	ldr	x8, [x0, #8]
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_6
; %bb.1:
	mov	x23, x6
	mov	x24, x3
	mov	x25, x2
	mov	x26, #0
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x26
	mov	x1, x25
	bl	_att_isnull
	cmp	w0, #0
	cset	w8, eq
	str	w8, [x19, x26, lsl #2]
	ldr	x8, [x22, #8]
	ldr	w8, [x8]
	add	w0, w26, w8
	mov	x1, x25
	bl	_att_isnull
	cmp	w0, #0
	cset	w9, eq
	ldr	x8, [x22, #8]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	str	w9, [x23, x26, lsl #2]
	add	x26, x26, #1
	ldrsw	x9, [x8]
	cmp	x26, x9
	b.ge	LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	cbnz	w24, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w9, #0
	str	wzr, [x19, x26, lsl #2]
	b	LBB0_3
LBB0_6:
	mov	x0, x22
	bl	_brtuple_disk_tupdesc
	ldr	x8, [x22, #8]
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_18
; %bb.7:
	mov	x23, x0
	mov	x27, #0
	mov	x24, #0
	mov	w11, #0
	str	x19, [sp, #8]                   ; 8-byte Folded Spill
	b	LBB0_10
LBB0_8:                                 ;   in Loop: Header=BB0_10 Depth=1
	add	w11, w9, w11
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	add	x27, x27, #1
	ldrsw	x9, [x8]
	cmp	x27, x9
	b.ge	LBB0_18
LBB0_10:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_15 Depth 2
	ldr	w10, [x19, x27, lsl #2]
	ldr	x9, [x22]
	ldr	x9, [x9, x27, lsl #3]
	ldr	w9, [x9]
	cbnz	w10, LBB0_8
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	cmp	w9, #1
	b.lt	LBB0_9
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	x20, #0
	mov	w19, w11
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	str	w11, [sp, #28]                  ; 4-byte Folded Spill
	add	x28, x8, w11, sxtw #2
	b	LBB0_15
LBB0_13:                                ;   in Loop: Header=BB0_15 Depth=2
	mov	x0, x24
	bl	_att_align_nominal
LBB0_14:                                ;   in Loop: Header=BB0_15 Depth=2
	mov	x24, x0
	add	x26, x21, x0
	mov	x0, x25
	mov	x1, x26
	bl	_fetchatt
	str	w0, [x28, x20, lsl #2]
	ldr	w1, [x25]
	mov	x0, x24
	mov	x2, x26
	bl	_att_addlength_pointer
	mov	x24, x0
	ldr	x8, [x22]
	ldr	x8, [x8, x27, lsl #3]
	ldr	w8, [x8]
	add	x20, x20, #1
	cmp	w20, w8
	b.ge	LBB0_17
LBB0_15:                                ;   Parent Loop BB0_10 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	w1, w19, w20
	mov	x0, x23
	bl	_TupleDescAttr
	mov	x25, x0
	ldp	w8, w1, [x0]
	cmn	w8, #1
	b.ne	LBB0_13
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=2
	add	x3, x21, x24
	mov	x0, x24
	mov	w2, #-1
	bl	_att_align_pointer
	b	LBB0_14
LBB0_17:                                ;   in Loop: Header=BB0_10 Depth=1
	ldr	w11, [sp, #28]                  ; 4-byte Folded Reload
	add	w11, w11, w20
	ldr	x8, [x22, #8]
	ldr	x19, [sp, #8]                   ; 8-byte Folded Reload
	b	LBB0_9
LBB0_18:
	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
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_brin_deconstruct_tuple
.subsections_via_symbols
