	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gistXLogSplit                  ## -- Begin function gistXLogSplit
	.p2align	4, 0x90
_gistXLogSplit:                         ## @gistXLogSplit
	.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	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r14d
	movq	%rsi, %r15
	xorl	%eax, %eax
	testq	%rsi, %rsi
	je	LBB0_3
## %bb.1:
	movq	%r15, %rsi
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	incl	%eax
	movq	24(%rsi), %rsi
	testq	%rsi, %rsi
	jne	LBB0_2
LBB0_3:
	movl	%edx, -32(%rbp)
	movl	%ecx, -36(%rbp)
	movl	%edi, -48(%rbp)
	movl	%eax, -40(%rbp)
	movl	%r9d, -44(%rbp)
	xorl	%eax, %eax
	callq	_XLogBeginInsert
	movl	%r14d, %edi
	callq	_BufferIsValid
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	_REGBUF_STANDARD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%edi, %edi
	movl	%r14d, %esi
	callq	_XLogRegisterBuffer
LBB0_5:
	leaq	-48(%rbp), %rdi
	movl	$20, %esi
	callq	_XLogRegisterData
	testq	%r15, %r15
	je	LBB0_8
## %bb.6:
	movl	$1, %ebx
	movq	_REGBUF_WILL_INIT@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	20(%r15), %esi
	movl	(%r14), %edx
	movl	%ebx, %edi
	callq	_XLogRegisterBuffer
	leaq	16(%r15), %rsi
	movl	%ebx, %edi
	movl	$4, %edx
	callq	_XLogRegisterBufData
	movq	8(%r15), %rsi
	movl	(%r15), %edx
	movl	%ebx, %edi
	callq	_XLogRegisterBufData
	incl	%ebx
	movq	24(%r15), %r15
	testq	%r15, %r15
	jne	LBB0_7
LBB0_8:
	movq	_RM_GIST_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_XLOG_GIST_PAGE_SPLIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_XLogInsert
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_REGBUF_STANDARD,4,2            ## @REGBUF_STANDARD
	.comm	_REGBUF_WILL_INIT,4,2           ## @REGBUF_WILL_INIT
	.comm	_RM_GIST_ID,4,2                 ## @RM_GIST_ID
	.comm	_XLOG_GIST_PAGE_SPLIT,4,2       ## @XLOG_GIST_PAGE_SPLIT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gistXLogSplit                  ; -- Begin function gistXLogSplit
	.p2align	2
_gistXLogSplit:                         ; @gistXLogSplit
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x20, x4
	mov	x19, x1
	mov	w8, #0
	cbz	x1, LBB0_3
; %bb.1:
	mov	x9, x19
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	w8, w8, #1
	ldr	x9, [x9, #24]
	cbnz	x9, LBB0_2
LBB0_3:
	stp	w3, w2, [sp, #20]
	stp	w5, w8, [sp, #12]
	str	w0, [sp, #8]
	bl	_XLogBeginInsert
	mov	x0, x20
	bl	_BufferIsValid
	cbz	x0, LBB0_5
; %bb.4:
Lloh0:
	adrp	x8, _REGBUF_STANDARD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _REGBUF_STANDARD@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w0, #0
	mov	x1, x20
	bl	_XLogRegisterBuffer
LBB0_5:
	add	x0, sp, #8
	mov	w1, #20
	bl	_XLogRegisterData
	cbz	x19, LBB0_8
; %bb.6:
	mov	w20, #1
Lloh3:
	adrp	x21, _REGBUF_WILL_INIT@GOTPAGE
Lloh4:
	ldr	x21, [x21, _REGBUF_WILL_INIT@GOTPAGEOFF]
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x19, #20]
	ldr	w2, [x21]
	mov	x0, x20
	bl	_XLogRegisterBuffer
	add	x1, x19, #16
	mov	x0, x20
	mov	w2, #4
	bl	_XLogRegisterBufData
	ldr	x1, [x19, #8]
	ldr	w2, [x19]
	mov	x0, x20
	bl	_XLogRegisterBufData
	add	w20, w20, #1
	ldr	x19, [x19, #24]
	cbnz	x19, LBB0_7
LBB0_8:
Lloh5:
	adrp	x8, _RM_GIST_ID@GOTPAGE
Lloh6:
	ldr	x8, [x8, _RM_GIST_ID@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x8, _XLOG_GIST_PAGE_SPLIT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _XLOG_GIST_PAGE_SPLIT@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	bl	_XLogInsert
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_REGBUF_STANDARD,4,2            ; @REGBUF_STANDARD
	.comm	_REGBUF_WILL_INIT,4,2           ; @REGBUF_WILL_INIT
	.comm	_RM_GIST_ID,4,2                 ; @RM_GIST_ID
	.comm	_XLOG_GIST_PAGE_SPLIT,4,2       ; @XLOG_GIST_PAGE_SPLIT
.subsections_via_symbols
