	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bch_gc_thread
_bch_gc_thread:                         ## @bch_gc_thread
	.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
	movq	%rdi, %r12
	movq	_CACHE_SET_IO_DISABLE@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	4(%r12), %r14d
	xorl	%eax, %eax
	callq	_kthread_should_stop
	movb	$1, %bl
	testq	%rax, %rax
	jne	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	(%r15), %edi
	movq	%r12, %rsi
	callq	_test_bit
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r12, %rdi
	callq	_gc_should_run
	testq	%rax, %rax
	setne	%bl
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	movzbl	%bl, %esi
	movl	%r14d, %edi
	callq	_wait_event_interruptible
	xorl	%eax, %eax
	callq	_kthread_should_stop
	testq	%rax, %rax
	jne	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	(%r15), %edi
	movq	%r12, %rsi
	callq	_test_bit
	testq	%rax, %rax
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r12, %rdi
	callq	_set_gc_sectors
	movq	%r12, %rdi
	callq	_bch_btree_gc
	jmp	LBB0_1
LBB0_7:
	xorl	%eax, %eax
	callq	_wait_for_kthread_stop
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CACHE_SET_IO_DISABLE,4,2       ## @CACHE_SET_IO_DISABLE
	.no_dead_strip	_bch_gc_thread
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bch_gc_thread
_bch_gc_thread:                         ; @bch_gc_thread
	.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
	mov	x19, x0
Lloh0:
	adrp	x21, _CACHE_SET_IO_DISABLE@GOTPAGE
Lloh1:
	ldr	x21, [x21, _CACHE_SET_IO_DISABLE@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w20, [x19, #4]
	bl	_kthread_should_stop
	cbnz	x0, LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w0, [x21]
	mov	x1, x19
	bl	_test_bit
	cbz	x0, LBB0_7
LBB0_3:                                 ;   in Loop: Header=BB0_1 Depth=1
	mov	w1, #1
LBB0_4:                                 ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x20
	bl	_wait_event_interruptible
	bl	_kthread_should_stop
	cbnz	x0, LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w0, [x21]
	mov	x1, x19
	bl	_test_bit
	cbnz	x0, LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x19
	bl	_set_gc_sectors
	mov	x0, x19
	bl	_bch_btree_gc
	b	LBB0_1
LBB0_7:                                 ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x19
	bl	_gc_should_run
	cmp	x0, #0
	cset	w1, ne
	b	LBB0_4
LBB0_8:
	bl	_wait_for_kthread_stop
	mov	w0, #0
	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 AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_CACHE_SET_IO_DISABLE,4,2       ; @CACHE_SET_IO_DISABLE
	.no_dead_strip	_bch_gc_thread
.subsections_via_symbols
