	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dm_rh_dec                      ## -- Begin function dm_rh_dec
	.p2align	4, 0x90
_dm_rh_dec:                             ## @dm_rh_dec
	.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
	movl	%esi, %r14d
	movq	%rdi, %rbx
	leaq	32(%rdi), %r12
	movq	%r12, %rdi
	callq	_read_lock
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	___rh_lookup
	movq	%rax, %r15
	movq	%r12, %rdi
	callq	_read_unlock
	leaq	16(%rbx), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	leaq	12(%r15), %rdi
	callq	_atomic_dec_and_test
	testq	%rax, %rax
	je	LBB0_8
## %bb.1:
	movq	%rbx, %r12
	movl	28(%rbx), %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	_DM_RH_NOSYNC@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r15)
	jmp	LBB0_7
LBB0_8:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
LBB0_3:
	movq	(%r15), %rax
	movq	_DM_RH_RECOVERING@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.4:
	addq	$8, %r15
	leaq	24(%r12), %rsi
	movq	%r15, %rdi
	callq	_list_add_tail
	jmp	LBB0_7
LBB0_5:
	movq	_DM_RH_DIRTY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.6:
	movq	_DM_RH_CLEAN@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r15)
	addq	$8, %r15
	leaq	20(%r12), %rsi
	movq	%r15, %rdi
	callq	_list_add
LBB0_7:
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	movq	%r12, %rax
	movl	(%r12), %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*8(%rax)                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DM_RH_NOSYNC,8,3               ## @DM_RH_NOSYNC
	.comm	_DM_RH_RECOVERING,8,3           ## @DM_RH_RECOVERING
	.comm	_DM_RH_DIRTY,8,3                ## @DM_RH_DIRTY
	.comm	_DM_RH_CLEAN,8,3                ## @DM_RH_CLEAN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dm_rh_dec                      ; -- Begin function dm_rh_dec
	.p2align	2
_dm_rh_dec:                             ; @dm_rh_dec
	.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	x20, x1
	mov	x19, x0
	add	x22, x0, #32
	mov	x0, x22
	bl	_read_lock
	mov	x0, x19
	mov	x1, x20
	bl	___rh_lookup
	mov	x21, x0
	mov	x0, x22
	bl	_read_unlock
	add	x20, x19, #16
	mov	x0, x20
	bl	_spin_lock_irqsave
	add	x0, x21, #12
	bl	_atomic_dec_and_test
	cbz	x0, LBB0_3
; %bb.1:
	ldr	w0, [x19, #28]
	bl	_unlikely
	cbz	x0, LBB0_4
; %bb.2:
Lloh0:
	adrp	x8, _DM_RH_NOSYNC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DM_RH_NOSYNC@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [x21]
	b	LBB0_8
LBB0_3:
	mov	x0, x20
	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	_spin_unlock_irqrestore
LBB0_4:
	ldr	x8, [x21]
Lloh3:
	adrp	x9, _DM_RH_RECOVERING@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DM_RH_RECOVERING@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.5:
	add	x0, x21, #8
	add	x1, x19, #24
	bl	_list_add_tail
	b	LBB0_8
LBB0_6:
Lloh6:
	adrp	x9, _DM_RH_DIRTY@GOTPAGE
Lloh7:
	ldr	x9, [x9, _DM_RH_DIRTY@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.7:
Lloh9:
	adrp	x8, _DM_RH_CLEAN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DM_RH_CLEAN@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	str	x8, [x21], #8
	add	x1, x19, #20
	mov	x0, x21
	bl	_list_add
LBB0_8:
	mov	x0, x20
	bl	_spin_unlock_irqrestore
	ldr	x1, [x19, #8]
	ldr	w0, [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
	br	x1
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_DM_RH_NOSYNC,8,3               ; @DM_RH_NOSYNC
	.comm	_DM_RH_RECOVERING,8,3           ; @DM_RH_RECOVERING
	.comm	_DM_RH_DIRTY,8,3                ; @DM_RH_DIRTY
	.comm	_DM_RH_CLEAN,8,3                ; @DM_RH_CLEAN
.subsections_via_symbols
