	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_moving
_read_moving:                           ## @read_moving
	.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, %rbx
	leaq	-48(%rbp), %rdi
	callq	_closure_init_stack
	leaq	12(%rbx), %rsi
	movq	_CACHE_SET_STOPPING@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	callq	_test_bit
	testl	%eax, %eax
	je	LBB0_1
LBB0_12:
	leaq	-48(%rbp), %rdi
	callq	_closure_sync
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	leaq	4(%rbx), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r14
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_bch_keybuf_del
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r12), %edi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_test_bit
	testl	%eax, %eax
	jne	LBB0_12
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	_moving_pred@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	movq	%rbx, %rsi
	movq	_MAX_KEY@GOTPCREL(%rip), %rdx
	callq	_bch_keybuf_next_rescan
	testq	%rax, %rax
	je	LBB0_12
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %r13
	movq	%rax, %r15
	addq	$8, %r15
	movq	%rbx, %rdi
	movq	%r15, %rsi
	xorl	%edx, %edx
	callq	_ptr_stale
	testq	%rax, %rax
	jne	LBB0_4
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	callq	_KEY_SIZE
	movq	_PAGE_SECTORS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_DIV_ROUND_UP
                                        ## kill: def $eax killed $eax def $rax
	leal	40(,%rax,4), %edi
	movl	(%r14), %esi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %r12
	movq	%rax, (%r13)
	movq	%r13, 32(%rax)
	movq	%r15, %rdi
	callq	_KEY_INODE
	movl	%eax, 24(%r12)
	movq	%rbx, 16(%r12)
	movl	8(%rbx), %eax
	movl	%eax, 8(%r12)
	movq	%r12, %rdi
	callq	_moving_init
	movq	%r12, %r14
	addq	$4, %r14
	movq	_REQ_OP_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_bio_set_op_attrs
	movq	_read_moving_endio@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r12)
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_bch_bio_alloc_pages
	testq	%rax, %rax
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	callq	_trace_bcache_gc_copy
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_down
	movq	_read_moving_submit@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	xorl	%edx, %edx
	leaq	-48(%rbp), %rcx
	callq	_closure_call
	movq	_CACHE_SET_STOPPING@GOTPCREL(%rip), %r12
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r14
	jmp	LBB0_5
LBB0_9:
	movq	(%r13), %rdi
	callq	_IS_ERR_OR_NULL
	testl	%eax, %eax
	jne	LBB0_11
## %bb.10:
	movq	(%r13), %rdi
	callq	_kfree
LBB0_11:
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_bch_keybuf_del
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_CACHE_SET_STOPPING,4,2         ## @CACHE_SET_STOPPING
	.comm	_MAX_KEY,4,2                    ## @MAX_KEY
	.comm	_moving_pred,4,2                ## @moving_pred
	.comm	_PAGE_SECTORS,4,2               ## @PAGE_SECTORS
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_REQ_OP_READ,4,2                ## @REQ_OP_READ
	.comm	_read_moving_endio,4,2          ## @read_moving_endio
	.comm	_read_moving_submit,4,2         ## @read_moving_submit
	.no_dead_strip	_read_moving
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_moving
_read_moving:                           ; @read_moving
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x0, sp, #8
	bl	_closure_init_stack
	add	x20, x19, #12
Lloh0:
	adrp	x27, _CACHE_SET_STOPPING@GOTPAGE
Lloh1:
	ldr	x27, [x27, _CACHE_SET_STOPPING@GOTPAGEOFF]
	ldr	w0, [x27]
	mov	x1, x20
	bl	_test_bit
	cbz	w0, LBB0_2
LBB0_1:
	add	x0, sp, #8
	bl	_closure_sync
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_2:
	add	x8, x19, #4
	str	x8, [sp]                        ; 8-byte Folded Spill
Lloh2:
	adrp	x28, _moving_pred@GOTPAGE
Lloh3:
	ldr	x28, [x28, _moving_pred@GOTPAGEOFF]
Lloh4:
	adrp	x22, _MAX_KEY@GOTPAGE
Lloh5:
	ldr	x22, [x22, _MAX_KEY@GOTPAGEOFF]
Lloh6:
	adrp	x21, _GFP_KERNEL@GOTPAGE
Lloh7:
	ldr	x21, [x21, _GFP_KERNEL@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x19
	mov	x1, x23
	bl	_bch_keybuf_del
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x27]
	mov	x1, x20
	bl	_test_bit
	cbnz	w0, LBB0_1
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w3, [x28]
	mov	x0, x19
	mov	x1, x19
	mov	x2, x22
	bl	_bch_keybuf_next_rescan
	cbz	x0, LBB0_1
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x23, x0
	add	x24, x0, #8
	mov	x0, x19
	mov	x1, x24
	mov	w2, #0
	bl	_ptr_stale
	cbnz	x0, LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x24
	bl	_KEY_SIZE
Lloh8:
	adrp	x8, _PAGE_SECTORS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PAGE_SECTORS@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	bl	_DIV_ROUND_UP
	lsl	w8, w0, #2
	add	w0, w8, #40
	ldr	w1, [x21]
	bl	_kzalloc
	cbz	x0, LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x25, x0
	str	x0, [x23]
	str	x23, [x0, #32]
	mov	x0, x24
	bl	_KEY_INODE
	str	w0, [x25, #24]
	str	x19, [x25, #16]
	ldr	w8, [x19, #8]
	str	w8, [x25, #8]
	mov	x0, x25
	bl	_moving_init
	add	x26, x25, #4
Lloh11:
	adrp	x8, _REQ_OP_READ@GOTPAGE
Lloh12:
	ldr	x8, [x8, _REQ_OP_READ@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x26
	mov	w2, #0
	bl	_bio_set_op_attrs
Lloh14:
	adrp	x8, _read_moving_endio@GOTPAGE
Lloh15:
	ldr	x8, [x8, _read_moving_endio@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	str	w8, [x25, #4]
	ldr	w1, [x21]
	mov	x0, x26
	bl	_bch_bio_alloc_pages
	cbnz	x0, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x24
	bl	_trace_bcache_gc_copy
	ldr	x0, [sp]                        ; 8-byte Folded Reload
	bl	_down
Lloh17:
	adrp	x8, _read_moving_submit@GOTPAGE
Lloh18:
	ldr	x8, [x8, _read_moving_submit@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	add	x3, sp, #8
	mov	x0, x25
	mov	x2, #0
	bl	_closure_call
	b	LBB0_4
LBB0_10:
	ldr	x0, [x23]
	bl	_IS_ERR_OR_NULL
	cbnz	w0, LBB0_12
; %bb.11:
	ldr	x0, [x23]
	bl	_kfree
LBB0_12:
	mov	x0, x19
	mov	x1, x23
	bl	_bch_keybuf_del
	b	LBB0_1
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_CACHE_SET_STOPPING,4,2         ; @CACHE_SET_STOPPING
	.comm	_MAX_KEY,4,2                    ; @MAX_KEY
	.comm	_moving_pred,4,2                ; @moving_pred
	.comm	_PAGE_SECTORS,4,2               ; @PAGE_SECTORS
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_REQ_OP_READ,4,2                ; @REQ_OP_READ
	.comm	_read_moving_endio,4,2          ; @read_moving_endio
	.comm	_read_moving_submit,4,2         ; @read_moving_submit
	.no_dead_strip	_read_moving
.subsections_via_symbols
