	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gp100_gr_zbc_clear_color       ## -- Begin function gp100_gr_zbc_clear_color
	.p2align	4, 0x90
_gp100_gr_zbc_clear_color:              ## @gp100_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, %ebx
	movq	(%rdi), %rax
	movq	8(%rdi), %r14
	movslq	%esi, %r12
	decl	%ebx
	shlq	$4, %r12
	cmpl	$0, (%rax,%r12)
	je	LBB0_1
## %bb.2:
	movq	%rdi, %r15
	leal	4292624(,%rbx,4), %esi
	movq	8(%rax,%r12), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_nvkm_wr32
	leal	4292684(,%rbx,4), %esi
	movq	(%r15), %rax
	movq	8(%rax,%r12), %rax
	movl	4(%rax), %edx
	movq	%r14, %rdi
	callq	_nvkm_wr32
	leal	4292744(,%rbx,4), %esi
	movq	(%r15), %rax
	movq	8(%rax,%r12), %rax
	movl	8(%rax), %edx
	movq	%r14, %rdi
	callq	_nvkm_wr32
	leal	4292804(,%rbx,4), %esi
	movq	(%r15), %rax
	movq	8(%rax,%r12), %rax
	movl	12(%rax), %edx
	movq	%r14, %rdi
	callq	_nvkm_wr32
	movq	(%r15), %rax
	movl	(%rax,%r12), %eax
	jmp	LBB0_3
LBB0_1:
	xorl	%eax, %eax
LBB0_3:
	leal	3(%rbx), %esi
	testl	%ebx, %ebx
	cmovnsl	%ebx, %esi
	andl	$-4, %esi
	subl	%esi, %ebx
	leal	(,%rbx,8), %ecx
	subl	%ebx, %ecx
	movl	$127, %edx
	shll	%cl, %edx
	addl	$4292864, %esi                  ## imm = 0x418100
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %eax
	movq	%r14, %rdi
	movl	%eax, %ecx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_nvkm_mask                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gp100_gr_zbc_clear_color       ; -- Begin function gp100_gr_zbc_clear_color
	.p2align	2
_gp100_gr_zbc_clear_color:              ; @gp100_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
                                        ; kill: def $w1 killed $w1 def $x1
	mov	w22, #32784
	movk	w22, #65, lsl #16
	sub	w23, w1, #1
	ldp	x8, x19, [x0]
	sbfiz	x9, x1, #4, #32
	ldr	w9, [x8, x9]
	cbz	w9, LBB0_2
; %bb.1:
	mov	x20, x0
	sxtw	x9, w1
	add	w21, w22, w23, lsl #2
	lsl	x24, x9, #4
	add	x8, x8, x24
	ldr	x8, [x8, #8]
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x21
	bl	_nvkm_wr32
	add	w1, w21, #60
	ldr	x8, [x20]
	add	x8, x8, x24
	ldr	x8, [x8, #8]
	ldr	w2, [x8, #4]
	mov	x0, x19
	bl	_nvkm_wr32
	add	w1, w21, #120
	ldr	x8, [x20]
	add	x8, x8, x24
	ldr	x8, [x8, #8]
	ldr	w2, [x8, #8]
	mov	x0, x19
	bl	_nvkm_wr32
	add	w1, w21, #180
	ldr	x8, [x20]
	add	x8, x8, x24
	ldr	x8, [x8, #8]
	ldr	w2, [x8, #12]
	mov	x0, x19
	bl	_nvkm_wr32
	ldr	x8, [x20]
	ldr	w8, [x8, x24]
	b	LBB0_3
LBB0_2:
	mov	w8, #0
LBB0_3:
	add	w9, w23, #3
	cmp	w23, #0
	csel	w9, w9, w23, lt
	and	w9, w9, #0xfffffffc
	add	w10, w22, w9
	add	w1, w10, #240
	sub	w9, w23, w9
	lsl	w10, w9, #3
	sub	w9, w10, w9
	mov	w10, #127
	lsl	w2, w10, w9
	lsl	w3, w8, w9
	mov	x0, x19
	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_mask
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
