	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ginDeletePage
_ginDeletePage:                         ## @ginDeletePage
	.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
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rbx
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r14
	movq	_MAIN_FORKNUM@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	_RBM_NORMAL@GOTPCREL(%rip), %r15
	movl	(%r15), %ecx
	movl	8(%rdi), %edi
	movl	12(%r14), %r8d
	callq	_ReadBufferExtended
	movl	%eax, %r13d
	movl	(%r12), %esi
	movl	(%r15), %ecx
	movl	8(%r14), %edi
	movl	12(%r14), %r8d
	movq	%rbx, %rdx
	callq	_ReadBufferExtended
	movl	%eax, %ebx
	movl	(%r12), %esi
	movl	(%r15), %ecx
	movl	8(%r14), %edi
	movl	12(%r14), %r8d
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	callq	_ReadBufferExtended
	movl	%eax, -76(%rbp)                 ## 4-byte Spill
	movq	_GIN_EXCLUSIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r13d, %edi
	callq	_LockBuffer
	movl	%ebx, %edi
	callq	_BufferGetPage
	movl	%eax, %r15d
	movl	%eax, %edi
	callq	_GinPageGetOpaque
	movq	(%rax), %r12
	xorl	%eax, %eax
	callq	_ReadNewTransactionId
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_GinPageSetDeleteXid
	movl	8(%r14), %edi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	%r12, %rdx
	callq	_PredicateLockPageCombine
	xorl	%eax, %eax
	callq	_START_CRIT_SECTION
	movl	%r13d, %edi
	callq	_BufferGetPage
	movl	%eax, %edi
	callq	_GinPageGetOpaque
	movq	%r12, (%rax)
	movl	-76(%rbp), %r15d                ## 4-byte Reload
	movl	%r15d, %edi
	callq	_BufferGetPage
	movl	%eax, -72(%rbp)                 ## 4-byte Spill
	movl	%eax, %edi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_GinPageDeletePostingItem
	movl	%ebx, %edi
	callq	_BufferGetPage
	movl	%eax, %edi
	movq	_GIN_DELETED@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	%edi, -68(%rbp)                 ## 4-byte Spill
	callq	_GinPageGetOpaque
	movl	%r12d, 8(%rax)
	movl	%r15d, %r12d
	movl	%r15d, %edi
	callq	_MarkBufferDirty
	movl	%r13d, -56(%rbp)                ## 4-byte Spill
	movl	%r13d, %edi
	callq	_MarkBufferDirty
	movl	%ebx, -64(%rbp)                 ## 4-byte Spill
	movl	%ebx, %edi
	callq	_MarkBufferDirty
	movl	8(%r14), %edi
	callq	_RelationNeedsWAL
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	callq	_XLogBeginInsert
	xorl	%edi, %edi
	movl	-64(%rbp), %esi                 ## 4-byte Reload
	xorl	%edx, %edx
	callq	_XLogRegisterBuffer
	movq	_REGBUF_STANDARD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$1, %edi
	movl	%r12d, %esi
	callq	_XLogRegisterBuffer
	movl	$2, %edi
	movl	-56(%rbp), %r13d                ## 4-byte Reload
	movl	%r13d, %esi
	xorl	%edx, %edx
	callq	_XLogRegisterBuffer
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, -84(%rbp)
	movl	-68(%rbp), %r15d                ## 4-byte Reload
	movl	%r15d, %edi
	callq	_GinPageGetOpaque
	movq	(%rax), %rax
	movq	%rax, -96(%rbp)
	movl	%r15d, %edi
	callq	_GinPageGetDeleteXid
	movl	%eax, -88(%rbp)
	leaq	-96(%rbp), %rdi
	movl	$16, %esi
	callq	_XLogRegisterData
	movq	_RM_GIN_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_XLOG_GIN_DELETE_PAGE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_XLogInsert
	movl	%eax, %ebx
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_PageSetLSN
	movl	-72(%rbp), %edi                 ## 4-byte Reload
	movl	%ebx, %esi
	callq	_PageSetLSN
	movl	%r13d, %edi
	callq	_BufferGetPage
	movl	%eax, %edi
	movl	%ebx, %esi
	callq	_PageSetLSN
LBB0_2:
	movl	%r12d, %edi
	callq	_ReleaseBuffer
	movl	-56(%rbp), %edi                 ## 4-byte Reload
	callq	_UnlockReleaseBuffer
	movl	-64(%rbp), %edi                 ## 4-byte Reload
	callq	_ReleaseBuffer
	xorl	%eax, %eax
	callq	_END_CRIT_SECTION
	movq	(%r14), %rax
	incl	(%rax)
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAIN_FORKNUM,4,2               ## @MAIN_FORKNUM
	.comm	_RBM_NORMAL,4,2                 ## @RBM_NORMAL
	.comm	_GIN_EXCLUSIVE,4,2              ## @GIN_EXCLUSIVE
	.comm	_GIN_DELETED,4,2                ## @GIN_DELETED
	.comm	_REGBUF_STANDARD,4,2            ## @REGBUF_STANDARD
	.comm	_RM_GIN_ID,4,2                  ## @RM_GIN_ID
	.comm	_XLOG_GIN_DELETE_PAGE,4,2       ## @XLOG_GIN_DELETE_PAGE
	.no_dead_strip	_ginDeletePage
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ginDeletePage
_ginDeletePage:                         ; @ginDeletePage
	.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	x23, x4
	mov	x22, x3
	mov	x24, x1
	mov	x19, x0
	ldr	w0, [x0, #8]
Lloh0:
	adrp	x25, _MAIN_FORKNUM@GOTPAGE
Lloh1:
	ldr	x25, [x25, _MAIN_FORKNUM@GOTPAGEOFF]
	ldr	w1, [x25]
Lloh2:
	adrp	x26, _RBM_NORMAL@GOTPAGE
Lloh3:
	ldr	x26, [x26, _RBM_NORMAL@GOTPAGEOFF]
	ldr	w3, [x26]
	ldr	w4, [x19, #12]
	bl	_ReadBufferExtended
	mov	x20, x0
	ldr	w1, [x25]
	ldr	w3, [x26]
	ldp	w0, w4, [x19, #8]
	mov	x2, x24
	bl	_ReadBufferExtended
	mov	x21, x0
	ldr	w1, [x25]
	ldr	w3, [x26]
	ldp	w0, w4, [x19, #8]
	mov	x2, x22
	bl	_ReadBufferExtended
	mov	x22, x0
Lloh4:
	adrp	x8, _GIN_EXCLUSIVE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _GIN_EXCLUSIVE@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_LockBuffer
	mov	x0, x21
	bl	_BufferGetPage
	mov	x25, x0
	bl	_GinPageGetOpaque
	ldr	x26, [x0]
	bl	_ReadNewTransactionId
	mov	x1, x0
	mov	x0, x25
	bl	_GinPageSetDeleteXid
	ldr	w0, [x19, #8]
	mov	x1, x24
	mov	x2, x26
	bl	_PredicateLockPageCombine
	bl	_START_CRIT_SECTION
	mov	x0, x20
	bl	_BufferGetPage
	bl	_GinPageGetOpaque
	str	x26, [x0]
	mov	x0, x22
	bl	_BufferGetPage
	mov	x24, x0
	mov	x1, x23
	bl	_GinPageDeletePostingItem
	mov	x0, x21
	bl	_BufferGetPage
	mov	x25, x0
Lloh7:
	adrp	x8, _GIN_DELETED@GOTPAGE
Lloh8:
	ldr	x8, [x8, _GIN_DELETED@GOTPAGEOFF]
Lloh9:
	ldr	w26, [x8]
	bl	_GinPageGetOpaque
	str	w26, [x0, #8]
	mov	x0, x22
	bl	_MarkBufferDirty
	mov	x0, x20
	bl	_MarkBufferDirty
	mov	x0, x21
	bl	_MarkBufferDirty
	ldr	w0, [x19, #8]
	bl	_RelationNeedsWAL
	cbz	x0, LBB0_2
; %bb.1:
	bl	_XLogBeginInsert
	mov	w0, #0
	mov	x1, x21
	mov	w2, #0
	bl	_XLogRegisterBuffer
Lloh10:
	adrp	x8, _REGBUF_STANDARD@GOTPAGE
Lloh11:
	ldr	x8, [x8, _REGBUF_STANDARD@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
	mov	w0, #1
	mov	x1, x22
	bl	_XLogRegisterBuffer
	mov	w0, #2
	mov	x1, x20
	mov	w2, #0
	bl	_XLogRegisterBuffer
	str	w23, [sp, #12]
	mov	x0, x25
	bl	_GinPageGetOpaque
	ldr	x8, [x0]
	str	x8, [sp]
	mov	x0, x25
	bl	_GinPageGetDeleteXid
	str	w0, [sp, #8]
	mov	x0, sp
	mov	w1, #16
	bl	_XLogRegisterData
Lloh13:
	adrp	x8, _RM_GIN_ID@GOTPAGE
Lloh14:
	ldr	x8, [x8, _RM_GIN_ID@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
Lloh16:
	adrp	x8, _XLOG_GIN_DELETE_PAGE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _XLOG_GIN_DELETE_PAGE@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	bl	_XLogInsert
	mov	x23, x0
	mov	x0, x25
	mov	x1, x23
	bl	_PageSetLSN
	mov	x0, x24
	mov	x1, x23
	bl	_PageSetLSN
	mov	x0, x20
	bl	_BufferGetPage
	mov	x1, x23
	bl	_PageSetLSN
LBB0_2:
	mov	x0, x22
	bl	_ReleaseBuffer
	mov	x0, x20
	bl	_UnlockReleaseBuffer
	mov	x0, x21
	bl	_ReleaseBuffer
	bl	_END_CRIT_SECTION
	ldr	x8, [x19]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	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 AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_MAIN_FORKNUM,4,2               ; @MAIN_FORKNUM
	.comm	_RBM_NORMAL,4,2                 ; @RBM_NORMAL
	.comm	_GIN_EXCLUSIVE,4,2              ; @GIN_EXCLUSIVE
	.comm	_GIN_DELETED,4,2                ; @GIN_DELETED
	.comm	_REGBUF_STANDARD,4,2            ; @REGBUF_STANDARD
	.comm	_RM_GIN_ID,4,2                  ; @RM_GIN_ID
	.comm	_XLOG_GIN_DELETE_PAGE,4,2       ; @XLOG_GIN_DELETE_PAGE
	.no_dead_strip	_ginDeletePage
.subsections_via_symbols
