	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nv04_disp_intr
_nv04_disp_intr:                        ## @nv04_disp_intr
	.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
	movq	%rdi, %r14
	movq	(%rdi), %r12
	movq	%r12, %rdi
	movl	$6291712, %esi                  ## imm = 0x600100
	callq	_nvkm_rd32
	movl	%eax, %ebx
	movq	%r12, %rdi
	movl	$6299904, %esi                  ## imm = 0x602100
	callq	_nvkm_rd32
	movl	%eax, %r15d
	testb	$1, %bl
	je	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_nvkm_disp_vblank
	movq	%r12, %rdi
	movl	$6291712, %esi                  ## imm = 0x600100
	movl	$1, %edx
	callq	_nvkm_wr32
LBB0_2:
	testb	$1, %r15b
	je	LBB0_4
## %bb.3:
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_nvkm_disp_vblank
	movq	%r12, %rdi
	movl	$6299904, %esi                  ## imm = 0x602100
	movl	$1, %edx
	callq	_nvkm_wr32
LBB0_4:
	movl	(%r12), %eax
	addl	$-16, %eax
	cmpl	$48, %eax
	ja	LBB0_8
## %bb.5:
	movq	%r12, %rdi
	movl	$33024, %esi                    ## imm = 0x8100
	callq	_nvkm_rd32
	movl	%eax, %r15d
	testl	$-18, %eax
	je	LBB0_7
## %bb.6:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%r15d, %edx
	callq	_nvkm_info
LBB0_7:
	movq	%r12, %rdi
	movl	$33024, %esi                    ## imm = 0x8100
	movl	%r15d, %edx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_nvkm_wr32                      ## TAILCALL
LBB0_8:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PVIDEO intr: %08x\n"

	.no_dead_strip	_nv04_disp_intr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nv04_disp_intr
_nv04_disp_intr:                        ; @nv04_disp_intr
	.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, x0
	mov	w23, #256
	movk	w23, #96, lsl #16
	ldr	x19, [x0]
	mov	x0, x19
	mov	w1, #256
	movk	w1, #96, lsl #16
	bl	_nvkm_rd32
	mov	x22, x0
	orr	w1, w23, #0x2000
	mov	x0, x19
	bl	_nvkm_rd32
	mov	x21, x0
	tbz	w22, #0, LBB0_2
; %bb.1:
	mov	x0, x20
	mov	w1, #0
	bl	_nvkm_disp_vblank
	mov	x0, x19
	mov	w1, #256
	movk	w1, #96, lsl #16
	mov	w2, #1
	bl	_nvkm_wr32
LBB0_2:
	tbz	w21, #0, LBB0_4
; %bb.3:
	mov	x0, x20
	mov	w1, #1
	bl	_nvkm_disp_vblank
	add	w1, w23, #2, lsl #12            ; =8192
	mov	x0, x19
	mov	w2, #1
	bl	_nvkm_wr32
LBB0_4:
	ldr	w8, [x19]
	sub	w8, w8, #16
	cmp	w8, #48
	b.hi	LBB0_8
; %bb.5:
	mov	x0, x19
	mov	w1, #33024
	bl	_nvkm_rd32
	mov	x21, x0
	mov	w8, #-18
	tst	w0, w8
	b.eq	LBB0_7
; %bb.6:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, x21
	bl	_nvkm_info
LBB0_7:
	mov	x0, x19
	mov	w1, #33024
	mov	x2, x21
	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_8:
	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	"PVIDEO intr: %08x\n"

	.no_dead_strip	_nv04_disp_intr
.subsections_via_symbols
