	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ProcArrayAdd                   ## -- Begin function ProcArrayAdd
	.p2align	4, 0x90
_ProcArrayAdd:                          ## @ProcArrayAdd
	.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	%rdi, %r13
	movq	_procArray@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movq	_ProcArrayLock@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movq	_LW_EXCLUSIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_LWLockAcquire
	movl	(%r15), %ecx
	cmpl	4(%r15), %ecx
	jl	LBB0_2
## %bb.1:
	movl	(%r12), %edi
	callq	_LWLockRelease
	movq	_FATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_ERRCODE_TOO_MANY_CONNECTIONS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str(%rip), %rdi
	callq	_errmsg
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_ereport
	movl	(%r15), %ecx
LBB0_2:
	movl	%ecx, %edx
	movq	8(%r15), %rax
	testl	%ecx, %ecx
	jle	LBB0_3
## %bb.4:
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rax,%rcx,4), %esi
	cmpl	$-1, %esi
	je	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpl	(%r13), %esi
	jg	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	incq	%rcx
	cmpq	%rcx, %rdx
	jne	LBB0_5
## %bb.8:
	movl	%edx, %ecx
	jmp	LBB0_9
LBB0_3:
	xorl	%ecx, %ecx
LBB0_9:
	movl	%ecx, %ebx
	leaq	(%rax,%rbx,4), %rdi
	addq	$4, %rdi
	leaq	(%rax,%rbx,4), %rsi
	subl	%ecx, %edx
	shll	$2, %edx
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_memmove
	movl	(%r13), %eax
	movq	8(%r15), %rcx
	movl	%eax, (%rcx,%rbx,4)
	incl	(%r15)
	movl	(%r12), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_LWLockRelease                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_procArray,8,3                  ## @procArray
	.comm	_ProcArrayLock,4,2              ## @ProcArrayLock
	.comm	_LW_EXCLUSIVE,4,2               ## @LW_EXCLUSIVE
	.comm	_FATAL,4,2                      ## @FATAL
	.comm	_ERRCODE_TOO_MANY_CONNECTIONS,4,2 ## @ERRCODE_TOO_MANY_CONNECTIONS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sorry, too many clients already"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ProcArrayAdd                   ; -- Begin function ProcArrayAdd
	.p2align	2
_ProcArrayAdd:                          ; @ProcArrayAdd
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _procArray@GOTPAGE
Lloh1:
	ldr	x8, [x8, _procArray@GOTPAGEOFF]
Lloh2:
	ldr	x21, [x8]
Lloh3:
	adrp	x22, _ProcArrayLock@GOTPAGE
Lloh4:
	ldr	x22, [x22, _ProcArrayLock@GOTPAGEOFF]
	ldr	w0, [x22]
Lloh5:
	adrp	x8, _LW_EXCLUSIVE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _LW_EXCLUSIVE@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	bl	_LWLockAcquire
	ldp	w10, w8, [x21]
	cmp	w10, w8
	b.lt	LBB0_2
; %bb.1:
	ldr	w0, [x22]
	bl	_LWLockRelease
Lloh8:
	adrp	x8, _FATAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _FATAL@GOTPAGEOFF]
Lloh10:
	ldr	w20, [x8]
Lloh11:
	adrp	x8, _ERRCODE_TOO_MANY_CONNECTIONS@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ERRCODE_TOO_MANY_CONNECTIONS@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	bl	_errcode
Lloh14:
	adrp	x0, l_.str@PAGE
Lloh15:
	add	x0, x0, l_.str@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x20
	bl	_ereport
	ldr	w10, [x21]
LBB0_2:
	mov	w8, w10
	ldr	x9, [x21, #8]
	cmp	w10, #1
	b.lt	LBB0_8
; %bb.3:
	mov	x10, #0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x9, x10, lsl #2]
	cmn	w11, #1
	b.eq	LBB0_9
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w12, [x19]
	cmp	w11, w12
	b.gt	LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x10, x10, #1
	cmp	x8, x10
	b.ne	LBB0_4
; %bb.7:
	mov	x10, x8
	b	LBB0_9
LBB0_8:
	mov	w10, #0
LBB0_9:
	add	w11, w10, #1
	add	x0, x9, w11, uxtw #2
	mov	w11, w10
	lsl	x20, x11, #2
	add	x1, x9, x20
	sub	w8, w8, w10
	lsl	w2, w8, #2
	bl	_memmove
	ldr	w8, [x19]
	ldr	x9, [x21, #8]
	str	w8, [x9, x20]
	ldr	w8, [x21]
	add	w8, w8, #1
	str	w8, [x21]
	ldr	w0, [x22]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_LWLockRelease
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_procArray,8,3                  ; @procArray
	.comm	_ProcArrayLock,4,2              ; @ProcArrayLock
	.comm	_LW_EXCLUSIVE,4,2               ; @LW_EXCLUSIVE
	.comm	_FATAL,4,2                      ; @FATAL
	.comm	_ERRCODE_TOO_MANY_CONNECTIONS,4,2 ; @ERRCODE_TOO_MANY_CONNECTIONS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sorry, too many clients already"

.subsections_via_symbols
