	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dmz_init_zones
_dmz_init_zones:                        ## @dmz_init_zones
	.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	%rdi, %rbx
	movq	16(%rdi), %r12
	movl	(%r12), %eax
	sarl	$3, %eax
	movl	%eax, (%rdi)
	movq	_DMZ_BLOCK_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %eax
	movl	%eax, 4(%rdi)
	movl	4(%r12), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	movl	$4, %esi
	callq	_kcalloc
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	je	LBB0_10
## %bb.1:
	movl	4(%r12), %edx
	shll	$2, %edx
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_dmz_dev_info
	movq	_DMZ_REPORT_NR_ZONES@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movl	%edi, -44(%rbp)
	movl	(%r14), %edx
	movl	$4, %esi
	callq	_kcalloc
	movq	%rax, %r14
	testq	%rax, %rax
	je	LBB0_11
## %bb.2:
	movq	8(%r12), %rax
	testq	%rax, %rax
	jle	LBB0_14
## %bb.3:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rbx
	xorl	%r13d, %r13d
	leaq	-44(%rbp), %rcx
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
	movl	(%r15), %eax
	movl	%eax, -44(%rbp)
	movl	24(%r12), %edi
	movq	%r13, %rsi
	movq	%r14, %rdx
	callq	_blkdev_report_zones
	testl	%eax, %eax
	jne	LBB0_21
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$0, -44(%rbp)
	je	LBB0_22
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_7:                                 ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	movq	%r14, %rdx
	callq	_dmz_init_zone
	testl	%eax, %eax
	jne	LBB0_12
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=2
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	addq	16(%rax), %r13
	addq	$4, %rbx
	incq	%r12
	movl	-44(%rbp), %eax
	addq	$4, %r14
	cmpq	%rax, %r12
	jb	LBB0_7
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	movq	8(%r12), %rax
	cmpq	%rax, %r13
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	_DMZ_REPORT_NR_ZONES@GOTPCREL(%rip), %r15
	leaq	-44(%rbp), %rcx
	jl	LBB0_4
	jmp	LBB0_15
LBB0_10:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_25
LBB0_11:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_12:
	movl	%eax, %r15d
	movq	-64(%rbp), %r14                 ## 8-byte Reload
LBB0_13:
	movq	%r14, %rdi
	callq	_kfree
	jmp	LBB0_19
LBB0_14:
	xorl	%r13d, %r13d
LBB0_15:
	cmpq	%rax, %r13
	jge	LBB0_23
LBB0_16:
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_dmz_dev_err
	movq	_ENXIO@GOTPCREL(%rip), %rax
LBB0_17:
	movl	(%rax), %r15d
	movq	%r14, %rdi
	callq	_kfree
	testl	%r15d, %r15d
	je	LBB0_24
## %bb.18:
	negl	%r15d
LBB0_19:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_dmz_drop_zones
	jmp	LBB0_25
LBB0_21:
	movl	%eax, %r15d
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dmz_dev_err
	jmp	LBB0_13
LBB0_22:
	movq	8(%r12), %rax
	cmpq	%rax, %r13
	jl	LBB0_16
LBB0_23:
	movq	%r14, %rdi
	callq	_kfree
LBB0_24:
	xorl	%r15d, %r15d
LBB0_25:
	movl	%r15d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DMZ_BLOCK_SHIFT,4,2            ## @DMZ_BLOCK_SHIFT
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Using %zu B for zone information"

	.comm	_DMZ_REPORT_NR_ZONES,4,2        ## @DMZ_REPORT_NR_ZONES
L_.str.1:                               ## @.str.1
	.asciz	"Report zones failed %d"

L_.str.2:                               ## @.str.2
	.asciz	"Failed to get correct zone information"

	.comm	_ENXIO,4,2                      ## @ENXIO
	.no_dead_strip	_dmz_init_zones
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dmz_init_zones
_dmz_init_zones:                        ; @dmz_init_zones
	.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
	ldr	x20, [x0, #16]
	ldp	w8, w0, [x20]
	asr	w8, w8, #3
	str	w8, [x19]
Lloh0:
	adrp	x9, _DMZ_BLOCK_SHIFT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DMZ_BLOCK_SHIFT@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	asr	w8, w8, w9
	str	w8, [x19, #4]
Lloh3:
	adrp	x21, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x21, [x21, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w2, [x21]
	mov	w1, #4
	bl	_kcalloc
	str	x0, [x19, #8]
	cbz	x0, LBB0_10
; %bb.1:
	ldr	w8, [x20, #4]
	lsl	w2, w8, #2
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dmz_dev_info
Lloh7:
	adrp	x26, _DMZ_REPORT_NR_ZONES@GOTPAGE
Lloh8:
	ldr	x26, [x26, _DMZ_REPORT_NR_ZONES@GOTPAGEOFF]
	ldr	w0, [x26]
	str	w0, [sp, #12]
	ldr	w2, [x21]
	mov	w1, #4
	bl	_kcalloc
	mov	x21, x0
	cbz	x0, LBB0_11
; %bb.2:
	ldr	x8, [x20, #8]
	cmp	x8, #1
	b.lt	LBB0_14
; %bb.3:
	mov	x22, #0
	ldr	x23, [x19, #8]
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	ldr	w8, [x26]
	str	w8, [sp, #12]
	ldr	w0, [x20, #24]
	add	x3, sp, #12
	mov	x1, x22
	mov	x2, x21
	bl	_blkdev_report_zones
	cbnz	w0, LBB0_20
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_21
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x27, #0
	mov	x25, x21
LBB0_7:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x19
	mov	x1, x23
	mov	x2, x25
	bl	_dmz_init_zone
	cbnz	w0, LBB0_12
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	ldr	x8, [x20, #16]
	add	x22, x8, x22
	add	x23, x23, #4
	add	x27, x27, #1
	ldr	w8, [sp, #12]
	add	x25, x25, #4
	cmp	x27, x8
	b.lo	LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x20, #8]
	cmp	x22, x8
	b.lt	LBB0_4
	b	LBB0_15
LBB0_10:
Lloh9:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w24, w8
	b	LBB0_24
LBB0_11:
Lloh12:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_17
LBB0_12:
	mov	x24, x0
LBB0_13:
	mov	x0, x21
	bl	_kfree
	b	LBB0_19
LBB0_14:
	mov	x22, #0
LBB0_15:
	cmp	x22, x8
	b.ge	LBB0_22
LBB0_16:
Lloh14:
	adrp	x1, l_.str.2@PAGE
Lloh15:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_dmz_dev_err
Lloh16:
	adrp	x8, _ENXIO@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
LBB0_17:
	ldr	w20, [x8]
	mov	x0, x21
	bl	_kfree
	cbz	w20, LBB0_23
; %bb.18:
	neg	w24, w20
LBB0_19:
	mov	x0, x19
	bl	_dmz_drop_zones
	b	LBB0_24
LBB0_20:
	mov	x24, x0
	str	x24, [sp]
Lloh18:
	adrp	x1, l_.str.1@PAGE
Lloh19:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_dmz_dev_err
	b	LBB0_13
LBB0_21:
	ldr	x8, [x20, #8]
	cmp	x22, x8
	b.lt	LBB0_16
LBB0_22:
	mov	x0, x21
	bl	_kfree
LBB0_23:
	mov	w24, #0
LBB0_24:
	mov	x0, x24
	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 AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_DMZ_BLOCK_SHIFT,4,2            ; @DMZ_BLOCK_SHIFT
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Using %zu B for zone information"

	.comm	_DMZ_REPORT_NR_ZONES,4,2        ; @DMZ_REPORT_NR_ZONES
l_.str.1:                               ; @.str.1
	.asciz	"Report zones failed %d"

l_.str.2:                               ; @.str.2
	.asciz	"Failed to get correct zone information"

	.comm	_ENXIO,4,2                      ; @ENXIO
	.no_dead_strip	_dmz_init_zones
.subsections_via_symbols
