	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gv100_grctx_generate_attrib
_gv100_grctx_generate_attrib:           ## @gv100_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, %r12
	movq	(%rdi), %rbx
	movq	32(%rbx), %rax
	movq	(%rax), %rax
	movl	(%rax), %ecx
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movl	4(%rax), %ecx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movl	8(%rax), %ecx
	movl	(%rbx), %r14d
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	movl	12(%rax), %eax
	imull	%r14d, %eax
	movl	%ecx, -60(%rbp)                 ## 4-byte Spill
	imull	%ecx, %r14d
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	addl	%eax, %r14d
	shll	$5, %r14d
	subl	$-128, %r14d
	movl	%r14d, %esi
	andl	$-128, %esi
	xorl	%eax, %eax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	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	$4300288, %esi                  ## imm = 0x419E00
	xorl	%edx, %edx
	movl	$12, %ecx
	movl	%r15d, %r8d
	callq	_mmio_refn
	sarl	$7, %r14d
	orl	$-2147483648, %r14d             ## imm = 0x80000000
	movq	%r12, %rdi
	movl	$4300292, %esi                  ## imm = 0x419E04
	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	-72(%rbp), %r14                 ## 8-byte Reload
	movl	%r14d, %edx
	callq	_mmio_wr32
	leal	3(%r14), %edx
	testl	%r14d, %r14d
	cmovnsl	%r14d, %edx
	shll	$14, %edx
	orl	$65535, %edx                    ## imm = 0xFFFF
	movq	%r12, -80(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	movl	$4220100, %esi                  ## imm = 0x4064C4
	callq	_mmio_wr32
	movl	4(%rbx), %ecx
	testl	%ecx, %ecx
	jle	LBB0_10
## %bb.1:
	movq	8(%rbx), %rax
	xorl	%r12d, %r12d
	xorl	%esi, %esi
	movq	%rbx, -112(%rbp)                ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	4(%rbx), %ecx
	movq	-104(%rbp), %rsi                ## 8-byte Reload
	addl	%r14d, %esi
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%r12
	movslq	%ecx, %rdx
	cmpq	%rdx, %r12
	jge	LBB0_10
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	cmpl	$0, (%rax,%r12,4)
	jle	LBB0_9
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rsi, -104(%rbp)                ## 8-byte Spill
	leal	4296352(,%rsi,4), %r15d
	xorl	%r14d, %r14d
	movq	%r12, -96(%rbp)                 ## 8-byte Spill
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=2
	movl	%r13d, %eax
	imull	-60(%rbp), %eax                 ## 4-byte Folded Reload
	movl	%eax, %edx
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	movl	%r13d, %eax
	imull	-44(%rbp), %eax                 ## 4-byte Folded Reload
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	imull	-72(%rbp), %r13d                ## 4-byte Folded Reload
	leal	192(%r15), %esi
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	callq	_mmio_wr32
	leal	244(%r15), %esi
	movq	%r12, %rdi
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %edx
	callq	_mmio_wr32
	leal	240(%r15), %esi
	movq	%r12, %rdi
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	callq	_mmio_wr32
	addl	-64(%rbp), %ebx                 ## 4-byte Folded Reload
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	movq	-112(%rbp), %rbx                ## 8-byte Reload
	leal	228(%r15), %esi
	movq	%r12, %rdi
	movl	%r13d, %edx
	callq	_mmio_wr32
	addl	$248, %r15d
	movq	%r12, %rdi
	movl	%r15d, %esi
	movq	-88(%rbp), %r15                 ## 8-byte Reload
	movl	%r15d, %edx
	callq	_mmio_wr32
	movq	16(%rbx), %rax
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rax,%rcx,8), %rax
	movl	(%rax,%r14,4), %eax
	movq	-120(%rbp), %rcx                ## 8-byte Reload
	imull	12(%rcx), %eax
	addl	%eax, %r15d
	movq	%r15, -88(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	movq	-96(%rbp), %r12                 ## 8-byte Reload
	movl	-56(%rbp), %r15d                ## 4-byte Reload
	movl	%r15d, %esi
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	callq	_mmio_wr32
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=2
	incq	%r14
	movq	8(%rbx), %rax
	movslq	(%rax,%r12,4), %rcx
	addl	$4, %r15d
	cmpq	%rcx, %r14
	jge	LBB0_8
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%r15d, -56(%rbp)                ## 4-byte Spill
	movq	16(%rbx), %rax
	movq	(%rax,%r12,8), %rax
	movl	(%rax,%r14,4), %r13d
	movl	%r12d, %edi
	movl	%r14d, %esi
	xorl	%edx, %edx
	callq	_PPC_UNIT
	movl	%eax, %r15d
	movq	24(%rbx), %rax
	movl	(%rax,%r12,4), %eax
	btl	%r14d, %eax
	jb	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	movl	-56(%rbp), %r15d                ## 4-byte Reload
	jmp	LBB0_7
LBB0_10:
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movl	$4293092, %esi                  ## imm = 0x4181E4
	movl	$256, %edx                      ## imm = 0x100
	callq	_mmio_wr32
	movq	%rbx, %rdi
	movl	$4308732, %esi                  ## imm = 0x41BEFC
	movl	$256, %edx                      ## imm = 0x100
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mmio_wr32                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_gv100_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 gv100_grctx_generate_attrib
_gv100_grctx_generate_attrib:           ; @gv100_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
	mov	x19, x0
	mov	w21, #33252
	movk	w21, #65, lsl #16
	ldr	x22, [x0]
	ldr	x8, [x22, #32]
	ldr	x8, [x8]
	ldp	w26, w25, [x8]
	str	x8, [sp, #24]                   ; 8-byte Folded Spill
	ldp	w10, w8, [x8, #8]
	ldr	w9, [x22]
	mul	w8, w9, w8
	str	w10, [sp, #12]                  ; 4-byte Folded Spill
	mov	x24, x8
	madd	w8, w9, w10, w8
	lsl	w8, w8, #5
	add	w20, w8, #128
	and	w1, w20, #0xffffff80
	mov	w2, #4096
	mov	w3, #0
	bl	_mmio_vram
	mov	x23, x0
	add	w1, w21, #1580
	mov	x0, x19
	mov	w2, #-2147483648
	mov	w3, #12
	mov	x4, x23
	bl	_mmio_refn
	mov	w21, #38984
	movk	w21, #65, lsl #16
	mov	x0, x19
	mov	w1, #38984
	movk	w1, #65, lsl #16
	mov	w2, #268435456
	mov	w3, #12
	mov	x4, x23
	bl	_mmio_refn
	add	w1, w21, #996
	mov	x0, x19
	mov	w2, #268435456
	mov	w3, #12
	mov	x4, x23
	bl	_mmio_refn
	add	w1, w21, #1464
	mov	x0, x19
	mov	w2, #0
	mov	w3, #12
	mov	x4, x23
	bl	_mmio_refn
	asr	w8, w20, #7
	orr	w2, w8, #0x80000000
	add	w1, w21, #1468
	mov	x0, x19
	bl	_mmio_wr32
	mov	w20, #22576
	movk	w20, #64, lsl #16
	mov	x0, x19
	mov	w1, #22576
	movk	w1, #64, lsl #16
	str	w25, [sp, #16]                  ; 4-byte Folded Spill
	mov	x2, x25
	bl	_mmio_wr32
	add	w1, w20, #44
	mov	x0, x19
	mov	x2, x26
	bl	_mmio_wr32
	add	w8, w26, #3
	cmp	w26, #0
	str	w26, [sp, #20]                  ; 4-byte Folded Spill
	csel	w8, w8, w26, lt
	lsl	w8, w8, #14
	orr	w2, w8, #0xffff
	add	w1, w20, #3220
	str	x19, [sp, #32]                  ; 8-byte Folded Spill
	mov	x0, x19
	bl	_mmio_wr32
	ldr	w9, [x22, #4]
	cmp	w9, #1
	b.lt	LBB0_9
; %bb.1:
	mov	x23, #0
	mov	w28, #0
	mov	w11, #0
	ldr	x8, [x22, #8]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w9, [x22, #4]
	ldr	w11, [sp, #8]                   ; 4-byte Folded Reload
	add	w11, w11, w25
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x23, x23, #1
	cmp	x23, w9, sxtw
	b.ge	LBB0_9
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	ldr	w10, [x8, x23, lsl #2]
	cmp	w10, #1
	b.lt	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x25, #0
	mov	w8, #33252
	movk	w8, #65, lsl #16
	str	w11, [sp, #8]                   ; 4-byte Folded Spill
	add	w8, w8, w11, lsl #2
	add	w26, w8, #3260
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=2
	add	x25, x25, #1
	ldr	x8, [x22, #8]
	ldrsw	x9, [x8, x23, lsl #2]
	add	w26, w26, #4
	cmp	x25, x9
	b.ge	LBB0_2
LBB0_7:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x22, #16]
	ldr	x8, [x8, x23, lsl #3]
	ldr	w20, [x8, x25, lsl #2]
	mov	x0, x23
	mov	x1, x25
	mov	w2, #0
	bl	_PPC_UNIT
	ldr	x8, [x22, #24]
	ldr	w8, [x8, x23, lsl #2]
	lsr	w8, w8, w25
	tbz	w8, #0, LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	mov	x27, x0
	ldr	w8, [sp, #12]                   ; 4-byte Folded Reload
	mov	x19, x22
	mov	x22, x28
	mul	w28, w20, w8
	ldr	w8, [sp, #16]                   ; 4-byte Folded Reload
	mul	w21, w20, w8
	add	w1, w0, #192
	ldr	w8, [sp, #20]                   ; 4-byte Folded Reload
	mul	w8, w20, w8
	str	w8, [sp, #44]                   ; 4-byte Folded Spill
	ldr	x20, [sp, #32]                  ; 8-byte Folded Reload
	mov	x0, x20
	mov	x2, x28
	bl	_mmio_wr32
	add	w1, w27, #244
	mov	x0, x20
	mov	x2, x24
	bl	_mmio_wr32
	add	w1, w27, #240
	mov	x0, x20
	mov	x2, x21
	bl	_mmio_wr32
	add	w24, w28, w24
	mov	x28, x22
	mov	x22, x19
	add	w1, w27, #228
	mov	x0, x20
	ldr	w2, [sp, #44]                   ; 4-byte Folded Reload
	bl	_mmio_wr32
	add	w1, w27, #248
	mov	x0, x20
	mov	x2, x28
	bl	_mmio_wr32
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	ldr	w8, [x8, #12]
	ldr	x9, [x19, #16]
	ldr	x9, [x9, x23, lsl #3]
	ldr	w9, [x9, x25, lsl #2]
	madd	w28, w9, w8, w28
	mov	x0, x20
	mov	x1, x26
	mov	x2, x21
	bl	_mmio_wr32
	b	LBB0_6
LBB0_9:
	ldr	x19, [sp, #32]                  ; 8-byte Folded Reload
	mov	x0, x19
	mov	w1, #33252
	movk	w1, #65, lsl #16
	mov	w2, #256
	bl	_mmio_wr32
	mov	x0, x19
	mov	w1, #48892
	movk	w1, #65, lsl #16
	mov	w2, #256
	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	_gv100_grctx_generate_attrib
.subsections_via_symbols
