	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function blk_done
_blk_done:                              ## @blk_done
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rax
	movq	(%rax), %r15
	movq	(%r15), %rax
	movq	(%rax), %rax
	movl	(%rax), %edi
	callq	_spin_lock_irqsave
	movl	12(%r15), %edi
	leaq	-44(%rbp), %rsi
	callq	_virtqueue_get_buf
	testq	%rax, %rax
	je	LBB0_12
## %bb.1:
	movq	%rax, %rbx
	movq	_REQ_TYPE_BLOCK_PC@GOTPCREL(%rip), %r12
	movq	_REQ_TYPE_SPECIAL@GOTPCREL(%rip), %r13
	leaq	-44(%rbp), %r14
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	callq	___blk_end_request_all
	movl	8(%r15), %esi
	movq	%rbx, %rdi
	callq	_mempool_free
	movl	12(%r15), %edi
	movq	%r14, %rsi
	callq	_virtqueue_get_buf
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_12
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rbx), %eax
	movl	$0, %esi
	cmpl	$129, %eax
	je	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%esi, %esi
	cmpl	$128, %eax
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_ENOTTY@GOTPCREL(%rip), %rax
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_EIO@GOTPCREL(%rip), %rax
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	subl	(%rax), %esi
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%rbx), %rdi
	movq	(%rdi), %rax
	cmpq	(%r12), %rax
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	24(%rbx), %ecx
	movl	%ecx, 16(%rdi)
	movl	20(%rbx), %ecx
	movl	%ecx, 12(%rdi)
	movl	16(%rbx), %ecx
	movl	%ecx, 8(%rdi)
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpq	(%r13), %rax
	jne	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
	testl	%esi, %esi
	setne	%al
	movl	%eax, 8(%rdi)
	jmp	LBB0_11
LBB0_12:
	movq	(%r15), %rax
	movq	(%rax), %rdi
	callq	_blk_start_queue
	movq	(%r15), %rax
	movq	(%rax), %rax
	movl	(%rax), %edi
	callq	_spin_unlock_irqrestore
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOTTY,4,2                     ## @ENOTTY
	.comm	_EIO,4,2                        ## @EIO
	.comm	_REQ_TYPE_BLOCK_PC,8,3          ## @REQ_TYPE_BLOCK_PC
	.comm	_REQ_TYPE_SPECIAL,8,3           ## @REQ_TYPE_SPECIAL
	.no_dead_strip	_blk_done
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function blk_done
_blk_done:                              ; @blk_done
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	ldr	x8, [x0]
	ldr	x20, [x8]
	ldr	x8, [x20]
	ldr	x8, [x8]
	ldr	w0, [x8]
	bl	_spin_lock_irqsave
	ldr	w0, [x20, #12]
	add	x1, sp, #12
	bl	_virtqueue_get_buf
	cbz	x0, LBB0_13
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x21, _REQ_TYPE_BLOCK_PC@GOTPAGE
Lloh1:
	ldr	x21, [x21, _REQ_TYPE_BLOCK_PC@GOTPAGEOFF]
Lloh2:
	adrp	x22, _REQ_TYPE_SPECIAL@GOTPAGE
Lloh3:
	ldr	x22, [x22, _REQ_TYPE_SPECIAL@GOTPAGEOFF]
Lloh4:
	adrp	x23, _ENOTTY@GOTPAGE
Lloh5:
	ldr	x23, [x23, _ENOTTY@GOTPAGEOFF]
Lloh6:
	adrp	x24, _EIO@GOTPAGE
Lloh7:
	ldr	x24, [x24, _EIO@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	bl	___blk_end_request_all
	ldr	w1, [x20, #8]
	mov	x0, x19
	bl	_mempool_free
	ldr	w0, [x20, #12]
	add	x1, sp, #12
	bl	_virtqueue_get_buf
	mov	x19, x0
	cbz	x0, LBB0_13
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x19]
	cmp	w8, #129
	b.eq	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w8, #128
	b.ne	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x23]
	b	LBB0_8
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	w1, #0
	b	LBB0_9
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x24]
LBB0_8:                                 ;   in Loop: Header=BB0_3 Depth=1
	neg	w1, w8
LBB0_9:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x0, [x19, #8]
	ldr	x8, [x0]
	ldr	x9, [x21]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	w9, [x19, #24]
	str	w9, [x0, #16]
	ldr	d0, [x19, #16]
	str	d0, [x0, #8]
LBB0_11:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x9, [x22]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.12:                               ;   in Loop: Header=BB0_3 Depth=1
	cmp	w1, #0
	cset	w8, ne
	str	w8, [x0, #8]
	b	LBB0_2
LBB0_13:
	ldr	x8, [x20]
	ldr	x0, [x8]
	bl	_blk_start_queue
	ldr	x8, [x20]
	ldr	x8, [x8]
	ldr	w0, [x8]
	bl	_spin_unlock_irqrestore
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOTTY,4,2                     ; @ENOTTY
	.comm	_EIO,4,2                        ; @EIO
	.comm	_REQ_TYPE_BLOCK_PC,8,3          ; @REQ_TYPE_BLOCK_PC
	.comm	_REQ_TYPE_SPECIAL,8,3           ; @REQ_TYPE_SPECIAL
	.no_dead_strip	_blk_done
.subsections_via_symbols
