	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gp100_grctx_generate_attrib
_gp100_grctx_generate_attrib:           ## @gp100_grctx_generate_attrib
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %rcx
	movq	40(%rcx), %rax
	movq	(%rax), %rdx
	movl	(%rdx), %eax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movl	4(%rdx), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	(%rcx), %r11d
	movl	4(%rcx), %eax
	movq	%rdx, -88(%rbp)                 ## 8-byte Spill
	imull	8(%rdx), %r11d
	movl	%r11d, %r14d
	testl	%eax, %eax
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	jle	LBB0_11
## %bb.1:
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
	movl	12(%rdx), %r9d
	movq	8(%rcx), %rdx
	movl	16(%rcx), %r10d
	cmpl	$8, %eax
	jae	LBB0_3
## %bb.2:
	xorl	%edi, %edi
	movl	%r11d, %r14d
	jmp	LBB0_10
LBB0_3:
	movl	%eax, %edi
	andl	$-8, %edi
	movd	%r11d, %xmm0
	leaq	-8(%rdi), %rcx
	movq	%rcx, %r8
	shrq	$3, %r8
	incq	%r8
	testq	%rcx, %rcx
	je	LBB0_4
## %bb.5:
	movq	%r8, %rcx
	andq	$-2, %rcx
	movl	%r10d, %esi
	imull	%r9d, %esi
	movd	%esi, %xmm1
	pshufd	$0, %xmm1, %xmm2                ## xmm2 = xmm1[0,0,0,0]
	pxor	%xmm3, %xmm3
	xorl	%ebx, %ebx
	movdqa	%xmm0, %xmm4
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movdqu	(%rdx,%rbx,4), %xmm5
	movdqu	16(%rdx,%rbx,4), %xmm6
	movdqu	32(%rdx,%rbx,4), %xmm0
	movdqu	48(%rdx,%rbx,4), %xmm1
	pmulld	%xmm2, %xmm5
	paddd	%xmm4, %xmm5
	pmulld	%xmm2, %xmm6
	paddd	%xmm3, %xmm6
	pmulld	%xmm2, %xmm0
	paddd	%xmm5, %xmm0
	pmulld	%xmm2, %xmm1
	paddd	%xmm6, %xmm1
	addq	$16, %rbx
	movdqa	%xmm0, %xmm4
	movdqa	%xmm1, %xmm3
	addq	$-2, %rcx
	jne	LBB0_6
## %bb.7:
	testb	$1, %r8b
	je	LBB0_9
LBB0_8:
	movdqu	(%rdx,%rbx,4), %xmm2
	movdqu	16(%rdx,%rbx,4), %xmm3
	movl	%r10d, %ecx
	imull	%r9d, %ecx
	movd	%ecx, %xmm4
	pshufd	$0, %xmm4, %xmm4                ## xmm4 = xmm4[0,0,0,0]
	pmulld	%xmm4, %xmm2
	paddd	%xmm2, %xmm0
	pmulld	%xmm4, %xmm3
	paddd	%xmm3, %xmm1
LBB0_9:
	paddd	%xmm1, %xmm0
	pshufd	$238, %xmm0, %xmm1              ## xmm1 = xmm0[2,3,2,3]
	paddd	%xmm0, %xmm1
	pshufd	$85, %xmm1, %xmm0               ## xmm0 = xmm1[1,1,1,1]
	paddd	%xmm1, %xmm0
	movd	%xmm0, %r14d
	cmpq	%rax, %rdi
	je	LBB0_11
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rdx,%rdi,4), %ecx
	imull	%r9d, %ecx
	imull	%r10d, %ecx
	addl	%ecx, %r14d
	incq	%rdi
	cmpq	%rdi, %rax
	jne	LBB0_10
LBB0_11:
	movl	%r11d, -48(%rbp)                ## 4-byte Spill
	shll	$5, %r14d
	subl	$-128, %r14d
	movl	%r14d, %esi
	andl	$-128, %esi
	xorl	%eax, %eax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	movl	$4096, %edx                     ## imm = 0x1000
	xorl	%ecx, %ecx
	callq	_mmio_vram
	movl	%eax, %r15d
	movq	%r12, %rdi
	movl	$4294672, %esi                  ## imm = 0x418810
	movl	$-2147483648, %edx              ## imm = 0x80000000
	movl	$12, %ecx
	movl	%eax, %r8d
	callq	_mmio_refn
	movq	%r12, %rdi
	movl	$4298824, %esi                  ## imm = 0x419848
	movl	$268435456, %edx                ## imm = 0x10000000
	movl	$12, %ecx
	movl	%r15d, %r8d
	callq	_mmio_refn
	movq	%r12, %rdi
	movl	$4299820, %esi                  ## imm = 0x419C2C
	movl	$268435456, %edx                ## imm = 0x10000000
	movl	$12, %ecx
	movl	%r15d, %r8d
	callq	_mmio_refn
	movq	%r12, %rdi
	movl	$4299520, %esi                  ## imm = 0x419B00
	xorl	%edx, %edx
	movl	$12, %ecx
	movl	%r15d, %r8d
	callq	_mmio_refn
	sarl	$7, %r14d
	orl	$-2147483648, %r14d             ## imm = 0x80000000
	movq	%r12, %rdi
	movl	$4299524, %esi                  ## imm = 0x419B04
	movl	%r14d, %edx
	callq	_mmio_wr32
	movq	%r12, %rdi
	movl	$4216880, %esi                  ## imm = 0x405830
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_mmio_wr32
	movq	%r12, %rdi
	movl	$4216924, %esi                  ## imm = 0x40585C
	movq	-96(%rbp), %rbx                 ## 8-byte Reload
	movl	%ebx, %edx
	callq	_mmio_wr32
	leal	3(%rbx), %edx
	testl	%ebx, %ebx
	cmovnsl	%ebx, %edx
	shll	$14, %edx
	orl	$65535, %edx                    ## imm = 0xFFFF
	movq	%r12, %rdi
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movl	$4220100, %esi                  ## imm = 0x4064C4
	callq	_mmio_wr32
	movl	4(%r15), %ecx
	testl	%ecx, %ecx
	jle	LBB0_21
## %bb.12:
	movq	8(%r15), %rax
	xorl	%r12d, %r12d
	xorl	%esi, %esi
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_13 Depth=1
	movl	4(%r15), %ecx
	movq	-120(%rbp), %rsi                ## 8-byte Reload
	addl	%r14d, %esi
LBB0_20:                                ##   in Loop: Header=BB0_13 Depth=1
	incq	%r12
	movslq	%ecx, %rdx
	cmpq	%rdx, %r12
	jge	LBB0_21
LBB0_13:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_15 Depth 2
	cmpl	$0, (%rax,%r12,4)
	jle	LBB0_20
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	%rsi, -120(%rbp)                ## 8-byte Spill
	leal	4296352(,%rsi,4), %ebx
	xorl	%r14d, %r14d
	movq	%r12, -112(%rbp)                ## 8-byte Spill
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_15 Depth=2
	imull	-44(%rbp), %ebx                 ## 4-byte Folded Reload
	imull	-96(%rbp), %r13d                ## 4-byte Folded Reload
	movl	%r13d, -80(%rbp)                ## 4-byte Spill
	leal	192(%r15), %esi
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	movl	%ebx, %edx
	callq	_mmio_wr32
	leal	244(%r15), %esi
	movq	%r12, %rdi
	movl	%ebx, %r13d
	movl	%ebx, -76(%rbp)                 ## 4-byte Spill
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %edx
	callq	_mmio_wr32
	leal	240(%r15), %esi
	movq	%r12, %rdi
	movl	%r13d, %edx
	callq	_mmio_wr32
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	16(%rax), %eax
	movq	-88(%rbp), %r13                 ## 8-byte Reload
	imull	12(%r13), %eax
	addl	%eax, %ebx
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	leal	228(%r15), %esi
	movq	%r12, %rdi
	movl	-80(%rbp), %edx                 ## 4-byte Reload
	callq	_mmio_wr32
	addl	$248, %r15d
	movq	%r12, %rdi
	movl	%r15d, %esi
	movq	-104(%rbp), %rbx                ## 8-byte Reload
	movl	%ebx, %edx
	callq	_mmio_wr32
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	24(%rax), %rax
	movq	-112(%rbp), %rcx                ## 8-byte Reload
	movq	(%rax,%rcx,8), %rax
	movl	(%rax,%r14,4), %eax
	imull	8(%r13), %eax
	addl	%eax, %ebx
	movq	%rbx, -104(%rbp)                ## 8-byte Spill
	movq	%r12, %rdi
	movq	-112(%rbp), %r12                ## 8-byte Reload
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movl	-52(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %esi
	movl	-76(%rbp), %edx                 ## 4-byte Reload
	callq	_mmio_wr32
LBB0_18:                                ##   in Loop: Header=BB0_15 Depth=2
	incq	%r14
	movq	8(%r15), %rax
	movslq	(%rax,%r12,4), %rcx
	addl	$4, %ebx
	cmpq	%rcx, %r14
	jge	LBB0_19
LBB0_15:                                ##   Parent Loop BB0_13 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%ebx, -52(%rbp)                 ## 4-byte Spill
	movq	24(%r15), %rax
	movq	(%rax,%r12,8), %rax
	movl	(%rax,%r14,4), %r13d
	movl	16(%r15), %ebx
	movl	%r12d, %edi
	movl	%r14d, %esi
	xorl	%edx, %edx
	callq	_PPC_UNIT
	movq	%r15, %rcx
	movl	%eax, %r15d
	movq	32(%rcx), %rax
	movl	(%rax,%r12,4), %eax
	btl	%r14d, %eax
	jb	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=2
	movl	-52(%rbp), %ebx                 ## 4-byte Reload
	movq	%rcx, %r15
	jmp	LBB0_18
LBB0_21:
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movl	$4296428, %esi                  ## imm = 0x418EEC
	xorl	%edx, %edx
	callq	_mmio_wr32
	movq	%rbx, %rdi
	movl	$4308732, %esi                  ## imm = 0x41BEFC
	xorl	%edx, %edx
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mmio_wr32                      ## TAILCALL
LBB0_4:
	pxor	%xmm1, %xmm1
	xorl	%ebx, %ebx
	testb	$1, %r8b
	jne	LBB0_8
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_gp100_grctx_generate_attrib
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gp100_grctx_generate_attrib
_gp100_grctx_generate_attrib:           ; @gp100_grctx_generate_attrib
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	str	x0, [sp, #32]                   ; 8-byte Folded Spill
	ldr	x20, [x0]
	ldr	x8, [x20, #40]
	ldr	x8, [x8]
	ldr	w10, [x8]
	ldr	w9, [x8, #4]
	stp	w9, w10, [sp, #24]              ; 8-byte Folded Spill
	str	x8, [sp, #16]                   ; 8-byte Folded Spill
	ldr	w8, [x8, #8]
	ldp	w9, w10, [x20]
	mul	w19, w9, w8
	mov	x13, x19
	cmp	w10, #1
	b.lt	LBB0_8
; %bb.1:
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	ldr	w8, [x8, #12]
	ldr	x11, [x20, #8]
	ldr	w9, [x20, #16]
	cmp	w10, #16
	b.hs	LBB0_3
; %bb.2:
	mov	x12, #0
	mov	x13, x19
	b	LBB0_6
LBB0_3:
	and	x12, x10, #0xfffffff0
	movi.2d	v0, #0000000000000000
	movi.2d	v1, #0000000000000000
	mov.s	v1[0], w19
	mul	w13, w9, w8
	dup.4s	v2, w13
	add	x13, x11, #32
	mov	x14, x12
	movi.2d	v3, #0000000000000000
	movi.2d	v4, #0000000000000000
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q5, q6, [x13, #-32]
	ldp	q7, q16, [x13], #64
	mla.4s	v1, v2, v5
	mla.4s	v0, v2, v6
	mla.4s	v3, v2, v7
	mla.4s	v4, v2, v16
	subs	x14, x14, #16
	b.ne	LBB0_4
; %bb.5:
	add.4s	v0, v0, v1
	add.4s	v0, v3, v0
	add.4s	v0, v4, v0
	addv.4s	s0, v0
	fmov	w13, s0
	cmp	x12, x10
	b.eq	LBB0_8
LBB0_6:
	add	x11, x11, x12, lsl #2
	sub	x10, x10, x12
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w12, [x11], #4
	mul	w12, w12, w8
	madd	w13, w12, w9, w13
	subs	x10, x10, #1
	b.ne	LBB0_7
LBB0_8:
	lsl	w8, w13, #5
	add	w21, w8, #128
	and	w1, w21, #0xffffff80
	ldr	x25, [sp, #32]                  ; 8-byte Folded Reload
	mov	x0, x25
	mov	w2, #4096
	mov	w3, #0
	bl	_mmio_vram
	mov	x23, x0
	mov	x0, x25
	mov	w1, #34832
	movk	w1, #65, lsl #16
	mov	w2, #-2147483648
	mov	w3, #12
	mov	x4, x23
	bl	_mmio_refn
	mov	w24, #38984
	movk	w24, #65, lsl #16
	mov	x0, x25
	mov	w1, #38984
	movk	w1, #65, lsl #16
	mov	w2, #268435456
	mov	w3, #12
	mov	x4, x23
	bl	_mmio_refn
	add	w1, w24, #996
	mov	x0, x25
	mov	w2, #268435456
	mov	w3, #12
	mov	x4, x23
	bl	_mmio_refn
	add	w1, w24, #696
	mov	x0, x25
	mov	w2, #0
	mov	w3, #12
	mov	x4, x23
	bl	_mmio_refn
	asr	w8, w21, #7
	orr	w2, w8, #0x80000000
	add	w1, w24, #700
	mov	x0, x25
	bl	_mmio_wr32
	mov	w21, #22576
	movk	w21, #64, lsl #16
	mov	x0, x25
	mov	w1, #22576
	movk	w1, #64, lsl #16
	ldr	w2, [sp, #24]                   ; 4-byte Folded Reload
	bl	_mmio_wr32
	add	w1, w21, #44
	mov	x0, x25
	ldr	w22, [sp, #28]                  ; 4-byte Folded Reload
	mov	x2, x22
	bl	_mmio_wr32
	add	w8, w22, #3
	cmp	w22, #0
	csel	w8, w8, w22, lt
	lsl	w8, w8, #14
	orr	w2, w8, #0xffff
	add	w1, w21, #3220
	mov	x0, x25
	bl	_mmio_wr32
	ldr	w9, [x20, #4]
	cmp	w9, #1
	b.lt	LBB0_17
; %bb.9:
	mov	x23, #0
	str	wzr, [sp, #44]                  ; 4-byte Folded Spill
	mov	w11, #0
	ldr	x8, [x20, #8]
	ldr	x24, [sp, #32]                  ; 8-byte Folded Reload
	ldr	x22, [sp, #16]                  ; 8-byte Folded Reload
	b	LBB0_12
LBB0_10:                                ;   in Loop: Header=BB0_12 Depth=1
	ldr	w9, [x20, #4]
	ldr	w11, [sp, #12]                  ; 4-byte Folded Reload
	add	w11, w11, w25
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	add	x23, x23, #1
	cmp	x23, w9, sxtw
	b.ge	LBB0_17
LBB0_12:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_15 Depth 2
	ldr	w10, [x8, x23, lsl #2]
	cmp	w10, #1
	b.lt	LBB0_11
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	x25, #0
	mov	w8, #34832
	movk	w8, #65, lsl #16
	str	w11, [sp, #12]                  ; 4-byte Folded Spill
	add	w8, w8, w11, lsl #2
	add	w26, w8, #1680
	b	LBB0_15
LBB0_14:                                ;   in Loop: Header=BB0_15 Depth=2
	add	x25, x25, #1
	ldr	x8, [x20, #8]
	ldrsw	x9, [x8, x23, lsl #2]
	add	w26, w26, #4
	cmp	x25, x9
	b.ge	LBB0_10
LBB0_15:                                ;   Parent Loop BB0_12 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x20, #24]
	ldr	x8, [x8, x23, lsl #3]
	ldr	w21, [x8, x25, lsl #2]
	ldr	w28, [x20, #16]
	mov	x0, x23
	mov	x1, x25
	mov	w2, #0
	bl	_PPC_UNIT
	ldr	x8, [x20, #32]
	ldr	w8, [x8, x23, lsl #2]
	lsr	w8, w8, w25
	tbz	w8, #0, LBB0_14
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=2
	mov	x27, x0
	ldr	w8, [sp, #24]                   ; 4-byte Folded Reload
	mul	w28, w28, w8
	add	w1, w0, #192
	ldr	w8, [sp, #28]                   ; 4-byte Folded Reload
	mul	w21, w21, w8
	mov	x0, x24
	mov	x2, x28
	bl	_mmio_wr32
	add	w1, w27, #244
	mov	x0, x24
	mov	x2, x19
	bl	_mmio_wr32
	add	w1, w27, #240
	mov	x0, x24
	mov	x2, x28
	bl	_mmio_wr32
	ldr	w8, [x22, #12]
	ldr	w9, [x20, #16]
	madd	w19, w9, w8, w19
	add	w1, w27, #228
	mov	x0, x24
	mov	x2, x21
	bl	_mmio_wr32
	add	w1, w27, #248
	mov	x0, x24
	ldr	w21, [sp, #44]                  ; 4-byte Folded Reload
	mov	x2, x21
	bl	_mmio_wr32
	ldr	w8, [x22, #8]
	ldr	x9, [x20, #24]
	ldr	x9, [x9, x23, lsl #3]
	ldr	w9, [x9, x25, lsl #2]
	madd	w21, w9, w8, w21
	str	w21, [sp, #44]                  ; 4-byte Folded Spill
	mov	x0, x24
	mov	x1, x26
	mov	x2, x28
	bl	_mmio_wr32
	b	LBB0_14
LBB0_17:
	mov	w8, #34832
	movk	w8, #65, lsl #16
	add	w1, w8, #1756
	ldr	x19, [sp, #32]                  ; 8-byte Folded Reload
	mov	x0, x19
	mov	w2, #0
	bl	_mmio_wr32
	mov	x0, x19
	mov	w1, #48892
	movk	w1, #65, lsl #16
	mov	w2, #0
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	b	_mmio_wr32
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_gp100_grctx_generate_attrib
.subsections_via_symbols
