	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_RequestNamedLWLockTranche      ## -- Begin function RequestNamedLWLockTranche
	.p2align	4, 0x90
_RequestNamedLWLockTranche:             ## @RequestNamedLWLockTranche
	.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	_IsUnderPostmaster@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_8
## %bb.1:
	movq	_lock_named_request_allowed@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_8
## %bb.2:
	movl	%esi, %r12d
	movq	%rdi, %r15
	movq	_NamedLWLockTrancheRequestArray@GOTPCREL(%rip), %r14
	movq	(%r14), %rbx
	testq	%rbx, %rbx
	jne	LBB0_4
## %bb.3:
	movq	_NamedLWLockTrancheRequestsAllocated@GOTPCREL(%rip), %rax
	movl	$16, (%rax)
	movq	_TopMemoryContext@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$128, %esi
	callq	_MemoryContextAlloc
	movq	%rax, %rbx
	movq	%rax, (%r14)
LBB0_4:
	movq	_NamedLWLockTrancheRequests@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	movq	_NamedLWLockTrancheRequestsAllocated@GOTPCREL(%rip), %r13
	movl	(%r13), %ecx
	cmpl	%ecx, %eax
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	jl	LBB0_7
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ecx, %r12d
	leal	(%r12,%r12), %ecx
	cmpl	%eax, %r12d
	jle	LBB0_5
## %bb.6:
	leal	(,%r12,8), %esi
	movq	%rbx, %rdi
	callq	_repalloc
	movq	%rax, %rbx
	movq	_NamedLWLockTrancheRequestArray@GOTPCREL(%rip), %rax
	movq	%rbx, (%rax)
	movl	%r12d, (%r13)
	movl	(%r14), %eax
LBB0_7:
	movslq	%eax, %r12
	movq	%r15, %rdi
	callq	_strlen
	incq	%rax
	movq	_NAMEDATALEN@GOTPCREL(%rip), %r13
	xorl	%edi, %edi
	cmpq	(%r13), %rax
	setl	%dil
	callq	_Assert
	movl	4(%rbx,%r12,8), %edi
	movq	(%r13), %rdx
	movq	%r15, %rsi
	callq	_StrNCpy
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, (%rbx,%r12,8)
	incl	(%r14)
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IsUnderPostmaster,8,3          ## @IsUnderPostmaster
	.comm	_lock_named_request_allowed,4,2 ## @lock_named_request_allowed
	.comm	_NamedLWLockTrancheRequestArray,8,3 ## @NamedLWLockTrancheRequestArray
	.comm	_NamedLWLockTrancheRequestsAllocated,4,2 ## @NamedLWLockTrancheRequestsAllocated
	.comm	_TopMemoryContext,4,2           ## @TopMemoryContext
	.comm	_NamedLWLockTrancheRequests,4,2 ## @NamedLWLockTrancheRequests
	.comm	_NAMEDATALEN,8,3                ## @NAMEDATALEN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_RequestNamedLWLockTranche      ; -- Begin function RequestNamedLWLockTranche
	.p2align	2
_RequestNamedLWLockTranche:             ; @RequestNamedLWLockTranche
	.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
Lloh0:
	adrp	x8, _IsUnderPostmaster@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IsUnderPostmaster@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _lock_named_request_allowed@GOTPAGE
Lloh4:
	ldr	x9, [x9, _lock_named_request_allowed@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	x8, #0
	ccmp	w9, #0, #4, eq
	b.eq	LBB0_7
; %bb.1:
	mov	x19, x1
	mov	x20, x0
Lloh6:
	adrp	x23, _NamedLWLockTrancheRequestArray@GOTPAGE
Lloh7:
	ldr	x23, [x23, _NamedLWLockTrancheRequestArray@GOTPAGEOFF]
	ldr	x21, [x23]
Lloh8:
	adrp	x24, _NamedLWLockTrancheRequestsAllocated@GOTPAGE
Lloh9:
	ldr	x24, [x24, _NamedLWLockTrancheRequestsAllocated@GOTPAGEOFF]
	cbnz	x21, LBB0_3
; %bb.2:
	mov	w8, #16
	str	w8, [x24]
Lloh10:
	adrp	x8, _TopMemoryContext@GOTPAGE
Lloh11:
	ldr	x8, [x8, _TopMemoryContext@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	mov	w1, #128
	bl	_MemoryContextAlloc
	mov	x21, x0
	str	x0, [x23]
LBB0_3:
Lloh13:
	adrp	x22, _NamedLWLockTrancheRequests@GOTPAGE
Lloh14:
	ldr	x22, [x22, _NamedLWLockTrancheRequests@GOTPAGEOFF]
	ldr	w25, [x22]
	ldr	w8, [x24]
	cmp	w25, w8
	b.lt	LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x26, x8
	lsl	w8, w8, #1
	cmp	w26, w25
	b.le	LBB0_4
; %bb.5:
	lsl	w1, w26, #3
	mov	x0, x21
	bl	_repalloc
	mov	x21, x0
	str	x0, [x23]
	str	w26, [x24]
	ldr	w25, [x22]
LBB0_6:
	mov	x0, x20
	bl	_strlen
	add	x8, x0, #1
Lloh15:
	adrp	x23, _NAMEDATALEN@GOTPAGE
Lloh16:
	ldr	x23, [x23, _NAMEDATALEN@GOTPAGEOFF]
	ldr	x9, [x23]
	cmp	x8, x9
	cset	w0, lt
	bl	_Assert
	add	x21, x21, w25, sxtw #3
	ldr	w0, [x21, #4]
	ldr	x2, [x23]
	mov	x1, x20
	bl	_StrNCpy
	str	w19, [x21]
	ldr	w8, [x22]
	add	w8, w8, #1
	str	w8, [x22]
LBB0_7:
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_IsUnderPostmaster,8,3          ; @IsUnderPostmaster
	.comm	_lock_named_request_allowed,4,2 ; @lock_named_request_allowed
	.comm	_NamedLWLockTrancheRequestArray,8,3 ; @NamedLWLockTrancheRequestArray
	.comm	_NamedLWLockTrancheRequestsAllocated,4,2 ; @NamedLWLockTrancheRequestsAllocated
	.comm	_TopMemoryContext,4,2           ; @TopMemoryContext
	.comm	_NamedLWLockTrancheRequests,4,2 ; @NamedLWLockTrancheRequests
	.comm	_NAMEDATALEN,8,3                ; @NAMEDATALEN
.subsections_via_symbols
