	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_GetNamedLWLockTranche          ## -- Begin function GetNamedLWLockTranche
	.p2align	4, 0x90
_GetNamedLWLockTranche:                 ## @GetNamedLWLockTranche
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_NamedLWLockTrancheRequests@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_5
## %bb.1:
	movq	%rdi, %r15
	movq	_NUM_FIXED_LWLOCKS@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	_NamedLWLockTrancheRequestArray@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	xorl	%ebx, %ebx
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	8(%rax,%rbx), %edi
	movq	%r15, %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r12), %rax
	addl	(%rax,%rbx), %r13d
	incq	%r14
	movq	_NamedLWLockTrancheRequests@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	addq	$16, %rbx
	cmpq	%rcx, %r14
	jl	LBB0_2
LBB0_5:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_elog
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_3:
	movq	_MainLWLockArray@GOTPCREL(%rip), %rcx
	movslq	%r13d, %rax
	shlq	$2, %rax
	addq	(%rcx), %rax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NUM_FIXED_LWLOCKS,4,2          ## @NUM_FIXED_LWLOCKS
	.comm	_NamedLWLockTrancheRequests,4,2 ## @NamedLWLockTrancheRequests
	.comm	_NamedLWLockTrancheRequestArray,8,3 ## @NamedLWLockTrancheRequestArray
	.comm	_MainLWLockArray,8,3            ## @MainLWLockArray
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"requested tranche is not registered"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_GetNamedLWLockTranche          ; -- Begin function GetNamedLWLockTranche
	.p2align	2
_GetNamedLWLockTranche:                 ; @GetNamedLWLockTranche
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
Lloh0:
	adrp	x20, _NamedLWLockTrancheRequests@GOTPAGE
Lloh1:
	ldr	x20, [x20, _NamedLWLockTrancheRequests@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.1:
	mov	x19, x0
	mov	x22, #0
	mov	x23, #0
Lloh2:
	adrp	x8, _NUM_FIXED_LWLOCKS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _NUM_FIXED_LWLOCKS@GOTPAGEOFF]
Lloh4:
	ldr	w21, [x8]
Lloh5:
	adrp	x24, _NamedLWLockTrancheRequestArray@GOTPAGE
Lloh6:
	ldr	x24, [x24, _NamedLWLockTrancheRequestArray@GOTPAGEOFF]
	ldr	x8, [x24]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	x8, x8, x22
	ldr	w0, [x8, #8]
	mov	x1, x19
	bl	_strcmp
	cbz	x0, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x24]
	ldr	w9, [x8, x22]
	add	w21, w21, w9
	add	x23, x23, #1
	ldrsw	x9, [x20]
	add	x22, x22, #16
	cmp	x23, x9
	b.lt	LBB0_2
LBB0_4:
Lloh7:
	adrp	x8, _ERROR@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	bl	_elog
	mov	x0, #0
	b	LBB0_6
LBB0_5:
Lloh12:
	adrp	x8, _MainLWLockArray@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MainLWLockArray@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	add	x0, x8, w21, sxtw #2
LBB0_6:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_NUM_FIXED_LWLOCKS,4,2          ; @NUM_FIXED_LWLOCKS
	.comm	_NamedLWLockTrancheRequests,4,2 ; @NamedLWLockTrancheRequests
	.comm	_NamedLWLockTrancheRequestArray,8,3 ; @NamedLWLockTrancheRequestArray
	.comm	_MainLWLockArray,8,3            ; @MainLWLockArray
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"requested tranche is not registered"

.subsections_via_symbols
