	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function KnownAssignedXidsSearch
_KnownAssignedXidsSearch:               ## @KnownAssignedXidsSearch
	.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
	movq	%rdi, %rbx
	movq	_procArray@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movl	%esi, -52(%rbp)                 ## 4-byte Spill
	testl	%esi, %esi
	je	LBB0_2
## %bb.1:
	movl	(%r15), %r12d
	movl	4(%r15), %r13d
	jmp	LBB0_3
LBB0_2:
	leaq	16(%r15), %r14
	movq	%r14, %rdi
	callq	_SpinLockAcquire
	movl	(%r15), %r12d
	movl	4(%r15), %r13d
	movq	%r14, %rdi
	callq	_SpinLockRelease
LBB0_3:
	xorl	%eax, %eax
	cmpl	%r13d, %r12d
	jge	LBB0_20
## %bb.4:
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	decl	%r13d
	movq	_KnownAssignedXids@GOTPCREL(%rip), %r15
	movl	%r12d, -48(%rbp)                ## 4-byte Spill
	movl	%r13d, %eax
	movl	%r12d, %r13d
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	%eax, %r12d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	decl	%r14d
	movl	%r14d, %r12d
	cmpl	%r12d, %r13d
	jg	LBB0_10
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	leal	(%r12,%r13), %eax
	movl	%eax, %r14d
	shrl	$31, %r14d
	addl	%eax, %r14d
	sarl	%r14d
	movq	(%r15), %rcx
	movslq	%r14d, %rdx
	movq	(%rcx,%rdx,8), %rsi
	cmpq	%rbx, %rsi
	je	LBB0_11
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%rbx, %rdi
	callq	_TransactionIdPrecedes
	testq	%rax, %rax
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	incl	%r14d
	movl	%r14d, %r13d
	cmpl	%r12d, %r13d
	jle	LBB0_5
LBB0_10:
	xorl	%eax, %eax
	jmp	LBB0_20
LBB0_11:
	cmpl	$-1, %eax
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	movl	$0, %eax
	movl	-44(%rbp), %r13d                ## 4-byte Reload
	jge	LBB0_12
LBB0_20:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movq	_KnownAssignedXidsValid@GOTPCREL(%rip), %r15
	movq	(%r15), %rsi
	movl	%r14d, %ecx
	movl	(%rsi,%rcx,4), %edx
	xorl	%eax, %eax
	testl	%edx, %edx
	setne	%al
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_20
## %bb.13:
	testl	%edx, %edx
	je	LBB0_20
## %bb.14:
	movl	$0, (%rsi,%rcx,4)
	movq	8(%r12), %rax
	leaq	-1(%rax), %rcx
	movq	%rcx, 8(%r12)
	xorl	%edi, %edi
	testq	%rax, %rax
	setg	%dil
	callq	_Assert
	movl	$1, %eax
	cmpl	%ebx, %r14d
	jne	LBB0_20
## %bb.15:
	movq	(%r15), %rcx
	movslq	%ebx, %rdx
	movslq	%r13d, %rdi
	subq	%rdx, %rdi
	leaq	(%rcx,%rdx,4), %rcx
	addq	$4, %rcx
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	cmpq	%rdx, %rdi
	je	LBB0_21
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=1
	leaq	1(%rdx), %rsi
	cmpl	$0, (%rcx,%rdx,4)
	movq	%rsi, %rdx
	je	LBB0_16
## %bb.18:
	addl	%esi, %ebx
	jmp	LBB0_19
LBB0_21:
	movl	$0, 4(%r12)
	xorl	%ebx, %ebx
LBB0_19:
	movl	%ebx, (%r12)
	jmp	LBB0_20
	.cfi_endproc
                                        ## -- End function
	.comm	_procArray,8,3                  ## @procArray
	.comm	_KnownAssignedXids,8,3          ## @KnownAssignedXids
	.comm	_KnownAssignedXidsValid,8,3     ## @KnownAssignedXidsValid
	.no_dead_strip	_KnownAssignedXidsSearch
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function KnownAssignedXidsSearch
_KnownAssignedXidsSearch:               ; @KnownAssignedXidsSearch
	.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
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _procArray@GOTPAGE
Lloh1:
	ldr	x8, [x8, _procArray@GOTPAGEOFF]
Lloh2:
	ldr	x22, [x8]
	cbz	w1, LBB0_2
; %bb.1:
	ldp	w23, w24, [x22]
	cmp	w23, w24
	b.ge	LBB0_7
	b	LBB0_3
LBB0_2:
	add	x21, x22, #16
	mov	x0, x21
	bl	_SpinLockAcquire
	ldp	w23, w24, [x22]
	mov	x0, x21
	bl	_SpinLockRelease
	cmp	w23, w24
	b.ge	LBB0_7
LBB0_3:
	sub	w21, w24, #1
Lloh3:
	adrp	x25, _KnownAssignedXids@GOTPAGE
Lloh4:
	ldr	x25, [x25, _KnownAssignedXids@GOTPAGEOFF]
	mov	x26, x23
	mov	x27, x21
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add	w8, w26, w27
	cmp	w8, #0
	cinc	w9, w8, lt
	asr	w24, w9, #1
	ldr	x9, [x25]
	ldr	x1, [x9, w24, sxtw #3]
	cmp	x1, x20
	b.eq	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x20
	bl	_TransactionIdPrecedes
	sub	w8, w24, #1
	cmp	x0, #0
	csel	w27, w27, w8, eq
	csinc	w26, w26, w24, ne
	cmp	w26, w27
	b.le	LBB0_4
	b	LBB0_7
LBB0_6:
	cmn	w8, #1
	b.ge	LBB0_9
LBB0_7:
	mov	w0, #0
LBB0_8:
	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_9:
Lloh5:
	adrp	x20, _KnownAssignedXidsValid@GOTPAGE
Lloh6:
	ldr	x20, [x20, _KnownAssignedXidsValid@GOTPAGEOFF]
	ldr	x8, [x20]
	ldr	w9, [x8, w24, uxtw #2]
	cmp	w9, #0
	cset	w0, ne
	cbz	w19, LBB0_8
; %bb.10:
	cbz	w9, LBB0_8
; %bb.11:
	str	wzr, [x8, x24, lsl #2]
	ldr	x8, [x22, #8]
	sub	x9, x8, #1
	str	x9, [x22, #8]
	cmp	x8, #0
	cset	w0, gt
	bl	_Assert
	cmp	w24, w23
	b.ne	LBB0_17
; %bb.12:
	ldr	x9, [x20]
	sxtw	x8, w21
	sub	x8, x8, w23, sxtw
	add	x9, x9, w23, sxtw #2
	add	x9, x9, #4
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	cbz	x8, LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	w10, [x9], #4
	sub	x8, x8, #1
	add	w23, w23, #1
	cbz	w10, LBB0_13
	b	LBB0_16
LBB0_15:
	mov	w23, #0
	str	wzr, [x22, #4]
LBB0_16:
	str	w23, [x22]
LBB0_17:
	mov	w0, #1
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_procArray,8,3                  ; @procArray
	.comm	_KnownAssignedXids,8,3          ; @KnownAssignedXids
	.comm	_KnownAssignedXidsValid,8,3     ; @KnownAssignedXidsValid
	.no_dead_strip	_KnownAssignedXidsSearch
.subsections_via_symbols
