	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function raise_barrier
_raise_barrier:                         ## @raise_barrier
	.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
	movl	%esi, %r15d
	movq	%rdi, %rbx
	xorl	%edi, %edi
	testl	%esi, %esi
	je	LBB0_2
## %bb.1:
	cmpq	$0, (%rbx)
	sete	%dil
LBB0_2:
	callq	_BUG_ON
	leaq	8(%rbx), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irq
	movl	16(%rbx), %edi
	movl	$1, %esi
	testl	%r15d, %r15d
	jne	LBB0_4
## %bb.3:
	xorl	%esi, %esi
	cmpl	$0, 20(%rbx)
	sete	%sil
LBB0_4:
	movl	8(%rbx), %edx
	callq	_wait_event_lock_irq
	incq	(%rbx)
	movl	16(%rbx), %r15d
	leaq	12(%rbx), %rdi
	callq	_atomic_read
	xorl	%esi, %esi
	testl	%eax, %eax
	jne	LBB0_6
## %bb.5:
	movq	(%rbx), %rax
	movq	_RESYNC_DEPTH@GOTPCREL(%rip), %rcx
	xorl	%esi, %esi
	cmpq	(%rcx), %rax
	setl	%sil
LBB0_6:
	movl	(%r14), %edx
	movl	%r15d, %edi
	callq	_wait_event_lock_irq
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irq                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_RESYNC_DEPTH,8,3               ## @RESYNC_DEPTH
	.no_dead_strip	_raise_barrier
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function raise_barrier
_raise_barrier:                         ; @raise_barrier
	.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	x21, x1
	mov	x20, x0
	cbz	w1, LBB0_2
; %bb.1:
	ldr	x8, [x20]
	cmp	x8, #0
	cset	w0, eq
	b	LBB0_3
LBB0_2:
	mov	w0, #0
LBB0_3:
	bl	_BUG_ON
	add	x19, x20, #8
	mov	x0, x19
	bl	_spin_lock_irq
	ldr	w0, [x20, #16]
	cbz	w21, LBB0_5
; %bb.4:
	mov	w1, #1
	b	LBB0_6
LBB0_5:
	ldr	w8, [x20, #20]
	cmp	w8, #0
	cset	w1, eq
LBB0_6:
	ldr	w2, [x20, #8]
	bl	_wait_event_lock_irq
	ldr	x8, [x20]
	add	x8, x8, #1
	str	x8, [x20]
	ldr	w21, [x20, #16]
	add	x0, x20, #12
	bl	_atomic_read
	cbz	w0, LBB0_8
; %bb.7:
	mov	w1, #0
	b	LBB0_9
LBB0_8:
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _RESYNC_DEPTH@GOTPAGE
Lloh1:
	ldr	x9, [x9, _RESYNC_DEPTH@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w1, lt
LBB0_9:
	ldr	w2, [x19]
	mov	x0, x21
	bl	_wait_event_lock_irq
	mov	x0, 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	_spin_unlock_irq
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_RESYNC_DEPTH,8,3               ; @RESYNC_DEPTH
	.no_dead_strip	_raise_barrier
.subsections_via_symbols
