	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gistXLogUpdate                 ## -- Begin function gistXLogUpdate
	.p2align	4, 0x90
_gistXLogUpdate:                        ## @gistXLogUpdate
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, -44(%rbp)                 ## 4-byte Spill
	movl	%r8d, %r15d
	movq	%rcx, %r13
	movl	%edx, %r12d
	movq	%rsi, %rbx
	movl	%edi, %r14d
	movl	%edx, -56(%rbp)
	movl	%r8d, -52(%rbp)
	xorl	%eax, %eax
	callq	_XLogBeginInsert
	leaq	-56(%rbp), %rdi
	movl	$8, %esi
	callq	_XLogRegisterData
	movq	_REGBUF_STANDARD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%edi, %edi
	movl	%r14d, %esi
	callq	_XLogRegisterBuffer
	shll	$2, %r12d
	xorl	%edi, %edi
	movq	%rbx, %rsi
	movl	%r12d, %edx
	callq	_XLogRegisterBufData
	testl	%r15d, %r15d
	jle	LBB0_3
## %bb.1:
	movl	%r15d, %r14d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13,%rbx,8), %r15
	movq	%r15, %rdi
	callq	_IndexTupleSize
	xorl	%edi, %edi
	movq	%r15, %rsi
	movl	%eax, %edx
	callq	_XLogRegisterBufData
	incq	%rbx
	cmpq	%rbx, %r14
	jne	LBB0_2
LBB0_3:
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %edi
	callq	_BufferIsValid
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	_REGBUF_STANDARD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$1, %edi
	movl	%ebx, %esi
	callq	_XLogRegisterBuffer
LBB0_5:
	movq	_RM_GIST_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_XLOG_GIST_PAGE_UPDATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_XLogInsert
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_REGBUF_STANDARD,4,2            ## @REGBUF_STANDARD
	.comm	_RM_GIST_ID,4,2                 ## @RM_GIST_ID
	.comm	_XLOG_GIST_PAGE_UPDATE,4,2      ## @XLOG_GIST_PAGE_UPDATE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gistXLogUpdate                 ; -- Begin function gistXLogUpdate
	.p2align	2
_gistXLogUpdate:                        ; @gistXLogUpdate
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x19, x5
	mov	x21, x4
	mov	x20, x3
	mov	x22, x2
	mov	x23, x1
	mov	x24, x0
	stp	w2, w4, [sp, #8]
	bl	_XLogBeginInsert
	add	x0, sp, #8
	mov	w1, #8
	bl	_XLogRegisterData
Lloh0:
	adrp	x25, _REGBUF_STANDARD@GOTPAGE
Lloh1:
	ldr	x25, [x25, _REGBUF_STANDARD@GOTPAGEOFF]
	ldr	w2, [x25]
	mov	w0, #0
	mov	x1, x24
	bl	_XLogRegisterBuffer
	lsl	w2, w22, #2
	mov	w0, #0
	mov	x1, x23
	bl	_XLogRegisterBufData
	cmp	w21, #1
	b.lt	LBB0_3
; %bb.1:
	mov	w22, w21
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x21, [x20], #8
	mov	x0, x21
	bl	_IndexTupleSize
	mov	x2, x0
	mov	w0, #0
	mov	x1, x21
	bl	_XLogRegisterBufData
	subs	x22, x22, #1
	b.ne	LBB0_2
LBB0_3:
	mov	x0, x19
	bl	_BufferIsValid
	cbz	x0, LBB0_5
; %bb.4:
	ldr	w2, [x25]
	mov	w0, #1
	mov	x1, x19
	bl	_XLogRegisterBuffer
LBB0_5:
Lloh2:
	adrp	x8, _RM_GIST_ID@GOTPAGE
Lloh3:
	ldr	x8, [x8, _RM_GIST_ID@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
Lloh5:
	adrp	x8, _XLOG_GIST_PAGE_UPDATE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _XLOG_GIST_PAGE_UPDATE@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	bl	_XLogInsert
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_REGBUF_STANDARD,4,2            ; @REGBUF_STANDARD
	.comm	_RM_GIST_ID,4,2                 ; @RM_GIST_ID
	.comm	_XLOG_GIST_PAGE_UPDATE,4,2      ; @XLOG_GIST_PAGE_UPDATE
.subsections_via_symbols
