	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_blkdev_issue_zeroout           ## -- Begin function blkdev_issue_zeroout
	.p2align	4, 0x90
_blkdev_issue_zeroout:                  ## @blkdev_issue_zeroout
	.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	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	%rdx, %rbx
	movq	%rsi, %r12
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	movq	_wait@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_DECLARE_COMPLETION_ONSTACK
	leaq	-60(%rbp), %rdi
	movl	$1, %r15d
	movl	$1, %esi
	callq	_atomic_set
	movq	_BIO_UPTODATE@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %r15d
	movl	%r15d, -64(%rbp)
	movq	%r14, -56(%rbp)
	testq	%rbx, %rbx
	je	LBB0_8
## %bb.1:
	movq	_PAGE_SIZE@GOTPCREL(%rip), %r15
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	leaq	-60(%rbp), %rdi
	callq	_atomic_inc
	movq	_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_submit_bio
	testq	%rbx, %rbx
	je	LBB0_8
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	movq	_BIO_MAX_PAGES@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%rbx, %rdi
	callq	_min
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	%eax, %esi
	callq	_bio_alloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %r14
	movq	%r12, 24(%rax)
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 16(%r14)
	movq	_bio_batch_end_io@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r14)
	leaq	-64(%rbp), %rax
	movq	%rax, (%r14)
	.p2align	4, 0x90
LBB0_5:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%r15), %rdi
	sarq	$9, %rdi
	movq	%rbx, %rsi
	callq	_min
	movl	%eax, %r13d
	xorl	%edi, %edi
	callq	_ZERO_PAGE
	shll	$9, %r13d
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	%r13d, %edx
	xorl	%ecx, %ecx
	callq	_bio_add_page
	movl	%eax, %ecx
	sarl	$9, %ecx
	movslq	%ecx, %rcx
	subq	%rcx, %rbx
	addq	%rcx, %r12
	cmpl	%r13d, %eax
	jb	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=2
	testq	%rbx, %rbx
	jne	LBB0_5
	jmp	LBB0_7
LBB0_8:
	xorl	%ebx, %ebx
	jmp	LBB0_9
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_9:
	leaq	-60(%rbp), %rdi
	callq	_atomic_dec_and_test
	testl	%eax, %eax
	jne	LBB0_11
## %bb.10:
	movq	_wait@GOTPCREL(%rip), %rdi
	callq	_wait_for_completion
LBB0_11:
	movq	_BIO_UPTODATE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-64(%rbp), %rsi
	callq	_test_bit
	movq	_EIO@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	subl	(%rcx), %edx
	testl	%eax, %eax
	cmovel	%edx, %ebx
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_wait,4,2                       ## @wait
	.comm	_BIO_UPTODATE,4,2               ## @BIO_UPTODATE
	.comm	_BIO_MAX_PAGES,8,3              ## @BIO_MAX_PAGES
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_bio_batch_end_io,4,2           ## @bio_batch_end_io
	.comm	_PAGE_SIZE,8,3                  ## @PAGE_SIZE
	.comm	_WRITE,4,2                      ## @WRITE
	.comm	_EIO,4,2                        ## @EIO
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_blkdev_issue_zeroout           ; -- Begin function blkdev_issue_zeroout
	.p2align	2
_blkdev_issue_zeroout:                  ; @blkdev_issue_zeroout
	.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	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x23, x0
Lloh0:
	adrp	x24, _wait@GOTPAGE
Lloh1:
	ldr	x24, [x24, _wait@GOTPAGEOFF]
	ldr	w0, [x24]
	bl	_DECLARE_COMPLETION_ONSTACK
	mov	x8, sp
	orr	x19, x8, #0x4
	mov	w25, #1
	mov	x0, x19
	mov	w1, #1
	bl	_atomic_set
Lloh2:
	adrp	x26, _BIO_UPTODATE@GOTPAGE
Lloh3:
	ldr	x26, [x26, _BIO_UPTODATE@GOTPAGEOFF]
	ldr	w8, [x26]
	lsl	w8, w25, w8
	str	w8, [sp]
	str	x24, [sp, #8]
	cbz	x21, LBB0_7
; %bb.1:
Lloh4:
	adrp	x28, _BIO_MAX_PAGES@GOTPAGE
Lloh5:
	ldr	x28, [x28, _BIO_MAX_PAGES@GOTPAGEOFF]
Lloh6:
	adrp	x27, _PAGE_SIZE@GOTPAGE
Lloh7:
	ldr	x27, [x27, _PAGE_SIZE@GOTPAGEOFF]
Lloh8:
	adrp	x26, _WRITE@GOTPAGE
Lloh9:
	ldr	x26, [x26, _WRITE@GOTPAGEOFF]
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_4 Depth 2
	ldr	x1, [x28]
	mov	x0, x21
	bl	_min
	mov	x1, x0
	mov	x0, x20
	bl	_bio_alloc
	cbz	x0, LBB0_8
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x24, x0
	stp	x23, x22, [x0, #16]
Lloh10:
	adrp	x8, _bio_batch_end_io@GOTPAGE
Lloh11:
	ldr	x8, [x8, _bio_batch_end_io@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	str	w8, [x0, #8]
	mov	x8, sp
	str	x8, [x0]
LBB0_4:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x27]
	asr	x0, x8, #9
	mov	x1, x21
	bl	_min
	mov	x25, x0
	mov	w0, #0
	bl	_ZERO_PAGE
	mov	x1, x0
	lsl	w25, w25, #9
	mov	x0, x24
	mov	x2, x25
	mov	w3, #0
	bl	_bio_add_page
                                        ; kill: def $w0 killed $w0 def $x0
	sbfx	x8, x0, #9, #23
	sub	x21, x21, x8
	add	x22, x22, x8
	cmp	w0, w25
	ccmp	x21, #0, #4, hs
	b.ne	LBB0_4
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x19
	bl	_atomic_inc
	ldr	w0, [x26]
	mov	x1, x24
	bl	_submit_bio
	cbnz	x21, LBB0_2
; %bb.6:
	mov	w20, #0
	b	LBB0_9
LBB0_7:
	mov	w20, #0
	b	LBB0_10
LBB0_8:
Lloh13:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_9:
Lloh16:
	adrp	x26, _BIO_UPTODATE@GOTPAGE
Lloh17:
	ldr	x26, [x26, _BIO_UPTODATE@GOTPAGEOFF]
LBB0_10:
	mov	x0, x19
	bl	_atomic_dec_and_test
	cbnz	w0, LBB0_12
; %bb.11:
Lloh18:
	adrp	x0, _wait@GOTPAGE
Lloh19:
	ldr	x0, [x0, _wait@GOTPAGEOFF]
	bl	_wait_for_completion
LBB0_12:
	ldr	w0, [x26]
	mov	x1, sp
	bl	_test_bit
Lloh20:
	adrp	x8, _EIO@GOTPAGE
Lloh21:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	cmp	w0, #0
	csneg	w0, w20, w8, ne
	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	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_wait,4,2                       ; @wait
	.comm	_BIO_UPTODATE,4,2               ; @BIO_UPTODATE
	.comm	_BIO_MAX_PAGES,8,3              ; @BIO_MAX_PAGES
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_bio_batch_end_io,4,2           ; @bio_batch_end_io
	.comm	_PAGE_SIZE,8,3                  ; @PAGE_SIZE
	.comm	_WRITE,4,2                      ; @WRITE
	.comm	_EIO,4,2                        ; @EIO
.subsections_via_symbols
