	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mclk_clock_set
_mclk_clock_set:                        ## @mclk_clock_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	%rax, %rdi
	movl	$16384, %esi                    ## imm = 0x4000
	callq	_nv_rd32
	movl	%eax, %r14d
	movl	28(%r13), %eax
	testb	$8, %r14b
	jne	LBB0_3
## %bb.1:
	testl	%eax, %eax
	je	LBB0_4
## %bb.2:
	movl	%r14d, %ebx
	orl	$8, %ebx
	movq	%r12, %rdi
	movl	$16384, %esi                    ## imm = 0x4000
	movl	%ebx, %edx
	callq	_nv_wr32
	movq	%r12, %rdi
	movl	$1118432, %esi                  ## imm = 0x1110E0
	movl	$557056, %edx                   ## imm = 0x88000
	movl	$557056, %ecx                   ## imm = 0x88000
	callq	_nv_mask
	movq	%r12, %rdi
	movl	$16408, %esi                    ## imm = 0x4018
	movl	$4096, %edx                     ## imm = 0x1000
	callq	_nv_wr32
	andl	$-2, %ebx
	movq	%r12, %rdi
	movl	$16384, %esi                    ## imm = 0x4000
	movl	%ebx, %edx
	callq	_nv_wr32
	movl	28(%r13), %edx
	movq	%r12, %rdi
	movl	$16388, %esi                    ## imm = 0x4004
	callq	_nv_wr32
	orl	$9, %r14d
	movq	%r12, %rdi
	movl	$16384, %esi                    ## imm = 0x4000
	movl	%r14d, %edx
	callq	_nv_wr32
	movl	$64, %edi
	callq	_udelay
	movl	$20480, %edx                    ## imm = 0x5000
	orl	(%r13), %edx
	movq	%r12, %rdi
	movl	$16408, %esi                    ## imm = 0x4018
	callq	_nv_wr32
	movl	$20, %edi
	callq	_udelay
	jmp	LBB0_5
LBB0_3:
	testl	%eax, %eax
	jne	LBB0_5
LBB0_4:
	movl	32(%r13), %ecx
	movq	%r12, %rdi
	movl	$16744, %esi                    ## imm = 0x4168
	movl	$4141120, %edx                  ## imm = 0x3F3040
	callq	_nv_mask
	orl	$8, %r14d
	movq	%r12, %rdi
	movl	$16384, %esi                    ## imm = 0x4000
	movl	%r14d, %edx
	callq	_nv_wr32
	movq	%r12, %rdi
	movl	$1118432, %esi                  ## imm = 0x1110E0
	movl	$557056, %edx                   ## imm = 0x88000
	movl	$557056, %ecx                   ## imm = 0x88000
	callq	_nv_mask
	movl	$53248, %edx                    ## imm = 0xD000
	orl	(%r13), %edx
	movq	%r12, %rdi
	movl	$16408, %esi                    ## imm = 0x4018
	callq	_nv_wr32
LBB0_5:
	movq	8(%r13), %rax
	testq	%rax, %rax
	je	LBB0_11
## %bb.6:
	movq	16(%r13), %rcx
	testq	%rcx, %rcx
	je	LBB0_9
## %bb.7:
	testb	$8, 16(%rax)
	jne	LBB0_8
LBB0_9:
	movq	%r12, %rdi
	movl	$1049916, %esi                  ## imm = 0x10053C
	movl	$4096, %edx                     ## imm = 0x1000
	movl	$4096, %ecx                     ## imm = 0x1000
	callq	_nv_mask
	movq	%r12, %rdi
	movl	$1112068, %esi                  ## imm = 0x10F804
	movl	$-2147483648, %edx              ## imm = 0x80000000
	xorl	%ecx, %ecx
	callq	_nv_mask
	movl	24(%r13), %ecx
	movq	%r12, %rdi
	movl	$1050464, %esi                  ## imm = 0x100760
	movl	$572662306, %edx                ## imm = 0x22222222
	callq	_nv_mask
	movl	24(%r13), %ecx
	movq	%r12, %rdi
	movl	$1050528, %esi                  ## imm = 0x1007A0
	movl	$572662306, %edx                ## imm = 0x22222222
	callq	_nv_mask
	movl	24(%r13), %ecx
	movq	%r12, %rdi
	movl	$1050592, %esi                  ## imm = 0x1007E0
	movl	$572662306, %edx                ## imm = 0x22222222
	jmp	LBB0_10
LBB0_8:
	movl	20(%rcx), %edi
	callq	_ROM16
	movl	%eax, %r15d
	shll	$8, %r15d
	movq	16(%r13), %rax
	orl	20(%rax), %r15d
	movl	28(%rax), %edi
	callq	_ROM16
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	16(%r13), %rax
	movl	12(%rax), %ecx
	movl	36(%rax), %eax
	movl	%eax, %edx
	shll	$16, %edx
	andl	$15728640, %edx                 ## imm = 0xF00000
	andl	$15, %ecx
	shll	$16, %ecx
	andl	$15, %eax
	orl	%edx, %eax
	leal	(%rcx,%rax), %ebx
	addl	$-2147483648, %ebx              ## imm = 0x80000000
	movq	%r12, %rdi
	movl	$1050016, %esi                  ## imm = 0x1005A0
	movl	%r15d, %edx
	callq	_nv_wr32
	movq	%r12, %rdi
	movl	$1050020, %esi                  ## imm = 0x1005A4
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_nv_wr32
	movq	%r12, %rdi
	movl	$1112068, %esi                  ## imm = 0x10F804
	movl	%ebx, %edx
	callq	_nv_wr32
	movq	%r12, %rdi
	movl	$1049916, %esi                  ## imm = 0x10053C
	movl	$4096, %edx                     ## imm = 0x1000
	xorl	%ecx, %ecx
LBB0_10:
	callq	_nv_mask
LBB0_11:
	cmpl	$0, 28(%r13)
	je	LBB0_12
## %bb.13:
	movq	%r12, %rdi
	movl	$1118432, %esi                  ## imm = 0x1110E0
	movl	$557056, %edx                   ## imm = 0x88000
	movl	$69632, %ecx                    ## imm = 0x11000
	callq	_nv_mask
	andl	$-9, %r14d
	movq	%r12, %rdi
	movl	$16384, %esi                    ## imm = 0x4000
	movl	%r14d, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_nv_wr32                        ## TAILCALL
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_mclk_clock_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mclk_clock_set
_mclk_clock_set:                        ; @mclk_clock_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	w24, #32768
	movk	w24, #8, lsl #16
	ldr	w0, [x0, #8]
	bl	_nouveau_dev
	mov	x19, x0
	ldr	x25, [x20]
	mov	w1, #16384
	bl	_nv_rd32
	mov	x20, x0
	ldr	w8, [x25, #28]
	tbnz	w0, #3, LBB0_3
; %bb.1:
	cbz	w8, LBB0_4
; %bb.2:
	orr	w21, w20, #0x8
	mov	x0, x19
	mov	w1, #16384
	mov	x2, x21
	bl	_nv_wr32
	mov	x0, x19
	mov	w1, #4320
	movk	w1, #17, lsl #16
	mov	w2, #32768
	movk	w2, #8, lsl #16
	mov	w3, #32768
	movk	w3, #8, lsl #16
	bl	_nv_mask
	mov	x0, x19
	mov	w1, #16408
	mov	w2, #4096
	bl	_nv_wr32
	and	w2, w21, #0xfffffffe
	mov	x0, x19
	mov	w1, #16384
	bl	_nv_wr32
	ldr	w2, [x25, #28]
	mov	x0, x19
	mov	w1, #16388
	bl	_nv_wr32
	mov	w8, #9
	orr	w20, w20, w8
	mov	x0, x19
	mov	w1, #16384
	mov	x2, x20
	bl	_nv_wr32
	mov	w0, #64
	bl	_udelay
	ldr	w8, [x25]
	mov	w9, #20480
	orr	w2, w8, w9
	mov	x0, x19
	mov	w1, #16408
	bl	_nv_wr32
	mov	w0, #20
	bl	_udelay
	b	LBB0_5
LBB0_3:
	cbnz	w8, LBB0_5
LBB0_4:
	ldr	w3, [x25, #32]
	mov	x0, x19
	mov	w1, #16744
	mov	w2, #12352
	movk	w2, #63, lsl #16
	bl	_nv_mask
	orr	w20, w20, #0x8
	mov	x0, x19
	mov	w1, #16384
	mov	x2, x20
	bl	_nv_wr32
	mov	x0, x19
	mov	w1, #4320
	movk	w1, #17, lsl #16
	mov	w2, #32768
	movk	w2, #8, lsl #16
	mov	w3, #32768
	movk	w3, #8, lsl #16
	bl	_nv_mask
	ldr	w8, [x25]
	mov	w9, #53248
	orr	w2, w8, w9
	mov	x0, x19
	mov	w1, #16408
	bl	_nv_wr32
LBB0_5:
	ldr	x8, [x25, #8]
	cbz	x8, LBB0_11
; %bb.6:
	mov	w26, #1340
	movk	w26, #16, lsl #16
	ldr	x9, [x25, #16]
	cbz	x9, LBB0_8
; %bb.7:
	ldrb	w8, [x8, #16]
	tbnz	w8, #3, LBB0_9
LBB0_8:
	mov	x0, x19
	mov	w1, #1340
	movk	w1, #16, lsl #16
	mov	w2, #4096
	mov	w3, #4096
	bl	_nv_mask
	mov	x0, x19
	mov	w1, #63492
	movk	w1, #16, lsl #16
	mov	w2, #-2147483648
	mov	w3, #0
	bl	_nv_mask
	ldr	w3, [x25, #24]
	add	w1, w26, #548
	mov	x0, x19
	mov	w2, #572662306
	bl	_nv_mask
	ldr	w3, [x25, #24]
	add	w1, w26, #612
	mov	x0, x19
	mov	w2, #572662306
	bl	_nv_mask
	ldr	w3, [x25, #24]
	add	w1, w26, #676
	mov	x0, x19
	mov	w2, #572662306
	b	LBB0_10
LBB0_9:
	ldr	w0, [x9, #20]
	bl	_ROM16
	ldr	x8, [x25, #16]
	ldr	w9, [x8, #20]
	orr	w21, w9, w0, lsl #8
	ldr	w0, [x8, #28]
	bl	_ROM16
	mov	x22, x0
	ldr	x8, [x25, #16]
	ldr	w9, [x8, #36]
	lsl	w10, w9, #16
	and	w10, w10, #0xf00000
	ldr	w8, [x8, #12]
	bfxil	w10, w9, #0, #4
	bfi	w10, w8, #16, #4
	orr	w23, w10, #0x80000000
	add	w1, w26, #100
	mov	x0, x19
	mov	x2, x21
	bl	_nv_wr32
	add	w1, w26, #104
	mov	x0, x19
	mov	x2, x22
	bl	_nv_wr32
	mov	x0, x19
	mov	w1, #63492
	movk	w1, #16, lsl #16
	mov	x2, x23
	bl	_nv_wr32
	mov	x0, x19
	mov	w1, #1340
	movk	w1, #16, lsl #16
	mov	w2, #4096
	mov	w3, #0
LBB0_10:
	bl	_nv_mask
LBB0_11:
	ldr	w8, [x25, #28]
	cbz	w8, LBB0_13
; %bb.12:
	sub	w3, w24, #119, lsl #12          ; =487424
	mov	x0, x19
	mov	w1, #4320
	movk	w1, #17, lsl #16
	mov	w2, #32768
	movk	w2, #8, lsl #16
	bl	_nv_mask
	and	w2, w20, #0xfffffff7
	mov	x0, x19
	mov	w1, #16384
	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
LBB0_13:
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_mclk_clock_set
.subsections_via_symbols
