	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function R_InitBuffer
LCPI0_0:
	.long	1                               ## 0x1
	.long	2                               ## 0x2
	.long	3                               ## 0x3
	.long	4                               ## 0x4
LCPI0_1:
	.long	8                               ## 0x8
	.long	8                               ## 0x8
	.long	8                               ## 0x8
	.long	8                               ## 0x8
LCPI0_2:
	.long	16                              ## 0x10
	.long	16                              ## 0x10
	.long	16                              ## 0x10
	.long	16                              ## 0x10
LCPI0_3:
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	1                               ## 0x1
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
LCPI0_4:
	.quad	4                               ## 0x4
	.quad	4                               ## 0x4
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_R_InitBuffer
	.p2align	4, 0x90
_R_InitBuffer:                          ## @R_InitBuffer
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_SCREENWIDTH@GOTPCREL(%rip), %r8
	movl	(%r8), %edx
	movl	%edx, %eax
	subl	%edi, %eax
	sarl	%eax
	movq	_viewwindowx@GOTPCREL(%rip), %r14
	movl	%eax, (%r14)
	testl	%edi, %edi
	jle	LBB0_17
## %bb.1:
	movq	_columnofs@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	movl	%eax, (%rdx)
	cmpl	$1, %edi
	je	LBB0_16
## %bb.2:
	movl	%edi, %r9d
	leaq	-1(%r9), %r10
	movl	$1, %eax
	cmpq	$8, %r10
	jb	LBB0_12
## %bb.3:
	cmpq	_viewwindowx@GOTPCREL(%rip), %rdx
	jae	LBB0_5
## %bb.4:
	leaq	(%rdx,%r9,4), %rcx
	cmpq	_viewwindowx@GOTPCREL(%rip), %rcx
	ja	LBB0_12
LBB0_5:
	movq	%r10, %rax
	andq	$-8, %rax
	leaq	-8(%rax), %rcx
	movq	%rcx, %r11
	shrq	$3, %r11
	incq	%r11
	testq	%rcx, %rcx
	je	LBB0_34
## %bb.6:
	movq	%r11, %rcx
	andq	$-2, %rcx
	movd	(%r14), %xmm0                   ## xmm0 = mem[0],zero,zero,zero
	pshufd	$0, %xmm0, %xmm1                ## xmm1 = xmm0[0,0,0,0]
	movl	$4, %ebx
	movd	%ebx, %xmm2
	paddd	%xmm0, %xmm2
	pshufd	$0, %xmm2, %xmm2                ## xmm2 = xmm2[0,0,0,0]
	movdqa	LCPI0_0(%rip), %xmm0            ## xmm0 = [1,2,3,4]
	movl	$1, %ebx
	movdqa	LCPI0_1(%rip), %xmm3            ## xmm3 = [8,8,8,8]
	movdqa	LCPI0_2(%rip), %xmm4            ## xmm4 = [16,16,16,16]
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movdqa	%xmm1, %xmm5
	paddd	%xmm0, %xmm5
	movdqa	%xmm2, %xmm6
	paddd	%xmm0, %xmm6
	movdqu	%xmm5, (%rdx,%rbx,4)
	movdqu	%xmm6, 16(%rdx,%rbx,4)
	movdqa	%xmm0, %xmm5
	paddd	%xmm3, %xmm5
	movdqa	%xmm1, %xmm6
	paddd	%xmm5, %xmm6
	paddd	%xmm2, %xmm5
	movdqu	%xmm6, 32(%rdx,%rbx,4)
	movdqu	%xmm5, 48(%rdx,%rbx,4)
	paddd	%xmm4, %xmm0
	addq	$16, %rbx
	addq	$-2, %rcx
	jne	LBB0_7
## %bb.8:
	testb	$1, %r11b
	je	LBB0_10
LBB0_9:
	movd	(%r14), %xmm1                   ## xmm1 = mem[0],zero,zero,zero
	pshufd	$0, %xmm1, %xmm2                ## xmm2 = xmm1[0,0,0,0]
	paddd	%xmm0, %xmm2
	movl	$4, %ecx
	movd	%ecx, %xmm3
	paddd	%xmm1, %xmm3
	pshufd	$0, %xmm3, %xmm1                ## xmm1 = xmm3[0,0,0,0]
	paddd	%xmm0, %xmm1
	movdqu	%xmm2, (%rdx,%rbx,4)
	movdqu	%xmm1, 16(%rdx,%rbx,4)
LBB0_10:
	cmpq	%rax, %r10
	je	LBB0_16
## %bb.11:
	orq	$1, %rax
LBB0_12:
	movl	%r9d, %ebx
	subl	%eax, %ebx
	movq	%rax, %r10
	notq	%r10
	addq	%r9, %r10
	andq	$3, %rbx
	je	LBB0_14
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %ecx
	addl	%eax, %ecx
	movl	%ecx, (%rdx,%rax,4)
	incq	%rax
	decq	%rbx
	jne	LBB0_13
LBB0_14:
	cmpq	$3, %r10
	jb	LBB0_16
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %ecx
	addl	%eax, %ecx
	movl	%ecx, (%rdx,%rax,4)
	movl	(%r14), %ecx
	addl	%eax, %ecx
	incl	%ecx
	movl	%ecx, 4(%rdx,%rax,4)
	movl	(%r14), %ecx
	leal	2(%rax,%rcx), %ecx
	movl	%ecx, 8(%rdx,%rax,4)
	movl	(%r14), %ecx
	addl	%eax, %ecx
	addl	$3, %ecx
	movl	%ecx, 12(%rdx,%rax,4)
	addq	$4, %rax
	cmpq	%rax, %r9
	jne	LBB0_15
LBB0_16:
	movl	(%r8), %edx
LBB0_17:
	xorl	%ebx, %ebx
	cmpl	%edi, %edx
	je	LBB0_19
## %bb.18:
	movq	_SCREENHEIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_SBARHEIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%esi, %eax
	subl	%eax, %ebx
	sarl	%ebx
LBB0_19:
	movq	_viewwindowy@GOTPCREL(%rip), %rax
	movl	%ebx, (%rax)
	testl	%esi, %esi
	jle	LBB0_33
## %bb.20:
	movq	_screens@GOTPCREL(%rip), %rax
	movq	(%rax), %r10
	movq	_ylookup@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movslq	%ebx, %r8
	movslq	%edx, %rdx
	movl	%esi, %r9d
	cmpl	$4, %esi
	jb	LBB0_21
## %bb.22:
	leaq	8(%r10), %rsi
	cmpq	%rsi, %rcx
	jae	LBB0_25
## %bb.23:
	leaq	(%rcx,%r9,8), %rsi
	cmpq	%rsi, %r10
	jae	LBB0_25
LBB0_21:
	xorl	%esi, %esi
LBB0_28:
	movq	%rsi, %rdi
	notq	%rdi
	testb	$1, %r9b
	je	LBB0_30
## %bb.29:
	leaq	(%rsi,%r8), %rbx
	imulq	%rdx, %rbx
	addq	(%r10), %rbx
	movq	%rbx, (%rcx,%rsi,8)
	orq	$1, %rsi
LBB0_30:
	addq	%r9, %rdi
	je	LBB0_33
## %bb.31:
	leaq	(%rsi,%r8), %rdi
	imulq	%rdx, %rdi
	leaq	(%rsi,%r8), %rbx
	incq	%rbx
	imulq	%rdx, %rbx
	addq	%rdx, %rdx
	.p2align	4, 0x90
LBB0_32:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r10), %rax
	addq	%rdi, %rax
	movq	%rax, (%rcx,%rsi,8)
	movq	(%r10), %rax
	addq	%rbx, %rax
	movq	%rax, 8(%rcx,%rsi,8)
	addq	$2, %rsi
	addq	%rdx, %rdi
	addq	%rdx, %rbx
	cmpq	%rsi, %r9
	jne	LBB0_32
	jmp	LBB0_33
LBB0_25:
	movl	%r9d, %esi
	andl	$-4, %esi
	movq	%r8, %xmm0
	pshufd	$68, %xmm0, %xmm9               ## xmm9 = xmm0[0,1,0,1]
	movq	%rdx, %xmm1
	pshufd	$68, %xmm1, %xmm1               ## xmm1 = xmm1[0,1,0,1]
	movq	(%r10), %xmm2                   ## xmm2 = mem[0],zero
	pshufd	$68, %xmm2, %xmm2               ## xmm2 = xmm2[0,1,0,1]
	leaq	2(%r8), %rdi
	movq	%rdi, %xmm3
	pshufd	$68, %xmm3, %xmm10              ## xmm10 = xmm3[0,1,0,1]
	leaq	(,%r9,8), %rdi
	andq	$-32, %rdi
	movdqa	LCPI0_3(%rip), %xmm4            ## xmm4 = [0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0]
	xorl	%ebx, %ebx
	movdqa	%xmm1, %xmm5
	psrlq	$32, %xmm5
	movdqa	LCPI0_4(%rip), %xmm8            ## xmm8 = [4,4]
	.p2align	4, 0x90
LBB0_26:                                ## =>This Inner Loop Header: Depth=1
	movdqa	%xmm4, %xmm0
	paddq	%xmm9, %xmm0
	movdqa	%xmm10, %xmm3
	paddq	%xmm4, %xmm3
	movdqa	%xmm0, %xmm6
	pmuludq	%xmm5, %xmm6
	movdqa	%xmm0, %xmm7
	psrlq	$32, %xmm7
	pmuludq	%xmm1, %xmm7
	paddq	%xmm6, %xmm7
	psllq	$32, %xmm7
	pmuludq	%xmm1, %xmm0
	paddq	%xmm7, %xmm0
	movdqa	%xmm3, %xmm6
	pmuludq	%xmm5, %xmm6
	movdqa	%xmm3, %xmm7
	psrlq	$32, %xmm7
	pmuludq	%xmm1, %xmm7
	paddq	%xmm6, %xmm7
	psllq	$32, %xmm7
	pmuludq	%xmm1, %xmm3
	paddq	%xmm7, %xmm3
	paddq	%xmm2, %xmm0
	paddq	%xmm2, %xmm3
	movdqu	%xmm0, (%rcx,%rbx)
	movdqu	%xmm3, 16(%rcx,%rbx)
	paddq	%xmm8, %xmm4
	addq	$32, %rbx
	cmpq	%rbx, %rdi
	jne	LBB0_26
## %bb.27:
	cmpq	%r9, %rsi
	jne	LBB0_28
LBB0_33:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_34:
	movdqa	LCPI0_0(%rip), %xmm0            ## xmm0 = [1,2,3,4]
	movl	$1, %ebx
	testb	$1, %r11b
	jne	LBB0_9
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_SCREENWIDTH,4,2                ## @SCREENWIDTH
	.comm	_viewwindowx,4,2                ## @viewwindowx
	.comm	_columnofs,8,3                  ## @columnofs
	.comm	_viewwindowy,4,2                ## @viewwindowy
	.comm	_SCREENHEIGHT,4,2               ## @SCREENHEIGHT
	.comm	_SBARHEIGHT,4,2                 ## @SBARHEIGHT
	.comm	_screens,8,3                    ## @screens
	.comm	_ylookup,8,3                    ## @ylookup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function R_InitBuffer
lCPI0_0:
	.long	1                               ; 0x1
	.long	2                               ; 0x2
	.long	3                               ; 0x3
	.long	4                               ; 0x4
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_R_InitBuffer
	.p2align	2
_R_InitBuffer:                          ; @R_InitBuffer
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _SCREENWIDTH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SCREENWIDTH@GOTPAGEOFF]
	ldr	w10, [x8]
	sub	w9, w10, w0
	asr	w11, w9, #1
Lloh2:
	adrp	x9, _viewwindowx@GOTPAGE
Lloh3:
	ldr	x9, [x9, _viewwindowx@GOTPAGEOFF]
	str	w11, [x9]
	cmp	w0, #1
	b.lt	LBB0_11
; %bb.1:
Lloh4:
	adrp	x10, _columnofs@GOTPAGE
Lloh5:
	ldr	x10, [x10, _columnofs@GOTPAGEOFF]
Lloh6:
	ldr	x10, [x10]
	str	w11, [x10]
	cmp	w0, #1
	b.eq	LBB0_10
; %bb.2:
	mov	w11, w0
	sub	x13, x11, #1
	cmp	x13, #16
	b.hs	LBB0_4
; %bb.3:
	mov	w12, #1
	b	LBB0_9
LBB0_4:
	add	x12, x10, x11, lsl #2
	cmp	x10, x9
	ccmp	x12, x9, #0, lo
	b.hi	LBB0_8
; %bb.5:
	and	x14, x13, #0xfffffffffffffff0
	ldr	w12, [x9]
	dup.4s	v0, w12
	fmov	s3, w12
	movi.4s	v1, #4
	add.4s	v1, v3, v1
	dup.4s	v1, v1[0]
	movi.4s	v2, #8
	add.4s	v2, v3, v2
	dup.4s	v2, v2[0]
	movi.4s	v4, #12
	add.4s	v3, v3, v4
	dup.4s	v3, v3[0]
	orr	x12, x14, #0x1
Lloh7:
	adrp	x15, lCPI0_0@PAGE
Lloh8:
	ldr	q4, [x15, lCPI0_0@PAGEOFF]
	add	x15, x10, #36
	movi.4s	v5, #16
	mov	x16, x14
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	add.4s	v6, v0, v4
	add.4s	v7, v1, v4
	add.4s	v16, v2, v4
	add.4s	v17, v3, v4
	stp	q6, q7, [x15, #-32]
	stp	q16, q17, [x15], #64
	add.4s	v4, v4, v5
	subs	x16, x16, #16
	b.ne	LBB0_6
; %bb.7:
	cmp	x13, x14
	b.ne	LBB0_9
	b	LBB0_10
LBB0_8:
	mov	w12, #1
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w13, [x9]
	add	w13, w12, w13
	str	w13, [x10, x12, lsl #2]
	add	x12, x12, #1
	cmp	x11, x12
	b.ne	LBB0_9
LBB0_10:
	ldr	w10, [x8]
LBB0_11:
	cmp	w10, w0
	b.ne	LBB0_13
; %bb.12:
	mov	w13, #0
	b	LBB0_14
LBB0_13:
Lloh9:
	adrp	x8, _SCREENHEIGHT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SCREENHEIGHT@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _SBARHEIGHT@GOTPAGE
Lloh13:
	ldr	x9, [x9, _SBARHEIGHT@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	add	w9, w9, w1
	sub	w8, w8, w9
	asr	w13, w8, #1
LBB0_14:
Lloh15:
	adrp	x8, _viewwindowy@GOTPAGE
Lloh16:
	ldr	x8, [x8, _viewwindowy@GOTPAGEOFF]
Lloh17:
	str	w13, [x8]
	cmp	w1, #1
	b.lt	LBB0_17
; %bb.15:
Lloh18:
	adrp	x8, _screens@GOTPAGE
Lloh19:
	ldr	x8, [x8, _screens@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
Lloh21:
	adrp	x9, _ylookup@GOTPAGE
Lloh22:
	ldr	x9, [x9, _ylookup@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	sxtw	x11, w10
	mov	w12, w1
	smull	x10, w13, w10
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	ldr	x13, [x8]
	add	x13, x10, x13
	str	x13, [x9], #8
	add	x10, x10, x11
	subs	x12, x12, #1
	b.ne	LBB0_16
LBB0_17:
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdr	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotStr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_SCREENWIDTH,4,2                ; @SCREENWIDTH
	.comm	_viewwindowx,4,2                ; @viewwindowx
	.comm	_columnofs,8,3                  ; @columnofs
	.comm	_viewwindowy,4,2                ; @viewwindowy
	.comm	_SCREENHEIGHT,4,2               ; @SCREENHEIGHT
	.comm	_SBARHEIGHT,4,2                 ; @SBARHEIGHT
	.comm	_screens,8,3                    ; @screens
	.comm	_ylookup,8,3                    ; @ylookup
.subsections_via_symbols
