	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gv100_disp_intr_head_timing
_gv100_disp_intr_head_timing:           ## @gv100_disp_intr_head_timing
	.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
	movl	%esi, %r13d
	movq	%rdi, %r15
	movq	(%rdi), %r14
	leal	6363136(,%r13,4), %r12d
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	_nvkm_rd32
	movl	%eax, %ebx
	movl	%eax, %edx
	andl	$3, %edx
	je	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	_nvkm_wr32
	andl	$-4, %ebx
LBB0_2:
	testb	$4, %bl
	je	LBB0_4
## %bb.3:
	movq	%r15, %rdi
	movl	%r13d, %esi
	callq	_nvkm_disp_vblank
	movq	%r14, %rdi
	movl	%r12d, %esi
	movl	$4, %edx
	callq	_nvkm_wr32
	andl	$-5, %ebx
LBB0_4:
	testl	%ebx, %ebx
	je	LBB0_5
## %bb.6:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_nvkm_warn
	movq	%r14, %rdi
	movl	%r12d, %esi
	movl	%ebx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_nvkm_wr32                      ## TAILCALL
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"head %08x\n"

	.no_dead_strip	_gv100_disp_intr_head_timing
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gv100_disp_intr_head_timing
_gv100_disp_intr_head_timing:           ; @gv100_disp_intr_head_timing
	.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	x23, x1
	mov	x21, x0
	ldr	x19, [x0]
	mov	w8, #6144
	movk	w8, #97, lsl #16
	add	w20, w8, w1, lsl #2
	mov	x0, x19
	mov	x1, x20
	bl	_nvkm_rd32
	mov	x22, x0
	ands	w2, w0, #0x3
	b.eq	LBB0_2
; %bb.1:
	mov	x0, x19
	mov	x1, x20
	bl	_nvkm_wr32
	and	w22, w22, #0xfffffffc
LBB0_2:
	tbz	w22, #2, LBB0_4
; %bb.3:
	mov	x0, x21
	mov	x1, x23
	bl	_nvkm_disp_vblank
	mov	x0, x19
	mov	x1, x20
	mov	w2, #4
	bl	_nvkm_wr32
	and	w22, w22, #0xfffffffb
LBB0_4:
	cbz	w22, LBB0_6
; %bb.5:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	mov	x2, x22
	bl	_nvkm_warn
	mov	x0, x19
	mov	x1, x20
	mov	x2, x22
	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
LBB0_6:
	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
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"head %08x\n"

	.no_dead_strip	_gv100_disp_intr_head_timing
.subsections_via_symbols
