	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gf100_grctx_generate_attrib    ## -- Begin function gf100_grctx_generate_attrib
	.p2align	4, 0x90
_gf100_grctx_generate_attrib:           ## @gf100_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movq	(%rdi), %r15
	movq	16(%r15), %rax
	movq	(%rax), %r12
	movl	8(%r12), %esi
	addl	4(%r12), %esi
	movl	(%r12), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	imull	(%r15), %esi
	shll	$5, %esi
	xorl	%r14d, %r14d
	movl	$4096, %edx                     ## imm = 0x1000
	xorl	%ecx, %ecx
	callq	_mmio_vram
	movl	%eax, %ebx
	movq	%r13, %rdi
	movl	$4294672, %esi                  ## imm = 0x418810
	movl	$-2147483648, %edx              ## imm = 0x80000000
	movl	$12, %ecx
	movl	%eax, %r8d
	callq	_mmio_refn
	movq	%r13, %rdi
	movl	$4298824, %esi                  ## imm = 0x419848
	movl	$268435456, %edx                ## imm = 0x10000000
	movl	$12, %ecx
	movl	%ebx, %r8d
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	callq	_mmio_refn
	shll	$16, %ebx
	movq	%r13, %rdi
	movl	$4216880, %esi                  ## imm = 0x405830
	movl	%ebx, %edx
	callq	_mmio_wr32
	movl	4(%r15), %ecx
	testl	%ecx, %ecx
	jle	LBB0_7
## %bb.1:
	movq	%r15, %rsi
	movq	8(%r15), %rax
	xorl	%edi, %edi
	movq	%r12, -80(%rbp)                 ## 8-byte Spill
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%rdi
	movslq	%ecx, %rdx
	cmpq	%rdx, %rdi
	jge	LBB0_7
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	cmpl	$0, (%rax,%rdi,4)
	jle	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%ebx, %ebx
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
                                        ## kill: def $edi killed $edi killed $rdi
	movl	%ebx, %esi
	movl	$1312, %edx                     ## imm = 0x520
	callq	_TPC_UNIT
	movl	%eax, %r13d
	leal	1(%r14), %edx
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	orl	%r12d, %edx
	movq	%r14, %r15
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_mmio_skip
	movl	%r15d, %edx
	orl	%r12d, %edx
	movq	%r14, %rdi
	movq	%r15, %r14
	movl	%r13d, %esi
	callq	_mmio_wr32
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	addl	4(%r12), %r14d
	incl	%ebx
	movq	8(%rsi), %rax
	cmpl	(%rax,%rdi,4), %ebx
	jl	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	4(%rsi), %ecx
	jmp	LBB0_6
LBB0_7:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gf100_grctx_generate_attrib    ; -- Begin function gf100_grctx_generate_attrib
	.p2align	2
_gf100_grctx_generate_attrib:           ; @gf100_grctx_generate_attrib
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x0
	ldr	x24, [x0]
	ldr	x8, [x24, #16]
	ldr	x25, [x8]
	ldp	w21, w8, [x25]
	ldr	w9, [x25, #8]
	add	w8, w9, w8
	ldr	w9, [x24]
	mul	w8, w8, w9
	lsl	w1, w8, #5
	mov	w2, #4096
	mov	w3, #0
	bl	_mmio_vram
	mov	x20, x0
	mov	x0, x19
	mov	w1, #34832
	movk	w1, #65, lsl #16
	mov	w2, #-2147483648
	mov	w3, #12
	mov	x4, x20
	bl	_mmio_refn
	mov	x0, x19
	mov	w1, #38984
	movk	w1, #65, lsl #16
	mov	w2, #268435456
	mov	w3, #12
	mov	x4, x20
	bl	_mmio_refn
	lsl	w20, w21, #16
	mov	x0, x19
	mov	w1, #22576
	movk	w1, #64, lsl #16
	mov	x2, x20
	bl	_mmio_wr32
	ldr	w9, [x24, #4]
	cmp	w9, #1
	b.lt	LBB0_7
; %bb.1:
	mov	x21, #0
	mov	w26, #0
	ldr	x8, [x24, #8]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x21, x21, #1
	cmp	x21, w9, sxtw
	b.ge	LBB0_7
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	ldr	w10, [x8, x21, lsl #2]
	cmp	w10, #1
	b.lt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w22, #0
LBB0_5:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x21
	mov	x1, x22
	mov	w2, #1312
	bl	_TPC_UNIT
	mov	x23, x0
	add	w8, w26, #1
	orr	w2, w8, w20
	mov	x0, x19
	mov	x1, x23
	bl	_mmio_skip
	orr	w2, w26, w20
	mov	x0, x19
	mov	x1, x23
	bl	_mmio_wr32
	ldr	w8, [x25, #4]
	add	w26, w8, w26
	add	w22, w22, #1
	ldr	x8, [x24, #8]
	ldr	w9, [x8, x21, lsl #2]
	cmp	w22, w9
	b.lt	LBB0_5
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w9, [x24, #4]
	b	LBB0_2
LBB0_7:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
