	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ginUpdateStats                 ## -- Begin function ginUpdateStats
	.p2align	4, 0x90
_ginUpdateStats:                        ## @ginUpdateStats
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movq	%rsi, %r12
	movq	%rdi, %r15
	movq	_GIN_METAPAGE_BLKNO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ReadBuffer
	movl	%eax, %r13d
	movq	_GIN_EXCLUSIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r13d, %edi
	callq	_LockBuffer
	movl	%r13d, %edi
	callq	_BufferGetPage
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_GinPageGetMeta
	movq	%rax, %rbx
	xorl	%eax, %eax
	callq	_START_CRIT_SECTION
	movups	(%r12), %xmm0
	movups	%xmm0, (%rbx)
	movl	%ebx, %eax
	subl	%r14d, %eax
	addl	$16, %eax
	movl	%eax, (%r14)
	movl	%r13d, %edi
	callq	_MarkBufferDirty
	movq	%r15, %rdi
	callq	_RelationNeedsWAL
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_3
## %bb.1:
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movl	(%r15), %eax
	movl	%eax, -56(%rbp)
	movq	$0, -64(%rbp)
	movq	_InvalidBlockNumber@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -76(%rbp)
	movl	%eax, -72(%rbp)
	leaq	-80(%rbp), %r15
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movl	$16, %edx
	callq	_memcpy
	xorl	%eax, %eax
	callq	_XLogBeginInsert
	movq	%r15, %rdi
	movl	$32, %esi
	callq	_XLogRegisterData
	movq	_REGBUF_WILL_INIT@GOTPCREL(%rip), %rax
	movq	_REGBUF_STANDARD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	xorl	%edi, %edi
	movl	%r13d, %esi
	callq	_XLogRegisterBuffer
	movq	_RM_GIN_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_XLOG_GIN_UPDATE_META_PAGE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_XLogInsert
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_PageSetLSN
LBB0_3:
	movl	%r13d, %edi
	callq	_UnlockReleaseBuffer
	xorl	%eax, %eax
	callq	_END_CRIT_SECTION
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GIN_METAPAGE_BLKNO,4,2         ## @GIN_METAPAGE_BLKNO
	.comm	_GIN_EXCLUSIVE,4,2              ## @GIN_EXCLUSIVE
	.comm	_InvalidBlockNumber,4,2         ## @InvalidBlockNumber
	.comm	_REGBUF_WILL_INIT,4,2           ## @REGBUF_WILL_INIT
	.comm	_REGBUF_STANDARD,4,2            ## @REGBUF_STANDARD
	.comm	_RM_GIN_ID,4,2                  ## @RM_GIN_ID
	.comm	_XLOG_GIN_UPDATE_META_PAGE,4,2  ## @XLOG_GIN_UPDATE_META_PAGE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ginUpdateStats                 ; -- Begin function ginUpdateStats
	.p2align	2
_ginUpdateStats:                        ; @ginUpdateStats
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x23, x2
	mov	x24, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _GIN_METAPAGE_BLKNO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GIN_METAPAGE_BLKNO@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_ReadBuffer
	mov	x19, x0
Lloh3:
	adrp	x8, _GIN_EXCLUSIVE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GIN_EXCLUSIVE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_LockBuffer
	mov	x0, x19
	bl	_BufferGetPage
	mov	x20, x0
	bl	_GinPageGetMeta
	mov	x22, x0
	bl	_START_CRIT_SECTION
	ldr	q0, [x24]
	str	q0, [x22]
	sub	w8, w22, w20
	add	w8, w8, #16
	str	w8, [x20]
	mov	x0, x19
	bl	_MarkBufferDirty
	mov	x0, x21
	bl	_RelationNeedsWAL
	cbnz	w23, LBB0_3
; %bb.1:
	cbz	x0, LBB0_3
; %bb.2:
	ldr	w8, [x21]
	str	w8, [sp, #24]
	str	xzr, [sp, #16]
Lloh6:
	adrp	x8, _InvalidBlockNumber@GOTPAGE
Lloh7:
	ldr	x8, [x8, _InvalidBlockNumber@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	stp	w8, w8, [sp, #4]
	mov	x0, sp
	mov	x1, x22
	mov	w2, #16
	bl	_memcpy
	bl	_XLogBeginInsert
	mov	x0, sp
	mov	w1, #32
	bl	_XLogRegisterData
Lloh9:
	adrp	x8, _REGBUF_WILL_INIT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _REGBUF_WILL_INIT@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _REGBUF_STANDARD@GOTPAGE
Lloh13:
	ldr	x9, [x9, _REGBUF_STANDARD@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	w0, #0
	mov	x1, x19
	bl	_XLogRegisterBuffer
Lloh15:
	adrp	x8, _RM_GIN_ID@GOTPAGE
Lloh16:
	ldr	x8, [x8, _RM_GIN_ID@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
Lloh18:
	adrp	x8, _XLOG_GIN_UPDATE_META_PAGE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _XLOG_GIN_UPDATE_META_PAGE@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	bl	_XLogInsert
	mov	x1, x0
	mov	x0, x20
	bl	_PageSetLSN
LBB0_3:
	mov	x0, x19
	bl	_UnlockReleaseBuffer
	bl	_END_CRIT_SECTION
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_GIN_METAPAGE_BLKNO,4,2         ; @GIN_METAPAGE_BLKNO
	.comm	_GIN_EXCLUSIVE,4,2              ; @GIN_EXCLUSIVE
	.comm	_InvalidBlockNumber,4,2         ; @InvalidBlockNumber
	.comm	_REGBUF_WILL_INIT,4,2           ; @REGBUF_WILL_INIT
	.comm	_REGBUF_STANDARD,4,2            ; @REGBUF_STANDARD
	.comm	_RM_GIN_ID,4,2                  ; @RM_GIN_ID
	.comm	_XLOG_GIN_UPDATE_META_PAGE,4,2  ; @XLOG_GIN_UPDATE_META_PAGE
.subsections_via_symbols
