	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nvc0_mem_timing_calc
_nvc0_mem_timing_calc:                  ## @nvc0_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	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r15
	movq	%r8, %r12
	movq	%rdx, %rbx
	callq	_nouveau_drm
	movq	%rax, %r14
	movq	(%rbx), %r8
	testq	%r8, %r8
	jle	LBB0_1
## %bb.2:
	movq	%r8, (%r15)
	jmp	LBB0_3
LBB0_1:
	movq	(%r15), %r8
LBB0_3:
	movl	8(%rbx), %eax
	movl	12(%rbx), %edx
	shll	$24, %eax
	andl	$127, %edx
	shll	$17, %edx
	movl	16(%rbx), %ecx
	shll	$8, %ecx
	orl	20(%rbx), %ecx
	orl	%eax, %edx
	orl	%edx, %ecx
	movq	8(%r15), %rax
	movl	%ecx, (%rax)
	movq	8(%r12), %r10
	movzbl	7(%r10), %esi
	shll	$24, %esi
	movl	24(%rbx), %edi
	movl	28(%rbx), %edx
	andl	$15, %edi
	shll	$20, %edi
	orl	%esi, %edi
	andl	$15, %edx
	shll	$14, %edx
	orl	%edi, %edx
	movl	32(%rbx), %esi
	andl	$15, %esi
	shll	$7, %r8d
	orl	%edx, %r8d
	orl	%esi, %r8d
	movl	%r8d, 4(%rax)
	movl	$-16776961, %edx                ## imm = 0xFF0000FF
	andl	8(%r10), %edx
	movl	36(%rbx), %esi
	movl	40(%rbx), %r9d
	shll	$16, %esi
	shll	$8, %r9d
	orl	%esi, %r9d
	orl	%edx, %r9d
	movl	%r9d, 8(%rax)
	movl	44(%rbx), %edx
	movl	48(%rbx), %esi
	andl	$31, %edx
	shll	$9, %edx
	andl	$15, %esi
	shll	$5, %esi
	orl	%edx, %esi
	movl	52(%rbx), %edi
	andl	$31, %edi
	orl	%esi, %edi
	movl	%edi, 12(%rax)
	movl	$-1044481, %edx                 ## imm = 0xFFF00FFF
	andl	16(%r10), %edx
	movl	56(%rbx), %esi
	andl	$31, %esi
	shll	$15, %esi
	orl	%edx, %esi
	movl	%esi, 16(%rax)
	movl	16(%r15), %edx
	movl	%edi, (%rsp)
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
                                        ## kill: def $r8d killed $r8d killed $r8
	xorl	%eax, %eax
	callq	_NV_DEBUG
	movq	8(%r15), %rax
	movl	16(%rax), %edx
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_NV_DEBUG
	xorl	%eax, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Entry %d: 290: %08x %08x %08x %08x\n"

L_.str.1:                               ## @.str.1
	.asciz	"         2a0: %08x\n"

	.no_dead_strip	_nvc0_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 nvc0_mem_timing_calc
_nvc0_mem_timing_calc:                  ; @nvc0_mem_timing_calc
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x5
	mov	x22, x4
	mov	x21, x2
	bl	_nouveau_drm
	mov	x20, x0
	ldr	x8, [x21]
	cmp	x8, #0
	b.le	LBB0_2
; %bb.1:
	str	x8, [x19]
	b	LBB0_3
LBB0_2:
	ldr	x8, [x19]
LBB0_3:
	ldp	w9, w10, [x21, #8]
	lsl	w9, w9, #24
	bfi	w9, w10, #17, #7
	ldp	w10, w11, [x21, #16]
	orr	w10, w11, w10, lsl #8
	orr	w9, w10, w9
	ldr	x10, [x19, #8]
	str	w9, [x10]
	ldr	x11, [x22, #8]
	ldrb	w12, [x11, #7]
	lsl	w12, w12, #24
	ldp	w13, w14, [x21, #24]
	bfi	w12, w13, #20, #4
	bfi	w12, w14, #14, #4
	ldr	w13, [x21, #32]
	orr	w8, w12, w8, lsl #7
	bfxil	w8, w13, #0, #4
	str	w8, [x10, #4]
	ldr	w12, [x11, #8]
	and	w12, w12, #0xff0000ff
	ldp	w13, w14, [x21, #36]
	orr	w12, w12, w13, lsl #16
	orr	w12, w12, w14, lsl #8
	str	w12, [x10, #8]
	ldp	w13, w14, [x21, #44]
	ubfiz	w13, w13, #9, #5
	bfi	w13, w14, #5, #4
	ldr	w14, [x21, #52]
	bfxil	w13, w14, #0, #5
	str	w13, [x10, #12]
	ldr	w11, [x11, #16]
	and	w11, w11, #0xfff00fff
	ldr	w14, [x21, #56]
	bfi	w11, w14, #15, #5
	str	w11, [x10, #16]
	ldr	w2, [x19, #16]
	stp	x12, x13, [sp, #16]
	stp	x9, x8, [sp]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_NV_DEBUG
	ldr	x8, [x19, #8]
	ldr	w2, [x8, #16]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_NV_DEBUG
	mov	w0, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Entry %d: 290: %08x %08x %08x %08x\n"

l_.str.1:                               ; @.str.1
	.asciz	"         2a0: %08x\n"

	.no_dead_strip	_nvc0_mem_timing_calc
.subsections_via_symbols
