	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function CheckAndPromotePredicateLockRequest
_CheckAndPromotePredicateLockRequest:   ## @CheckAndPromotePredicateLockRequest
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	(%rdi), %eax
	movl	%eax, -44(%rbp)
	leaq	-44(%rbp), %rdi
	leaq	-48(%rbp), %rsi
	callq	_GetParentPredicateLockTag
	testq	%rax, %rax
	je	LBB0_11
## %bb.1:
	xorl	%r12d, %r12d
	leaq	-44(%rbp), %rbx
	leaq	-52(%rbp), %r14
	leaq	-48(%rbp), %r15
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_GetParentPredicateLockTag
	testq	%rax, %rax
	je	LBB0_8
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	-48(%rbp), %eax
	movl	%eax, -44(%rbp)
	movq	_LocalPredicateLockHash@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_HASH_ENTER@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rsi
	movq	%r14, %rcx
	callq	_hash_search
	cmpl	$0, -52(%rbp)
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	4(%rax), %r13d
	incl	%r13d
	movl	%r13d, 4(%rax)
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movabsq	$4294967296, %rcx               ## imm = 0x100000000
	movq	%rcx, (%rax)
	movl	$1, %r13d
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rdi
	callq	_MaxPredicateChildLocks
	cmpl	%eax, %r13d
	jle	LBB0_2
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	-44(%rbp), %eax
	movl	%eax, -56(%rbp)
	movl	$1, %r12d
	jmp	LBB0_2
LBB0_8:
	testl	%r12d, %r12d
	je	LBB0_11
## %bb.9:
	leaq	-56(%rbp), %rdi
	callq	_PredicateLockAcquire
	movl	$1, %eax
	jmp	LBB0_12
LBB0_11:
	xorl	%eax, %eax
LBB0_12:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LocalPredicateLockHash,4,2     ## @LocalPredicateLockHash
	.comm	_HASH_ENTER,4,2                 ## @HASH_ENTER
	.no_dead_strip	_CheckAndPromotePredicateLockRequest
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function CheckAndPromotePredicateLockRequest
lCPI0_0:
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_CheckAndPromotePredicateLockRequest:   ; @CheckAndPromotePredicateLockRequest
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	d9, d8, [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 b8, -56
	.cfi_offset b9, -64
	ldr	w8, [x0]
	str	w8, [sp, #12]
	add	x0, sp, #12
	add	x1, sp, #8
	bl	_GetParentPredicateLockTag
	cbz	x0, LBB0_11
; %bb.1:
	mov	w19, #0
Lloh0:
	adrp	x20, _LocalPredicateLockHash@GOTPAGE
Lloh1:
	ldr	x20, [x20, _LocalPredicateLockHash@GOTPAGEOFF]
Lloh2:
	adrp	x21, _HASH_ENTER@GOTPAGE
Lloh3:
	ldr	x21, [x21, _HASH_ENTER@GOTPAGEOFF]
Lloh4:
	adrp	x8, lCPI0_0@PAGE
Lloh5:
	ldr	d8, [x8, lCPI0_0@PAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x0, sp, #12
	add	x1, sp, #8
	bl	_GetParentPredicateLockTag
	cbz	x0, LBB0_8
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [sp, #8]
	str	w8, [sp, #12]
	ldr	w0, [x20]
	ldr	w2, [x21]
	add	x1, sp, #12
	mov	x3, sp
	bl	_hash_search
	ldr	w8, [sp]
	cbz	w8, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x0, #4]
	add	w22, w8, #1
	str	w22, [x0, #4]
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	str	d8, [x0]
	mov	w22, #1
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x0, sp, #12
	bl	_MaxPredicateChildLocks
	cmp	w22, w0
	b.le	LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [sp, #12]
	str	w8, [sp, #4]
	mov	w19, #1
	b	LBB0_2
LBB0_8:
	cbz	w19, LBB0_10
; %bb.9:
	add	x0, sp, #4
	bl	_PredicateLockAcquire
	mov	w0, #1
	b	LBB0_11
LBB0_10:
	mov	w0, #0
LBB0_11:
	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	d9, d8, [sp, #16]               ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdr	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_LocalPredicateLockHash,4,2     ; @LocalPredicateLockHash
	.comm	_HASH_ENTER,4,2                 ; @HASH_ENTER
	.no_dead_strip	_CheckAndPromotePredicateLockRequest
.subsections_via_symbols
