	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dmz_init_zone
_dmz_init_zone:                         ## @dmz_init_zone
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	16(%rdi), %rax
	movq	(%rdx), %rcx
	cmpq	(%rax), %rcx
	jne	LBB0_1
## %bb.3:
	movq	%rsi, %r15
	movq	%rdi, %r14
	leaq	20(%rsi), %rdi
	callq	_INIT_LIST_HEAD
	leaq	16(%r15), %rdi
	xorl	%esi, %esi
	callq	_atomic_set
	movq	_DMZ_MAP_UNMAPPED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r15)
	movq	16(%rbx), %rax
	movq	_BLK_ZONE_TYPE_CONVENTIONAL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.4:
	movq	_DMZ_RND@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	8(%r15), %rsi
	callq	_set_bit
	incl	8(%r14)
	jmp	LBB0_8
LBB0_1:
	addq	8(%rbx), %rcx
	xorl	%r12d, %r12d
	cmpq	8(%rax), %rcx
	jne	LBB0_2
	jmp	LBB0_21
LBB0_5:
	movq	_BLK_ZONE_TYPE_SEQWRITE_REQ@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_7
## %bb.6:
	movq	_BLK_ZONE_TYPE_SEQWRITE_PREF@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_7
LBB0_2:
	movq	_ENXIO@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_21
LBB0_7:
	movq	_DMZ_SEQ@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	8(%r15), %rsi
	callq	_set_bit
LBB0_8:
	movq	24(%rbx), %rax
	movq	_BLK_ZONE_COND_OFFLINE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.9:
	movq	_DMZ_OFFLINE@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_10:
	movq	_BLK_ZONE_COND_READONLY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_13
## %bb.11:
	movq	_DMZ_READ_ONLY@GOTPCREL(%rip), %rax
LBB0_12:
	movl	(%rax), %edi
	leaq	8(%r15), %rsi
	callq	_set_bit
LBB0_13:
	movq	%r15, %rdi
	callq	_dmz_is_rnd
	xorl	%r12d, %r12d
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:
	xorl	%eax, %eax
	jmp	LBB0_16
LBB0_15:
	movq	32(%rbx), %rdi
	subq	8(%rbx), %rdi
	callq	_dmz_sect2blk
LBB0_16:
	movq	%rax, (%r15)
	movq	%r15, %rdi
	callq	_dmz_is_offline
	testl	%eax, %eax
	jne	LBB0_21
## %bb.17:
	movq	%r15, %rdi
	callq	_dmz_is_readonly
	testl	%eax, %eax
	je	LBB0_18
LBB0_21:
	movl	%r12d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	incl	12(%r14)
	movq	%r15, %rdi
	callq	_dmz_is_rnd
	testq	%rax, %rax
	je	LBB0_21
## %bb.19:
	incl	8(%r14)
	cmpq	$0, (%r14)
	jne	LBB0_21
## %bb.20:
	movq	%r15, (%r14)
	jmp	LBB0_21
	.cfi_endproc
                                        ## -- End function
	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_DMZ_MAP_UNMAPPED,4,2           ## @DMZ_MAP_UNMAPPED
	.comm	_BLK_ZONE_TYPE_CONVENTIONAL,8,3 ## @BLK_ZONE_TYPE_CONVENTIONAL
	.comm	_DMZ_RND,4,2                    ## @DMZ_RND
	.comm	_BLK_ZONE_TYPE_SEQWRITE_REQ,8,3 ## @BLK_ZONE_TYPE_SEQWRITE_REQ
	.comm	_BLK_ZONE_TYPE_SEQWRITE_PREF,8,3 ## @BLK_ZONE_TYPE_SEQWRITE_PREF
	.comm	_DMZ_SEQ,4,2                    ## @DMZ_SEQ
	.comm	_BLK_ZONE_COND_OFFLINE,8,3      ## @BLK_ZONE_COND_OFFLINE
	.comm	_DMZ_OFFLINE,4,2                ## @DMZ_OFFLINE
	.comm	_BLK_ZONE_COND_READONLY,8,3     ## @BLK_ZONE_COND_READONLY
	.comm	_DMZ_READ_ONLY,4,2              ## @DMZ_READ_ONLY
	.no_dead_strip	_dmz_init_zone
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dmz_init_zone
_dmz_init_zone:                         ; @dmz_init_zone
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x21, x2
	ldr	x8, [x0, #16]
	ldr	x9, [x2]
	ldr	x10, [x8]
	cmp	x9, x10
	b.ne	LBB0_3
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	add	x0, x1, #20
	bl	_INIT_LIST_HEAD
	add	x0, x19, #16
	mov	w1, #0
	bl	_atomic_set
Lloh0:
	adrp	x8, _DMZ_MAP_UNMAPPED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DMZ_MAP_UNMAPPED@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x19, #12]
	ldr	x8, [x21, #16]
Lloh3:
	adrp	x9, _BLK_ZONE_TYPE_CONVENTIONAL@GOTPAGE
Lloh4:
	ldr	x9, [x9, _BLK_ZONE_TYPE_CONVENTIONAL@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.2:
Lloh6:
	adrp	x8, _DMZ_RND@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DMZ_RND@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	add	x1, x19, #8
	bl	_set_bit
	ldr	w8, [x20, #8]
	add	w8, w8, #1
	str	w8, [x20, #8]
	b	LBB0_6
LBB0_3:
	ldr	x10, [x21, #8]
	ldr	x8, [x8, #8]
	add	x9, x10, x9
	cmp	x9, x8
	b.eq	LBB0_17
	b	LBB0_8
LBB0_4:
Lloh9:
	adrp	x9, _BLK_ZONE_TYPE_SEQWRITE_REQ@GOTPAGE
Lloh10:
	ldr	x9, [x9, _BLK_ZONE_TYPE_SEQWRITE_REQ@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
Lloh12:
	adrp	x10, _BLK_ZONE_TYPE_SEQWRITE_PREF@GOTPAGE
Lloh13:
	ldr	x10, [x10, _BLK_ZONE_TYPE_SEQWRITE_PREF@GOTPAGEOFF]
Lloh14:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_8
; %bb.5:
Lloh15:
	adrp	x8, _DMZ_SEQ@GOTPAGE
Lloh16:
	ldr	x8, [x8, _DMZ_SEQ@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	add	x1, x19, #8
	bl	_set_bit
LBB0_6:
	ldr	x8, [x21, #24]
Lloh18:
	adrp	x9, _BLK_ZONE_COND_OFFLINE@GOTPAGE
Lloh19:
	ldr	x9, [x9, _BLK_ZONE_COND_OFFLINE@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.7:
Lloh21:
	adrp	x8, _DMZ_OFFLINE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _DMZ_OFFLINE@GOTPAGEOFF]
	b	LBB0_11
LBB0_8:
Lloh23:
	adrp	x8, _ENXIO@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_18
LBB0_9:
Lloh26:
	adrp	x9, _BLK_ZONE_COND_READONLY@GOTPAGE
Lloh27:
	ldr	x9, [x9, _BLK_ZONE_COND_READONLY@GOTPAGEOFF]
Lloh28:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_12
; %bb.10:
Lloh29:
	adrp	x8, _DMZ_READ_ONLY@GOTPAGE
Lloh30:
	ldr	x8, [x8, _DMZ_READ_ONLY@GOTPAGEOFF]
LBB0_11:
	ldr	w0, [x8]
	add	x1, x19, #8
	bl	_set_bit
LBB0_12:
	mov	x0, x19
	bl	_dmz_is_rnd
	cbz	x0, LBB0_14
; %bb.13:
	mov	x0, #0
	b	LBB0_15
LBB0_14:
	ldr	x8, [x21, #32]
	ldr	x9, [x21, #8]
	sub	x0, x8, x9
	bl	_dmz_sect2blk
LBB0_15:
	str	x0, [x19]
	mov	x0, x19
	bl	_dmz_is_offline
	cbnz	w0, LBB0_17
; %bb.16:
	mov	x0, x19
	bl	_dmz_is_readonly
	cbz	w0, LBB0_19
LBB0_17:
	mov	w0, #0
LBB0_18:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_19:
	ldr	w8, [x20, #12]
	add	w8, w8, #1
	str	w8, [x20, #12]
	mov	x0, x19
	bl	_dmz_is_rnd
	cbz	x0, LBB0_18
; %bb.20:
	ldr	w8, [x20, #8]
	add	w8, w8, #1
	str	w8, [x20, #8]
	ldr	x8, [x20]
	cbnz	x8, LBB0_17
; %bb.21:
	mov	w0, #0
	str	x19, [x20]
	b	LBB0_18
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_DMZ_MAP_UNMAPPED,4,2           ; @DMZ_MAP_UNMAPPED
	.comm	_BLK_ZONE_TYPE_CONVENTIONAL,8,3 ; @BLK_ZONE_TYPE_CONVENTIONAL
	.comm	_DMZ_RND,4,2                    ; @DMZ_RND
	.comm	_BLK_ZONE_TYPE_SEQWRITE_REQ,8,3 ; @BLK_ZONE_TYPE_SEQWRITE_REQ
	.comm	_BLK_ZONE_TYPE_SEQWRITE_PREF,8,3 ; @BLK_ZONE_TYPE_SEQWRITE_PREF
	.comm	_DMZ_SEQ,4,2                    ; @DMZ_SEQ
	.comm	_BLK_ZONE_COND_OFFLINE,8,3      ; @BLK_ZONE_COND_OFFLINE
	.comm	_DMZ_OFFLINE,4,2                ; @DMZ_OFFLINE
	.comm	_BLK_ZONE_COND_READONLY,8,3     ; @BLK_ZONE_COND_READONLY
	.comm	_DMZ_READ_ONLY,4,2              ; @DMZ_READ_ONLY
	.no_dead_strip	_dmz_init_zone
.subsections_via_symbols
