	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gf100_grctx_generate_r4060a8   ## -- Begin function gf100_grctx_generate_r4060a8
	.p2align	4, 0x90
_gf100_grctx_generate_r4060a8:          ## @gf100_grctx_generate_r4060a8
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	16(%rdi), %rbx
	movq	%rbx, %rdi
	movl	$140336, %esi                   ## imm = 0x22430
	callq	_nvkm_rd32
	movl	%eax, %r14d
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	movl	$140340, %esi                   ## imm = 0x22434
	callq	_nvkm_rd32
	movl	%eax, %r15d
	imull	%r14d, %r15d
	movl	%r15d, %edi
	movl	$4, %esi
	callq	_DIV_ROUND_UP
	testl	%eax, %eax
	jle	LBB0_11
## %bb.1:
	xorl	%ebx, %ebx
	movl	$4219048, %r13d                 ## imm = 0x4060A8
	xorl	%r14d, %r14d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	orl	%esi, %edx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%r13d, %esi
	callq	_nvkm_wr32
	incl	%r14d
	movl	%r15d, %edi
	movl	$4, %esi
	callq	_DIV_ROUND_UP
	addl	$4, %r13d
	cmpl	%eax, %r14d
	jge	LBB0_11
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %eax
	movl	$31, %edx
	cmpl	%eax, %ebx
	jge	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r12), %rcx
	movslq	%ebx, %rdx
	incl	%ebx
	movl	(%rcx,%rdx,4), %edx
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	$7936, %ecx                     ## imm = 0x1F00
	cmpl	%eax, %ebx
	jge	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r12), %rcx
	movslq	%ebx, %rsi
	incl	%ebx
	movl	(%rcx,%rsi,4), %ecx
	shll	$8, %ecx
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	orl	%edx, %ecx
	movl	$2031616, %esi                  ## imm = 0x1F0000
	cmpl	%eax, %ebx
	jge	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r12), %rdx
	movslq	%ebx, %rsi
	incl	%ebx
	movl	(%rdx,%rsi,4), %esi
	shll	$16, %esi
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	orl	%ecx, %esi
	movl	$520093696, %edx                ## imm = 0x1F000000
	cmpl	%eax, %ebx
	jge	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r12), %rax
	movslq	%ebx, %rcx
	incl	%ebx
	movl	(%rax,%rcx,4), %edx
	shll	$24, %edx
	jmp	LBB0_10
LBB0_11:
	addq	$8, %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_r4060a8   ; -- Begin function gf100_grctx_generate_r4060a8
	.p2align	2
_gf100_grctx_generate_r4060a8:          ; @gf100_grctx_generate_r4060a8
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
	ldr	x20, [x0, #16]
	mov	w22, #9264
	movk	w22, #2, lsl #16
	mov	x0, x20
	mov	w1, #9264
	movk	w1, #2, lsl #16
	bl	_nvkm_rd32
	mov	x21, x0
	orr	w1, w22, #0x4
	mov	x0, x20
	bl	_nvkm_rd32
	mul	w21, w0, w21
	mov	x0, x21
	mov	w1, #4
	bl	_DIV_ROUND_UP
	cmp	w0, #1
	b.lt	LBB0_12
; %bb.1:
	mov	w24, #0
	mov	w23, #0
	mov	w22, #24744
	movk	w22, #64, lsl #16
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x9, [x19, #8]
	ldr	w9, [x9, w24, sxtw #2]
	add	w24, w24, #1
	lsl	w9, w9, #24
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	orr	w8, w10, w8
	orr	w8, w11, w8
	orr	w2, w9, w8
	mov	x0, x20
	mov	x1, x22
	bl	_nvkm_wr32
	add	w23, w23, #1
	mov	x0, x21
	mov	w1, #4
	bl	_DIV_ROUND_UP
	add	w22, w22, #4
	cmp	w23, w0
	b.ge	LBB0_12
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x19]
	cmp	w24, w9
	b.ge	LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x19, #8]
	ldr	w8, [x8, w24, sxtw #2]
	add	w24, w24, #1
	cmp	w24, w9
	b.lt	LBB0_9
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	w10, #7936
	cmp	w24, w9
	b.lt	LBB0_10
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	w11, #2031616
	cmp	w24, w9
	b.lt	LBB0_2
	b	LBB0_11
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	w8, #31
	cmp	w24, w9
	b.ge	LBB0_6
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x10, [x19, #8]
	ldr	w10, [x10, w24, sxtw #2]
	add	w24, w24, #1
	lsl	w10, w10, #8
	cmp	w24, w9
	b.ge	LBB0_7
LBB0_10:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x11, [x19, #8]
	ldr	w11, [x11, w24, sxtw #2]
	add	w24, w24, #1
	lsl	w11, w11, #16
	cmp	w24, w9
	b.lt	LBB0_2
LBB0_11:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w9, #520093696
	b	LBB0_3
LBB0_12:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
