	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gistPopItupFromNodeBuffer      ## -- Begin function gistPopItupFromNodeBuffer
	.p2align	4, 0x90
_gistPopItupFromNodeBuffer:             ## @gistPopItupFromNodeBuffer
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpq	$0, (%rsi)
	jle	LBB0_1
## %bb.2:
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	8(%rsi), %rdi
	testq	%rdi, %rdi
	jne	LBB0_4
## %bb.3:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_gistLoadNodeBuffer
	movq	8(%rbx), %rdi
LBB0_4:
	movq	%r14, %rsi
	callq	_gistGetItupFromPage
	movq	8(%rbx), %rdi
	callq	_PAGE_IS_EMPTY
	movl	$1, %r14d
	testq	%rax, %rax
	je	LBB0_8
## %bb.5:
	movq	(%rbx), %rax
	movq	8(%rbx), %rdx
	leaq	-1(%rax), %rcx
	movq	%rcx, (%rbx)
	movq	(%rdx), %r12
	movq	_InvalidBlockNumber@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %r12
	jne	LBB0_6
## %bb.7:
	xorl	%edi, %edi
	testq	%rcx, %rcx
	sete	%dil
	callq	_Assert
	movq	8(%rbx), %rdi
	callq	_pfree
	movq	$0, 8(%rbx)
	jmp	LBB0_8
LBB0_1:
	xorl	%r14d, %r14d
	jmp	LBB0_8
LBB0_6:
	xorl	%edi, %edi
	cmpq	$2, %rax
	setge	%dil
	callq	_Assert
	movl	(%r15), %edi
	movq	8(%rbx), %rdx
	movq	%r12, %rsi
	callq	_ReadTempFileBlock
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_gistBuffersReleaseBlock
LBB0_8:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_InvalidBlockNumber,8,3         ## @InvalidBlockNumber
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gistPopItupFromNodeBuffer      ; -- Begin function gistPopItupFromNodeBuffer
	.p2align	2
_gistPopItupFromNodeBuffer:             ; @gistPopItupFromNodeBuffer
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldr	x8, [x1]
	cmp	x8, #1
	b.lt	LBB0_6
; %bb.1:
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
	ldr	x0, [x1, #8]
	cbnz	x0, LBB0_3
; %bb.2:
	mov	x0, x20
	mov	x1, x19
	bl	_gistLoadNodeBuffer
	ldr	x0, [x19, #8]
LBB0_3:
	mov	x1, x21
	bl	_gistGetItupFromPage
	ldr	x0, [x19, #8]
	bl	_PAGE_IS_EMPTY
	cbz	x0, LBB0_8
; %bb.4:
	ldp	x8, x10, [x19]
	sub	x9, x8, #1
	str	x9, [x19]
	ldr	x21, [x10]
Lloh0:
	adrp	x10, _InvalidBlockNumber@GOTPAGE
Lloh1:
	ldr	x10, [x10, _InvalidBlockNumber@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	cmp	x21, x10
	b.ne	LBB0_7
; %bb.5:
	cmp	x9, #0
	cset	w0, eq
	bl	_Assert
	ldr	x0, [x19, #8]
	bl	_pfree
	str	xzr, [x19, #8]
	b	LBB0_8
LBB0_6:
	mov	w0, #0
	b	LBB0_9
LBB0_7:
	cmp	x8, #1
	cset	w0, gt
	bl	_Assert
	ldr	w0, [x20]
	ldr	x2, [x19, #8]
	mov	x1, x21
	bl	_ReadTempFileBlock
	mov	x0, x20
	mov	x1, x21
	bl	_gistBuffersReleaseBlock
LBB0_8:
	mov	w0, #1
LBB0_9:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_InvalidBlockNumber,8,3         ; @InvalidBlockNumber
.subsections_via_symbols
