	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nvkm_gr_vstatus_print
_nvkm_gr_vstatus_print:                 ## @nvkm_gr_vstatus_print
	.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
	subq	$80, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r12d
	movl	%esi, %r14d
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	xorl	%eax, %eax
	cmpq	$0, (%rdx)
	je	LBB0_5
## %bb.1:
	testl	%r12d, %r12d
	je	LBB0_5
## %bb.2:
	xorl	%r8d, %r8d
	xorl	%ecx, %ecx
	xorl	%eax, %eax
	movl	%r12d, %esi
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	%eax, %ebx
	movl	%esi, %edi
	movl	$1, %eax
	shll	%cl, %eax
	andl	$7, %edi
	cmpl	$1, %edi
	cmovnel	%r8d, %eax
	orl	%ebx, %eax
	cmpq	$0, 8(%rdx,%rcx,8)
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%esi, %edi
	sarl	$3, %edi
	incq	%rcx
	cmpl	$7, %esi
	movl	%edi, %esi
	ja	LBB0_3
LBB0_5:
	leaq	-112(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$64, %esi
	movl	%eax, %ecx
	callq	_nvkm_snprintbf
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movl	%r14d, %edx
	movl	%r12d, %ecx
	movq	%rbx, %r8
	callq	_nvkm_error
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_7
## %bb.6:
	addq	$80, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PGRAPH_VSTATUS%d: %08x [%s]\n"

	.no_dead_strip	_nvkm_gr_vstatus_print
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nvkm_gr_vstatus_print
_nvkm_gr_vstatus_print:                 ; @nvkm_gr_vstatus_print
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	mov	x19, x3
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	ldr	x8, [x2]
	cmp	x8, #0
	ccmp	w3, #0, #4, ne
	b.ne	LBB0_2
; %bb.1:
	mov	w3, #0
	b	LBB0_4
LBB0_2:
	mov	x9, #0
	mov	w3, #0
	add	x8, x2, #8
	mov	w10, #1
	mov	x11, x19
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	and	w12, w11, #0x7
	lsl	w13, w10, w9
	cmp	w12, #1
	csel	w12, w13, wzr, eq
	orr	w3, w12, w3
	ldr	x12, [x8, x9, lsl #3]
	cmp	x12, #0
	ccmp	w11, #7, #0, ne
	asr	w11, w11, #3
	add	x9, x9, #1
	b.hi	LBB0_3
LBB0_4:
	add	x0, sp, #8
	mov	w1, #64
	bl	_nvkm_snprintbf
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	add	x4, sp, #8
	mov	x0, x21
	mov	x2, x20
	mov	x3, x19
	bl	_nvkm_error
	ldur	x8, [x29, #-40]
Lloh5:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh6:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_6
; %bb.5:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_6:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PGRAPH_VSTATUS%d: %08x [%s]\n"

	.no_dead_strip	_nvkm_gr_vstatus_print
.subsections_via_symbols
