	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bio_dma_done_cb
_bio_dma_done_cb:                       ## @bio_dma_done_cb
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	testl	%edx, %edx
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_atomic_set
LBB0_2:
	leaq	12(%rbx), %rdi
	callq	_atomic_dec_and_test
	testq	%rax, %rax
	je	LBB0_7
## %bb.3:
	cmpl	$0, 8(%r14)
	jne	LBB0_6
## %bb.4:
	cmpq	$0, (%r14)
	je	LBB0_6
## %bb.5:
	movl	4(%rbx), %esi
	movl	8(%rbx), %edx
	movq	%r14, %rdi
	callq	_disk_stats_complete
LBB0_6:
	movl	4(%rbx), %r14d
	movq	%rbx, %rdi
	callq	_atomic_read
	movq	_EIO@GOTPCREL(%rip), %rcx
	xorl	%esi, %esi
	subl	(%rcx), %esi
	xorl	%ecx, %ecx
	testq	%rax, %rax
	cmovel	%ecx, %esi
	movl	%r14d, %edi
	callq	_bio_endio
	movq	_bio_meta_pool@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_kmem_cache_free                ## TAILCALL
LBB0_7:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EIO,4,2                        ## @EIO
	.comm	_bio_meta_pool,4,2              ## @bio_meta_pool
	.no_dead_strip	_bio_dma_done_cb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bio_dma_done_cb
_bio_dma_done_cb:                       ; @bio_dma_done_cb
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
	cbz	w2, LBB0_2
; %bb.1:
	mov	x0, x19
	mov	w1, #1
	bl	_atomic_set
LBB0_2:
	add	x0, x19, #12
	bl	_atomic_dec_and_test
	cbz	x0, LBB0_7
; %bb.3:
	ldr	w8, [x20, #8]
	cbnz	w8, LBB0_6
; %bb.4:
	ldr	x8, [x20]
	cbz	x8, LBB0_6
; %bb.5:
	ldp	w1, w2, [x19, #4]
	mov	x0, x20
	bl	_disk_stats_complete
LBB0_6:
	ldr	w20, [x19, #4]
	mov	x0, x19
	bl	_atomic_read
Lloh0:
	adrp	x8, _EIO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	x0, #0
	csneg	w1, wzr, w8, eq
	mov	x0, x20
	bl	_bio_endio
Lloh3:
	adrp	x8, _bio_meta_pool@GOTPAGE
Lloh4:
	ldr	x8, [x8, _bio_meta_pool@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	mov	x1, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_kmem_cache_free
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EIO,4,2                        ; @EIO
	.comm	_bio_meta_pool,4,2              ; @bio_meta_pool
	.no_dead_strip	_bio_dma_done_cb
.subsections_via_symbols
