	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gf100_grctx_generate_floorsweep ## -- Begin function gf100_grctx_generate_floorsweep
	.p2align	4, 0x90
_gf100_grctx_generate_floorsweep:       ## @gf100_grctx_generate_floorsweep
	.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, %r15
	movq	24(%rdi), %rax
	movq	32(%rdi), %r14
	movq	(%rax), %r12
	cmpl	$0, (%rdi)
	jle	LBB0_5
## %bb.1:
	xorl	%ebx, %ebx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	movslq	(%r15), %rax
	cmpq	%rax, %rbx
	jge	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r15), %rax
	movl	(%rax,%rbx,8), %esi
	movl	4(%rax,%rbx,8), %edx
	movq	%r15, %rdi
	movl	%ebx, %ecx
	callq	*88(%r12)
	movq	80(%r12), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	16(%r15), %rcx
	movl	(%rcx,%rbx,8), %esi
	movq	%r15, %rdi
	callq	*%rax
	jmp	LBB0_4
LBB0_5:
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	movl	$4216944, %ebx                  ## imm = 0x405870
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_6 Depth=1
	xorl	%r12d, %r12d
LBB0_23:                                ##   in Loop: Header=BB0_6 Depth=1
	leal	1976(%rbx), %esi
	movq	%r14, %rdi
	movl	%r12d, %edx
	callq	_nvkm_wr32
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%r12d, %edx
	callq	_nvkm_wr32
	addl	$4, %ebx
	cmpl	$4216960, %ebx                  ## imm = 0x405880
	je	LBB0_24
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	4(%r15), %eax
	cmpl	%eax, %r13d
	cmovgl	%r13d, %eax
	jge	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	subl	%r13d, %eax
	movslq	%r13d, %rcx
	movq	8(%r15), %rdx
	movl	(%rdx,%rcx,4), %r12d
	cmpl	$1, %eax
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	incl	%r13d
	jmp	LBB0_23
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	4(%rdx,%rcx,4), %esi
	shll	$4, %esi
	orl	%esi, %r12d
	cmpl	$2, %eax
	jne	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_6 Depth=1
	addl	$2, %r13d
	jmp	LBB0_23
LBB0_12:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	8(%rdx,%rcx,4), %esi
	shll	$8, %esi
	orl	%esi, %r12d
	cmpl	$3, %eax
	jne	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_6 Depth=1
	addl	$3, %r13d
	jmp	LBB0_23
LBB0_14:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	12(%rdx,%rcx,4), %esi
	shll	$12, %esi
	orl	%esi, %r12d
	cmpl	$4, %eax
	jne	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_6 Depth=1
	addl	$4, %r13d
	jmp	LBB0_23
LBB0_16:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	16(%rdx,%rcx,4), %esi
	shll	$16, %esi
	orl	%esi, %r12d
	cmpl	$5, %eax
	jne	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_6 Depth=1
	addl	$5, %r13d
	jmp	LBB0_23
LBB0_18:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	20(%rdx,%rcx,4), %esi
	shll	$20, %esi
	orl	%esi, %r12d
	cmpl	$6, %eax
	jne	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_6 Depth=1
	addl	$6, %r13d
	jmp	LBB0_23
LBB0_20:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	24(%rdx,%rcx,4), %esi
	shll	$24, %esi
	orl	%esi, %r12d
	cmpl	$7, %eax
	jne	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_6 Depth=1
	addl	$7, %r13d
	jmp	LBB0_23
LBB0_22:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	28(%rdx,%rcx,4), %eax
	shll	$28, %eax
	orl	%eax, %r12d
	addl	$8, %r13d
	jmp	LBB0_23
LBB0_24:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	72(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_26
## %bb.25:
	movq	%r15, %rdi
	callq	*%rax
LBB0_26:
	movq	%r15, %rdi
	callq	*64(%rbx)
	movq	56(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_28
## %bb.27:
	movq	%r15, %rdi
	callq	*%rax
LBB0_28:
	movq	48(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_30
## %bb.29:
	movq	%r15, %rdi
	callq	*%rax
LBB0_30:
	movq	40(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_32
## %bb.31:
	movq	%r15, %rdi
	callq	*%rax
LBB0_32:
	movq	32(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_34
## %bb.33:
	movq	%r15, %rdi
	callq	*%rax
LBB0_34:
	movq	24(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_36
## %bb.35:
	movq	%r15, %rdi
	callq	*%rax
LBB0_36:
	movq	16(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_38
## %bb.37:
	movq	%r15, %rdi
	callq	*%rax
LBB0_38:
	movq	8(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_40
## %bb.39:
	movq	%r15, %rdi
	callq	*%rax
LBB0_40:
	movq	(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_41
## %bb.42:
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
LBB0_41:
	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_floorsweep ; -- Begin function gf100_grctx_generate_floorsweep
	.p2align	2
_gf100_grctx_generate_floorsweep:       ; @gf100_grctx_generate_floorsweep
	.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
	ldp	x8, x20, [x0, #24]
	ldr	x23, [x8]
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.1:
	mov	x22, #0
	mov	x21, #0
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x21, x21, #1
	ldrsw	x8, [x19]
	add	x22, x22, #8
	cmp	x21, x8
	b.ge	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x23, #88]
	ldr	x9, [x19, #16]
	add	x9, x9, x22
	ldp	w1, w2, [x9]
	mov	x0, x19
	mov	x3, x21
	blr	x8
	ldr	x8, [x23, #80]
	cbz	x8, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x9, [x19, #16]
	ldr	w1, [x9, x22]
	mov	x0, x19
	blr	x8
	b	LBB0_2
LBB0_5:
	mov	w25, #0
	mov	w24, #4
	mov	w21, #24616
	movk	w21, #64, lsl #16
	b	LBB0_8
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=1
	mov	w22, #0
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	bl	_nvkm_wr32
	sub	w1, w21, #1976
	mov	x0, x20
	mov	x2, x22
	bl	_nvkm_wr32
	add	w21, w21, #4
	subs	w24, w24, #1
	b.eq	LBB0_19
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x19, #4]
	cmp	w25, w9
	csel	w8, w25, w9, gt
	cmp	w25, w9
	b.ge	LBB0_6
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	sub	w9, w8, w25
	sxtw	x10, w25
	ldr	x8, [x19, #8]
	ldr	w22, [x8, w25, sxtw #2]
	add	x11, x10, #1
	cmp	w9, #1
	b.eq	LBB0_15
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	w11, [x8, x11, lsl #2]
	orr	w22, w22, w11, lsl #4
	add	x11, x10, #2
	cmp	w9, #2
	b.eq	LBB0_15
; %bb.11:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	w11, [x8, x11, lsl #2]
	orr	w22, w22, w11, lsl #8
	add	x11, x10, #3
	cmp	w9, #3
	b.eq	LBB0_15
; %bb.12:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	w11, [x8, x11, lsl #2]
	orr	w22, w22, w11, lsl #12
	add	x11, x10, #4
	cmp	w9, #4
	b.eq	LBB0_15
; %bb.13:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	w11, [x8, x11, lsl #2]
	orr	w22, w22, w11, lsl #16
	add	x11, x10, #5
	cmp	w9, #5
	b.eq	LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	w11, [x8, x11, lsl #2]
	orr	w22, w22, w11, lsl #20
	add	x11, x10, #6
	cmp	w9, #6
	b.ne	LBB0_16
LBB0_15:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x25, x11
	b	LBB0_7
LBB0_16:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	w11, [x8, x11, lsl #2]
	orr	w22, w22, w11, lsl #24
	add	x10, x10, #7
	cmp	w9, #7
	b.ne	LBB0_18
; %bb.17:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	x25, x10
	b	LBB0_7
LBB0_18:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	w8, [x8, x10, lsl #2]
	orr	w22, w22, w8, lsl #28
	add	w25, w25, #8
	b	LBB0_7
LBB0_19:
	ldr	x8, [x23, #72]
	cbz	x8, LBB0_21
; %bb.20:
	mov	x0, x19
	blr	x8
LBB0_21:
	ldr	x8, [x23, #64]
	mov	x0, x19
	blr	x8
	ldr	x8, [x23, #56]
	cbz	x8, LBB0_23
; %bb.22:
	mov	x0, x19
	blr	x8
LBB0_23:
	ldr	x8, [x23, #48]
	cbz	x8, LBB0_25
; %bb.24:
	mov	x0, x19
	blr	x8
LBB0_25:
	ldr	x8, [x23, #40]
	cbz	x8, LBB0_27
; %bb.26:
	mov	x0, x19
	blr	x8
LBB0_27:
	ldr	x8, [x23, #32]
	cbz	x8, LBB0_29
; %bb.28:
	mov	x0, x19
	blr	x8
LBB0_29:
	ldr	x8, [x23, #24]
	cbz	x8, LBB0_31
; %bb.30:
	mov	x0, x19
	blr	x8
LBB0_31:
	ldr	x8, [x23, #16]
	cbz	x8, LBB0_33
; %bb.32:
	mov	x0, x19
	blr	x8
LBB0_33:
	ldr	x8, [x23, #8]
	cbz	x8, LBB0_35
; %bb.34:
	mov	x0, x19
	blr	x8
LBB0_35:
	ldr	x1, [x23]
	cbz	x1, LBB0_37
; %bb.36:
	mov	x0, x19
	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
	br	x1
LBB0_37:
	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
