	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gf100_gr_zbc_color_get
_gf100_gr_zbc_color_get:                ## @gf100_gr_zbc_color_get
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	movl	%esi, %r15d
	movq	16(%rdi), %rdx
	movq	_ENOSPC@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	movq	(%rdx), %rcx
	movl	(%rcx), %ebx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movl	4(%rcx), %r8d
	cmpl	%r8d, %ebx
	jle	LBB0_1
LBB0_10:
	testl	%eax, %eax
	js	LBB0_11
## %bb.12:
	movq	8(%rdi), %rdx
	movl	%eax, %ecx
	shlq	$2, %rcx
	leaq	(%rcx,%rcx,2), %r14
	movq	%rdi, %rbx
	movl	8(%rdx,%r14), %edi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movl	$4, %edx
	movl	%eax, %r13d
	callq	_memcpy
	movq	8(%rbx), %rax
	movl	4(%rax,%r14), %edi
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rsi
	movl	$4, %edx
	callq	_memcpy
	movq	8(%rbx), %rax
	movl	%r15d, (%rax,%r14)
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	%r13d, %esi
	movq	%r12, %rdx
	callq	_nvkm_ltc_zbc_color_get
	movq	(%rbx), %rax
	movq	(%rax), %rax
	movq	%rbx, %rdi
	movl	%r13d, %esi
	callq	*(%rax)
	movl	%r13d, %ebx
	jmp	LBB0_13
LBB0_1:
	movslq	%ebx, %r12
	leaq	(,%r12,4), %rcx
	leaq	(%rcx,%rcx,2), %r13
	decq	%r12
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	testl	%eax, %eax
	cmovsl	%ebx, %eax
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movslq	%r8d, %rcx
	incl	%ebx
	addq	$12, %r13
	incq	%r12
	cmpq	%rcx, %r12
	jge	LBB0_10
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rdi), %rcx
	movl	(%rcx,%r13), %edx
	testl	%edx, %edx
	je	LBB0_8
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	%r15d, %edx
	jne	LBB0_9
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%eax, %r14d
	movl	8(%rcx,%r13), %edi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movl	$4, %edx
	callq	_memcmp
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	4(%rax), %r8d
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r14d, %eax
	jmp	LBB0_9
LBB0_11:
	movl	%eax, %ebx
LBB0_13:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	movl	4(%rax,%r13), %edi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movl	$4, %edx
	callq	_memcmp
	testq	%rax, %rax
	je	LBB0_13
## %bb.7:
	movl	$1, %edi
	callq	_WARN_ON
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOSPC,4,2                     ## @ENOSPC
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_gf100_gr_zbc_color_get
.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_color_get
_gf100_gr_zbc_color_get:                ; @gf100_gr_zbc_color_get
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x3
	mov	x24, x2
	mov	x22, x1
	mov	x20, x0
	ldr	x8, [x0, #16]
Lloh0:
	adrp	x9, _ENOSPC@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ENOSPC@GOTPAGEOFF]
	ldr	x23, [x8]
Lloh2:
	ldr	w8, [x9]
	neg	w21, w8
	ldp	w25, w8, [x23]
	cmp	w25, w8
	b.le	LBB0_5
LBB0_1:
	tbnz	w21, #31, LBB0_3
; %bb.2:
	ldr	x8, [x20, #8]
	mov	w25, #12
	umaddl	x8, w21, w25, x8
	umull	x26, w21, w25
	ldr	w0, [x8, #8]
	mov	x1, x24
	mov	w2, #4
	bl	_memcpy
	ldr	x8, [x20, #8]
	umaddl	x8, w21, w25, x8
	ldr	w0, [x8, #4]
	mov	x1, x19
	mov	w2, #4
	bl	_memcpy
	ldr	x8, [x20, #8]
	str	w22, [x8, x26]
	mov	x0, x23
	mov	x1, x21
	mov	x2, x19
	bl	_nvkm_ltc_zbc_color_get
	ldr	x8, [x20]
	ldr	x8, [x8]
	ldr	x8, [x8]
	mov	x0, x20
	mov	x1, x21
	blr	x8
LBB0_3:
	mov	x25, x21
LBB0_4:
	mov	x0, x25
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_5:
	sxtw	x9, w25
	add	x10, x9, x9, lsl #1
	lsl	x26, x10, #2
	sub	x27, x9, #1
	b	LBB0_8
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=1
	cmp	w21, #0
	csel	w21, w25, w21, lt
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	w25, w25, #1
	add	x26, x26, #12
	add	x27, x27, #1
	cmp	x27, w8, sxtw
	b.ge	LBB0_1
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x20, #8]
	ldr	w10, [x9, x26]
	cbz	w10, LBB0_6
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	cmp	w10, w22
	b.ne	LBB0_7
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	add	x8, x9, x26
	ldr	w0, [x8, #8]
	mov	x1, x24
	mov	w2, #4
	bl	_memcmp
	cbz	x0, LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	w8, [x23, #4]
	b	LBB0_7
LBB0_12:
	ldr	x8, [x20, #8]
	add	x8, x8, x26
	ldr	w0, [x8, #4]
	mov	x1, x19
	mov	w2, #4
	bl	_memcmp
	cbz	x0, LBB0_4
; %bb.13:
	mov	w0, #1
	bl	_WARN_ON
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w25, w8
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOSPC,4,2                     ; @ENOSPC
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_gf100_gr_zbc_color_get
.subsections_via_symbols
