	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nv40_mem_timing_calc
_nv40_mem_timing_calc:                  ## @nv40_mem_timing_calc
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%r9, %r14
	movq	%rdx, %rbx
	callq	_nouveau_drm
	movl	(%rbx), %ecx
	movl	4(%rbx), %edx
	shll	$24, %ecx
	shll	$16, %edx
	orl	%ecx, %edx
	movl	8(%rbx), %ecx
	shll	$8, %ecx
	orl	%edx, %ecx
	orl	12(%rbx), %ecx
	movq	(%r14), %r10
	movl	%ecx, (%r10)
	movl	8(%r14), %esi
	leal	1(%rsi), %edi
	movl	16(%rbx), %edx
	addl	%edi, %edx
	addl	20(%rbx), %edi
	shll	$24, %edx
	shll	$8, %edi
	movl	24(%rbx), %r8d
	subl	%esi, %r8d
	addl	$3, %r8d
	orl	%edx, %r8d
	orl	%edi, %r8d
	orl	$65536, %r8d                    ## imm = 0x10000
	movl	%r8d, 4(%r10)
	movl	8(%r14), %edx
	shll	$24, %edx
	addl	$-16777216, %edx                ## imm = 0xFF000000
	movl	28(%rbx), %esi
	movl	32(%rbx), %r9d
	shll	$16, %esi
	shll	$8, %r9d
	orl	%esi, %r9d
	orl	%edx, %r9d
	orl	36(%rbx), %r9d
	orl	$538968064, %r9d                ## imm = 0x20200000
	movl	%r9d, 8(%r10)
	movl	12(%r14), %edx
	leaq	L_.str(%rip), %rsi
	movq	%rax, %rdi
	callq	_NV_DEBUG
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Entry %d: 220: %08x %08x %08x\n"

	.no_dead_strip	_nv40_mem_timing_calc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nv40_mem_timing_calc
_nv40_mem_timing_calc:                  ; @nv40_mem_timing_calc
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x5
	mov	x20, x2
	bl	_nouveau_drm
	ldp	w8, w9, [x20]
	lsl	w9, w9, #16
	orr	w8, w9, w8, lsl #24
	ldp	w9, w10, [x20, #8]
	orr	w8, w8, w9, lsl #8
	orr	w3, w8, w10
	ldr	x8, [x19]
	str	w3, [x8]
	ldr	w9, [x19, #8]
	add	w10, w9, #1
	ldp	w11, w12, [x20, #16]
	add	w11, w10, w11
	add	w10, w10, w12
	ldr	w12, [x20, #24]
	sub	w9, w12, w9
	add	w9, w9, #3
	orr	w9, w9, w11, lsl #24
	orr	w9, w9, w10, lsl #8
	orr	w4, w9, #0x10000
	str	w4, [x8, #4]
	ldr	w9, [x19, #8]
	mov	w10, #-16777216
	add	w9, w10, w9, lsl #24
	ldp	w10, w11, [x20, #28]
	ldr	w12, [x20, #36]
	orr	w9, w9, w10, lsl #16
	orr	w9, w9, w11, lsl #8
	orr	w9, w9, w12
	mov	w10, #538968064
	orr	w5, w9, w10
	str	w5, [x8, #8]
	ldr	w2, [x19, #12]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_NV_DEBUG
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Entry %d: 220: %08x %08x %08x\n"

	.no_dead_strip	_nv40_mem_timing_calc
.subsections_via_symbols
