	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	8(%rdi), %edi
	callq	_nouveau_dev
	movq	%rax, %rbx
	movq	(%r14), %r15
	movq	%rax, %rdi
	movl	$1253376, %esi                  ## imm = 0x132000
	callq	_nv_rd32
	movl	%eax, %r14d
	movq	%rbx, %rdi
	movl	$1274720, %esi                  ## imm = 0x137360
	movl	$1, %edx
	callq	_nv_wr32
	movq	%rbx, %rdi
	movl	$1274736, %esi                  ## imm = 0x137370
	xorl	%edx, %edx
	callq	_nv_wr32
	movq	%rbx, %rdi
	movl	$1274752, %esi                  ## imm = 0x137380
	xorl	%edx, %edx
	callq	_nv_wr32
	testb	$1, %r14b
	je	LBB0_2
## %bb.1:
	andl	$-2, %r14d
	movq	%rbx, %rdi
	movl	$1253376, %esi                  ## imm = 0x132000
	movl	%r14d, %edx
	callq	_nv_wr32
LBB0_2:
	movl	(%r15), %edx
	movq	%rbx, %rdi
	movl	$1253380, %esi                  ## imm = 0x132004
	callq	_nv_wr32
	orl	$1, %r14d
	movq	%rbx, %rdi
	movl	$1253376, %esi                  ## imm = 0x132000
	movl	%r14d, %edx
	callq	_nv_wr32
	movq	%rbx, %rdi
	movl	$1274768, %esi                  ## imm = 0x137390
	movl	$2, %edx
	movl	$2, %ecx
	callq	_nv_wait
	movq	%rbx, %rdi
	movl	$1253400, %esi                  ## imm = 0x132018
	movl	$20480, %edx                    ## imm = 0x5000
	callq	_nv_wr32
	movq	%rbx, %rdi
	movl	$1274736, %esi                  ## imm = 0x137370
	movl	$1, %edx
	callq	_nv_wr32
	movq	%rbx, %rdi
	movl	$1274752, %esi                  ## imm = 0x137380
	movl	$1, %edx
	callq	_nv_wr32
	movq	%rbx, %rdi
	movl	$1274720, %esi                  ## imm = 0x137360
	xorl	%edx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_nv_wr32                        ## TAILCALL
	.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	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x0
	mov	w22, #29536
	movk	w22, #19, lsl #16
	mov	w23, #8192
	movk	w23, #19, lsl #16
	ldr	w0, [x0, #8]
	bl	_nouveau_dev
	mov	x19, x0
	ldr	x24, [x20]
	mov	w1, #8192
	movk	w1, #19, lsl #16
	bl	_nv_rd32
	mov	x21, x0
	mov	x0, x19
	mov	w1, #29536
	movk	w1, #19, lsl #16
	mov	w2, #1
	bl	_nv_wr32
	orr	w1, w22, #0x10
	mov	x0, x19
	mov	w2, #0
	bl	_nv_wr32
	add	w20, w22, #32
	mov	x0, x19
	mov	x1, x20
	mov	w2, #0
	bl	_nv_wr32
	tbz	w21, #0, LBB0_2
; %bb.1:
	and	w21, w21, #0xfffffffe
	mov	x0, x19
	mov	w1, #8192
	movk	w1, #19, lsl #16
	mov	x2, x21
	bl	_nv_wr32
LBB0_2:
	ldr	w2, [x24]
	add	w1, w23, #4
	mov	x0, x19
	bl	_nv_wr32
	orr	w2, w21, #0x1
	mov	x0, x19
	mov	w1, #8192
	movk	w1, #19, lsl #16
	bl	_nv_wr32
	add	w1, w22, #48
	mov	x0, x19
	mov	w2, #2
	mov	w3, #2
	bl	_nv_wait
	add	w1, w23, #24
	mov	x0, x19
	mov	w2, #20480
	bl	_nv_wr32
	add	w1, w22, #16
	mov	x0, x19
	mov	w2, #1
	bl	_nv_wr32
	mov	x0, x19
	mov	x1, x20
	mov	w2, #1
	bl	_nv_wr32
	mov	x0, x19
	mov	w1, #29536
	movk	w1, #19, lsl #16
	mov	w2, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_nv_wr32
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_mclk_clock_set
.subsections_via_symbols
