	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dmz_do_reclaim
_dmz_do_reclaim:                        ## @dmz_do_reclaim
	.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, %r15
	movq	8(%rdi), %r14
	movq	%r14, %rdi
	callq	_dmz_get_zone_for_reclaim
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_1
## %bb.18:
	movq	%rbx, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movq	%rbx, %rdi
	callq	_dmz_is_rnd
	testq	%rax, %rax
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	je	LBB0_7
## %bb.2:
	movq	%rbx, %rdi
	callq	_dmz_weight
	movq	%r15, %rdi
	movq	%rbx, %rsi
	testl	%eax, %eax
	je	LBB0_3
## %bb.6:
	callq	_dmz_reclaim_rnd_data
LBB0_13:
	movl	%eax, %r12d
	movq	%rbx, %r13
	testl	%r12d, %r12d
	jne	LBB0_15
	jmp	LBB0_4
LBB0_7:
	movq	8(%rbx), %r13
	movq	$0, -48(%rbp)
	leaq	-48(%rbp), %rdx
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_dmz_first_valid_block
	testl	%eax, %eax
	js	LBB0_8
## %bb.9:
	je	LBB0_11
## %bb.10:
	movq	-48(%rbp), %rax
	cmpq	(%rbx), %rax
	jge	LBB0_11
## %bb.12:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_dmz_reclaim_seq_data
	jmp	LBB0_13
LBB0_3:
	callq	_dmz_reclaim_empty
	movq	%rbx, %r13
	jmp	LBB0_4
LBB0_11:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_dmz_reclaim_buf
	movl	%eax, %r12d
	testl	%r12d, %r12d
	jne	LBB0_15
LBB0_4:
	movq	8(%r15), %rdi
	callq	_dmz_flush_metadata
	movl	%eax, %r12d
	movl	(%r15), %r15d
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_dmz_id
	movl	%eax, %ebx
	testl	%r12d, %r12d
	je	LBB0_16
## %bb.5:
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %edi
	movl	%ebx, %edx
	movl	%r12d, %ecx
	callq	_dmz_dev_debug
	jmp	LBB0_17
LBB0_16:
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	subq	-56(%rbp), %rdi                 ## 8-byte Folded Reload
	callq	_jiffies_to_msecs
	leaq	L_.str.1(%rip), %rsi
	movl	%r15d, %edi
	movl	%ebx, %edx
	movl	%eax, %ecx
	callq	_dmz_dev_debug
	xorl	%r12d, %r12d
	jmp	LBB0_17
LBB0_8:
	movl	%eax, %r12d
                                        ## implicit-def: $r13
	testl	%r12d, %r12d
	je	LBB0_4
LBB0_15:
	movq	%rbx, %rdi
	callq	_dmz_unlock_zone_reclaim
LBB0_17:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_jiffies,8,3                    ## @jiffies
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Metadata flush for zone %u failed, err %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"Reclaimed zone %u in %u ms"

	.no_dead_strip	_dmz_do_reclaim
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dmz_do_reclaim
_dmz_do_reclaim:                        ; @dmz_do_reclaim
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x20, x0
	ldr	x19, [x0, #8]
	mov	x0, x19
	bl	_dmz_get_zone_for_reclaim
	mov	x21, x0
	bl	_IS_ERR
	cbz	x0, LBB0_2
; %bb.1:
	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
	add	sp, sp, #96
	b	_PTR_ERR
LBB0_2:
Lloh0:
	adrp	x24, _jiffies@GOTPAGE
Lloh1:
	ldr	x24, [x24, _jiffies@GOTPAGEOFF]
	ldr	x25, [x24]
	mov	x0, x21
	bl	_dmz_is_rnd
	cbz	x0, LBB0_6
; %bb.3:
	mov	x0, x21
	bl	_dmz_weight
	cbz	w0, LBB0_10
; %bb.4:
	mov	x0, x20
	mov	x1, x21
	bl	_dmz_reclaim_rnd_data
LBB0_5:
	mov	x23, x0
	mov	x22, x21
	cbnz	w23, LBB0_17
	b	LBB0_12
LBB0_6:
	ldr	x22, [x21, #8]
	str	xzr, [sp, #8]
	add	x2, sp, #8
	mov	x0, x19
	mov	x1, x22
	bl	_dmz_first_valid_block
	mov	x23, x0
	tbnz	w0, #31, LBB0_16
; %bb.7:
	cbz	w23, LBB0_11
; %bb.8:
	ldr	x8, [sp, #8]
	ldr	x9, [x21]
	cmp	x8, x9
	b.ge	LBB0_11
; %bb.9:
	mov	x0, x20
	mov	x1, x21
	bl	_dmz_reclaim_seq_data
	b	LBB0_5
LBB0_10:
	mov	x0, x20
	mov	x1, x21
	bl	_dmz_reclaim_empty
	mov	x22, x21
	b	LBB0_12
LBB0_11:
	mov	x0, x20
	mov	x1, x21
	bl	_dmz_reclaim_buf
	mov	x23, x0
	cbnz	w23, LBB0_17
LBB0_12:
	ldr	x0, [x20, #8]
	bl	_dmz_flush_metadata
	mov	x23, x0
	ldr	w20, [x20]
	mov	x0, x19
	mov	x1, x22
	bl	_dmz_id
	mov	x19, x0
	cbz	w23, LBB0_14
; %bb.13:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, x19
	mov	x3, x23
	b	LBB0_15
LBB0_14:
	ldr	x8, [x24]
	sub	x0, x8, x25
	bl	_jiffies_to_msecs
	mov	x3, x0
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x2, x19
LBB0_15:
	bl	_dmz_dev_debug
	b	LBB0_18
LBB0_16:
                                        ; implicit-def: $x22
	cbz	w23, LBB0_12
LBB0_17:
	mov	x0, x21
	bl	_dmz_unlock_zone_reclaim
LBB0_18:
	mov	x0, x23
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_jiffies,8,3                    ; @jiffies
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Metadata flush for zone %u failed, err %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"Reclaimed zone %u in %u ms"

	.no_dead_strip	_dmz_do_reclaim
.subsections_via_symbols
