	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gf100_gr_oneinit
_gf100_gr_oneinit:                      ## @gf100_gr_oneinit
	.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
	callq	_gf100_gr
	movq	%rax, %r12
	leaq	104(%rax), %rbx
	movq	104(%rax), %r14
	leaq	100(%rax), %rcx
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	movl	$4231168, %edx                  ## imm = 0x409000
	callq	_nvkm_falcon_v1_new
	testl	%eax, %eax
	jne	LBB0_15
## %bb.1:
	leaq	96(%r12), %rdi
	callq	_mutex_init
	leaq	92(%r12), %rcx
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	movl	$4300800, %edx                  ## imm = 0x41A000
	callq	_nvkm_falcon_v1_new
	testl	%eax, %eax
	jne	LBB0_15
## %bb.2:
	movl	(%r14), %edi
	xorl	%esi, %esi
	callq	_nvkm_pmu_pgob
	movq	72(%r12), %rax
	movq	%r12, %rdi
	callq	*24(%rax)
	movl	%eax, 88(%r12)
	movq	%r14, %rdi
	movl	$4232708, %esi                  ## imm = 0x409604
	callq	_nvkm_rd32
	andl	$31, %eax
	movl	%eax, (%r12)
	je	LBB0_14
## %bb.3:
	xorl	%r13d, %r13d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_4 Depth=1
	incq	%r13
	movslq	(%r12), %rax
	cmpq	%rax, %r13
	jge	LBB0_14
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
	movl	%r13d, %edi
	movl	$9736, %esi                     ## imm = 0x2608
	callq	_GPC_UNIT
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_nvkm_rd32
	movq	8(%r12), %rcx
	movl	%eax, (%rcx,%r13,4)
	movl	84(%r12), %edi
	movl	%eax, %esi
	callq	_max
	movl	%eax, 84(%r12)
	movq	8(%r12), %rax
	movq	24(%r12), %rcx
	movl	(%rax,%r13,4), %eax
	addl	%eax, 16(%r12)
	movq	72(%r12), %rax
	movl	(%rax), %eax
	movl	%eax, (%rcx,%r13,4)
	testl	%eax, %eax
	jle	LBB0_13
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	$3120, %ebx                     ## imm = 0xC30
	xorl	%r15d, %r15d
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_6 Depth=2
	incq	%r15
	movq	24(%r12), %rax
	movslq	(%rax,%r13,4), %rax
	addl	$4, %ebx
	cmpq	%rax, %r15
	jge	LBB0_13
LBB0_6:                                 ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%r13d, %edi
	movl	%ebx, %esi
	callq	_GPC_UNIT
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_nvkm_rd32
	movq	32(%r12), %rcx
	movq	(%rcx,%r13,8), %rdx
	movl	%eax, (%rdx,%r15,4)
	testl	%eax, %eax
	je	LBB0_12
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=2
	movl	$1, %eax
	movl	%r15d, %ecx
	shll	%cl, %eax
	movq	40(%r12), %rcx
	orl	%eax, (%rcx,%r13,4)
	movl	(%rdx,%r15,4), %edi
	callq	_hweight8
	movq	48(%r12), %rcx
	movq	(%rcx,%r13,8), %rcx
	movq	%rax, (%rcx,%r15,8)
	movq	56(%r12), %rdx
	testq	%rdx, %rdx
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=2
	cmpq	%rax, %rdx
	jle	LBB0_10
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=2
	movq	%rax, 56(%r12)
	movq	(%rcx,%r15,8), %rax
LBB0_10:                                ##   in Loop: Header=BB0_6 Depth=2
	cmpq	%rax, 64(%r12)
	jge	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_6 Depth=2
	movq	%rax, 64(%r12)
	jmp	LBB0_12
LBB0_14:
	movl	80(%r12), %edi
	movl	$255, %esi
	movl	$4, %edx
	callq	_memset
	movq	72(%r12), %rax
	movq	%r12, %rdi
	callq	*16(%rax)
	movq	72(%r12), %rax
	movq	%r12, %rdi
	callq	*8(%rax)
	xorl	%eax, %eax
LBB0_15:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"FECS"

L_.str.1:                               ## @.str.1
	.asciz	"GPCCS"

	.no_dead_strip	_gf100_gr_oneinit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gf100_gr_oneinit
_gf100_gr_oneinit:                      ; @gf100_gr_oneinit
	.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	w22, #36864
	movk	w22, #64, lsl #16
	bl	_gf100_gr
	mov	x19, x0
	mov	x21, x0
	ldr	x20, [x21, #104]!
	add	x3, x0, #100
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	mov	w2, #36864
	movk	w2, #64, lsl #16
	bl	_nvkm_falcon_v1_new
	cbnz	w0, LBB0_15
; %bb.1:
	add	x0, x19, #96
	bl	_mutex_init
	add	x3, x19, #92
	add	w2, w22, #17, lsl #12           ; =69632
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_nvkm_falcon_v1_new
	cbnz	w0, LBB0_15
; %bb.2:
	ldr	w0, [x20]
	mov	w1, #0
	bl	_nvkm_pmu_pgob
	ldr	x8, [x19, #72]
	ldr	x8, [x8, #24]
	mov	x0, x19
	blr	x8
	str	w0, [x19, #88]
	add	w1, w22, #1540
	mov	x0, x20
	bl	_nvkm_rd32
	ands	w8, w0, #0x1f
	str	w8, [x19]
	b.eq	LBB0_14
; %bb.3:
	mov	x21, #0
	mov	w23, #1
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x21, x21, #1
	ldrsw	x8, [x19]
	cmp	x21, x8
	b.ge	LBB0_14
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
	mov	x0, x21
	mov	w1, #9736
	bl	_GPC_UNIT
	mov	x1, x0
	mov	x0, x20
	bl	_nvkm_rd32
	mov	x1, x0
	ldr	x8, [x19, #8]
	lsl	x24, x21, #2
	str	w0, [x8, x24]
	ldr	w0, [x19, #84]
	bl	_max
	str	w0, [x19, #84]
	ldr	x8, [x19, #8]
	ldr	w8, [x8, x24]
	ldr	w9, [x19, #16]
	add	w8, w9, w8
	str	w8, [x19, #16]
	ldr	x8, [x19, #72]
	ldr	w8, [x8]
	ldr	x9, [x19, #24]
	str	w8, [x9, x24]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x25, #0
	mov	w22, #3120
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=2
	add	x25, x25, #1
	ldr	x8, [x19, #24]
	ldrsw	x8, [x8, x21, lsl #2]
	add	w22, w22, #4
	cmp	x25, x8
	b.ge	LBB0_4
LBB0_8:                                 ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x21
	mov	x1, x22
	bl	_GPC_UNIT
	mov	x1, x0
	mov	x0, x20
	bl	_nvkm_rd32
	ldr	x8, [x19, #32]
	ldr	x8, [x8, x21, lsl #3]
	str	w0, [x8, x25, lsl #2]
	cbz	w0, LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=2
	ldr	x9, [x19, #40]
	ldr	w10, [x9, x24]
	lsl	w11, w23, w25
	orr	w10, w10, w11
	str	w10, [x9, x24]
	ldr	w0, [x8, x25, lsl #2]
	bl	_hweight8
	ldr	x8, [x19, #48]
	ldr	x8, [x8, x21, lsl #3]
	str	x0, [x8, x25, lsl #3]
	ldr	x9, [x19, #56]
	cbz	x9, LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=2
	cmp	x9, x0
	b.le	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_8 Depth=2
	str	x0, [x19, #56]
	ldr	x0, [x8, x25, lsl #3]
LBB0_12:                                ;   in Loop: Header=BB0_8 Depth=2
	ldr	x8, [x19, #64]
	cmp	x8, x0
	b.ge	LBB0_7
; %bb.13:                               ;   in Loop: Header=BB0_8 Depth=2
	str	x0, [x19, #64]
	b	LBB0_7
LBB0_14:
	ldr	w0, [x19, #80]
	mov	w1, #255
	mov	w2, #4
	bl	_memset
	ldr	x8, [x19, #72]
	ldr	x8, [x8, #16]
	mov	x0, x19
	blr	x8
	ldr	x8, [x19, #72]
	ldr	x8, [x8, #8]
	mov	x0, x19
	blr	x8
	mov	w0, #0
LBB0_15:
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"FECS"

l_.str.1:                               ; @.str.1
	.asciz	"GPCCS"

	.no_dead_strip	_gf100_gr_oneinit
.subsections_via_symbols
