	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_brin_deform_tuple              ## -- Begin function brin_deform_tuple
	.p2align	4, 0x90
_brin_deform_tuple:                     ## @brin_deform_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	%rsi, %rbx
	movq	%rdi, %r13
	testq	%rdx, %rdx
	je	LBB0_2
## %bb.1:
	movq	%rdx, %rdi
	movq	%r13, %rsi
	callq	_brin_memtuple_initialize
	jmp	LBB0_3
LBB0_2:
	movq	%r13, %rdi
	callq	_brin_new_memtuple
LBB0_3:
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_BrinTupleIsPlaceholder
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movl	$1, (%r14)
LBB0_5:
	movl	(%rbx), %eax
	movl	%eax, 48(%r14)
	movq	40(%r14), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	8(%r14), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	16(%r14), %r12
	movq	%rbx, %rdi
	callq	_BrinTupleDataOffset
	cltq
	addq	%rbx, %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_BrinTupleHasNulls
	movq	_SizeOfBrinTuple@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %r15
	addq	%rbx, %r15
	testq	%rax, %rax
	cmoveq	%rax, %r15
	movq	%rbx, %rdi
	callq	_BrinTupleHasNulls
	movq	%r12, -80(%rbp)                 ## 8-byte Spill
	movq	%r12, (%rsp)
	movq	%r13, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	%r15, %rdx
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movq	%rax, %rcx
	movq	-72(%rbp), %r8                  ## 8-byte Reload
	movq	%r15, %r9
	callq	_brin_deconstruct_tuple
	movl	32(%r14), %edi
	callq	_MemoryContextSwitchTo
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	8(%r13), %rax
	cmpl	$0, (%rax)
	jle	LBB0_16
## %bb.6:
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_7 Depth=1
	addl	%ecx, %edi
LBB0_15:                                ##   in Loop: Header=BB0_7 Depth=1
	incq	%rbx
	movslq	(%rax), %rcx
	cmpq	%rcx, %rbx
	jge	LBB0_16
LBB0_7:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_12 Depth 2
	cmpl	$0, (%r15,%rbx,4)
	movq	(%r13), %rcx
	movq	(%rcx,%rbx,8), %rdx
	movl	(%rdx), %ecx
	jne	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	testl	%ecx, %ecx
	jle	LBB0_9
## %bb.11:                              ##   in Loop: Header=BB0_7 Depth=1
	movl	%edi, -48(%rbp)                 ## 4-byte Spill
	movslq	%edi, %rax
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax,4), %r15
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_12:                                ##   Parent Loop BB0_7 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%r15,%r12,4), %edi
	movq	8(%rdx), %rax
	movq	(%rax,%r12,8), %rax
	movl	(%rax), %edx
	movl	4(%rax), %esi
	callq	_datumCopy
	movq	24(%r14), %rcx
	movq	%rbx, %rdx
	shlq	$4, %rdx
	movq	8(%rcx,%rdx), %rdx
	movl	%eax, (%rdx,%r12,4)
	incq	%r12
	movq	(%r13), %rax
	movq	(%rax,%rbx,8), %rdx
	movslq	(%rdx), %rax
	cmpq	%rax, %r12
	jl	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_7 Depth=1
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	addl	%r12d, %edi
	movq	8(%r13), %rax
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_14
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=1
	movq	24(%r14), %rcx
LBB0_14:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	movl	(%rdx,%rbx,4), %edx
	movq	%rbx, %rsi
	shlq	$4, %rsi
	movl	%edx, (%rcx,%rsi)
	movl	$0, 4(%rcx,%rsi)
	jmp	LBB0_15
LBB0_16:
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	callq	_MemoryContextSwitchTo
	movq	%r14, %rax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SizeOfBrinTuple,4,2            ## @SizeOfBrinTuple
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_brin_deform_tuple              ; -- Begin function brin_deform_tuple
	.p2align	2
_brin_deform_tuple:                     ; @brin_deform_tuple
	.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	x24, x1
	mov	x19, x0
	cbz	x2, LBB0_2
; %bb.1:
	mov	x0, x2
	mov	x1, x19
	bl	_brin_memtuple_initialize
	b	LBB0_3
LBB0_2:
	mov	x0, x19
	bl	_brin_new_memtuple
LBB0_3:
	mov	x20, x0
	mov	x0, x24
	bl	_BrinTupleIsPlaceholder
	cbz	x0, LBB0_5
; %bb.4:
	mov	w8, #1
	str	w8, [x20]
LBB0_5:
	ldr	w8, [x24]
	str	w8, [x20, #48]
	ldr	x21, [x20, #40]
	ldp	x22, x23, [x20, #8]
	mov	x0, x24
	bl	_BrinTupleDataOffset
	add	x25, x24, w0, sxtw
	mov	x0, x24
	bl	_BrinTupleHasNulls
Lloh0:
	adrp	x8, _SizeOfBrinTuple@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SizeOfBrinTuple@GOTPAGEOFF]
Lloh2:
	ldrsw	x8, [x8]
	add	x8, x24, x8
	cmp	x0, #0
	csel	x26, xzr, x8, eq
	mov	x0, x24
	bl	_BrinTupleHasNulls
	mov	x3, x0
	mov	x0, x19
	mov	x1, x25
	mov	x2, x26
	mov	x4, x21
	mov	x5, x22
	mov	x6, x23
	bl	_brin_deconstruct_tuple
	ldr	w0, [x20, #32]
	bl	_MemoryContextSwitchTo
	str	w0, [sp, #12]                   ; 4-byte Folded Spill
	ldr	x8, [x19, #8]
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_16
; %bb.6:
	mov	x25, #0
	mov	w26, #0
	b	LBB0_9
LBB0_7:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	w26, w9, w26
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	x25, x25, #1
	ldrsw	x9, [x8]
	cmp	x25, x9
	b.ge	LBB0_16
LBB0_9:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_12 Depth 2
	ldr	w11, [x22, x25, lsl #2]
	ldr	x9, [x19]
	ldr	x10, [x9, x25, lsl #3]
	ldr	w9, [x10]
	cbnz	w11, LBB0_7
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	cmp	w9, #0
	b.le	LBB0_14
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x27, #0
	add	x28, x21, w26, sxtw #2
LBB0_12:                                ;   Parent Loop BB0_9 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	lsl	x24, x27, #2
	ldr	w0, [x28, x24]
	ldr	x8, [x10, #8]
	ldr	x8, [x8, x27, lsl #3]
	ldp	w2, w1, [x8]
	bl	_datumCopy
	ldr	x9, [x20, #24]
	add	x8, x9, x25, lsl #4
	ldr	x8, [x8, #8]
	str	w0, [x8, x24]
	add	x27, x27, #1
	ldr	x8, [x19]
	ldr	x10, [x8, x25, lsl #3]
	ldrsw	x8, [x10]
	cmp	x27, x8
	b.lt	LBB0_12
; %bb.13:                               ;   in Loop: Header=BB0_9 Depth=1
	add	w26, w26, w27
	ldr	x8, [x19, #8]
	b	LBB0_15
LBB0_14:                                ;   in Loop: Header=BB0_9 Depth=1
	ldr	x9, [x20, #24]
LBB0_15:                                ;   in Loop: Header=BB0_9 Depth=1
	ldr	w10, [x23, x25, lsl #2]
	add	x9, x9, x25, lsl #4
	stp	w10, wzr, [x9]
	b	LBB0_8
LBB0_16:
	ldr	w0, [sp, #12]                   ; 4-byte Folded Reload
	bl	_MemoryContextSwitchTo
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_SizeOfBrinTuple,4,2            ; @SizeOfBrinTuple
.subsections_via_symbols
