	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gf100_gr_zbc_clear_color
_gf100_gr_zbc_clear_color:              ## @gf100_gr_zbc_clear_color
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	(%rdi), %rax
	movq	8(%rdi), %r15
	movslq	%esi, %rbx
	shlq	$4, %rbx
	cmpl	$0, (%rax,%rbx)
	je	LBB0_1
## %bb.2:
	movq	%rdi, %r12
	movq	8(%rax,%rbx), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	$4216836, %esi                  ## imm = 0x405804
	callq	_nvkm_wr32
	movq	(%r12), %rax
	movq	8(%rax,%rbx), %rax
	movl	4(%rax), %edx
	movq	%r15, %rdi
	movl	$4216840, %esi                  ## imm = 0x405808
	callq	_nvkm_wr32
	movq	(%r12), %rax
	movq	8(%rax,%rbx), %rax
	movl	8(%rax), %edx
	movq	%r15, %rdi
	movl	$4216844, %esi                  ## imm = 0x40580C
	callq	_nvkm_wr32
	movq	(%r12), %rax
	movq	8(%rax,%rbx), %rax
	movl	12(%rax), %edx
	movq	%r15, %rdi
	movl	$4216848, %esi                  ## imm = 0x405810
	callq	_nvkm_wr32
	movq	(%r12), %rax
	movl	(%rax,%rbx), %edx
	jmp	LBB0_3
LBB0_1:
	xorl	%edx, %edx
LBB0_3:
	movq	%r15, %rdi
	movl	$4216852, %esi                  ## imm = 0x405814
	callq	_nvkm_wr32
	movq	%r15, %rdi
	movl	$4216864, %esi                  ## imm = 0x405820
	movl	%r14d, %edx
	callq	_nvkm_wr32
	movq	%r15, %rdi
	movl	$4216868, %esi                  ## imm = 0x405824
	movl	$4, %edx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_nvkm_wr32                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_gf100_gr_zbc_clear_color
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gf100_gr_zbc_clear_color
_gf100_gr_zbc_clear_color:              ; @gf100_gr_zbc_clear_color
	.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	x20, x1
	mov	w22, #22532
	movk	w22, #64, lsl #16
	ldp	x8, x19, [x0]
	sbfiz	x9, x20, #4, #32
	ldr	w9, [x8, x9]
	cbz	w9, LBB0_2
; %bb.1:
	mov	x21, x0
	sxtw	x9, w20
	lsl	x23, x9, #4
	add	x8, x8, x23
	ldr	x8, [x8, #8]
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #22532
	movk	w1, #64, lsl #16
	bl	_nvkm_wr32
	ldr	x8, [x21]
	add	x8, x8, x23
	ldr	x8, [x8, #8]
	ldr	w2, [x8, #4]
	add	w1, w22, #4
	mov	x0, x19
	bl	_nvkm_wr32
	ldr	x8, [x21]
	add	x8, x8, x23
	ldr	x8, [x8, #8]
	ldr	w2, [x8, #8]
	add	w1, w22, #8
	mov	x0, x19
	bl	_nvkm_wr32
	ldr	x8, [x21]
	add	x8, x8, x23
	ldr	x8, [x8, #8]
	ldr	w2, [x8, #12]
	add	w1, w22, #12
	mov	x0, x19
	bl	_nvkm_wr32
	ldr	x8, [x21]
	ldr	w2, [x8, x23]
	b	LBB0_3
LBB0_2:
	mov	w2, #0
LBB0_3:
	add	w1, w22, #16
	mov	x0, x19
	bl	_nvkm_wr32
	add	w1, w22, #28
	mov	x0, x19
	mov	x2, x20
	bl	_nvkm_wr32
	add	w1, w22, #32
	mov	x0, x19
	mov	w2, #4
	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
	b	_nvkm_wr32
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_gf100_gr_zbc_clear_color
.subsections_via_symbols
