	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pblk_gc_run
_pblk_gc_run:                           ## @pblk_gc_run
	.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
	movq	%rdi, %r13
	leaq	4(%rdi), %rbx
	callq	_pblk_gc_free_full_lines
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_pblk_gc_should_run
	testl	%eax, %eax
	je	LBB0_11
## %bb.1:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_atomic_read
	movq	_PBLK_GC_L_QD@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jge	LBB0_11
## %bb.2:
	leaq	16(%r13), %r15
	leaq	8(%r13), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	leaq	12(%r13), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	$1, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%r13), %rax
	movq	-8(%rax,%rbx,8), %r14
	movq	%r15, %rdi
	callq	_spin_lock
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_pblk_gc_get_victim_line
	testq	%rax, %rax
	jne	LBB0_4
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r15, %rdi
	callq	_spin_unlock
	movslq	(%r13), %rax
	cmpq	%rax, %rbx
	jge	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	leaq	1(%rbx), %rax
	movq	_PBLK_GC_NR_LISTS@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	cmpq	%rcx, %rbx
	movq	%rax, %rbx
	jl	LBB0_3
LBB0_11:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	%rax, %r12
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	leaq	12(%r12), %r14
	movq	%r14, %rdi
	callq	_spin_lock
	movq	(%r12), %rax
	xorl	%edi, %edi
	movq	_PBLK_LINESTATE_CLOSED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	setne	%dil
	callq	_WARN_ON
	movq	_PBLK_LINESTATE_GC@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r12)
	movq	%r13, %rdi
	callq	_pblk_disk_name
	movl	16(%r12), %esi
	movq	(%r12), %rdx
	movl	%eax, %edi
	callq	_trace_pblk_line_state
	movq	%r14, %rdi
	callq	_spin_unlock
	addq	$8, %r12
	movq	%r12, %rdi
	callq	_list_del
	movq	%r15, %rdi
	callq	_spin_unlock
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_spin_lock
	movq	%r12, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_list_add_tail
	movq	%rbx, %rdi
	callq	_spin_unlock
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_atomic_inc_return
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_pblk_gc_reader_kick
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_pblk_gc_should_run
	testl	%eax, %eax
	je	LBB0_11
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	_PBLK_GC_L_QD@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	jge	LBB0_11
## %bb.5:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%r15, %rdi
	callq	_spin_lock
	movq	%r13, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_pblk_gc_get_victim_line
	movq	%rax, %r12
	testq	%rax, %rax
	jne	LBB0_6
## %bb.8:
	movq	%r15, %rdi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PBLK_GC_L_QD,4,2               ## @PBLK_GC_L_QD
	.comm	_PBLK_LINESTATE_CLOSED,8,3      ## @PBLK_LINESTATE_CLOSED
	.comm	_PBLK_LINESTATE_GC,8,3          ## @PBLK_LINESTATE_GC
	.comm	_PBLK_GC_NR_LISTS,4,2           ## @PBLK_GC_NR_LISTS
	.no_dead_strip	_pblk_gc_run
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pblk_gc_run
_pblk_gc_run:                           ; @pblk_gc_run
	.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
	add	x20, x0, #4
	bl	_pblk_gc_free_full_lines
	mov	x0, x20
	mov	x1, x19
	bl	_pblk_gc_should_run
	cbz	w0, LBB0_5
; %bb.1:
	mov	x0, x20
	bl	_atomic_read
Lloh0:
	adrp	x8, _PBLK_GC_L_QD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PBLK_GC_L_QD@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ge	LBB0_5
; %bb.2:
	mov	x26, #0
	add	x21, x19, #16
	add	x22, x19, #8
	add	x23, x19, #12
Lloh3:
	adrp	x27, _PBLK_GC_NR_LISTS@GOTPAGE
Lloh4:
	ldr	x27, [x27, _PBLK_GC_NR_LISTS@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #24]
	ldr	x24, [x8, x26, lsl #3]
	mov	x0, x21
	bl	_spin_lock
	mov	x0, x19
	mov	x1, x24
	bl	_pblk_gc_get_victim_line
	cbnz	x0, LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x26, x26, #1
	mov	x0, x21
	bl	_spin_unlock
	ldrsw	x8, [x19]
	ldrsw	x9, [x27]
	cmp	x26, x8
	ccmp	x26, x9, #0, lt
	b.lt	LBB0_3
LBB0_5:
	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
	ret
LBB0_6:
	mov	x25, x0
Lloh5:
	adrp	x28, _PBLK_LINESTATE_CLOSED@GOTPAGE
Lloh6:
	ldr	x28, [x28, _PBLK_LINESTATE_CLOSED@GOTPAGEOFF]
Lloh7:
	adrp	x27, _PBLK_LINESTATE_GC@GOTPAGE
Lloh8:
	ldr	x27, [x27, _PBLK_LINESTATE_GC@GOTPAGEOFF]
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	add	x26, x25, #12
	mov	x0, x26
	bl	_spin_lock
	ldr	x8, [x25]
	ldr	x9, [x28]
	cmp	x8, x9
	cset	w0, ne
	bl	_WARN_ON
	ldr	x8, [x27]
	str	x8, [x25]
	mov	x0, x19
	bl	_pblk_disk_name
	ldr	w1, [x25, #16]
	ldr	x2, [x25], #8
	bl	_trace_pblk_line_state
	mov	x0, x26
	bl	_spin_unlock
	mov	x0, x25
	bl	_list_del
	mov	x0, x21
	bl	_spin_unlock
	mov	x0, x22
	bl	_spin_lock
	mov	x0, x25
	mov	x1, x23
	bl	_list_add_tail
	mov	x0, x22
	bl	_spin_unlock
	mov	x0, x20
	bl	_atomic_inc_return
	mov	x25, x0
	mov	x0, x20
	bl	_pblk_gc_reader_kick
	mov	x0, x20
	mov	x1, x19
	bl	_pblk_gc_should_run
	cbz	w0, LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
Lloh9:
	adrp	x8, _PBLK_GC_L_QD@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PBLK_GC_L_QD@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmp	w25, w8
	b.ge	LBB0_5
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x21
	bl	_spin_lock
	mov	x0, x19
	mov	x1, x24
	bl	_pblk_gc_get_victim_line
	mov	x25, x0
	cbnz	x0, LBB0_7
; %bb.10:
	mov	x0, x21
	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	_spin_unlock
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_PBLK_GC_L_QD,4,2               ; @PBLK_GC_L_QD
	.comm	_PBLK_LINESTATE_CLOSED,8,3      ; @PBLK_LINESTATE_CLOSED
	.comm	_PBLK_LINESTATE_GC,8,3          ; @PBLK_LINESTATE_GC
	.comm	_PBLK_GC_NR_LISTS,4,2           ; @PBLK_GC_NR_LISTS
	.no_dead_strip	_pblk_gc_run
.subsections_via_symbols
