	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_in_sync
_set_in_sync:                           ## @set_in_sync
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	leaq	32(%rdi), %r15
	movq	%r15, %rdi
	callq	_lockdep_assert_held
	cmpl	$0, (%rbx)
	jne	LBB0_6
## %bb.1:
	incq	8(%rbx)
	movq	%r15, %rdi
	callq	_spin_unlock
	leaq	20(%rbx), %r14
	movq	%r14, %rdi
	callq	_percpu_ref_switch_to_atomic_sync
	movq	%r15, %rdi
	callq	_spin_lock
	cmpl	$0, (%rbx)
	jne	LBB0_4
## %bb.2:
	movq	%r14, %rdi
	callq	_percpu_ref_is_zero
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movl	$1, (%rbx)
	xorl	%eax, %eax
	callq	_smp_mb
	movq	_MD_SB_CHANGE_CLEAN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	28(%rbx), %rsi
	callq	_set_bit
	movl	24(%rbx), %edi
	callq	_sysfs_notify_dirent_safe
LBB0_4:
	decq	8(%rbx)
	je	LBB0_5
LBB0_6:
	cmpl	$1, 16(%rbx)
	jne	LBB0_8
LBB0_7:
	movl	$0, 16(%rbx)
LBB0_8:
	movl	(%rbx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	%r14, %rdi
	callq	_percpu_ref_switch_to_percpu
	cmpl	$1, 16(%rbx)
	je	LBB0_7
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_MD_SB_CHANGE_CLEAN,4,2         ## @MD_SB_CHANGE_CLEAN
	.no_dead_strip	_set_in_sync
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_in_sync
_set_in_sync:                           ; @set_in_sync
	.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	x21, x0, #32
	mov	x0, x21
	bl	_lockdep_assert_held
	ldr	w8, [x19]
	cbnz	w8, LBB0_6
; %bb.1:
	ldr	x8, [x19, #8]
	add	x8, x8, #1
	str	x8, [x19, #8]
	mov	x0, x21
	bl	_spin_unlock
	add	x20, x19, #20
	mov	x0, x20
	bl	_percpu_ref_switch_to_atomic_sync
	mov	x0, x21
	bl	_spin_lock
	ldr	w8, [x19]
	cbnz	w8, LBB0_4
; %bb.2:
	mov	x0, x20
	bl	_percpu_ref_is_zero
	cbz	x0, LBB0_4
; %bb.3:
	mov	w8, #1
	str	w8, [x19]
	bl	_smp_mb
Lloh0:
	adrp	x8, _MD_SB_CHANGE_CLEAN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MD_SB_CHANGE_CLEAN@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x1, x19, #28
	bl	_set_bit
	ldr	w0, [x19, #24]
	bl	_sysfs_notify_dirent_safe
LBB0_4:
	ldr	x8, [x19, #8]
	subs	x8, x8, #1
	str	x8, [x19, #8]
	b.ne	LBB0_6
; %bb.5:
	mov	x0, x20
	bl	_percpu_ref_switch_to_percpu
LBB0_6:
	ldr	w8, [x19, #16]
	cmp	w8, #1
	b.ne	LBB0_8
; %bb.7:
	str	wzr, [x19, #16]
LBB0_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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MD_SB_CHANGE_CLEAN,4,2         ; @MD_SB_CHANGE_CLEAN
	.no_dead_strip	_set_in_sync
.subsections_via_symbols
