	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function MakeSharedInvalidMessagesArray
_MakeSharedInvalidMessagesArray:        ## @MakeSharedInvalidMessagesArray
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	_SharedInvalidMessagesArray@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movq	_FIRSTCHUNKSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_maxSharedInvalidMessagesArray@GOTPCREL(%rip), %rax
	movl	%edi, (%rax)
	movq	_numSharedInvalidMessagesArray@GOTPCREL(%rip), %rax
	movl	$0, (%rax)
	shll	$2, %edi
	callq	_palloc
	movq	%rax, (%r15)
LBB0_2:
	movq	_numSharedInvalidMessagesArray@GOTPCREL(%rip), %r12
	movl	(%r12), %ecx
	leal	(%rcx,%rbx), %edi
	movq	_maxSharedInvalidMessagesArray@GOTPCREL(%rip), %r8
	movl	(%r8), %edx
	cmpl	%edx, %edi
	jle	LBB0_5
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	%edx, %esi
	leal	(%rsi,%rsi), %edx
	cmpl	%edx, %edi
	jg	LBB0_3
## %bb.4:
	movl	%edx, (%r8)
	shll	$3, %esi
	movq	%rax, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_repalloc
	movq	%rax, (%r15)
	movl	(%r12), %ecx
LBB0_5:
	movslq	%ecx, %rcx
	leaq	(%rax,%rcx,4), %rdi
	leal	(,%rbx,4), %edx
	movq	%r14, %rsi
	callq	_memcpy
	addl	%ebx, (%r12)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SharedInvalidMessagesArray,8,3 ## @SharedInvalidMessagesArray
	.comm	_FIRSTCHUNKSIZE,4,2             ## @FIRSTCHUNKSIZE
	.comm	_maxSharedInvalidMessagesArray,4,2 ## @maxSharedInvalidMessagesArray
	.comm	_numSharedInvalidMessagesArray,4,2 ## @numSharedInvalidMessagesArray
	.no_dead_strip	_MakeSharedInvalidMessagesArray
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function MakeSharedInvalidMessagesArray
_MakeSharedInvalidMessagesArray:        ; @MakeSharedInvalidMessagesArray
	.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
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x22, _SharedInvalidMessagesArray@GOTPAGE
Lloh1:
	ldr	x22, [x22, _SharedInvalidMessagesArray@GOTPAGEOFF]
	ldr	x0, [x22]
Lloh2:
	adrp	x23, _maxSharedInvalidMessagesArray@GOTPAGE
Lloh3:
	ldr	x23, [x23, _maxSharedInvalidMessagesArray@GOTPAGEOFF]
Lloh4:
	adrp	x21, _numSharedInvalidMessagesArray@GOTPAGE
Lloh5:
	ldr	x21, [x21, _numSharedInvalidMessagesArray@GOTPAGEOFF]
	cbnz	x0, LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _FIRSTCHUNKSIZE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _FIRSTCHUNKSIZE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [x23]
	str	wzr, [x21]
	lsl	w0, w8, #2
	bl	_palloc
	str	x0, [x22]
LBB0_2:
	ldr	w8, [x21]
	ldr	w9, [x23]
	add	w10, w8, w19
	cmp	w10, w9
	b.le	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x8, x9
	lsl	w9, w9, #1
	cmp	w10, w9
	b.gt	LBB0_3
; %bb.4:
	str	w9, [x23]
	lsl	w1, w8, #3
	bl	_repalloc
	str	x0, [x22]
	ldr	w8, [x21]
LBB0_5:
	lsl	w2, w19, #2
	add	x0, x0, w8, sxtw #2
	mov	x1, x20
	bl	_memcpy
	ldr	w8, [x21]
	add	w8, w8, w19
	str	w8, [x21]
	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	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_SharedInvalidMessagesArray,8,3 ; @SharedInvalidMessagesArray
	.comm	_FIRSTCHUNKSIZE,4,2             ; @FIRSTCHUNKSIZE
	.comm	_maxSharedInvalidMessagesArray,4,2 ; @maxSharedInvalidMessagesArray
	.comm	_numSharedInvalidMessagesArray,4,2 ; @numSharedInvalidMessagesArray
	.no_dead_strip	_MakeSharedInvalidMessagesArray
.subsections_via_symbols
