	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dmz_get_zone_weight
_dmz_get_zone_weight:                   ## @dmz_get_zone_weight
	.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
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %rax
	movl	(%rax), %r12d
	testl	%r12d, %r12d
	je	LBB0_5
## %bb.1:
	movq	%rdi, %r15
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	xorl	%r13d, %r13d
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	%r13d, %edx
	callq	_dmz_get_bitmap
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	jne	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rbx), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	_DMZ_BLOCK_MASK_BITS@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	andl	%r13d, %r15d
	movq	_DMZ_BLOCK_SIZE_BITS@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	subq	%r15, %rsi
	movl	%r12d, %edi
	callq	_min
	movl	%eax, %r14d
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movl	%r15d, %esi
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movl	%eax, %edx
	callq	_dmz_count_bits
	addl	%eax, -44(%rbp)                 ## 4-byte Folded Spill
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_dmz_release_mblock
	addl	%r14d, %r13d
	subl	%r14d, %r12d
	jne	LBB0_2
	jmp	LBB0_6
LBB0_5:
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
LBB0_6:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, (%rax)
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DMZ_BLOCK_MASK_BITS,4,2        ## @DMZ_BLOCK_MASK_BITS
	.comm	_DMZ_BLOCK_SIZE_BITS,8,3        ## @DMZ_BLOCK_SIZE_BITS
	.no_dead_strip	_dmz_get_zone_weight
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dmz_get_zone_weight
_dmz_get_zone_weight:                   ; @dmz_get_zone_weight
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x1
	ldr	x8, [x0]
	ldr	w21, [x8]
	cbz	w21, LBB0_4
; %bb.1:
	mov	x20, x0
	mov	w27, #0
	mov	w22, #0
Lloh0:
	adrp	x28, _DMZ_BLOCK_SIZE_BITS@GOTPAGE
Lloh1:
	ldr	x28, [x28, _DMZ_BLOCK_SIZE_BITS@GOTPAGEOFF]
LBB0_2:                                 ; =>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_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x24, [x23]
Lloh2:
	adrp	x8, _DMZ_BLOCK_MASK_BITS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DMZ_BLOCK_MASK_BITS@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	and	w25, w8, w22
	ldr	x8, [x28]
	sub	x1, x8, x25
	mov	x0, x21
	bl	_min
	mov	x26, x0
	mov	x0, x24
	mov	x1, x25
	mov	x2, x26
	bl	_dmz_count_bits
	add	w27, w27, w0
	mov	x0, x20
	mov	x1, x23
	bl	_dmz_release_mblock
	add	w22, w26, w22
	subs	w21, w21, w26
	b.ne	LBB0_2
	b	LBB0_5
LBB0_4:
	mov	w27, #0
LBB0_5:
	str	w27, [x19]
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_DMZ_BLOCK_MASK_BITS,4,2        ; @DMZ_BLOCK_MASK_BITS
	.comm	_DMZ_BLOCK_SIZE_BITS,8,3        ; @DMZ_BLOCK_SIZE_BITS
	.no_dead_strip	_dmz_get_zone_weight
.subsections_via_symbols
