	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dmz_update_zone
_dmz_update_zone:                       ## @dmz_update_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	%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, %r14
	movq	%rdi, %rbx
	movl	$1, -44(%rbp)
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_memalloc_noio_save
	movl	%eax, %r12d
	movq	(%rbx), %rax
	movl	(%rax), %r13d
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_dmz_start_sect
	leaq	-72(%rbp), %rdx
	leaq	-44(%rbp), %rcx
	movl	%r13d, %edi
	movl	%eax, %esi
	callq	_blkdev_report_zones
	movl	%eax, %r13d
	movl	%r12d, %edi
	callq	_memalloc_noio_restore
	movq	_EIO@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
	cmpl	$0, -44(%rbp)
	cmovnel	%r13d, %r15d
	testl	%r15d, %r15d
	je	LBB0_2
## %bb.1:
	movq	(%rbx), %r12
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_dmz_id
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	movl	%eax, %edx
	callq	_dmz_dev_err
	jmp	LBB0_8
LBB0_2:
	movq	_DMZ_OFFLINE@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	leaq	4(%r14), %rbx
	movq	%rbx, %rsi
	callq	_clear_bit
	movq	_DMZ_READ_ONLY@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	movq	%rbx, %rsi
	callq	_clear_bit
	movq	-72(%rbp), %rax
	movq	_BLK_ZONE_COND_OFFLINE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_4
## %bb.3:
	movq	_BLK_ZONE_COND_READONLY@GOTPCREL(%rip), %rcx
	movq	%r13, %r12
	cmpq	(%rcx), %rax
	jne	LBB0_5
LBB0_4:
	movl	(%r12), %edi
	movq	%rbx, %rsi
	callq	_set_bit
LBB0_5:
	movq	%r14, %rdi
	callq	_dmz_is_seq
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	-56(%rbp), %rdi
	subq	-64(%rbp), %rdi
	callq	_dmz_sect2blk
	movl	%eax, (%r14)
	jmp	LBB0_8
LBB0_7:
	movl	$0, (%r14)
LBB0_8:
	movl	%r15d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EIO,4,2                        ## @EIO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Get zone %u report failed"

	.comm	_DMZ_OFFLINE,4,2                ## @DMZ_OFFLINE
	.comm	_DMZ_READ_ONLY,4,2              ## @DMZ_READ_ONLY
	.comm	_BLK_ZONE_COND_OFFLINE,8,3      ## @BLK_ZONE_COND_OFFLINE
	.comm	_BLK_ZONE_COND_READONLY,8,3     ## @BLK_ZONE_COND_READONLY
	.no_dead_strip	_dmz_update_zone
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dmz_update_zone
_dmz_update_zone:                       ; @dmz_update_zone
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x19, x1
	mov	x21, x0
	mov	w8, #1
	str	w8, [sp, #28]
	bl	_memalloc_noio_save
	mov	x20, x0
	ldr	x8, [x21]
	ldr	w22, [x8]
	mov	x0, x21
	mov	x1, x19
	bl	_dmz_start_sect
	mov	x1, x0
	mov	x2, sp
	add	x3, sp, #28
	mov	x0, x22
	bl	_blkdev_report_zones
	mov	x22, x0
	mov	x0, x20
	bl	_memalloc_noio_restore
	ldr	w8, [sp, #28]
Lloh0:
	adrp	x9, _EIO@GOTPAGE
Lloh1:
	ldr	x9, [x9, _EIO@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, #0
	csneg	w20, w22, w9, ne
	cbz	w20, LBB0_2
; %bb.1:
	ldr	x22, [x21]
	mov	x0, x21
	mov	x1, x19
	bl	_dmz_id
	mov	x2, x0
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	bl	_dmz_dev_err
	b	LBB0_9
LBB0_2:
Lloh5:
	adrp	x22, _DMZ_OFFLINE@GOTPAGE
Lloh6:
	ldr	x22, [x22, _DMZ_OFFLINE@GOTPAGEOFF]
	ldr	w0, [x22]
	add	x21, x19, #4
	mov	x1, x21
	bl	_clear_bit
Lloh7:
	adrp	x8, _DMZ_READ_ONLY@GOTPAGE
Lloh8:
	ldr	x8, [x8, _DMZ_READ_ONLY@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_clear_bit
	ldr	x8, [sp]
Lloh10:
	adrp	x9, _BLK_ZONE_COND_OFFLINE@GOTPAGE
Lloh11:
	ldr	x9, [x9, _BLK_ZONE_COND_OFFLINE@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_5
; %bb.3:
Lloh13:
	adrp	x9, _BLK_ZONE_COND_READONLY@GOTPAGE
Lloh14:
	ldr	x9, [x9, _BLK_ZONE_COND_READONLY@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.4:
Lloh16:
	adrp	x22, _DMZ_READ_ONLY@GOTPAGE
Lloh17:
	ldr	x22, [x22, _DMZ_READ_ONLY@GOTPAGEOFF]
LBB0_5:
	ldr	w0, [x22]
	mov	x1, x21
	bl	_set_bit
LBB0_6:
	mov	x0, x19
	bl	_dmz_is_seq
	cbz	x0, LBB0_8
; %bb.7:
	ldp	x9, x8, [sp, #8]
	sub	x0, x8, x9
	bl	_dmz_sect2blk
	str	w0, [x19]
	b	LBB0_9
LBB0_8:
	str	wzr, [x19]
LBB0_9:
	mov	x0, x20
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_EIO,4,2                        ; @EIO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Get zone %u report failed"

	.comm	_DMZ_OFFLINE,4,2                ; @DMZ_OFFLINE
	.comm	_DMZ_READ_ONLY,4,2              ; @DMZ_READ_ONLY
	.comm	_BLK_ZONE_COND_OFFLINE,8,3      ; @BLK_ZONE_COND_OFFLINE
	.comm	_BLK_ZONE_COND_READONLY,8,3     ; @BLK_ZONE_COND_READONLY
	.no_dead_strip	_dmz_update_zone
.subsections_via_symbols
