	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cfi_staa_sync
_cfi_staa_sync:                         ## @cfi_staa_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rax
	movq	(%rax), %r14
	movq	_wait@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_current@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_DECLARE_WAITQUEUE
	cmpl	$0, (%r14)
	jle	LBB0_10
## %bb.1:
	movl	$2, %eax
	movl	$8, %ecx
	xorl	%r15d, %r15d
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, 4(%rcx,%r15)
	movl	$128, (%r12)
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r14), %edi
	callq	_spin_unlock_bh
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	incq	%r15
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movslq	(%r14), %rdx
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	leaq	1(%r12), %rax
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	leaq	16(%rbx), %rcx
	cmpq	%rdx, %r15
	jge	LBB0_6
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_3 Depth 2
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movq	8(%r14), %rax
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	shlq	$4, %r15
	leaq	(%rax,%r15), %r14
	addq	$8, %r14
	leaq	(%rax,%r15), %r12
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	leaq	(%rax,%r15), %rbx
	addq	$12, %rbx
	.p2align	4, 0x90
LBB0_3:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%r14), %edi
	callq	_spin_lock_bh
	movl	(%r12), %eax
	leal	-129(%rax), %ecx
	cmpl	$4, %ecx
	jb	LBB0_11
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=2
	cmpl	$128, %eax
	je	LBB0_12
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=2
	movq	_TASK_UNINTERRUPTIBLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_set_current_state
	movq	%rbx, %rdi
	movq	_wait@GOTPCREL(%rip), %r13
	movq	%r13, %rsi
	callq	_add_wait_queue
	movl	(%r14), %edi
	callq	_spin_unlock_bh
	xorl	%eax, %eax
	callq	_schedule
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_remove_wait_queue
	jmp	LBB0_3
LBB0_6:
	testl	%r15d, %r15d
	jg	LBB0_7
LBB0_10:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=1
	movl	(%r15,%rbx), %edi
	callq	_spin_unlock_bh
	decq	%r12
	addq	$-16, %rbx
	cmpq	$1, %r12
	jbe	LBB0_10
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r14), %r15
	movl	(%r15,%rbx), %edi
	callq	_spin_lock_bh
	cmpl	$128, -8(%r15,%rbx)
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movl	-4(%r15,%rbx), %eax
	movl	%eax, -8(%r15,%rbx)
	leaq	(%r15,%rbx), %rdi
	addq	$4, %rdi
	callq	_wake_up
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_wait,4,2                       ## @wait
	.comm	_current,4,2                    ## @current
	.comm	_TASK_UNINTERRUPTIBLE,4,2       ## @TASK_UNINTERRUPTIBLE
	.no_dead_strip	_cfi_staa_sync
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cfi_staa_sync
_cfi_staa_sync:                         ; @cfi_staa_sync
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	ldr	x8, [x0]
	ldr	x21, [x8]
Lloh0:
	adrp	x8, _wait@GOTPAGE
Lloh1:
	ldr	x8, [x8, _wait@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _current@GOTPAGE
Lloh4:
	ldr	x8, [x8, _current@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_DECLARE_WAITQUEUE
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.1:
	mov	x24, #0
	mov	w8, #2
	mov	w9, #16
Lloh6:
	adrp	x26, _TASK_UNINTERRUPTIBLE@GOTPAGE
Lloh7:
	ldr	x26, [x26, _TASK_UNINTERRUPTIBLE@GOTPAGEOFF]
Lloh8:
	adrp	x19, _wait@GOTPAGE
Lloh9:
	ldr	x19, [x19, _wait@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x9, x25, x24, lsl #4
	str	w8, [x9, #4]
	mov	w8, #128
	str	w8, [x28]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x27]
	bl	_spin_unlock_bh
	add	x24, x24, #1
	ldrsw	x10, [x21]
	add	x8, x22, #1
	add	x9, x23, #16
	cmp	x24, x10
	b.ge	LBB0_8
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	mov	x22, x8
	mov	x23, x9
	ldr	x25, [x21, #8]
	add	x28, x25, x24, lsl #4
	add	x27, x28, #8
	add	x20, x28, #12
LBB0_5:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w0, [x27]
	bl	_spin_lock_bh
	ldr	w8, [x28]
	sub	w9, w8, #129
	cmp	w9, #4
	b.lo	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=2
	cmp	w8, #128
	b.eq	LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=2
	ldr	w0, [x26]
	bl	_set_current_state
	mov	x0, x20
	mov	x1, x19
	bl	_add_wait_queue
	ldr	w0, [x27]
	bl	_spin_unlock_bh
	bl	_schedule
	mov	x0, x20
	mov	x1, x19
	bl	_remove_wait_queue
	b	LBB0_5
LBB0_8:
	cmp	w24, #1
	b.ge	LBB0_11
LBB0_9:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	ldur	w0, [x19, #-8]
	bl	_spin_unlock_bh
	sub	x22, x22, #1
	sub	x23, x23, #16
	cmp	x22, #1
	b.ls	LBB0_9
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21, #8]
	add	x19, x8, x23
	ldur	w0, [x19, #-8]
	bl	_spin_lock_bh
	ldur	w8, [x19, #-16]
	cmp	w8, #128
	b.ne	LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	ldur	w8, [x19, #-12]
	stur	w8, [x19, #-16]
	sub	x0, x19, #4
	bl	_wake_up
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_wait,4,2                       ; @wait
	.comm	_current,4,2                    ; @current
	.comm	_TASK_UNINTERRUPTIBLE,4,2       ; @TASK_UNINTERRUPTIBLE
	.no_dead_strip	_cfi_staa_sync
.subsections_via_symbols
