	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movl	8(%rdi), %edi
	callq	_nouveau_dev
	movq	%rax, %r14
	movq	(%rbx), %r12
	leaq	12(%r12), %r15
	movq	%rax, %rdi
	movl	$16392, %esi                    ## imm = 0x4008
	callq	_nv_rd32
	movq	%rax, %rbx
	movq	%r14, %rdi
	movl	$49216, %esi                    ## imm = 0xC040
	callq	_nv_rd32
	andl	$1073692671, %eax               ## imm = 0x3FFF3FFF
	leal	49152(%rax), %edx
	movl	%edx, (%r12)
	movq	%r15, %rdi
	movl	$49216, %esi                    ## imm = 0xC040
	callq	_hwsq_wr32
	orl	$512, %ebx                      ## imm = 0x200
	movq	%r15, %rdi
	movl	$16392, %esi                    ## imm = 0x4008
	movl	%ebx, %edx
	callq	_hwsq_wr32
	movl	4(%r12), %edx
	testl	%edx, %edx
	jns	LBB0_2
## %bb.1:
	movl	8(%r12), %edx
	movq	%r15, %rdi
	movl	$16396, %esi                    ## imm = 0x400C
	callq	_hwsq_wr32
	movl	4(%r12), %edx
LBB0_2:
	movq	%r15, %rdi
	movl	$16392, %esi                    ## imm = 0x4008
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_hwsq_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	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, x0
	ldr	w0, [x0, #8]
	bl	_nouveau_dev
	mov	x20, x0
	ldr	x22, [x19]
	add	x19, x22, #12
	mov	w1, #16392
	bl	_nv_rd32
	mov	x21, x0
	mov	x0, x20
	mov	w1, #49216
	bl	_nv_rd32
	and	w8, w0, #0x3fff3fff
	orr	w2, w8, #0xc000
	str	w2, [x22]
	mov	x0, x19
	mov	w1, #49216
	bl	_hwsq_wr32
	orr	w2, w21, #0x200
	mov	x0, x19
	mov	w1, #16392
	bl	_hwsq_wr32
	ldr	w2, [x22, #4]
	tbz	w2, #31, LBB0_2
; %bb.1:
	ldr	w2, [x22, #8]
	mov	x0, x19
	mov	w1, #16396
	bl	_hwsq_wr32
	ldr	w2, [x22, #4]
LBB0_2:
	mov	x0, x19
	mov	w1, #16392
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_hwsq_wr32
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_mclk_clock_set
.subsections_via_symbols
