	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dmz_validate_blocks            ## -- Begin function dmz_validate_blocks
	.p2align	4, 0x90
_dmz_validate_blocks:                   ## @dmz_validate_blocks
	.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
	movl	%ecx, %r12d
	movl	%edx, %r13d
	movq	%rsi, %r15
	movq	(%rdi), %r14
	movl	(%r14), %ebx
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	callq	_dmz_id
	movl	%r13d, %ecx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movq	%r12, %r14
	movl	%eax, %edx
	movl	%r14d, %r8d
	callq	_dmz_dev_debug
	leal	(%r12,%r13), %eax
	xorl	%edi, %edi
	cmpl	%ebx, %eax
	seta	%dil
	callq	_WARN_ON
	testl	%r14d, %r14d
	movl	%ebx, -60(%rbp)                 ## 4-byte Spill
	je	LBB0_1
## %bb.2:
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	%eax, %r15d
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_dmz_dirty_mblock
	addl	%r15d, -44(%rbp)                ## 4-byte Folded Spill
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_dmz_release_mblock
	addl	%r14d, %r13d
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	subl	%r14d, %eax
	movq	%rax, %r14
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movq	%rbx, %rdi
	je	LBB0_8
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rsi
	movl	%r13d, %edx
	callq	_dmz_get_bitmap
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	jne	LBB0_12
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_DMZ_BLOCK_MASK_BITS@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	andl	%r13d, %ebx
	movq	_DMZ_BLOCK_SIZE_BITS@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	subq	%rbx, %rsi
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	movl	%r14d, %edi
	callq	_min
	movl	%eax, %r14d
	movq	(%r12), %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_dmz_set_bits
	testl	%eax, %eax
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_7
LBB0_1:
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
LBB0_8:
	movl	(%r15), %eax
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	addl	%ebx, %eax
	xorl	%edi, %edi
	movl	-60(%rbp), %r12d                ## 4-byte Reload
	cmpl	%r12d, %eax
	setbe	%dil
	callq	_likely
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	addl	(%r15), %ebx
	movl	%ebx, %r12d
	jmp	LBB0_11
LBB0_12:
	movq	%r12, %rdi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_10:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	(%rdi), %r14
	movq	%r15, %rsi
	callq	_dmz_id
	movl	(%r15), %ecx
	movl	%r12d, %r8d
	subl	%ebx, %r8d
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_dmz_dev_warn
LBB0_11:
	movl	%r12d, (%r15)
	xorl	%eax, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"=> VALIDATE zone %u, block %llu, %u blocks"

	.comm	_DMZ_BLOCK_MASK_BITS,4,2        ## @DMZ_BLOCK_MASK_BITS
	.comm	_DMZ_BLOCK_SIZE_BITS,8,3        ## @DMZ_BLOCK_SIZE_BITS
L_.str.1:                               ## @.str.1
	.asciz	"Zone %u: weight %u should be <= %u"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dmz_validate_blocks            ; -- Begin function dmz_validate_blocks
	.p2align	2
_dmz_validate_blocks:                   ; @dmz_validate_blocks
	.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	x21, x3
	mov	x22, x2
	mov	x19, x1
	mov	x20, x0
	ldr	x23, [x0]
	ldr	w24, [x23]
	bl	_dmz_id
	mov	x2, x0
	mov	w3, w22
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x23
	mov	x4, x21
	bl	_dmz_dev_debug
	add	w8, w21, w22
	cmp	w8, w24
	cset	w0, hi
	bl	_WARN_ON
	str	w24, [sp, #12]                  ; 4-byte Folded Spill
	mov	w27, #0
	cbz	w21, LBB0_6
; %bb.1:
Lloh2:
	adrp	x28, _DMZ_BLOCK_MASK_BITS@GOTPAGE
Lloh3:
	ldr	x28, [x28, _DMZ_BLOCK_MASK_BITS@GOTPAGEOFF]
Lloh4:
	adrp	x26, _DMZ_BLOCK_SIZE_BITS@GOTPAGE
Lloh5:
	ldr	x26, [x26, _DMZ_BLOCK_SIZE_BITS@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x20
	mov	x1, x23
	bl	_dmz_release_mblock
	add	w22, w24, w22
	subs	w21, w21, w24
	b.eq	LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x19
	mov	x2, x22
	bl	_dmz_get_bitmap
	mov	x23, x0
	bl	_IS_ERR
	cbnz	x0, LBB0_8
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x28]
	and	w25, w8, w22
	ldr	x8, [x26]
	sub	x1, x8, x25
	mov	x0, x21
	bl	_min
	mov	x24, x0
	ldr	x0, [x23]
	mov	x1, x25
	mov	x2, x24
	bl	_dmz_set_bits
	cbz	w0, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x25, x0
	mov	x0, x20
	mov	x1, x23
	bl	_dmz_dirty_mblock
	add	w27, w25, w27
	b	LBB0_2
LBB0_6:
	ldr	w8, [x19]
	add	w8, w8, w27
	ldr	w22, [sp, #12]                  ; 4-byte Folded Reload
	cmp	w8, w22
	cset	w0, ls
	bl	_likely
	cbz	x0, LBB0_9
; %bb.7:
	ldr	w8, [x19]
	add	w22, w8, w27
	b	LBB0_10
LBB0_8:
	mov	x0, x23
	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
	b	_PTR_ERR
LBB0_9:
	ldr	x21, [x20]
	mov	x0, x20
	mov	x1, x19
	bl	_dmz_id
	mov	x2, x0
	ldr	w3, [x19]
	sub	w4, w22, w27
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_dmz_dev_warn
LBB0_10:
	str	w22, [x19]
	mov	w0, #0
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"=> VALIDATE zone %u, block %llu, %u blocks"

	.comm	_DMZ_BLOCK_MASK_BITS,4,2        ; @DMZ_BLOCK_MASK_BITS
	.comm	_DMZ_BLOCK_SIZE_BITS,8,3        ; @DMZ_BLOCK_SIZE_BITS
l_.str.1:                               ; @.str.1
	.asciz	"Zone %u: weight %u should be <= %u"

.subsections_via_symbols
