	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function RemoveScratchTarget
_RemoveScratchTarget:                   ## @RemoveScratchTarget
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movl	%edi, %ebx
	movq	_SerializablePredicateLockListLock@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_LWLockHeldByMe
	movl	%eax, %edi
	callq	_Assert
	testl	%ebx, %ebx
	je	LBB0_1
## %bb.2:
	movq	_PredicateLockTargetHash@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ScratchTargetTagHash@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_HASH_REMOVE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_ScratchTargetTag@GOTPCREL(%rip), %rsi
	leaq	-12(%rbp), %r8
	callq	_hash_search_with_hash_value
	movl	-12(%rbp), %edi
	callq	_Assert
	jmp	LBB0_3
LBB0_1:
	movq	_ScratchPartitionLock@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movq	_LW_EXCLUSIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_LWLockAcquire
	movq	_PredicateLockTargetHash@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ScratchTargetTagHash@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_HASH_REMOVE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_ScratchTargetTag@GOTPCREL(%rip), %rsi
	leaq	-12(%rbp), %r8
	callq	_hash_search_with_hash_value
	movl	-12(%rbp), %edi
	callq	_Assert
	movl	(%rbx), %edi
	callq	_LWLockRelease
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SerializablePredicateLockListLock,4,2 ## @SerializablePredicateLockListLock
	.comm	_ScratchPartitionLock,4,2       ## @ScratchPartitionLock
	.comm	_LW_EXCLUSIVE,4,2               ## @LW_EXCLUSIVE
	.comm	_PredicateLockTargetHash,4,2    ## @PredicateLockTargetHash
	.comm	_ScratchTargetTag,4,2           ## @ScratchTargetTag
	.comm	_ScratchTargetTagHash,4,2       ## @ScratchTargetTagHash
	.comm	_HASH_REMOVE,4,2                ## @HASH_REMOVE
	.no_dead_strip	_RemoveScratchTarget
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function RemoveScratchTarget
_RemoveScratchTarget:                   ; @RemoveScratchTarget
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _SerializablePredicateLockListLock@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SerializablePredicateLockListLock@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_LWLockHeldByMe
	bl	_Assert
	cbz	w19, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _PredicateLockTargetHash@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PredicateLockTargetHash@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x8, _ScratchTargetTagHash@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ScratchTargetTagHash@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
Lloh9:
	adrp	x8, _HASH_REMOVE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _HASH_REMOVE@GOTPAGEOFF]
Lloh11:
	ldr	w3, [x8]
Lloh12:
	adrp	x1, _ScratchTargetTag@GOTPAGE
Lloh13:
	ldr	x1, [x1, _ScratchTargetTag@GOTPAGEOFF]
	add	x4, sp, #12
	bl	_hash_search_with_hash_value
	ldr	w0, [sp, #12]
	bl	_Assert
	b	LBB0_3
LBB0_2:
Lloh14:
	adrp	x19, _ScratchPartitionLock@GOTPAGE
Lloh15:
	ldr	x19, [x19, _ScratchPartitionLock@GOTPAGEOFF]
	ldr	w0, [x19]
Lloh16:
	adrp	x8, _LW_EXCLUSIVE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _LW_EXCLUSIVE@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	bl	_LWLockAcquire
Lloh19:
	adrp	x8, _PredicateLockTargetHash@GOTPAGE
Lloh20:
	ldr	x8, [x8, _PredicateLockTargetHash@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
Lloh22:
	adrp	x8, _ScratchTargetTagHash@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ScratchTargetTagHash@GOTPAGEOFF]
Lloh24:
	ldr	w2, [x8]
Lloh25:
	adrp	x8, _HASH_REMOVE@GOTPAGE
Lloh26:
	ldr	x8, [x8, _HASH_REMOVE@GOTPAGEOFF]
Lloh27:
	ldr	w3, [x8]
Lloh28:
	adrp	x1, _ScratchTargetTag@GOTPAGE
Lloh29:
	ldr	x1, [x1, _ScratchTargetTag@GOTPAGEOFF]
	add	x4, sp, #12
	bl	_hash_search_with_hash_value
	ldr	w0, [sp, #12]
	bl	_Assert
	ldr	w0, [x19]
	bl	_LWLockRelease
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_SerializablePredicateLockListLock,4,2 ; @SerializablePredicateLockListLock
	.comm	_ScratchPartitionLock,4,2       ; @ScratchPartitionLock
	.comm	_LW_EXCLUSIVE,4,2               ; @LW_EXCLUSIVE
	.comm	_PredicateLockTargetHash,4,2    ; @PredicateLockTargetHash
	.comm	_ScratchTargetTag,4,2           ; @ScratchTargetTag
	.comm	_ScratchTargetTagHash,4,2       ; @ScratchTargetTagHash
	.comm	_HASH_REMOVE,4,2                ; @HASH_REMOVE
	.no_dead_strip	_RemoveScratchTarget
.subsections_via_symbols
