	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dmz_reclaim_align_wp
_dmz_reclaim_align_wp:                  ## @dmz_reclaim_align_wp
	.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	(%rsi), %r14d
	xorl	%r12d, %r12d
	cmpl	%edx, %r14d
	je	LBB0_6
## %bb.1:
	movl	%edx, %ebx
	cmpl	%edx, %r14d
	jbe	LBB0_3
## %bb.2:
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_6
LBB0_3:
	movq	%rsi, %r15
	movq	8(%rdi), %rcx
	movl	%ebx, %r12d
	subl	%r14d, %r12d
	movq	(%rdi), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	%rcx, %rdi
	callq	_dmz_start_sect
	movq	%rax, %r13
	movl	%r14d, %edi
	callq	_dmz_blk2sect
	addq	%rax, %r13
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	movl	%r12d, %edi
	callq	_dmz_blk2sect
	movq	_GFP_NOIO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	xorl	%r12d, %r12d
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	movq	%r13, %rsi
	movq	%rax, %rdx
	xorl	%r8d, %r8d
	callq	_blkdev_issue_zeroout
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movl	%eax, %r13d
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %r12
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	callq	_dmz_id
	movl	%ebx, %r8d
	movl	%r13d, (%rsp)
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	movl	%eax, %edx
	movq	%r14, %rcx
	movl	-44(%rbp), %r9d                 ## 4-byte Reload
	callq	_dmz_dev_err
	movl	%r13d, %r12d
	jmp	LBB0_6
LBB0_5:
	movl	%ebx, (%r15)
LBB0_6:
	movl	%r12d, %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
	.comm	_GFP_NOIO,4,2                   ## @GFP_NOIO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Align zone %u wp %llu to %llu (wp+%u) blocks failed %d"

	.no_dead_strip	_dmz_reclaim_align_wp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dmz_reclaim_align_wp
_dmz_reclaim_align_wp:                  ; @dmz_reclaim_align_wp
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	ldr	w19, [x1]
	cmp	w19, w2
	b.ne	LBB0_2
; %bb.1:
	mov	w24, #0
	b	LBB0_7
LBB0_2:
	mov	x20, x2
	cmp	w19, w2
	b.ls	LBB0_4
; %bb.3:
Lloh0:
	adrp	x8, _EIO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w24, w8
	b	LBB0_7
LBB0_4:
	mov	x21, x1
	mov	x23, x0
	sub	w22, w20, w19
	ldp	x8, x25, [x0]
	ldr	w24, [x8]
	mov	x0, x25
	bl	_dmz_start_sect
	mov	x26, x0
	mov	x0, x19
	bl	_dmz_blk2sect
	add	x26, x0, x26
	mov	x0, x22
	bl	_dmz_blk2sect
	mov	x2, x0
Lloh3:
	adrp	x8, _GFP_NOIO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_NOIO@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
	mov	x0, x24
	mov	x1, x26
	mov	w4, #0
	bl	_blkdev_issue_zeroout
	mov	x24, x0
	cbz	w0, LBB0_6
; %bb.5:
	ldr	x23, [x23]
	mov	x0, x25
	mov	x1, x21
	bl	_dmz_id
	mov	x2, x0
	mov	w4, w20
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x23
	mov	x3, x19
	mov	x5, x22
	mov	x6, x24
	bl	_dmz_dev_err
	b	LBB0_7
LBB0_6:
	str	w20, [x21]
LBB0_7:
	mov	x0, x24
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_EIO,4,2                        ; @EIO
	.comm	_GFP_NOIO,4,2                   ; @GFP_NOIO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Align zone %u wp %llu to %llu (wp+%u) blocks failed %d"

	.no_dead_strip	_dmz_reclaim_align_wp
.subsections_via_symbols
