	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function InitializeLWLocks
_InitializeLWLocks:                     ## @InitializeLWLocks
	.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
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_NumLWLocksByNamedTranches
	movl	%eax, %r13d
	movq	_MainLWLockArray@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movq	_NUM_INDIVIDUAL_LWLOCKS@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	testl	%eax, %eax
	jle	LBB0_3
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_LWLockInitialize
	incl	%ebx
	addq	$4, %r15
	movl	(%r14), %eax
	cmpl	%eax, %ebx
	jl	LBB0_1
## %bb.2:
	movq	_MainLWLockArray@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r15
LBB0_3:
	cltq
	movq	_NUM_BUFFER_PARTITIONS@GOTPCREL(%rip), %r14
	movl	(%r14), %ecx
	testl	%ecx, %ecx
	jle	LBB0_7
## %bb.4:
	leaq	(%r15,%rax,4), %r15
	xorl	%ebx, %ebx
	movq	_LWTRANCHE_BUFFER_MAPPING@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	_LWLockInitialize
	incl	%ebx
	addq	$4, %r15
	movl	(%r14), %ecx
	cmpl	%ecx, %ebx
	jl	LBB0_5
## %bb.6:
	movq	_MainLWLockArray@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movq	_NUM_INDIVIDUAL_LWLOCKS@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
LBB0_7:
	movslq	%ecx, %rdx
	movq	_NUM_LOCK_PARTITIONS@GOTPCREL(%rip), %r12
	movl	(%r12), %ecx
	testl	%ecx, %ecx
	jle	LBB0_11
## %bb.8:
	movl	%r13d, -48(%rbp)                ## 4-byte Spill
	leaq	(%r15,%rax,4), %rax
	leaq	(%rax,%rdx,4), %r15
	xorl	%ebx, %ebx
	movq	_LWTRANCHE_LOCK_MANAGER@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %esi
	movq	%r15, %rdi
	callq	_LWLockInitialize
	incl	%ebx
	addq	$4, %r15
	movl	(%r12), %ecx
	cmpl	%ecx, %ebx
	jl	LBB0_9
## %bb.10:
	movq	_MainLWLockArray@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movq	_NUM_INDIVIDUAL_LWLOCKS@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	movslq	(%r14), %rdx
	movl	-48(%rbp), %r13d                ## 4-byte Reload
LBB0_11:
	movq	_NUM_PREDICATELOCK_PARTITIONS@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	jle	LBB0_14
## %bb.12:
	leaq	(%r15,%rax,4), %rax
	leaq	(%rax,%rdx,4), %rax
	movslq	%ecx, %rcx
	leaq	(%rax,%rcx,4), %r15
	xorl	%ebx, %ebx
	movq	_LWTRANCHE_PREDICATE_LOCK_MANAGER@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	_LWLockInitialize
	incl	%ebx
	addq	$4, %r15
	cmpl	(%r14), %ebx
	jl	LBB0_13
LBB0_14:
	movq	_NamedLWLockTrancheRequests@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	testl	%r15d, %r15d
	jle	LBB0_22
## %bb.15:
	movq	_MainLWLockArray@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_NUM_FIXED_LWLOCKS@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	movslq	%r13d, %rdx
	addq	%rcx, %rdx
	leaq	(%rax,%rdx,4), %r13
	movq	_NamedLWLockTrancheArray@GOTPCREL(%rip), %rdx
	movq	%r13, (%rdx)
	leaq	(%rax,%rcx,4), %rbx
	shlq	$4, %r15
	addq	%r13, %r15
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_16:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_19 Depth 2
	movq	_NamedLWLockTrancheRequestArray@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movl	4(%r14,%r12,8), %edi
	callq	_strlen
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	4(%r14,%r12,8), %esi
	movq	%r15, %rdi
	callq	_strcpy
	xorl	%eax, %eax
	callq	_LWLockNewTrancheId
	movq	%r15, %rcx
	movq	%r12, %r15
	shlq	$4, %r15
	movl	%eax, (%r13,%r15)
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	%rcx, 8(%r13,%r15)
	cmpl	$0, (%r14,%r12,8)
	jle	LBB0_20
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=1
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_LWLockInitialize
	addq	$4, %rbx
	cmpl	$2, (%r14,%r12,8)
	jl	LBB0_20
## %bb.18:                              ##   in Loop: Header=BB0_16 Depth=1
	addq	%r15, %r13
	movl	$1, %r15d
	.p2align	4, 0x90
LBB0_19:                                ##   Parent Loop BB0_16 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%r13), %esi
	movq	%rbx, %rdi
	callq	_LWLockInitialize
	incl	%r15d
	addq	$4, %rbx
	cmpl	(%r14,%r12,8), %r15d
	jl	LBB0_19
LBB0_20:                                ##   in Loop: Header=BB0_16 Depth=1
	incq	%r12
	movq	_NamedLWLockTrancheRequests@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	cmpq	%rax, %r12
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	jge	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_16 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	addq	%rax, %r15
	incq	%r15
	movq	_NamedLWLockTrancheArray@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	jmp	LBB0_16
LBB0_22:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MainLWLockArray,8,3            ## @MainLWLockArray
	.comm	_NUM_INDIVIDUAL_LWLOCKS,4,2     ## @NUM_INDIVIDUAL_LWLOCKS
	.comm	_NUM_BUFFER_PARTITIONS,4,2      ## @NUM_BUFFER_PARTITIONS
	.comm	_LWTRANCHE_BUFFER_MAPPING,4,2   ## @LWTRANCHE_BUFFER_MAPPING
	.comm	_NUM_LOCK_PARTITIONS,4,2        ## @NUM_LOCK_PARTITIONS
	.comm	_LWTRANCHE_LOCK_MANAGER,4,2     ## @LWTRANCHE_LOCK_MANAGER
	.comm	_NUM_PREDICATELOCK_PARTITIONS,4,2 ## @NUM_PREDICATELOCK_PARTITIONS
	.comm	_LWTRANCHE_PREDICATE_LOCK_MANAGER,4,2 ## @LWTRANCHE_PREDICATE_LOCK_MANAGER
	.comm	_NamedLWLockTrancheRequests,4,2 ## @NamedLWLockTrancheRequests
	.comm	_NUM_FIXED_LWLOCKS,4,2          ## @NUM_FIXED_LWLOCKS
	.comm	_NamedLWLockTrancheArray,8,3    ## @NamedLWLockTrancheArray
	.comm	_NamedLWLockTrancheRequestArray,8,3 ## @NamedLWLockTrancheRequestArray
	.no_dead_strip	_InitializeLWLocks
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function InitializeLWLocks
_InitializeLWLocks:                     ; @InitializeLWLocks
	.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
	bl	_NumLWLocksByNamedTranches
	mov	x19, x0
Lloh0:
	adrp	x22, _MainLWLockArray@GOTPAGE
Lloh1:
	ldr	x22, [x22, _MainLWLockArray@GOTPAGEOFF]
	ldr	x20, [x22]
Lloh2:
	adrp	x23, _NUM_INDIVIDUAL_LWLOCKS@GOTPAGE
Lloh3:
	ldr	x23, [x23, _NUM_INDIVIDUAL_LWLOCKS@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.1:
	mov	w21, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x21
	bl	_LWLockInitialize
	add	w21, w21, #1
	add	x20, x20, #4
	ldr	w8, [x23]
	cmp	w21, w8
	b.lt	LBB0_2
; %bb.3:
	ldr	x20, [x22]
LBB0_4:
	sxtw	x8, w8
Lloh4:
	adrp	x21, _NUM_BUFFER_PARTITIONS@GOTPAGE
Lloh5:
	ldr	x21, [x21, _NUM_BUFFER_PARTITIONS@GOTPAGEOFF]
	ldr	w9, [x21]
	cmp	w9, #1
	b.lt	LBB0_8
; %bb.5:
	mov	w24, #0
	add	x20, x20, x8, lsl #2
Lloh6:
	adrp	x25, _LWTRANCHE_BUFFER_MAPPING@GOTPAGE
Lloh7:
	ldr	x25, [x25, _LWTRANCHE_BUFFER_MAPPING@GOTPAGEOFF]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x25]
	mov	x0, x20
	bl	_LWLockInitialize
	add	w24, w24, #1
	add	x20, x20, #4
	ldr	w9, [x21]
	cmp	w24, w9
	b.lt	LBB0_6
; %bb.7:
	ldr	x20, [x22]
	ldrsw	x8, [x23]
LBB0_8:
	sxtw	x10, w9
Lloh8:
	adrp	x24, _NUM_LOCK_PARTITIONS@GOTPAGE
Lloh9:
	ldr	x24, [x24, _NUM_LOCK_PARTITIONS@GOTPAGEOFF]
	ldr	w9, [x24]
	cmp	w9, #1
	b.lt	LBB0_12
; %bb.9:
	mov	w25, #0
	add	x8, x20, x8, lsl #2
	add	x20, x8, x10, lsl #2
Lloh10:
	adrp	x26, _LWTRANCHE_LOCK_MANAGER@GOTPAGE
Lloh11:
	ldr	x26, [x26, _LWTRANCHE_LOCK_MANAGER@GOTPAGEOFF]
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x26]
	mov	x0, x20
	bl	_LWLockInitialize
	add	w25, w25, #1
	add	x20, x20, #4
	ldr	w9, [x24]
	cmp	w25, w9
	b.lt	LBB0_10
; %bb.11:
	ldr	x20, [x22]
	ldrsw	x8, [x23]
	ldrsw	x10, [x21]
LBB0_12:
Lloh12:
	adrp	x21, _NUM_PREDICATELOCK_PARTITIONS@GOTPAGE
Lloh13:
	ldr	x21, [x21, _NUM_PREDICATELOCK_PARTITIONS@GOTPAGEOFF]
	ldr	w11, [x21]
	cmp	w11, #1
	b.lt	LBB0_15
; %bb.13:
	mov	w23, #0
	add	x8, x20, x8, lsl #2
	add	x8, x8, x10, lsl #2
	add	x20, x8, w9, sxtw #2
Lloh14:
	adrp	x24, _LWTRANCHE_PREDICATE_LOCK_MANAGER@GOTPAGE
Lloh15:
	ldr	x24, [x24, _LWTRANCHE_PREDICATE_LOCK_MANAGER@GOTPAGEOFF]
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x24]
	mov	x0, x20
	bl	_LWLockInitialize
	add	w23, w23, #1
	add	x20, x20, #4
	ldr	w8, [x21]
	cmp	w23, w8
	b.lt	LBB0_14
LBB0_15:
Lloh16:
	adrp	x23, _NamedLWLockTrancheRequests@GOTPAGE
Lloh17:
	ldr	x23, [x23, _NamedLWLockTrancheRequests@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_23
; %bb.16:
	mov	x24, #0
	ldr	x9, [x22]
Lloh18:
	adrp	x10, _NUM_FIXED_LWLOCKS@GOTPAGE
Lloh19:
	ldr	x10, [x10, _NUM_FIXED_LWLOCKS@GOTPAGEOFF]
Lloh20:
	ldrsw	x10, [x10]
	add	w11, w10, w19
Lloh21:
	adrp	x22, _NamedLWLockTrancheArray@GOTPAGE
Lloh22:
	ldr	x22, [x22, _NamedLWLockTrancheArray@GOTPAGEOFF]
	add	x27, x9, w11, sxtw #2
	str	x27, [x22]
	add	x19, x9, x10, lsl #2
	add	x20, x27, x8, lsl #4
Lloh23:
	adrp	x25, _NamedLWLockTrancheRequestArray@GOTPAGE
Lloh24:
	ldr	x25, [x25, _NamedLWLockTrancheRequestArray@GOTPAGEOFF]
LBB0_17:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_20 Depth 2
	ldr	x8, [x25]
	add	x26, x8, x24, lsl #3
	ldr	w0, [x26, #4]
	bl	_strlen
	mov	x21, x0
	ldr	w1, [x26, #4]
	mov	x0, x20
	bl	_strcpy
	bl	_LWLockNewTrancheId
	add	x27, x27, x24, lsl #4
	str	w0, [x27]
	str	x20, [x27, #8]
	ldr	w8, [x26]
	cmp	w8, #1
	b.lt	LBB0_21
; %bb.18:                               ;   in Loop: Header=BB0_17 Depth=1
	mov	x1, x0
	mov	x0, x19
	bl	_LWLockInitialize
	add	x19, x19, #4
	ldr	w8, [x26]
	cmp	w8, #2
	b.lt	LBB0_21
; %bb.19:                               ;   in Loop: Header=BB0_17 Depth=1
	mov	w28, #1
LBB0_20:                                ;   Parent Loop BB0_17 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w1, [x27]
	mov	x0, x19
	bl	_LWLockInitialize
	add	w28, w28, #1
	add	x19, x19, #4
	ldr	w8, [x26]
	cmp	w28, w8
	b.lt	LBB0_20
LBB0_21:                                ;   in Loop: Header=BB0_17 Depth=1
	add	x24, x24, #1
	ldrsw	x8, [x23]
	cmp	x24, x8
	b.ge	LBB0_23
; %bb.22:                               ;   in Loop: Header=BB0_17 Depth=1
	add	x8, x21, x20
	add	x20, x8, #1
	ldr	x27, [x22]
	b	LBB0_17
LBB0_23:
	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
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_MainLWLockArray,8,3            ; @MainLWLockArray
	.comm	_NUM_INDIVIDUAL_LWLOCKS,4,2     ; @NUM_INDIVIDUAL_LWLOCKS
	.comm	_NUM_BUFFER_PARTITIONS,4,2      ; @NUM_BUFFER_PARTITIONS
	.comm	_LWTRANCHE_BUFFER_MAPPING,4,2   ; @LWTRANCHE_BUFFER_MAPPING
	.comm	_NUM_LOCK_PARTITIONS,4,2        ; @NUM_LOCK_PARTITIONS
	.comm	_LWTRANCHE_LOCK_MANAGER,4,2     ; @LWTRANCHE_LOCK_MANAGER
	.comm	_NUM_PREDICATELOCK_PARTITIONS,4,2 ; @NUM_PREDICATELOCK_PARTITIONS
	.comm	_LWTRANCHE_PREDICATE_LOCK_MANAGER,4,2 ; @LWTRANCHE_PREDICATE_LOCK_MANAGER
	.comm	_NamedLWLockTrancheRequests,4,2 ; @NamedLWLockTrancheRequests
	.comm	_NUM_FIXED_LWLOCKS,4,2          ; @NUM_FIXED_LWLOCKS
	.comm	_NamedLWLockTrancheArray,8,3    ; @NamedLWLockTrancheArray
	.comm	_NamedLWLockTrancheRequestArray,8,3 ; @NamedLWLockTrancheRequestArray
	.no_dead_strip	_InitializeLWLocks
.subsections_via_symbols
