	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function metadata_update_start
_metadata_update_start:                 ## @metadata_update_start
	.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
	movq	8(%rdi), %r15
	movq	_MD_CLUSTER_HOLDING_MUTEX_FOR_RECVD@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movq	%r15, %rsi
	callq	_test_and_set_bit_lock
	movl	%eax, %edi
	callq	_WARN_ON_ONCE
	movl	(%rbx), %edi
	callq	_md_wakeup_thread
	movl	16(%r15), %r14d
	movq	_MD_CLUSTER_SEND_LOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_test_and_set_bit
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	_MD_CLUSTER_SEND_LOCKED_ALREADY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_test_and_clear_bit
	xorl	%esi, %esi
	testq	%rax, %rax
	setne	%sil
	jmp	LBB0_3
LBB0_1:
	movl	$1, %esi
LBB0_3:
	movl	%r14d, %edi
	callq	_wait_event
	movq	8(%r15), %rax
	movq	(%rax), %rax
	movq	_DLM_LOCK_EX@GOTPCREL(%rip), %rcx
	xorl	%r14d, %r14d
	cmpq	(%rcx), %rax
	je	LBB0_5
## %bb.4:
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_lock_token
	movl	%eax, %r14d
LBB0_5:
	movl	(%r12), %edi
	movq	%r15, %rsi
	callq	_clear_bit_unlock
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MD_CLUSTER_HOLDING_MUTEX_FOR_RECVD,4,2 ## @MD_CLUSTER_HOLDING_MUTEX_FOR_RECVD
	.comm	_MD_CLUSTER_SEND_LOCK,4,2       ## @MD_CLUSTER_SEND_LOCK
	.comm	_MD_CLUSTER_SEND_LOCKED_ALREADY,4,2 ## @MD_CLUSTER_SEND_LOCKED_ALREADY
	.comm	_DLM_LOCK_EX,8,3                ## @DLM_LOCK_EX
	.no_dead_strip	_metadata_update_start
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function metadata_update_start
_metadata_update_start:                 ; @metadata_update_start
	.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, x0
	ldr	x19, [x0, #8]
Lloh0:
	adrp	x21, _MD_CLUSTER_HOLDING_MUTEX_FOR_RECVD@GOTPAGE
Lloh1:
	ldr	x21, [x21, _MD_CLUSTER_HOLDING_MUTEX_FOR_RECVD@GOTPAGEOFF]
	ldr	w0, [x21]
	mov	x1, x19
	bl	_test_and_set_bit_lock
	bl	_WARN_ON_ONCE
	ldr	w0, [x20]
	bl	_md_wakeup_thread
	ldr	w20, [x19, #16]
Lloh2:
	adrp	x8, _MD_CLUSTER_SEND_LOCK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MD_CLUSTER_SEND_LOCK@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_test_and_set_bit
	cbz	w0, LBB0_2
; %bb.1:
Lloh5:
	adrp	x8, _MD_CLUSTER_SEND_LOCKED_ALREADY@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MD_CLUSTER_SEND_LOCKED_ALREADY@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_test_and_clear_bit
	cmp	x0, #0
	cset	w1, ne
	b	LBB0_3
LBB0_2:
	mov	w1, #1
LBB0_3:
	mov	x0, x20
	bl	_wait_event
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
Lloh8:
	adrp	x9, _DLM_LOCK_EX@GOTPAGE
Lloh9:
	ldr	x9, [x9, _DLM_LOCK_EX@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.4:
	mov	w20, #0
	b	LBB0_6
LBB0_5:
	mov	x0, x19
	mov	w1, #1
	bl	_lock_token
	mov	x20, x0
LBB0_6:
	ldr	w0, [x21]
	mov	x1, x19
	bl	_clear_bit_unlock
	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
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_MD_CLUSTER_HOLDING_MUTEX_FOR_RECVD,4,2 ; @MD_CLUSTER_HOLDING_MUTEX_FOR_RECVD
	.comm	_MD_CLUSTER_SEND_LOCK,4,2       ; @MD_CLUSTER_SEND_LOCK
	.comm	_MD_CLUSTER_SEND_LOCKED_ALREADY,4,2 ; @MD_CLUSTER_SEND_LOCKED_ALREADY
	.comm	_DLM_LOCK_EX,8,3                ; @DLM_LOCK_EX
	.no_dead_strip	_metadata_update_start
.subsections_via_symbols
