	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ProcLockWakeup                 ## -- Begin function ProcLockWakeup
	.p2align	4, 0x90
_ProcLockWakeup:                        ## @ProcLockWakeup
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movl	(%rsi), %r13d
	movl	%r13d, %edi
	notl	%edi
	shrl	$31, %edi
	callq	_Assert
	testl	%r13d, %r13d
	je	LBB0_9
## %bb.1:
	jle	LBB0_8
## %bb.2:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %r12
	incl	%r13d
	xorl	%r14d, %r14d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rdi
	callq	_LOCKBIT_ON
	orl	%eax, %r14d
	movq	8(%r12), %r12
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	decl	%r13d
	cmpl	$1, %r13d
	jbe	LBB0_8
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rbx
	movq	(%r15), %rax
	testl	%r14d, (%rax,%rbx,4)
	jne	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	16(%r12), %ecx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	callq	_LockCheckConflicts
	movq	_STATUS_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	16(%r12), %esi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rdx
	callq	_GrantLock
	movq	_STATUS_OK@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r12, %rdi
	callq	_ProcWakeup
	movq	%rax, %r12
	jmp	LBB0_7
LBB0_8:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	notl	%edi
	shrl	$31, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_Assert                         ## TAILCALL
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STATUS_OK,8,3                  ## @STATUS_OK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ProcLockWakeup                 ; -- Begin function ProcLockWakeup
	.p2align	2
_ProcLockWakeup:                        ; @ProcLockWakeup
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x1
	mov	x20, x0
	ldr	w22, [x1]
	mvn	w8, w22
	lsr	w0, w8, #31
	bl	_Assert
	cbz	w22, LBB0_9
; %bb.1:
	cmp	w22, #1
	b.lt	LBB0_8
; %bb.2:
	mov	w23, #0
	ldr	x21, [x19, #8]
	add	w24, w22, #1
Lloh0:
	adrp	x25, _STATUS_OK@GOTPAGE
Lloh1:
	ldr	x25, [x25, _STATUS_OK@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x22
	bl	_LOCKBIT_ON
	orr	w23, w0, w23
	ldr	x21, [x21, #8]
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	sub	w24, w24, #1
	cmp	w24, #1
	b.ls	LBB0_8
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x22, [x21]
	ldr	x8, [x20]
	ldr	w8, [x8, x22, lsl #2]
	tst	w8, w23
	b.ne	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w3, [x21, #16]
	mov	x0, x20
	mov	x1, x22
	mov	x2, x19
	bl	_LockCheckConflicts
	ldr	x8, [x25]
	cmp	x0, x8
	b.ne	LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w1, [x21, #16]
	mov	x0, x19
	mov	x2, x22
	bl	_GrantLock
	ldr	x1, [x25]
	mov	x0, x21
	bl	_ProcWakeup
	mov	x21, x0
	b	LBB0_4
LBB0_8:
	ldr	w8, [x19]
	mvn	w8, w8
	lsr	w0, w8, #31
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_Assert
LBB0_9:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_STATUS_OK,8,3                  ; @STATUS_OK
.subsections_via_symbols
