	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nvd0_disp_intr_unk2_1
_nvd0_disp_intr_unk2_1:                 ## @nvd0_disp_intr_unk2_1
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	callq	_nouveau_clock
	movq	%rax, %r15
	leal	(%rbx,%rbx,2), %esi
	shll	$8, %esi
	addl	$6685776, %esi                  ## imm = 0x660450
	movq	%r14, %rdi
	callq	_nv_rd32
                                        ## kill: def $eax killed $eax def $rax
	leal	999(%rax), %ecx
	cmpl	$1999, %ecx                     ## imm = 0x7CF
	jb	LBB0_2
## %bb.1:
	cltq
	imulq	$274877907, %rax, %rdx          ## imm = 0x10624DD3
	movq	%rdx, %rax
	shrq	$63, %rax
	sarq	$38, %rdx
	addl	%eax, %edx
	movq	_PLL_VPLL0@GOTPCREL(%rip), %rax
	movslq	%ebx, %rsi
	addq	(%rax), %rsi
	movq	%r15, %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	*(%r15)
LBB0_2:
	shll	$11, %ebx
	addl	$6365696, %ebx                  ## imm = 0x612200
	movq	%r14, %rdi
	movl	%ebx, %esi
	xorl	%edx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_nv_wr32                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PLL_VPLL0,8,3                  ## @PLL_VPLL0
	.no_dead_strip	_nvd0_disp_intr_unk2_1
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nvd0_disp_intr_unk2_1
_nvd0_disp_intr_unk2_1:                 ; @nvd0_disp_intr_unk2_1
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x20, x1
	mov	x19, x0
	bl	_nouveau_clock
	mov	x21, x0
	mov	w8, #768
	mov	w9, #1104
	movk	w9, #102, lsl #16
	madd	w1, w20, w8, w9
	mov	x0, x19
	bl	_nv_rd32
	add	w8, w0, #999
	cmp	w8, #1999
	b.lo	LBB0_2
; %bb.1:
	mov	w8, #19923
	movk	w8, #4194, lsl #16
	smull	x8, w0, w8
	lsr	x9, x8, #63
	asr	x8, x8, #38
	add	w2, w8, w9
	ldr	x8, [x21]
Lloh0:
	adrp	x9, _PLL_VPLL0@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PLL_VPLL0@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x1, x9, w20, sxtw
	mov	x0, x21
	blr	x8
LBB0_2:
	mov	w8, #8704
	movk	w8, #97, lsl #16
	add	w1, w8, w20, lsl #11
	mov	x0, x19
	mov	w2, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_nv_wr32
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PLL_VPLL0,8,3                  ; @PLL_VPLL0
	.no_dead_strip	_nvd0_disp_intr_unk2_1
.subsections_via_symbols
