	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gistEmptyAllBuffers
_gistEmptyAllBuffers:                   ## @gistEmptyAllBuffers
	.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
	movq	%rdi, %r12
	movq	(%rdi), %rax
	movq	8(%rdi), %r14
	movl	(%rax), %edi
	callq	_MemoryContextSwitchTo
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	(%r14), %ecx
	testl	%ecx, %ecx
	jle	LBB0_10
## %bb.1:
	movq	_NIL@GOTPCREL(%rip), %r15
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_DEBUG2@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r13d, %edx
	callq	_elog
	cmpq	$1, -56(%rbp)                   ## 8-byte Folded Reload
	movq	%r13, %rcx
	jle	LBB0_10
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	leaq	-1(%rcx), %r13
	movq	8(%r14), %rax
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	-8(%rax,%rcx,8), %rdi
	cmpq	(%r15), %rdi
	jne	LBB0_4
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=2
	movq	%r12, %rdi
	callq	_gistProcessEmptyingQueue
	movq	8(%r14), %rax
	movq	(%rax,%r13,8), %rdi
	cmpq	(%r15), %rdi
	je	LBB0_9
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	callq	_linitial
	cmpq	$0, (%rax)
	je	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	movq	%rax, %rbx
	cmpl	$0, 8(%rax)
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=2
	movl	20(%r14), %edi
	callq	_MemoryContextSwitchTo
	movl	$1, 8(%rbx)
	movl	16(%r14), %esi
	movq	%rbx, %rdi
	callq	_lcons
	movl	%eax, 16(%r14)
	movq	(%r12), %rax
	movl	(%rax), %edi
	callq	_MemoryContextSwitchTo
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=2
	movq	8(%r14), %rax
	movq	(%rax,%r13,8), %rdi
	callq	_list_delete_first
	movq	%rax, %rdi
	movq	8(%r14), %rax
	movq	%rdi, (%rax,%r13,8)
	cmpq	(%r15), %rdi
	jne	LBB0_4
	jmp	LBB0_9
LBB0_10:
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_MemoryContextSwitchTo          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_NIL,8,3                        ## @NIL
	.comm	_DEBUG2,4,2                     ## @DEBUG2
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"emptied all buffers at level %d"

	.no_dead_strip	_gistEmptyAllBuffers
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gistEmptyAllBuffers
_gistEmptyAllBuffers:                   ; @gistEmptyAllBuffers
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	ldp	x8, x24, [x0]
	ldr	w0, [x8]
	bl	_MemoryContextSwitchTo
	mov	x20, x0
	ldr	w25, [x24]
	cmp	w25, #1
	b.lt	LBB0_11
; %bb.1:
Lloh0:
	adrp	x26, _NIL@GOTPAGE
Lloh1:
	ldr	x26, [x26, _NIL@GOTPAGEOFF]
Lloh2:
	adrp	x27, _DEBUG2@GOTPAGE
Lloh3:
	ldr	x27, [x27, _DEBUG2@GOTPAGEOFF]
	mov	w28, #1
Lloh4:
	adrp	x21, l_.str@PAGE
Lloh5:
	add	x21, x21, l_.str@PAGEOFF
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x27]
	mov	x1, x21
	mov	x2, x22
	bl	_elog
	cmp	x25, #1
	mov	x25, x22
	b.le	LBB0_11
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_9 Depth 2
                                        ;       Child Loop BB0_4 Depth 3
	sub	x22, x25, #1
	b	LBB0_9
LBB0_4:                                 ;   Parent Loop BB0_3 Depth=1
                                        ;     Parent Loop BB0_9 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	x8, [x26]
	cmp	x0, x8
	b.eq	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=3
	bl	_linitial
	ldr	x8, [x0]
	cbnz	x8, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=3
	ldr	x8, [x24, #8]
	lsl	x23, x22, #3
	ldr	x0, [x8, x23]
	bl	_list_delete_first
	ldr	x8, [x24, #8]
	str	x0, [x8, x23]
	b	LBB0_4
LBB0_7:                                 ;   in Loop: Header=BB0_9 Depth=2
	mov	x23, x0
	ldr	w8, [x0, #8]
	cbz	w8, LBB0_10
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=2
	mov	x0, x19
	bl	_gistProcessEmptyingQueue
LBB0_9:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_4 Depth 3
	ldr	x8, [x24, #8]
	ldr	x0, [x8, x22, lsl #3]
	b	LBB0_4
LBB0_10:                                ;   in Loop: Header=BB0_9 Depth=2
	ldr	w0, [x24, #20]
	bl	_MemoryContextSwitchTo
	str	w28, [x23, #8]
	ldr	w1, [x24, #16]
	mov	x0, x23
	bl	_lcons
	str	w0, [x24, #16]
	ldr	x8, [x19]
	ldr	w0, [x8]
	bl	_MemoryContextSwitchTo
	b	LBB0_8
LBB0_11:
	mov	x0, x20
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_MemoryContextSwitchTo
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_NIL,8,3                        ; @NIL
	.comm	_DEBUG2,4,2                     ; @DEBUG2
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"emptied all buffers at level %d"

	.no_dead_strip	_gistEmptyAllBuffers
.subsections_via_symbols
