	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pending_complete
_pending_complete:                      ## @pending_complete
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r13
	movq	32(%rdi), %r14
	leaq	24(%rdi), %r15
	movl	24(%rdi), %esi
	leaq	-48(%rbp), %rdx
	movq	%r14, %rdi
	callq	_dm_exception_table_lock_init
	testl	%ebx, %ebx
	je	LBB0_1
## %bb.3:
	movq	_GFP_NOIO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_alloc_completed_exception
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r12
	movl	(%r15), %eax
	movl	%eax, (%r12)
	movq	%r14, %rdi
	callq	_down_read
	leaq	-48(%rbp), %rdi
	callq	_dm_exception_table_lock
	cmpl	$0, 8(%r14)
	je	LBB0_6
## %bb.7:
	leaq	4(%r14), %rdi
	movq	%r12, %rsi
	callq	_dm_insert_exception
	movq	%r14, %rdi
	callq	_up_read
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	___chunk_is_tracked
	movb	$1, %cl
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
	testq	%rax, %rax
	je	LBB0_10
## %bb.8:
	leaq	-48(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_dm_exception_table_unlock
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	___check_for_conflicting_io
	movq	%rbx, %rdi
	jmp	LBB0_9
LBB0_1:
	movq	_EIO@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_2:
	movl	$0, -52(%rbp)                   ## 4-byte Folded Spill
	xorl	%esi, %esi
	subl	(%rax), %esi
	movq	%r14, %rdi
	callq	_invalidate_snapshot
	leaq	-48(%rbp), %rdi
LBB0_9:
	callq	_dm_exception_table_lock
LBB0_10:
	movq	%r15, %rdi
	callq	_dm_remove_exception
	leaq	-48(%rbp), %rdi
	callq	_dm_exception_table_unlock
	leaq	20(%r13), %rdi
	callq	_bio_list_get
	movq	%rax, %r12
	leaq	16(%r13), %rdi
	callq	_bio_list_get
	movq	%rax, %r15
	movq	8(%r13), %rbx
	testq	%rbx, %rbx
	je	LBB0_11
## %bb.12:
	movl	(%r13), %eax
	movl	%eax, (%rbx)
	xorl	%eax, %eax
	callq	_increment_pending_exceptions_done_count
	cmpb	$0, -52(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_13
## %bb.15:
	movq	%rbx, %rdi
	callq	_bio_endio
	jmp	LBB0_16
LBB0_11:
	xorl	%eax, %eax
	callq	_increment_pending_exceptions_done_count
	cmpb	$0, -52(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_14
LBB0_16:
	movq	%r12, %rdi
	callq	_flush_bios
	jmp	LBB0_17
LBB0_13:
	movq	%rbx, %rdi
	callq	_bio_io_error
LBB0_14:
	movq	%r12, %rdi
	callq	_error_bios
LBB0_17:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_retry_origin_bios
	movq	%r13, %rdi
	callq	_free_pending_exception
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	%r14, %rdi
	callq	_up_read
	movq	%r12, %rdi
	callq	_free_completed_exception
	movl	$0, -52(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_EIO,4,2                        ## @EIO
	.comm	_GFP_NOIO,4,2                   ## @GFP_NOIO
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_pending_complete
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pending_complete
_pending_complete:                      ; @pending_complete
	.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
	mov	x22, x1
	mov	x19, x0
	ldr	x20, [x0, #32]
	mov	x21, x0
	ldr	w1, [x21, #24]!
	add	x2, sp, #8
	mov	x0, x20
	bl	_dm_exception_table_lock_init
	cbz	w22, LBB0_6
; %bb.1:
Lloh0:
	adrp	x8, _GFP_NOIO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_NOIO@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_alloc_completed_exception
	cbz	x0, LBB0_7
; %bb.2:
	mov	x22, x0
	ldr	w8, [x21]
	str	w8, [x0]
	mov	x0, x20
	bl	_down_read
	add	x0, sp, #8
	bl	_dm_exception_table_lock
	ldr	w8, [x20, #8]
	cbz	w8, LBB0_9
; %bb.3:
	add	x0, x20, #4
	mov	x1, x22
	bl	_dm_insert_exception
	mov	x0, x20
	bl	_up_read
	ldr	w1, [x21]
	mov	x0, x20
	bl	___chunk_is_tracked
	cbz	x0, LBB0_5
; %bb.4:
	add	x0, sp, #8
	bl	_dm_exception_table_unlock
	ldr	w1, [x21]
	mov	x0, x20
	bl	___check_for_conflicting_io
	add	x0, sp, #8
	bl	_dm_exception_table_lock
LBB0_5:
	mov	w24, #1
	b	LBB0_11
LBB0_6:
Lloh3:
	adrp	x8, _EIO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	neg	w1, w8
	mov	x0, x20
	bl	_invalidate_snapshot
	add	x0, sp, #8
	bl	_dm_exception_table_lock
	b	LBB0_10
LBB0_9:
	mov	x0, x20
	bl	_up_read
	mov	x0, x22
	bl	_free_completed_exception
LBB0_10:
	mov	w24, #0
LBB0_11:
	mov	x0, x21
	bl	_dm_remove_exception
	add	x0, sp, #8
	bl	_dm_exception_table_unlock
	add	x0, x19, #20
	bl	_bio_list_get
	mov	x22, x0
	add	x0, x19, #16
	bl	_bio_list_get
	mov	x21, x0
	ldr	x23, [x19, #8]
	cbz	x23, LBB0_14
; %bb.12:
	ldr	w8, [x19]
	str	w8, [x23]
	bl	_increment_pending_exceptions_done_count
	mov	x0, x23
	tbz	w24, #0, LBB0_16
; %bb.13:
	bl	_bio_endio
	b	LBB0_15
LBB0_14:
	bl	_increment_pending_exceptions_done_count
	tbz	w24, #0, LBB0_17
LBB0_15:
	mov	x0, x22
	bl	_flush_bios
	b	LBB0_18
LBB0_16:
	bl	_bio_io_error
LBB0_17:
	mov	x0, x22
	bl	_error_bios
LBB0_18:
	mov	x0, x20
	mov	x1, x21
	bl	_retry_origin_bios
	mov	x0, x19
	bl	_free_pending_exception
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_EIO,4,2                        ; @EIO
	.comm	_GFP_NOIO,4,2                   ; @GFP_NOIO
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_pending_complete
.subsections_via_symbols
