	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_LWLockRegisterTranche          ## -- Begin function LWLockRegisterTranche
	.p2align	4, 0x90
_LWLockRegisterTranche:                 ## @LWLockRegisterTranche
	.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	%rsi, -56(%rbp)                 ## 8-byte Spill
	movl	%edi, %r12d
	movq	_LWLockTrancheArray@GOTPCREL(%rip), %r15
	xorl	%edi, %edi
	cmpq	$0, (%r15)
	setne	%dil
	callq	_Assert
	movq	_LWLockTranchesAllocated@GOTPCREL(%rip), %r13
	movl	(%r13), %ebx
	cmpl	%r12d, %ebx
	jg	LBB0_9
## %bb.1:
	movslq	%ebx, %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	%ebx, %eax
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%eax, %r14d
	leal	(%r14,%r14), %eax
	cmpl	%r12d, %r14d
	jle	LBB0_2
## %bb.3:
	movq	(%r15), %rdi
	leal	(,%r14,8), %esi
	callq	_repalloc
	movq	%rax, (%r15)
	movl	%r14d, (%r13)
	cmpl	%r14d, %ebx
	jge	LBB0_9
## %bb.4:
	movslq	%r14d, %rcx
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	leaq	1(%rsi), %rdx
	movq	$0, (%rax,%rsi,8)
	cmpq	%rcx, %rdx
	je	LBB0_9
## %bb.5:
	notl	%ebx
	addl	%r14d, %ebx
	movq	%rcx, %rax
	subq	-48(%rbp), %rax                 ## 8-byte Folded Reload
	addq	$-2, %rax
	andq	$3, %rbx
	je	LBB0_7
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rsi
	movq	$0, (%rsi,%rdx,8)
	incq	%rdx
	decq	%rbx
	jne	LBB0_6
LBB0_7:
	cmpq	$3, %rax
	jb	LBB0_9
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rax
	movq	$0, (%rax,%rdx,8)
	movq	(%r15), %rax
	movq	$0, 8(%rax,%rdx,8)
	movq	(%r15), %rax
	movq	$0, 16(%rax,%rdx,8)
	movq	(%r15), %rax
	movq	$0, 24(%rax,%rdx,8)
	addq	$4, %rdx
	cmpq	%rdx, %rcx
	jne	LBB0_8
LBB0_9:
	movq	(%r15), %rax
	movslq	%r12d, %rcx
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	%rdx, (%rax,%rcx,8)
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LWLockTrancheArray,8,3         ## @LWLockTrancheArray
	.comm	_LWLockTranchesAllocated,4,2    ## @LWLockTranchesAllocated
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_LWLockRegisterTranche          ; -- Begin function LWLockRegisterTranche
	.p2align	2
_LWLockRegisterTranche:                 ; @LWLockRegisterTranche
	.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
Lloh0:
	adrp	x21, _LWLockTrancheArray@GOTPAGE
Lloh1:
	ldr	x21, [x21, _LWLockTrancheArray@GOTPAGEOFF]
	ldr	x8, [x21]
	cmp	x8, #0
	cset	w0, ne
	bl	_Assert
Lloh2:
	adrp	x23, _LWLockTranchesAllocated@GOTPAGE
Lloh3:
	ldr	x23, [x23, _LWLockTranchesAllocated@GOTPAGEOFF]
	ldr	w24, [x23]
	cmp	w24, w20
	b.gt	LBB0_6
; %bb.1:
	sxtw	x22, w24
	mov	x8, x24
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x25, x8
	lsl	w8, w8, #1
	cmp	w25, w20
	b.le	LBB0_2
; %bb.3:
	ldr	x0, [x21]
	lsl	w1, w25, #3
	bl	_repalloc
	str	x0, [x21]
	str	w25, [x23]
	cmp	w24, w25
	b.ge	LBB0_6
; %bb.4:
	sxtw	x8, w25
	add	x9, x22, #1
	str	xzr, [x0, x22, lsl #3]
	cmp	x9, x8
	b.eq	LBB0_6
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x21]
	str	xzr, [x10, x9, lsl #3]
	add	x10, x9, #1
	mov	x9, x10
	cmp	x8, x10
	b.ne	LBB0_5
LBB0_6:
	ldr	x8, [x21]
	str	x19, [x8, w20, sxtw #3]
	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	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_LWLockTrancheArray,8,3         ; @LWLockTrancheArray
	.comm	_LWLockTranchesAllocated,4,2    ; @LWLockTranchesAllocated
.subsections_via_symbols
