	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AddSideRef                     ## -- Begin function AddSideRef
	.p2align	4, 0x90
_AddSideRef:                            ## @AddSideRef
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_numSideRefs@GOTPCREL(%rip), %r14
	movl	(%r14), %r8d
	testl	%r8d, %r8d
	jle	LBB0_1
## %bb.2:
	movq	(%rbx), %rcx
	movq	_sideRefs@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	leaq	(,%r8,8), %rsi
	leaq	(%rsi,%rsi,2), %rdi
	xorl	%esi, %esi
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	addq	$24, %rsi
	cmpq	%rsi, %rdi
	je	LBB0_7
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	(%rdx,%rsi), %rcx
	jne	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%rbx), %rax
	cmpq	8(%rdx,%rsi), %rax
	jne	LBB0_6
## %bb.5:
	incl	16(%rdx,%rsi)
	jmp	LBB0_11
LBB0_7:
	movq	%r8, %r15
	jmp	LBB0_8
LBB0_1:
	xorl	%r15d, %r15d
LBB0_8:
	movq	_MAX_SIDE_REFS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r8d
	jne	LBB0_10
## %bb.9:
	leaq	L_.str(%rip), %rdi
	callq	_Error
LBB0_10:
	movq	_sideRefs@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	leaq	(%r15,%r15,2), %rcx
	movups	(%rbx), %xmm0
	movups	%xmm0, (%rax,%rcx,8)
	incl	16(%rax,%rcx,8)
	incl	(%r14)
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_numSideRefs,4,2                ## @numSideRefs
	.comm	_sideRefs,8,3                   ## @sideRefs
	.comm	_MAX_SIDE_REFS,4,2              ## @MAX_SIDE_REFS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"MAX_SIDE_REFS"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AddSideRef                     ; -- Begin function AddSideRef
	.p2align	2
_AddSideRef:                            ; @AddSideRef
	.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	x20, _numSideRefs@GOTPAGE
Lloh1:
	ldr	x20, [x20, _numSideRefs@GOTPAGEOFF]
	ldr	w8, [x20]
Lloh2:
	adrp	x21, _sideRefs@GOTPAGE
Lloh3:
	ldr	x21, [x21, _sideRefs@GOTPAGEOFF]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.1:
	ldr	x10, [x19]
	ldr	x9, [x21]
	add	x9, x9, #16
	mov	x11, x8
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x9, x9, #24
	subs	x11, x11, #1
	b.eq	LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldur	x12, [x9, #-16]
	cmp	x10, x12
	b.ne	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x12, [x19, #8]
	ldur	x13, [x9, #-8]
	cmp	x12, x13
	b.ne	LBB0_2
; %bb.5:
	ldr	w8, [x9]
	add	w8, w8, #1
	str	w8, [x9]
	b	LBB0_11
LBB0_6:
	mov	x22, x8
	b	LBB0_8
LBB0_7:
	mov	x22, #0
LBB0_8:
Lloh4:
	adrp	x9, _MAX_SIDE_REFS@GOTPAGE
Lloh5:
	ldr	x9, [x9, _MAX_SIDE_REFS@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_10
; %bb.9:
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
	bl	_Error
LBB0_10:
	ldr	x8, [x21]
	mov	w9, #24
	madd	x8, x22, x9, x8
	ldr	q0, [x19]
	str	q0, [x8]
	ldr	w9, [x8, #16]
	add	w9, w9, #1
	str	w9, [x8, #16]
	ldr	w8, [x20]
	add	w8, w8, #1
	str	w8, [x20]
LBB0_11:
	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
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_numSideRefs,4,2                ; @numSideRefs
	.comm	_sideRefs,8,3                   ; @sideRefs
	.comm	_MAX_SIDE_REFS,4,2              ; @MAX_SIDE_REFS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"MAX_SIDE_REFS"

.subsections_via_symbols
