	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dec_in_flight
_dec_in_flight:                         ## @dec_in_flight
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	addq	$32, %rdi
	callq	_atomic_dec_and_test
	testq	%rax, %rax
	je	LBB0_9
## %bb.1:
	movq	24(%rbx), %r14
	leaq	12(%rbx), %r15
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_remove_range
	movl	(%rbx), %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	%r14, %rdi
	callq	_schedule_autocommit
LBB0_3:
	movq	%rbx, %rdi
	movl	$40, %esi
	callq	_dm_bio_from_per_bio_data
	movq	%rax, %r12
	movl	4(%rbx), %edi
	callq	_unlikely
	movl	(%r12), %ecx
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	testl	%ecx, %ecx
	jne	LBB0_6
## %bb.5:
	movl	4(%rbx), %ecx
	movl	%ecx, (%r12)
LBB0_6:
	xorl	%edi, %edi
	testl	%ecx, %ecx
	sete	%dil
	callq	_likely
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	%r12, %rdi
	callq	_bio_sectors
	xorl	%edi, %edi
	cmpl	(%r15), %eax
	setne	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_8
## %bb.10:
	movl	12(%rbx), %esi
	addl	%esi, 16(%rbx)
	movq	_SECTOR_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %esi
	movq	%r12, %rdi
	callq	_bio_advance
	addq	$8, %rbx
	movq	_integrity_bio_wait@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_INIT_WORK
	movl	(%r14), %edi
	movq	%rbx, %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_queue_work                     ## TAILCALL
LBB0_9:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_do_endio_flush                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SECTOR_SHIFT,4,2               ## @SECTOR_SHIFT
	.comm	_integrity_bio_wait,4,2         ## @integrity_bio_wait
	.no_dead_strip	_dec_in_flight
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dec_in_flight
_dec_in_flight:                         ; @dec_in_flight
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	add	x0, x0, #32
	bl	_atomic_dec_and_test
	cbz	x0, LBB0_9
; %bb.1:
	ldr	x20, [x19, #24]
	add	x21, x19, #12
	mov	x0, x20
	mov	x1, x21
	bl	_remove_range
	ldr	w0, [x19]
	bl	_unlikely
	cbz	x0, LBB0_3
; %bb.2:
	mov	x0, x20
	bl	_schedule_autocommit
LBB0_3:
	mov	x0, x19
	mov	w1, #40
	bl	_dm_bio_from_per_bio_data
	mov	x22, x0
	ldr	w0, [x19, #4]
	bl	_unlikely
	ldr	w8, [x22]
	cbz	x0, LBB0_6
; %bb.4:
	cbnz	w8, LBB0_6
; %bb.5:
	ldr	w8, [x19, #4]
	str	w8, [x22]
LBB0_6:
	cmp	w8, #0
	cset	w0, eq
	bl	_likely
	cbz	x0, LBB0_10
; %bb.7:
	mov	x0, x22
	bl	_bio_sectors
	ldr	w8, [x21]
	cmp	w0, w8
	cset	w0, ne
	bl	_unlikely
	cbz	x0, LBB0_10
; %bb.8:
	ldp	w8, w9, [x19, #12]
	add	w9, w9, w8
	str	w9, [x19, #16]
Lloh0:
	adrp	x9, _SECTOR_SHIFT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SECTOR_SHIFT@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	lsl	w1, w8, w9
	mov	x0, x22
	bl	_bio_advance
	add	x19, x19, #8
Lloh3:
	adrp	x8, _integrity_bio_wait@GOTPAGE
Lloh4:
	ldr	x8, [x8, _integrity_bio_wait@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_INIT_WORK
	ldr	w0, [x20]
	mov	x1, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_queue_work
LBB0_9:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_10:
	mov	x0, x20
	mov	x1, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_do_endio_flush
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SECTOR_SHIFT,4,2               ; @SECTOR_SHIFT
	.comm	_integrity_bio_wait,4,2         ; @integrity_bio_wait
	.no_dead_strip	_dec_in_flight
.subsections_via_symbols
