	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movq	32(%rdi), %r14
	testl	%esi, %esi
	je	LBB0_1
## %bb.3:
	xorl	%eax, %eax
	callq	_alloc_completed_exception
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %rbx
	movl	24(%r13), %eax
	movl	%eax, (%rbx)
	movq	%r14, %rdi
	callq	_down_write
	cmpl	$0, 8(%r14)
	je	LBB0_6
## %bb.7:
	movl	24(%r13), %esi
	movq	%r14, %rdi
	callq	___check_for_conflicting_io
	leaq	4(%r14), %rdi
	movq	%rbx, %rsi
	callq	_dm_insert_exception
	movb	$1, %al
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	jmp	LBB0_8
LBB0_1:
	movq	%r14, %rdi
	callq	_down_write
	movq	_EIO@GOTPCREL(%rip), %rax
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_2
LBB0_4:
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	movq	%r14, %rdi
	callq	_down_write
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%esi, %esi
	subl	(%rax), %esi
	movq	%r14, %rdi
	callq	___invalidate_snapshot
	jmp	LBB0_8
LBB0_6:
	movq	%rbx, %rdi
	callq	_free_completed_exception
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
LBB0_8:
	leaq	24(%r13), %rdi
	callq	_dm_remove_exception
	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_10
## %bb.9:
	movl	4(%r13), %eax
	movl	%eax, 4(%rbx)
	movl	(%r13), %eax
	movl	%eax, (%rbx)
LBB0_10:
	movq	%r13, %rdi
	callq	_free_pending_exception
	xorl	%eax, %eax
	callq	_increment_pending_exceptions_done_count
	movq	%r14, %rdi
	callq	_up_write
	cmpb	$0, -44(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_11
## %bb.14:
	testq	%rbx, %rbx
	je	LBB0_16
## %bb.15:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_bio_endio
LBB0_16:
	movq	%r12, %rdi
	callq	_flush_bios
	jmp	LBB0_17
LBB0_11:
	testq	%rbx, %rbx
	je	LBB0_13
## %bb.12:
	movq	%rbx, %rdi
	callq	_bio_io_error
LBB0_13:
	movq	%r12, %rdi
	callq	_error_bios
LBB0_17:
	movq	%r14, %rdi
	movq	%r15, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_retry_origin_bios              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_EIO,4,2                        ## @EIO
	.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:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x20, x0
	ldr	x19, [x0, #32]
	cbz	w1, LBB0_4
; %bb.1:
	bl	_alloc_completed_exception
	cbz	x0, LBB0_5
; %bb.2:
	mov	x21, x0
	ldr	w8, [x20, #24]
	str	w8, [x0]
	mov	x0, x19
	bl	_down_write
	ldr	w8, [x19, #8]
	cbz	w8, LBB0_7
; %bb.3:
	ldr	w1, [x20, #24]
	mov	x0, x19
	bl	___check_for_conflicting_io
	add	x0, x19, #4
	mov	x1, x21
	bl	_dm_insert_exception
	mov	w24, #1
	b	LBB0_9
LBB0_4:
	mov	x0, x19
	bl	_down_write
Lloh0:
	adrp	x8, _EIO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
	mov	x0, x19
	bl	_down_write
Lloh2:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w1, w8
	mov	x0, x19
	bl	___invalidate_snapshot
	b	LBB0_8
LBB0_7:
	mov	x0, x21
	bl	_free_completed_exception
LBB0_8:
	mov	w24, #0
LBB0_9:
	add	x0, x20, #24
	bl	_dm_remove_exception
	add	x0, x20, #20
	bl	_bio_list_get
	mov	x22, x0
	add	x0, x20, #16
	bl	_bio_list_get
	mov	x21, x0
	ldr	x23, [x20, #8]
	cbz	x23, LBB0_11
; %bb.10:
	ldr	d0, [x20]
	str	d0, [x23]
LBB0_11:
	mov	x0, x20
	bl	_free_pending_exception
	bl	_increment_pending_exceptions_done_count
	mov	x0, x19
	bl	_up_write
	tbz	w24, #0, LBB0_15
; %bb.12:
	cbz	x23, LBB0_14
; %bb.13:
	mov	x0, x23
	mov	w1, #0
	bl	_bio_endio
LBB0_14:
	mov	x0, x22
	bl	_flush_bios
	b	LBB0_18
LBB0_15:
	cbz	x23, LBB0_17
; %bb.16:
	mov	x0, x23
	bl	_bio_io_error
LBB0_17:
	mov	x0, x22
	bl	_error_bios
LBB0_18:
	mov	x0, x19
	mov	x1, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_retry_origin_bios
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_EIO,4,2                        ; @EIO
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_pending_complete
.subsections_via_symbols
