	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gf117_grctx_generate_attrib    ## -- Begin function gf117_grctx_generate_attrib
	.p2align	4, 0x90
_gf117_grctx_generate_attrib:           ## @gf117_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	$72, %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), %r12
	movq	32(%r12), %rax
	movq	(%rax), %rbx
	movl	(%rbx), %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	12(%rbx), %esi
	addl	8(%rbx), %esi
	movl	4(%rbx), %r15d
	imull	(%r12), %esi
	shll	$5, %esi
	xorl	%r14d, %r14d
	movl	$4096, %edx                     ## imm = 0x1000
	xorl	%ecx, %ecx
	callq	_mmio_vram
	movl	%eax, %r8d
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	movl	8(%rbx), %eax
	movl	%eax, -72(%rbp)                 ## 4-byte Spill
	movl	(%r12), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%r13, %rdi
	movl	$4294672, %esi                  ## imm = 0x418810
	movl	$-2147483648, %edx              ## imm = 0x80000000
	movl	$12, %ecx
	movl	%r8d, %ebx
	callq	_mmio_refn
	movq	%r13, %rdi
	movl	$4298824, %esi                  ## imm = 0x419848
	movl	$268435456, %edx                ## imm = 0x10000000
	movl	$12, %ecx
	movl	%ebx, %r8d
	callq	_mmio_refn
	shll	$16, %r15d
	movl	%r15d, -76(%rbp)                ## 4-byte Spill
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	orl	%ebx, %r15d
	movq	%r13, %rdi
	movl	$4216880, %esi                  ## imm = 0x405830
	movl	%r15d, %edx
	callq	_mmio_wr32
	movq	%rbx, %rax
	leal	3(%rbx), %edx
	testl	%eax, %eax
	cmovnsl	%eax, %edx
	shll	$14, %edx
	orl	$65535, %edx                    ## imm = 0xFFFF
	movq	%r13, -96(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	movl	$4220100, %esi                  ## imm = 0x4064C4
	callq	_mmio_wr32
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movl	4(%r12), %eax
	testl	%eax, %eax
	jle	LBB0_9
## %bb.1:
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	imull	-72(%rbp), %ecx                 ## 4-byte Folded Reload
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	shll	$16, %ecx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	8(%rcx), %rcx
	xorl	%r15d, %r15d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %r14
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	4(%rax), %eax
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%r15
	movslq	%eax, %rdx
	cmpq	%rdx, %r15
	jge	LBB0_9
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	cmpl	$0, (%rcx,%r15,4)
	jle	LBB0_8
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%ebx, %ebx
	movq	%r14, %r13
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=2
	incq	%rbx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rcx
	movslq	(%rcx,%r15,4), %rax
	cmpq	%rax, %rbx
	jge	LBB0_7
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	16(%r14), %rax
	movq	(%rax,%r15,8), %rax
	movl	(%rax,%rbx,4), %r12d
	movl	%r15d, %edi
	movl	%ebx, %esi
	xorl	%edx, %edx
	callq	_PPC_UNIT
                                        ## kill: def $eax killed $eax def $rax
	movq	24(%r14), %rcx
	movl	(%rcx,%r15,4), %ecx
	btl	%ebx, %ecx
	jae	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	leal	192(%rax), %esi
	movl	%esi, -80(%rbp)                 ## 4-byte Spill
	movl	-76(%rbp), %r15d                ## 4-byte Reload
	imull	%r12d, %r15d
	orl	$268435456, %r15d               ## imm = 0x10000000
	leal	1(%r13), %edx
	orl	%r15d, %edx
	movq	-96(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	callq	_mmio_skip
	orl	%r13d, %r15d
	movq	%r14, %rdi
	movl	-80(%rbp), %esi                 ## 4-byte Reload
	movl	%r15d, %edx
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	callq	_mmio_wr32
	movq	16(%r15), %rax
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rax,%rcx,8), %rax
	movl	(%rax,%rbx,4), %r14d
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	imull	8(%rax), %r14d
	addl	%r13d, %r14d
	movq	-104(%rbp), %rsi                ## 8-byte Reload
	addl	$228, %esi
	imull	-64(%rbp), %r12d                ## 4-byte Folded Reload
	movl	-44(%rbp), %r13d                ## 4-byte Reload
	orl	%r13d, %r12d
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	movl	%r12d, %edx
	callq	_mmio_wr32
	movq	16(%r15), %rax
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movq	(%rax,%r15,8), %rax
	movl	(%rax,%rbx,4), %eax
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	imull	12(%rcx), %eax
	addl	%eax, %r13d
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	movl	%r14d, %r13d
	jmp	LBB0_6
LBB0_9:
	addq	$72, %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	_gf117_grctx_generate_attrib    ; -- Begin function gf117_grctx_generate_attrib
	.p2align	2
_gf117_grctx_generate_attrib:           ; @gf117_grctx_generate_attrib
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	ldr	x24, [x0]
	ldr	x8, [x24, #32]
	ldr	x22, [x8]
	ldp	w21, w26, [x22]
	ldp	w8, w9, [x22, #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
	str	x22, [sp, #16]                  ; 8-byte Folded Spill
	ldr	w22, [x22, #8]
	ldr	w23, [x24]
	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	w8, w26, #16
	str	w8, [sp, #4]                    ; 4-byte Folded Spill
	orr	w2, w8, w21
	mov	w20, #22576
	movk	w20, #64, lsl #16
	mov	x0, x19
	mov	w1, #22576
	movk	w1, #64, lsl #16
	bl	_mmio_wr32
	add	w8, w21, #3
	cmp	w21, #0
	csel	w8, w8, w21, lt
	lsl	w8, w8, #14
	orr	w2, w8, #0xffff
	add	w1, w20, #3220
	str	x19, [sp, #8]                   ; 8-byte Folded Spill
	mov	x0, x19
	bl	_mmio_wr32
	ldr	w8, [x24, #4]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.1:
	mov	x20, #0
	mov	w27, #0
	mul	w9, w23, w22
	str	w9, [sp, #28]                   ; 4-byte Folded Spill
	lsl	w9, w21, #16
	str	w9, [sp]                        ; 4-byte Folded Spill
	ldr	x9, [x24, #8]
	ldp	x28, x19, [sp, #8]              ; 16-byte Folded Reload
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x24, #4]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x20, x20, #1
	cmp	x20, w8, sxtw
	b.ge	LBB0_9
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	ldr	w10, [x9, x20, lsl #2]
	cmp	w10, #1
	b.lt	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x21, #0
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=2
	add	x21, x21, #1
	ldr	x9, [x24, #8]
	ldrsw	x8, [x9, x20, lsl #2]
	cmp	x21, x8
	b.ge	LBB0_2
LBB0_7:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x24, #16]
	ldr	x8, [x8, x20, lsl #3]
	ldr	w26, [x8, x21, lsl #2]
	mov	x0, x20
	mov	x1, x21
	mov	w2, #0
	bl	_PPC_UNIT
	ldr	x8, [x24, #24]
	ldr	w8, [x8, x20, lsl #2]
	lsr	w8, w8, w21
	tbz	w8, #0, LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	mov	x22, x0
	add	w23, w0, #192
	ldr	w8, [sp, #4]                    ; 4-byte Folded Reload
	mul	w8, w8, w26
	orr	w25, w8, #0x10000000
	add	w8, w27, #1
	orr	w2, w25, w8
	mov	x0, x28
	mov	x1, x23
	bl	_mmio_skip
	orr	w2, w25, w27
	mov	x0, x28
	mov	x1, x23
	bl	_mmio_wr32
	ldr	w8, [x19, #8]
	ldr	x9, [x24, #16]
	lsl	x23, x20, #3
	ldr	x9, [x9, x23]
	lsl	x25, x21, #2
	ldr	w9, [x9, x25]
	madd	w27, w9, w8, w27
	add	w1, w22, #228
	ldr	w8, [sp]                        ; 4-byte Folded Reload
	mul	w8, w8, w26
	ldr	w22, [sp, #28]                  ; 4-byte Folded Reload
	orr	w2, w8, w22
	mov	x0, x28
	bl	_mmio_wr32
	ldr	w8, [x19, #12]
	ldr	x9, [x24, #16]
	ldr	x9, [x9, x23]
	ldr	w9, [x9, x25]
	madd	w22, w9, w8, w22
	str	w22, [sp, #28]                  ; 4-byte Folded Spill
	b	LBB0_6
LBB0_9:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
