	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dmz_reclaim_rnd_data
_dmz_reclaim_rnd_data:                  ## @dmz_reclaim_rnd_data
	.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	%rsi, %r15
	movq	%rdi, %r14
	movl	(%rsi), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	8(%rdi), %r12
	movq	%r12, %rdi
	callq	_dmz_lock_map
	movq	_DMZ_ALLOC_RECLAIM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_dmz_alloc_zone
	movq	%rax, %rbx
	movq	%r12, %rdi
	callq	_dmz_unlock_map
	testq	%rbx, %rbx
	je	LBB0_1
## %bb.2:
	movq	%rbx, %r13
	movq	(%r14), %rbx
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_dmz_id
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	%r15, %rdi
	callq	_dmz_weight
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_dmz_id
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	movl	-48(%rbp), %r8d                 ## 4-byte Reload
	movl	%eax, %r9d
	callq	_dmz_dev_debug
	movq	%r14, %rbx
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r13, %rdx
	callq	_dmz_reclaim_copy
	movl	%eax, %r14d
	movq	%r12, %rdi
	callq	_dmz_lock_flush
	testl	%r14d, %r14d
	jne	LBB0_4
## %bb.3:
	movq	%r12, %rdi
	movq	%r15, %rsi
	movq	%r13, %rdx
	callq	_dmz_copy_valid_blocks
	movl	%eax, %r14d
	testl	%eax, %eax
	je	LBB0_5
LBB0_4:
	movq	%r12, %rdi
	callq	_dmz_lock_map
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_dmz_free_zone
LBB0_6:
	movq	%r12, %rdi
	callq	_dmz_unlock_map
	movq	%r12, %rdi
	callq	_dmz_unlock_flush
	jmp	LBB0_7
LBB0_1:
	movq	_ENOSPC@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_7:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	(%rbx), %rax
	movl	(%rax), %ecx
	xorl	%r14d, %r14d
	movq	%r12, %rdi
	movq	%r15, %rsi
	xorl	%edx, %edx
	callq	_dmz_invalidate_blocks
	movq	%r12, %rdi
	callq	_dmz_lock_map
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_dmz_unmap_zone
	movq	%r15, %rdi
	callq	_dmz_unlock_zone_reclaim
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_dmz_free_zone
	movq	%r12, %rdi
	movq	%r13, %rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_dmz_map_zone
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_DMZ_ALLOC_RECLAIM,4,2          ## @DMZ_ALLOC_RECLAIM
	.comm	_ENOSPC,4,2                     ## @ENOSPC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Chunk %u, move rnd zone %u (weight %u) to seq zone %u"

	.no_dead_strip	_dmz_reclaim_rnd_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dmz_reclaim_rnd_data
_dmz_reclaim_rnd_data:                  ; @dmz_reclaim_rnd_data
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x21, x1
	mov	x23, x0
	ldr	w20, [x1]
	ldr	x19, [x0, #8]
	mov	x0, x19
	bl	_dmz_lock_map
Lloh0:
	adrp	x8, _DMZ_ALLOC_RECLAIM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DMZ_ALLOC_RECLAIM@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_dmz_alloc_zone
	mov	x22, x0
	mov	x0, x19
	bl	_dmz_unlock_map
	cbz	x22, LBB0_5
; %bb.1:
	ldr	x24, [x23]
	mov	x0, x19
	mov	x1, x21
	bl	_dmz_id
	mov	x25, x0
	mov	x0, x21
	bl	_dmz_weight
	mov	x26, x0
	mov	x0, x19
	mov	x1, x22
	bl	_dmz_id
	mov	x5, x0
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x24
	mov	x2, x20
	mov	x3, x25
	mov	x4, x26
	bl	_dmz_dev_debug
	mov	x0, x23
	mov	x1, x21
	mov	x2, x22
	bl	_dmz_reclaim_copy
	mov	x24, x0
	mov	x0, x19
	bl	_dmz_lock_flush
	cbnz	w24, LBB0_3
; %bb.2:
	mov	x0, x19
	mov	x1, x21
	mov	x2, x22
	bl	_dmz_copy_valid_blocks
	mov	x24, x0
	cbz	w0, LBB0_7
LBB0_3:
	mov	x0, x19
	bl	_dmz_lock_map
	mov	x0, x19
	mov	x1, x22
	bl	_dmz_free_zone
LBB0_4:
	mov	x0, x19
	bl	_dmz_unlock_map
	mov	x0, x19
	bl	_dmz_unlock_flush
	b	LBB0_6
LBB0_5:
Lloh5:
	adrp	x8, _ENOSPC@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOSPC@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w24, w8
LBB0_6:
	mov	x0, x24
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_7:
	ldr	x8, [x23]
	ldr	w3, [x8]
	mov	x0, x19
	mov	x1, x21
	mov	w2, #0
	bl	_dmz_invalidate_blocks
	mov	x0, x19
	bl	_dmz_lock_map
	mov	x0, x19
	mov	x1, x21
	bl	_dmz_unmap_zone
	mov	x0, x21
	bl	_dmz_unlock_zone_reclaim
	mov	x0, x19
	mov	x1, x21
	bl	_dmz_free_zone
	mov	x0, x19
	mov	x1, x22
	mov	x2, x20
	bl	_dmz_map_zone
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_DMZ_ALLOC_RECLAIM,4,2          ; @DMZ_ALLOC_RECLAIM
	.comm	_ENOSPC,4,2                     ; @ENOSPC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Chunk %u, move rnd zone %u (weight %u) to seq zone %u"

	.no_dead_strip	_dmz_reclaim_rnd_data
.subsections_via_symbols
