	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mclk_timing_set
_mclk_timing_set:                       ## @mclk_timing_set
	.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
	movq	%rdi, %rbx
	movl	8(%rdi), %edi
	callq	_nouveau_dev
	movq	%rax, %r12
	movq	(%rbx), %r13
	movq	8(%r13), %rbx
	movq	(%rbx), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movl	$1049120, %esi                  ## imm = 0x100220
	callq	_nv_wr32
	movq	(%rbx), %rax
	movl	4(%rax), %edx
	movq	%r12, %rdi
	movl	$1049124, %esi                  ## imm = 0x100224
	callq	_nv_wr32
	movq	(%rbx), %rax
	movl	8(%rax), %edx
	movq	%r12, %rdi
	movl	$1049128, %esi                  ## imm = 0x100228
	callq	_nv_wr32
	movq	(%rbx), %rax
	movl	12(%rax), %edx
	movq	%r12, %rdi
	movl	$1049132, %esi                  ## imm = 0x10022C
	callq	_nv_wr32
	movq	(%rbx), %rax
	movl	16(%rax), %edx
	movq	%r12, %rdi
	movl	$1049136, %esi                  ## imm = 0x100230
	callq	_nv_wr32
	movq	(%rbx), %rax
	movl	20(%rax), %edx
	movq	%r12, %rdi
	movl	$1049140, %esi                  ## imm = 0x100234
	callq	_nv_wr32
	movq	(%rbx), %rax
	movl	24(%rax), %edx
	movq	%r12, %rdi
	movl	$1049144, %esi                  ## imm = 0x100238
	callq	_nv_wr32
	movq	(%rbx), %rax
	movl	28(%rax), %edx
	movq	%r12, %rdi
	movl	$1049148, %esi                  ## imm = 0x10023C
	callq	_nv_wr32
	movq	(%rbx), %rax
	movl	32(%rax), %edx
	movq	%r12, %rdi
	movl	$1049152, %esi                  ## imm = 0x100240
	callq	_nv_wr32
	movq	(%r13), %rax
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movl	8(%rax), %ecx
	shll	$9, %ecx
	notl	%ecx
	andl	$4096, %ecx                     ## imm = 0x1000
	movq	%r12, %rdi
	movl	$1049088, %esi                  ## imm = 0x100200
	movl	$4096, %edx                     ## imm = 0x1000
	callq	_nv_mask
	cmpq	$0, (%r13)
	je	LBB0_3
## %bb.2:
	movq	%r12, %rdi
	movl	$1050388, %esi                  ## imm = 0x100714
	callq	_nv_rd32
	movl	%eax, %ebx
	andl	$268435439, %ebx                ## imm = 0xFFFFFEF
	movq	%r12, %rdi
	movl	$1050392, %esi                  ## imm = 0x100718
	callq	_nv_rd32
	movl	%eax, %r14d
	andl	$-257, %r14d                    ## imm = 0xFEFF
	movq	%r12, %rdi
	movl	$1050396, %esi                  ## imm = 0x10071C
	callq	_nv_rd32
	movl	%eax, %r15d
	andl	$-257, %r15d                    ## imm = 0xFEFF
	movq	(%r13), %rax
	movl	8(%rax), %eax
	leal	-268435456(%rbx), %ecx
	testb	$32, %al
	cmovel	%ebx, %ecx
	andl	$4, %eax
	leal	(%rcx,%rax,4), %edx
	xorl	$16, %edx
	movq	%r12, %rdi
	movl	$1050388, %esi                  ## imm = 0x100714
	callq	_nv_wr32
	movq	(%r13), %rax
	movl	8(%rax), %edx
	andl	$1, %edx
	shll	$8, %edx
	orl	%r15d, %edx
	movq	%r12, %rdi
	movl	$1050396, %esi                  ## imm = 0x10071C
	callq	_nv_wr32
	movq	(%r13), %rax
	movl	8(%rax), %edx
	andl	$2, %edx
	shll	$7, %edx
	orl	%r14d, %edx
	movq	%r12, %rdi
	movl	$1050392, %esi                  ## imm = 0x100718
	callq	_nv_wr32
	movq	(%r13), %rax
	testb	$16, 8(%rax)
	jne	LBB0_4
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	%r12, %rdi
	movl	$1118464, %esi                  ## imm = 0x111100
	movl	$1207959552, %edx               ## imm = 0x48000000
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_nv_wr32                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_mclk_timing_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mclk_timing_set
_mclk_timing_set:                       ; @mclk_timing_set
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x0
	mov	w22, #1812
	movk	w22, #16, lsl #16
	ldr	w0, [x0, #8]
	bl	_nouveau_dev
	mov	x19, x0
	ldr	x24, [x20]
	ldr	x20, [x24, #8]
	ldr	x8, [x20]
	ldr	w2, [x8]
	sub	w1, w22, #1268
	bl	_nv_wr32
	ldr	x8, [x20]
	ldr	w2, [x8, #4]
	sub	w1, w22, #1264
	mov	x0, x19
	bl	_nv_wr32
	ldr	x8, [x20]
	ldr	w2, [x8, #8]
	sub	w1, w22, #1260
	mov	x0, x19
	bl	_nv_wr32
	ldr	x8, [x20]
	ldr	w2, [x8, #12]
	sub	w1, w22, #1256
	mov	x0, x19
	bl	_nv_wr32
	ldr	x8, [x20]
	ldr	w2, [x8, #16]
	sub	w1, w22, #1252
	mov	x0, x19
	bl	_nv_wr32
	ldr	x8, [x20]
	ldr	w2, [x8, #20]
	sub	w1, w22, #1248
	mov	x0, x19
	bl	_nv_wr32
	ldr	x8, [x20]
	ldr	w2, [x8, #24]
	sub	w1, w22, #1244
	mov	x0, x19
	bl	_nv_wr32
	ldr	x8, [x20]
	ldr	w2, [x8, #28]
	sub	w1, w22, #1240
	mov	x0, x19
	bl	_nv_wr32
	ldr	x8, [x20]
	ldr	w2, [x8, #32]
	sub	w1, w22, #1236
	mov	x0, x19
	bl	_nv_wr32
	ldr	x8, [x24]
	cbz	x8, LBB0_3
; %bb.1:
	ldr	w8, [x8, #8]
	mov	w9, #4096
	bic	w3, w9, w8, lsl #9
	sub	w1, w22, #1300
	mov	x0, x19
	mov	w2, #4096
	bl	_nv_mask
	ldr	x8, [x24]
	cbz	x8, LBB0_3
; %bb.2:
	mov	x0, x19
	mov	w1, #1812
	movk	w1, #16, lsl #16
	bl	_nv_rd32
	and	w8, w0, #0xfffffff
	and	w25, w8, #0xffffffef
	add	w20, w22, #4
	mov	x0, x19
	mov	x1, x20
	bl	_nv_rd32
	mov	x21, x0
	add	w22, w22, #8
	mov	x0, x19
	mov	x1, x22
	bl	_nv_rd32
	mov	x23, x0
	ldr	x8, [x24]
	ldr	w8, [x8, #8]
	lsr	w9, w8, #2
	orr	w10, w25, #0xf0000000
	tst	w8, #0x20
	csel	w8, w25, w10, eq
	bfi	w8, w9, #4, #1
	eor	w2, w8, #0x10
	mov	x0, x19
	mov	w1, #1812
	movk	w1, #16, lsl #16
	bl	_nv_wr32
	ldr	x8, [x24]
	ldr	w8, [x8, #8]
	bfi	w23, w8, #8, #1
	mov	x0, x19
	mov	x1, x22
	mov	x2, x23
	bl	_nv_wr32
	ldr	x8, [x24]
	ldr	w8, [x8, #8]
	lsr	w8, w8, #1
	bfi	w21, w8, #8, #1
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_nv_wr32
	ldr	x8, [x24]
	ldrb	w8, [x8, #8]
	tbnz	w8, #4, LBB0_4
LBB0_3:
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_4:
	mov	x0, x19
	mov	w1, #4352
	movk	w1, #17, lsl #16
	mov	w2, #1207959552
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_nv_wr32
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_mclk_timing_set
.subsections_via_symbols
