	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function gfx_init
LCPI0_0:
	.long	0                               ## 0x0
	.long	1                               ## 0x1
	.long	2                               ## 0x2
	.long	3                               ## 0x3
LCPI0_1:
	.long	4                               ## 0x4
	.long	4                               ## 0x4
	.long	4                               ## 0x4
	.long	4                               ## 0x4
LCPI0_2:
	.long	1792                            ## 0x700
	.long	1792                            ## 0x700
	.long	1792                            ## 0x700
	.long	1792                            ## 0x700
LCPI0_3:
	.long	252                             ## 0xfc
	.long	252                             ## 0xfc
	.long	252                             ## 0xfc
	.long	252                             ## 0xfc
LCPI0_4:
	.long	63488                           ## 0xf800
	.long	63488                           ## 0xf800
	.long	63488                           ## 0xf800
	.long	63488                           ## 0xf800
LCPI0_5:
	.long	8                               ## 0x8
	.long	8                               ## 0x8
	.long	8                               ## 0x8
	.long	8                               ## 0x8
LCPI0_6:
	.long	16384                           ## 0x4000
	.long	16385                           ## 0x4001
	.long	16386                           ## 0x4002
	.long	16387                           ## 0x4003
LCPI0_7:
	.long	30720                           ## 0x7800
	.long	30720                           ## 0x7800
	.long	30720                           ## 0x7800
	.long	30720                           ## 0x7800
LCPI0_8:
	.long	24576                           ## 0x6000
	.long	24577                           ## 0x6001
	.long	24578                           ## 0x6002
	.long	24579                           ## 0x6003
LCPI0_9:
	.long	14336                           ## 0x3800
	.long	14336                           ## 0x3800
	.long	14336                           ## 0x3800
	.long	14336                           ## 0x3800
LCPI0_10:
	.long	32768                           ## 0x8000
	.long	32768                           ## 0x8000
	.long	32768                           ## 0x8000
	.long	32768                           ## 0x8000
LCPI0_11:
	.long	28672                           ## 0x7000
	.long	28673                           ## 0x7001
	.long	28674                           ## 0x7002
	.long	28675                           ## 0x7003
LCPI0_12:
	.long	6144                            ## 0x1800
	.long	6144                            ## 0x1800
	.long	6144                            ## 0x1800
	.long	6144                            ## 0x1800
LCPI0_13:
	.long	49152                           ## 0xc000
	.long	49152                           ## 0xc000
	.long	49152                           ## 0xc000
	.long	49152                           ## 0xc000
LCPI0_14:
	.long	30720                           ## 0x7800
	.long	30721                           ## 0x7801
	.long	30722                           ## 0x7802
	.long	30723                           ## 0x7803
LCPI0_15:
	.long	57344                           ## 0xe000
	.long	57344                           ## 0xe000
	.long	57344                           ## 0xe000
	.long	57344                           ## 0xe000
LCPI0_16:
	.long	15                              ## 0xf
	.long	15                              ## 0xf
	.long	15                              ## 0xf
	.long	15                              ## 0xf
LCPI0_17:
	.long	240                             ## 0xf0
	.long	240                             ## 0xf0
	.long	240                             ## 0xf0
	.long	240                             ## 0xf0
LCPI0_18:
	.long	3                               ## 0x3
	.long	3                               ## 0x3
	.long	3                               ## 0x3
	.long	3                               ## 0x3
LCPI0_19:
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	1                               ## 0x1
LCPI0_20:
	.long	7                               ## 0x7
	.long	7                               ## 0x7
	.long	7                               ## 0x7
	.long	7                               ## 0x7
LCPI0_21:
	.long	2                               ## 0x2
	.long	2                               ## 0x2
	.long	2                               ## 0x2
	.long	2                               ## 0x2
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_gfx_init
	.p2align	4, 0x90
_gfx_init:                              ## @gfx_init
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_gfx@GOTPCREL(%rip), %r14
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movq	(%r14), %rax
	movdqa	LCPI0_0(%rip), %xmm0            ## xmm0 = [0,1,2,3]
	movdqa	LCPI0_1(%rip), %xmm9            ## xmm9 = [4,4,4,4]
	movdqa	LCPI0_2(%rip), %xmm11           ## xmm11 = [1792,1792,1792,1792]
	movdqa	LCPI0_3(%rip), %xmm2            ## xmm2 = [252,252,252,252]
	movdqa	LCPI0_4(%rip), %xmm10           ## xmm10 = [63488,63488,63488,63488]
	movdqa	LCPI0_5(%rip), %xmm8            ## xmm8 = [8,8,8,8]
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movdqa	%xmm0, %xmm5
	paddd	%xmm9, %xmm5
	movdqa	%xmm0, %xmm6
	pslld	$8, %xmm6
	movdqa	%xmm5, %xmm7
	pslld	$8, %xmm7
	movdqa	%xmm6, %xmm3
	pand	%xmm11, %xmm3
	movdqa	%xmm7, %xmm1
	pand	%xmm11, %xmm1
	movdqa	%xmm0, %xmm4
	psrld	$6, %xmm4
	psrld	$6, %xmm5
	pand	%xmm2, %xmm4
	por	%xmm3, %xmm4
	pand	%xmm2, %xmm5
	por	%xmm1, %xmm5
	pand	%xmm10, %xmm6
	por	%xmm4, %xmm6
	pand	%xmm10, %xmm7
	por	%xmm5, %xmm7
	movdqu	%xmm6, (%rax,%rbx,4)
	movdqu	%xmm7, 16(%rax,%rbx,4)
	addq	$8, %rbx
	paddd	%xmm8, %xmm0
	cmpq	$16384, %rbx                    ## imm = 0x4000
	jne	LBB0_1
## %bb.2:
	movdqa	LCPI0_6(%rip), %xmm1            ## xmm1 = [16384,16385,16386,16387]
	xorl	%ecx, %ecx
	movdqa	LCPI0_7(%rip), %xmm10           ## xmm10 = [30720,30720,30720,30720]
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movdqa	%xmm1, %xmm0
	paddd	%xmm9, %xmm0
	movdqa	%xmm1, %xmm3
	pslld	$8, %xmm3
	movdqa	%xmm0, %xmm5
	pslld	$8, %xmm5
	movdqa	%xmm3, %xmm6
	pand	%xmm11, %xmm6
	movdqa	%xmm5, %xmm7
	pand	%xmm11, %xmm7
	movdqa	%xmm1, %xmm4
	psrld	$5, %xmm4
	psrld	$5, %xmm0
	pand	%xmm2, %xmm4
	por	%xmm6, %xmm4
	pand	%xmm2, %xmm0
	por	%xmm7, %xmm0
	pand	%xmm10, %xmm3
	por	%xmm4, %xmm3
	pand	%xmm10, %xmm5
	por	%xmm0, %xmm5
	movdqu	%xmm3, 65536(%rax,%rcx,4)
	movdqu	%xmm5, 65552(%rax,%rcx,4)
	addq	$8, %rcx
	paddd	%xmm8, %xmm1
	cmpq	$8192, %rcx                     ## imm = 0x2000
	jne	LBB0_3
## %bb.4:
	movdqa	LCPI0_8(%rip), %xmm6            ## xmm6 = [24576,24577,24578,24579]
	xorl	%ecx, %ecx
	movdqa	LCPI0_9(%rip), %xmm10           ## xmm10 = [14336,14336,14336,14336]
	movdqa	LCPI0_10(%rip), %xmm12          ## xmm12 = [32768,32768,32768,32768]
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movdqa	%xmm6, %xmm1
	paddd	%xmm9, %xmm1
	movdqa	%xmm6, %xmm0
	pslld	$8, %xmm0
	movdqa	%xmm1, %xmm3
	pslld	$8, %xmm3
	movdqa	%xmm0, %xmm7
	pand	%xmm11, %xmm7
	movdqa	%xmm3, %xmm5
	pand	%xmm11, %xmm5
	movdqa	%xmm6, %xmm4
	psrld	$4, %xmm4
	psrld	$4, %xmm1
	pand	%xmm2, %xmm4
	por	%xmm7, %xmm4
	pand	%xmm2, %xmm1
	por	%xmm5, %xmm1
	pand	%xmm10, %xmm0
	pand	%xmm10, %xmm3
	por	%xmm12, %xmm0
	por	%xmm4, %xmm0
	por	%xmm12, %xmm3
	por	%xmm1, %xmm3
	movdqu	%xmm0, 98304(%rax,%rcx,4)
	movdqu	%xmm3, 98320(%rax,%rcx,4)
	addq	$8, %rcx
	paddd	%xmm8, %xmm6
	cmpq	$4096, %rcx                     ## imm = 0x1000
	jne	LBB0_5
## %bb.6:
	movdqa	LCPI0_11(%rip), %xmm4           ## xmm4 = [28672,28673,28674,28675]
	xorl	%ecx, %ecx
	movdqa	LCPI0_12(%rip), %xmm12          ## xmm12 = [6144,6144,6144,6144]
	movdqa	LCPI0_13(%rip), %xmm10          ## xmm10 = [49152,49152,49152,49152]
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movdqa	%xmm4, %xmm1
	paddd	%xmm9, %xmm1
	movdqa	%xmm4, %xmm0
	pslld	$8, %xmm0
	movdqa	%xmm1, %xmm3
	pslld	$8, %xmm3
	movdqa	%xmm0, %xmm7
	pand	%xmm11, %xmm7
	movdqa	%xmm3, %xmm6
	pand	%xmm11, %xmm6
	movdqa	%xmm4, %xmm5
	psrld	$3, %xmm5
	psrld	$3, %xmm1
	pand	%xmm2, %xmm5
	por	%xmm7, %xmm5
	pand	%xmm2, %xmm1
	por	%xmm6, %xmm1
	pand	%xmm12, %xmm0
	pand	%xmm12, %xmm3
	por	%xmm10, %xmm0
	por	%xmm5, %xmm0
	por	%xmm10, %xmm3
	por	%xmm1, %xmm3
	movdqu	%xmm0, 114688(%rax,%rcx,4)
	movdqu	%xmm3, 114704(%rax,%rcx,4)
	addq	$8, %rcx
	paddd	%xmm8, %xmm4
	cmpq	$2048, %rcx                     ## imm = 0x800
	jne	LBB0_7
## %bb.8:
	movdqa	LCPI0_14(%rip), %xmm6           ## xmm6 = [30720,30721,30722,30723]
	xorl	%ecx, %ecx
	movdqa	LCPI0_15(%rip), %xmm10          ## xmm10 = [57344,57344,57344,57344]
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movdqa	%xmm6, %xmm1
	paddd	%xmm9, %xmm1
	movdqa	%xmm6, %xmm0
	pslld	$8, %xmm0
	movdqa	%xmm1, %xmm3
	pslld	$8, %xmm3
	movdqa	%xmm0, %xmm4
	pand	%xmm11, %xmm4
	movdqa	%xmm3, %xmm7
	pand	%xmm11, %xmm7
	movdqa	%xmm6, %xmm5
	psrld	$3, %xmm5
	psrld	$3, %xmm1
	pand	%xmm2, %xmm5
	por	%xmm4, %xmm5
	pand	%xmm2, %xmm1
	por	%xmm7, %xmm1
	pand	%xmm12, %xmm0
	pand	%xmm12, %xmm3
	por	%xmm10, %xmm0
	por	%xmm5, %xmm0
	por	%xmm10, %xmm3
	por	%xmm1, %xmm3
	movdqu	%xmm0, 122880(%rax,%rcx,4)
	movdqu	%xmm3, 122896(%rax,%rcx,4)
	addq	$8, %rcx
	paddd	%xmm8, %xmm6
	cmpq	$2048, %rcx                     ## imm = 0x800
	jne	LBB0_9
## %bb.10:
	movq	8(%r14), %rax
	movq	(%rax), %rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	8(%rax), %rcx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	16(%rax), %r10
	movq	24(%rax), %r11
	xorl	%r15d, %r15d
	movdqa	LCPI0_0(%rip), %xmm8            ## xmm8 = [0,1,2,3]
	movdqa	LCPI0_16(%rip), %xmm10          ## xmm10 = [15,15,15,15]
	movdqa	LCPI0_17(%rip), %xmm11          ## xmm11 = [240,240,240,240]
	pxor	%xmm12, %xmm12
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_11 Depth=1
	incq	%r15
	cmpq	$256, %r15                      ## imm = 0x100
	je	LBB0_20
LBB0_11:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_26 Depth 2
                                        ##     Child Loop BB0_18 Depth 2
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax,%r15,8), %r12
	movl	%r15d, %r14d
	andl	$15, %r14d
	movl	%r15d, %r9d
	andl	$240, %r9d
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax,%r15,8), %r13
	movq	(%r10,%r15,8), %rsi
	movq	(%r11,%r15,8), %rdi
	movq	%r13, %rbx
	subq	%r12, %rbx
	cmpq	$16, %rbx
	jb	LBB0_17
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	%rsi, %rbx
	subq	%r12, %rbx
	cmpq	$16, %rbx
	jb	LBB0_17
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	%rdi, %rbx
	subq	%r12, %rbx
	cmpq	$16, %rbx
	jb	LBB0_17
## %bb.14:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	%rsi, %rbx
	subq	%r13, %rbx
	cmpq	$16, %rbx
	jb	LBB0_17
## %bb.15:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	%rdi, %rbx
	subq	%r13, %rbx
	cmpq	$16, %rbx
	jb	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	%rdi, %rbx
	subq	%rsi, %rbx
	cmpq	$15, %rbx
	jbe	LBB0_17
## %bb.25:                              ##   in Loop: Header=BB0_11 Depth=1
	movd	%r14d, %xmm0
	pshufd	$0, %xmm0, %xmm6                ## xmm6 = xmm0[0,0,0,0]
	movd	%r9d, %xmm0
	pshufd	$0, %xmm0, %xmm5                ## xmm5 = xmm0[0,0,0,0]
	movd	%r15d, %xmm0
	pshufd	$0, %xmm0, %xmm2                ## xmm2 = xmm0[0,0,0,0]
	xorl	%ebx, %ebx
	movdqa	%xmm8, %xmm4
	jmp	LBB0_26
	.p2align	4, 0x90
LBB0_30:                                ##   in Loop: Header=BB0_26 Depth=2
	por	%xmm7, %xmm0
	movdqu	%xmm0, (%r13,%rbx,4)
	movdqa	%xmm1, %xmm0
	pcmpeqd	%xmm12, %xmm0
	blendvps	%xmm0, %xmm6, %xmm1
	movdqa	%xmm3, %xmm0
	pcmpeqd	%xmm12, %xmm0
	blendvps	%xmm0, %xmm5, %xmm3
	orps	%xmm1, %xmm3
	movups	%xmm3, (%rsi,%rbx,4)
	movdqu	%xmm2, (%rdi,%rbx,4)
	addq	$4, %rbx
	paddd	%xmm9, %xmm4
	cmpq	$256, %rbx                      ## imm = 0x100
	je	LBB0_19
LBB0_26:                                ##   Parent Loop BB0_11 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movdqa	%xmm4, %xmm1
	pand	%xmm10, %xmm1
	movdqa	%xmm1, %xmm0
	testl	%r14d, %r14d
	je	LBB0_28
## %bb.27:                              ##   in Loop: Header=BB0_26 Depth=2
	movdqa	%xmm6, %xmm0
LBB0_28:                                ##   in Loop: Header=BB0_26 Depth=2
	movdqu	%xmm4, (%r12,%rbx,4)
	movdqa	%xmm4, %xmm3
	pand	%xmm11, %xmm3
	movdqa	%xmm3, %xmm7
	testl	%r9d, %r9d
	je	LBB0_30
## %bb.29:                              ##   in Loop: Header=BB0_26 Depth=2
	movdqa	%xmm5, %xmm7
	jmp	LBB0_30
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_11 Depth=1
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_18:                                ##   Parent Loop BB0_11 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%ebx, %edx
	andl	$15, %edx
	testl	%r14d, %r14d
	movl	%r14d, %eax
	cmovel	%edx, %eax
	movl	%ebx, %r8d
	andl	$240, %r8d
	testl	%r9d, %r9d
	movl	%ebx, (%r12,%rbx,4)
	movl	%r9d, %ecx
	cmovel	%r8d, %ecx
	orl	%eax, %ecx
	movl	%ecx, (%r13,%rbx,4)
	testl	%edx, %edx
	cmovel	%r14d, %edx
	testl	%r8d, %r8d
	cmovel	%r9d, %r8d
	orl	%edx, %r8d
	movl	%r8d, (%rsi,%rbx,4)
	movl	%r15d, (%rdi,%rbx,4)
	incq	%rbx
	cmpq	$256, %rbx                      ## imm = 0x100
	jne	LBB0_18
	jmp	LBB0_19
LBB0_20:
	movq	_gfx@GOTPCREL(%rip), %rdx
	movq	16(%rdx), %rax
	movdqa	LCPI0_0(%rip), %xmm5            ## xmm5 = [0,1,2,3]
	xorl	%ecx, %ecx
	pxor	%xmm8, %xmm8
	movaps	LCPI0_18(%rip), %xmm10          ## xmm10 = [3,3,3,3]
	movaps	LCPI0_19(%rip), %xmm11          ## xmm11 = [1,1,1,1]
	pcmpeqd	%xmm6, %xmm6
	.p2align	4, 0x90
LBB0_21:                                ## =>This Inner Loop Header: Depth=1
	movdqa	%xmm5, %xmm0
	pslld	$28, %xmm0
	movaps	%xmm11, %xmm1
	blendvps	%xmm0, %xmm10, %xmm1
	movdqa	%xmm5, %xmm7
	psrld	$6, %xmm7
	pand	%xmm1, %xmm7
	movdqa	%xmm5, %xmm0
	psrld	$4, %xmm0
	pand	%xmm1, %xmm0
	movdqa	%xmm5, %xmm3
	pslld	$29, %xmm3
	psrad	$31, %xmm3
	pand	%xmm1, %xmm3
	pxor	%xmm0, %xmm3
	movdqa	%xmm5, %xmm4
	pslld	$30, %xmm4
	psrad	$31, %xmm4
	pand	%xmm1, %xmm4
	pxor	%xmm4, %xmm7
	pxor	%xmm3, %xmm4
	movdqa	%xmm5, %xmm0
	pand	%xmm11, %xmm0
	pcmpeqd	%xmm8, %xmm0
	movdqa	%xmm4, %xmm3
	blendvps	%xmm0, %xmm7, %xmm3
	xorps	%xmm1, %xmm7
	blendvps	%xmm0, %xmm4, %xmm7
	psubd	%xmm6, %xmm1
	pmaddwd	%xmm7, %xmm1
	paddd	%xmm3, %xmm1
	movdqu	%xmm1, (%rax,%rcx,4)
	addq	$4, %rcx
	paddd	%xmm9, %xmm5
	cmpq	$256, %rcx                      ## imm = 0x100
	jne	LBB0_21
## %bb.22:
	movq	24(%rdx), %rax
	movdqa	LCPI0_0(%rip), %xmm3            ## xmm3 = [0,1,2,3]
	xorl	%ecx, %ecx
	movdqa	LCPI0_20(%rip), %xmm4           ## xmm4 = [7,7,7,7]
	pxor	%xmm5, %xmm5
	movdqa	LCPI0_21(%rip), %xmm8           ## xmm8 = [2,2,2,2]
	.p2align	4, 0x90
LBB0_23:                                ## =>This Inner Loop Header: Depth=1
	movdqa	%xmm3, %xmm2
	psrld	$6, %xmm2
	movdqa	%xmm3, %xmm7
	psrld	$3, %xmm7
	pand	%xmm4, %xmm7
	movdqa	%xmm7, %xmm6
	pxor	%xmm4, %xmm6
	movdqa	%xmm3, %xmm0
	pslld	$29, %xmm0
	blendvps	%xmm0, %xmm6, %xmm7
	movdqa	%xmm3, %xmm0
	pand	%xmm8, %xmm0
	pcmpeqd	%xmm5, %xmm0
	movaps	%xmm7, %xmm6
	movdqa	%xmm2, %xmm1
	pxor	%xmm4, %xmm1
	blendvps	%xmm0, %xmm2, %xmm1
	xorps	%xmm4, %xmm6
	blendvps	%xmm0, %xmm7, %xmm6
	movdqa	%xmm3, %xmm0
	pand	%xmm11, %xmm0
	pcmpeqd	%xmm5, %xmm0
	movaps	%xmm6, %xmm2
	blendvps	%xmm0, %xmm1, %xmm2
	xorps	%xmm4, %xmm1
	blendvps	%xmm0, %xmm6, %xmm1
	pslld	$3, %xmm2
	paddd	%xmm1, %xmm2
	movdqu	%xmm2, (%rax,%rcx,4)
	addq	$4, %rcx
	paddd	%xmm9, %xmm3
	cmpq	$512, %rcx                      ## imm = 0x200
	jne	LBB0_23
## %bb.24:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_gfx,32,3                       ## @gfx
.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 gfx_init
lCPI0_0:
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.long	2                               ; 0x2
	.long	3                               ; 0x3
lCPI0_1:
	.long	16384                           ; 0x4000
	.long	16385                           ; 0x4001
	.long	16386                           ; 0x4002
	.long	16387                           ; 0x4003
lCPI0_2:
	.long	24576                           ; 0x6000
	.long	24577                           ; 0x6001
	.long	24578                           ; 0x6002
	.long	24579                           ; 0x6003
lCPI0_3:
	.long	28672                           ; 0x7000
	.long	28673                           ; 0x7001
	.long	28674                           ; 0x7002
	.long	28675                           ; 0x7003
lCPI0_4:
	.long	30720                           ; 0x7800
	.long	30721                           ; 0x7801
	.long	30722                           ; 0x7802
	.long	30723                           ; 0x7803
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_gfx_init
	.p2align	2
_gfx_init:                              ; @gfx_init
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x19, _gfx@GOTPAGE
Lloh1:
	ldr	x19, [x19, _gfx@GOTPAGEOFF]
	mov	x0, x19
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	mov	x10, #0
	adrp	x8, lCPI0_0@PAGE
	ldr	q0, [x8, lCPI0_0@PAGEOFF]
	movi.4s	v1, #4
	ldr	x9, [x19]
	movi.4s	v2, #8
	movi.4s	v3, #12
	movi.4s	v4, #7, lsl #8
	movi.4s	v5, #252
	movi.4s	v6, #248, lsl #8
	movi.4s	v7, #16
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	add.4s	v16, v0, v1
	add.4s	v17, v0, v2
	add.4s	v18, v0, v3
	shl.4s	v19, v0, #8
	shl.4s	v20, v16, #8
	shl.4s	v21, v17, #8
	shl.4s	v22, v18, #8
	and.16b	v23, v19, v4
	and.16b	v24, v20, v4
	and.16b	v25, v21, v4
	and.16b	v26, v22, v4
	ushr.4s	v27, v0, #6
	ushr.4s	v16, v16, #6
	ushr.4s	v17, v17, #6
	ushr.4s	v18, v18, #6
	and.16b	v27, v27, v5
	and.16b	v16, v16, v5
	and.16b	v17, v17, v5
	and.16b	v18, v18, v5
	orr.16b	v23, v23, v27
	orr.16b	v16, v24, v16
	orr.16b	v17, v25, v17
	orr.16b	v18, v26, v18
	and.16b	v19, v19, v6
	and.16b	v20, v20, v6
	and.16b	v21, v21, v6
	and.16b	v22, v22, v6
	orr.16b	v19, v23, v19
	orr.16b	v16, v16, v20
	orr.16b	v17, v17, v21
	add	x11, x9, x10
	orr.16b	v18, v18, v22
	stp	q19, q16, [x11]
	stp	q17, q18, [x11, #32]
	add.4s	v0, v0, v7
	add	x10, x10, #64
	cmp	x10, #16, lsl #12               ; =65536
	b.ne	LBB0_1
; %bb.2:
	movi.4s	v0, #4
Lloh2:
	adrp	x10, lCPI0_1@PAGE
Lloh3:
	ldr	q1, [x10, lCPI0_1@PAGEOFF]
	mov	w10, #65536
	movi.4s	v2, #8
	movi.4s	v3, #12
	movi.4s	v4, #7, lsl #8
	movi.4s	v5, #252
	movi.4s	v6, #120, lsl #8
	movi.4s	v7, #16
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	add.4s	v16, v1, v0
	add.4s	v17, v1, v2
	add.4s	v18, v1, v3
	shl.4s	v19, v1, #8
	shl.4s	v20, v16, #8
	shl.4s	v21, v17, #8
	shl.4s	v22, v18, #8
	and.16b	v23, v19, v4
	and.16b	v24, v20, v4
	and.16b	v25, v21, v4
	and.16b	v26, v22, v4
	ushr.4s	v27, v1, #5
	ushr.4s	v16, v16, #5
	ushr.4s	v17, v17, #5
	ushr.4s	v18, v18, #5
	and.16b	v27, v27, v5
	and.16b	v16, v16, v5
	and.16b	v17, v17, v5
	and.16b	v18, v18, v5
	orr.16b	v23, v23, v27
	orr.16b	v16, v24, v16
	orr.16b	v17, v25, v17
	orr.16b	v18, v26, v18
	and.16b	v19, v19, v6
	and.16b	v20, v20, v6
	and.16b	v21, v21, v6
	and.16b	v22, v22, v6
	orr.16b	v19, v23, v19
	orr.16b	v16, v16, v20
	orr.16b	v17, v17, v21
	add	x11, x9, x10
	orr.16b	v18, v18, v22
	stp	q19, q16, [x11]
	stp	q17, q18, [x11, #32]
	add.4s	v1, v1, v7
	add	x10, x10, #64
	cmp	x10, #24, lsl #12               ; =98304
	b.ne	LBB0_3
; %bb.4:
	movi.4s	v0, #4
Lloh4:
	adrp	x10, lCPI0_2@PAGE
Lloh5:
	ldr	q1, [x10, lCPI0_2@PAGEOFF]
	mov	w10, #98304
	movi.4s	v2, #8
	movi.4s	v3, #12
	movi.4s	v4, #7, lsl #8
	movi.4s	v5, #252
	movi.4s	v6, #56, lsl #8
	movi.4s	v7, #16
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	add.4s	v16, v1, v0
	add.4s	v17, v1, v2
	add.4s	v18, v1, v3
	shl.4s	v19, v1, #8
	shl.4s	v20, v16, #8
	shl.4s	v21, v17, #8
	shl.4s	v22, v18, #8
	and.16b	v23, v19, v4
	and.16b	v24, v20, v4
	and.16b	v25, v21, v4
	and.16b	v26, v22, v4
	ushr.4s	v27, v1, #4
	ushr.4s	v16, v16, #4
	ushr.4s	v17, v17, #4
	ushr.4s	v18, v18, #4
	and.16b	v27, v27, v5
	and.16b	v16, v16, v5
	and.16b	v17, v17, v5
	and.16b	v18, v18, v5
	and.16b	v19, v19, v6
	and.16b	v20, v20, v6
	and.16b	v21, v21, v6
	and.16b	v22, v22, v6
	orr.16b	v23, v27, v23
	orr.16b	v16, v16, v24
	orr.16b	v17, v17, v25
	orr.16b	v18, v18, v26
	orr.16b	v19, v23, v19
	orr.16b	v16, v16, v20
	orr.16b	v17, v17, v21
	orr.16b	v18, v18, v22
	orr.4s	v19, #128, lsl #8
	orr.4s	v16, #128, lsl #8
	orr.4s	v17, #128, lsl #8
	orr.4s	v18, #128, lsl #8
	add	x11, x9, x10
	stp	q19, q16, [x11]
	stp	q17, q18, [x11, #32]
	add.4s	v1, v1, v7
	add	x10, x10, #64
	cmp	x10, #28, lsl #12               ; =114688
	b.ne	LBB0_5
; %bb.6:
	movi.4s	v0, #4
Lloh6:
	adrp	x10, lCPI0_3@PAGE
Lloh7:
	ldr	q1, [x10, lCPI0_3@PAGEOFF]
	mov	w10, #114688
	movi.4s	v2, #8
	movi.4s	v3, #12
	movi.4s	v4, #7, lsl #8
	movi.4s	v5, #252
	movi.4s	v6, #24, lsl #8
	movi.4s	v7, #16
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	add.4s	v16, v1, v0
	add.4s	v17, v1, v2
	add.4s	v18, v1, v3
	shl.4s	v19, v1, #8
	shl.4s	v20, v16, #8
	shl.4s	v21, v17, #8
	shl.4s	v22, v18, #8
	and.16b	v23, v19, v4
	and.16b	v24, v20, v4
	and.16b	v25, v21, v4
	and.16b	v26, v22, v4
	ushr.4s	v27, v1, #3
	ushr.4s	v16, v16, #3
	ushr.4s	v17, v17, #3
	ushr.4s	v18, v18, #3
	and.16b	v27, v27, v5
	and.16b	v16, v16, v5
	and.16b	v17, v17, v5
	and.16b	v18, v18, v5
	and.16b	v19, v19, v6
	and.16b	v20, v20, v6
	and.16b	v21, v21, v6
	and.16b	v22, v22, v6
	orr.16b	v23, v27, v23
	orr.16b	v16, v16, v24
	orr.16b	v17, v17, v25
	orr.16b	v18, v18, v26
	orr.16b	v19, v23, v19
	orr.16b	v16, v16, v20
	orr.16b	v17, v17, v21
	orr.16b	v18, v18, v22
	orr.4s	v19, #192, lsl #8
	orr.4s	v16, #192, lsl #8
	orr.4s	v17, #192, lsl #8
	orr.4s	v18, #192, lsl #8
	add	x11, x9, x10
	stp	q19, q16, [x11]
	stp	q17, q18, [x11, #32]
	add.4s	v1, v1, v7
	add	x10, x10, #64
	cmp	x10, #30, lsl #12               ; =122880
	b.ne	LBB0_7
; %bb.8:
	movi.4s	v0, #4
Lloh8:
	adrp	x10, lCPI0_4@PAGE
Lloh9:
	ldr	q1, [x10, lCPI0_4@PAGEOFF]
	mov	w10, #122880
	movi.4s	v2, #8
	movi.4s	v3, #12
	movi.4s	v4, #7, lsl #8
	movi.4s	v5, #252
	movi.4s	v6, #24, lsl #8
	movi.4s	v7, #16
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	add.4s	v16, v1, v0
	add.4s	v17, v1, v2
	add.4s	v18, v1, v3
	shl.4s	v19, v1, #8
	shl.4s	v20, v16, #8
	shl.4s	v21, v17, #8
	shl.4s	v22, v18, #8
	and.16b	v23, v19, v4
	and.16b	v24, v20, v4
	and.16b	v25, v21, v4
	and.16b	v26, v22, v4
	ushr.4s	v27, v1, #3
	ushr.4s	v16, v16, #3
	ushr.4s	v17, v17, #3
	ushr.4s	v18, v18, #3
	and.16b	v27, v27, v5
	and.16b	v16, v16, v5
	and.16b	v17, v17, v5
	and.16b	v18, v18, v5
	and.16b	v19, v19, v6
	and.16b	v20, v20, v6
	and.16b	v21, v21, v6
	and.16b	v22, v22, v6
	orr.16b	v23, v27, v23
	orr.16b	v16, v16, v24
	orr.16b	v17, v17, v25
	orr.16b	v18, v18, v26
	orr.16b	v19, v23, v19
	orr.16b	v16, v16, v20
	orr.16b	v17, v17, v21
	orr.16b	v18, v18, v22
	orr.4s	v19, #224, lsl #8
	orr.4s	v16, #224, lsl #8
	orr.4s	v17, #224, lsl #8
	orr.4s	v18, #224, lsl #8
	add	x11, x9, x10
	stp	q19, q16, [x11]
	stp	q17, q18, [x11, #32]
	add.4s	v1, v1, v7
	add	x10, x10, #64
	cmp	x10, #32, lsl #12               ; =131072
	b.ne	LBB0_9
; %bb.10:
	mov	x9, #0
	ldr	x13, [x19, #8]
	ldp	x10, x11, [x13]
	ldp	x12, x13, [x13, #16]
	ldr	q0, [x8, lCPI0_0@PAGEOFF]
	movi.4s	v1, #4
	movi.4s	v2, #240
	movi.4s	v3, #15
	movi.4s	v4, #8
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	add	x9, x9, #1
	cmp	x9, #256
	b.eq	LBB0_21
LBB0_12:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_18 Depth 2
                                        ;     Child Loop BB0_20 Depth 2
	lsl	x16, x9, #3
	ldr	x17, [x10, x16]
	and	w14, w9, #0xf
	and	w15, w9, #0xf0
	ldr	x0, [x11, x16]
	ldr	x1, [x12, x16]
	ldr	x16, [x13, x16]
	sub	x2, x0, x17
	cmp	x2, #32
	b.lo	LBB0_19
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	sub	x2, x1, x17
	cmp	x2, #32
	b.lo	LBB0_19
; %bb.14:                               ;   in Loop: Header=BB0_12 Depth=1
	sub	x2, x16, x17
	cmp	x2, #32
	b.lo	LBB0_19
; %bb.15:                               ;   in Loop: Header=BB0_12 Depth=1
	sub	x2, x1, x0
	cmp	x2, #32
	b.lo	LBB0_19
; %bb.16:                               ;   in Loop: Header=BB0_12 Depth=1
	sub	x2, x16, x0
	sub	x3, x16, x1
	cmp	x2, #32
	ccmp	x3, #31, #0, hs
	b.ls	LBB0_19
; %bb.17:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	x2, #0
	dup.4s	v5, w14
	dup.4s	v6, w15
	add	x17, x17, #16
	dup.4s	v7, w9
	add	x0, x0, #16
	add	x1, x1, #16
	mov.16b	v16, v0
LBB0_18:                                ;   Parent Loop BB0_12 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	fmov	s17, wzr
	fmov	s18, w15
	cmeq.4s	v18, v18, v17
	dup.4s	v18, v18[0]
	add.4s	v19, v16, v1
	and.16b	v20, v19, v2
	mov.16b	v21, v18
	bsl.16b	v21, v20, v6
	and.16b	v22, v16, v2
	bsl.16b	v18, v22, v6
	fmov	s23, w14
	cmeq.4s	v17, v23, v17
	dup.4s	v17, v17[0]
	and.16b	v23, v19, v3
	mov.16b	v24, v17
	bsl.16b	v24, v23, v5
	and.16b	v25, v16, v3
	bsl.16b	v17, v25, v5
	add	x3, x17, x2
	stp	q16, q19, [x3, #-16]
	orr.16b	v17, v17, v18
	orr.16b	v18, v24, v21
	add	x3, x0, x2
	stp	q17, q18, [x3, #-16]
	cmeq.4s	v17, v25, #0
	cmeq.4s	v18, v23, #0
	bsl.16b	v17, v5, v25
	bsl.16b	v18, v5, v23
	cmeq.4s	v19, v22, #0
	cmeq.4s	v21, v20, #0
	bsl.16b	v19, v6, v22
	bit.16b	v20, v6, v21
	orr.16b	v17, v17, v19
	orr.16b	v18, v18, v20
	add	x3, x1, x2
	stp	q17, q18, [x3, #-16]
	add	x3, x16, x2
	stp	q7, q7, [x3]
	add.4s	v16, v16, v4
	add	x2, x2, #32
	cmp	x2, #1024
	b.ne	LBB0_18
	b	LBB0_11
LBB0_19:                                ;   in Loop: Header=BB0_12 Depth=1
	mov	x2, #0
LBB0_20:                                ;   Parent Loop BB0_12 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	lsl	x3, x2, #2
	str	w2, [x17, x3]
	ands	w4, w2, #0xf0
	csel	w5, w15, w4, eq
	ands	w6, w2, #0xf
	csel	w7, w14, w6, eq
	cmp	w14, #0
	csel	w6, w6, w14, eq
	cmp	w15, #0
	csel	w4, w4, w15, eq
	orr	w4, w6, w4
	str	w4, [x0, x3]
	orr	w4, w7, w5
	str	w4, [x1, x3]
	str	w9, [x16, x3]
	add	x2, x2, #1
	cmp	x2, #256
	b.ne	LBB0_20
	b	LBB0_11
LBB0_21:
	mov	x9, #0
	ldr	q0, [x8, lCPI0_0@PAGEOFF]
	ldr	x10, [x19, #16]
	movi.4s	v1, #8
	movi.4s	v2, #3
	movi.4s	v3, #1
	movi.4s	v4, #4
	movi.4s	v5, #2
LBB0_22:                                ; =>This Inner Loop Header: Depth=1
	and.16b	v6, v0, v1
	cmeq.4s	v6, v6, #0
	bsl.16b	v6, v3, v2
	ushr.4s	v7, v0, #6
	and.16b	v7, v6, v7
	ushr.4s	v16, v0, #4
	and.16b	v16, v6, v16
	and.16b	v17, v0, v4
	cmeq.4s	v17, v17, #0
	bcax.16b	v16, v16, v6, v17
	and.16b	v17, v0, v5
	cmeq.4s	v17, v17, #0
	bic.16b	v18, v6, v17
	bcax.16b	v19, v7, v6, v17
	bcax.16b	v16, v16, v6, v17
	and.16b	v17, v0, v3
	cmeq.4s	v17, v17, #0
	eor3.16b	v7, v7, v18, v6
	mov.16b	v18, v17
	bsl.16b	v18, v19, v16
	bit.16b	v7, v16, v17
	add.4s	v6, v6, v3
	mla.4s	v18, v7, v6
	str	q18, [x10, x9]
	add.4s	v0, v0, v4
	add	x9, x9, #16
	cmp	x9, #1024
	b.ne	LBB0_22
; %bb.23:
	mov	x9, #0
	ldr	q0, [x8, lCPI0_0@PAGEOFF]
	ldr	x8, [x19, #24]
	movi.4s	v1, #7
	movi.4s	v2, #4
	movi.4s	v3, #2
	movi.4s	v4, #1
LBB0_24:                                ; =>This Inner Loop Header: Depth=1
	ushr.4s	v5, v0, #6
	ushr.4s	v6, v0, #3
	and.16b	v6, v6, v1
	and.16b	v7, v0, v2
	cmeq.4s	v7, v7, #0
	eor.16b	v16, v6, v1
	bif.16b	v6, v16, v7
	and.16b	v7, v0, v3
	cmeq.4s	v7, v7, #0
	eor.16b	v16, v6, v1
	eor.16b	v17, v5, v1
	bif.16b	v5, v17, v7
	bif.16b	v6, v16, v7
	and.16b	v7, v0, v4
	cmeq.4s	v7, v7, #0
	eor.16b	v16, v5, v1
	bif.16b	v5, v6, v7
	bif.16b	v6, v16, v7
	shl.4s	v5, v5, #3
	add.4s	v5, v5, v6
	str	q5, [x8, x9]
	add.4s	v0, v0, v2
	add	x9, x9, #16
	cmp	x9, #2048
	b.ne	LBB0_24
; %bb.25:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdr	Lloh2, Lloh3
	.loh AdrpLdr	Lloh4, Lloh5
	.loh AdrpLdr	Lloh6, Lloh7
	.loh AdrpLdr	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_gfx,32,3                       ; @gfx
.subsections_via_symbols
