	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mclk_mrs
_mclk_mrs:                              ## @mclk_mrs
	.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
	movl	%edx, %r14d
	movl	%esi, %ebx
	movl	(%rdi), %edi
	callq	_nouveau_dev
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_nouveau_fb
	movq	%rax, %r12
	movq	(%rax), %rax
	movq	_NV_MEM_TYPE_GDDR5@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.9:
	testl	%ebx, %ebx
	je	LBB0_10
## %bb.11:
	cmpl	$7, %ebx
	jg	LBB0_13
## %bb.12:
	leal	1110828(,%rbx,4), %esi
	jmp	LBB0_8
LBB0_1:
	cmpl	$1, %ebx
	jg	LBB0_4
## %bb.2:
	leal	1110784(,%rbx,4), %esi
	movq	%r15, %rdi
	movl	%r14d, %edx
	callq	_nv_wr32
	cmpl	$2, 8(%r12)
	jl	LBB0_14
## %bb.3:
	shll	$2, %ebx
	addl	$1110792, %ebx                  ## imm = 0x10F308
	jmp	LBB0_7
LBB0_4:
	cmpl	$3, %ebx
	ja	LBB0_14
## %bb.5:
	leal	1110808(,%rbx,4), %esi
	movq	%r15, %rdi
	movl	%r14d, %edx
	callq	_nv_wr32
	cmpl	$2, 8(%r12)
	jl	LBB0_14
## %bb.6:
	shll	$2, %ebx
	addl	$1110816, %ebx                  ## imm = 0x10F320
LBB0_7:
	movl	%ebx, %esi
	jmp	LBB0_8
LBB0_10:
	movl	$1110784, %esi                  ## imm = 0x10F300
	jmp	LBB0_8
LBB0_13:
	movl	$1110860, %esi                  ## imm = 0x10F34C
	cmpl	$15, %ebx
	jne	LBB0_14
LBB0_8:
	movq	%r15, %rdi
	movl	%r14d, %edx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_nv_wr32                        ## TAILCALL
LBB0_14:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NV_MEM_TYPE_GDDR5,8,3          ## @NV_MEM_TYPE_GDDR5
	.no_dead_strip	_mclk_mrs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mclk_mrs
_mclk_mrs:                              ; @mclk_mrs
	.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	x19, x2
	mov	x21, x1
	ldr	w0, [x0]
	bl	_nouveau_dev
	mov	x20, x0
	bl	_nouveau_fb
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _NV_MEM_TYPE_GDDR5@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NV_MEM_TYPE_GDDR5@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.1:
	mov	w1, #62208
	movk	w1, #16, lsl #16
	cbz	w21, LBB0_12
; %bb.2:
	cmp	w21, #7
	b.gt	LBB0_10
; %bb.3:
	add	w8, w1, w21, lsl #2
	add	w1, w8, #44
	b	LBB0_12
LBB0_4:
	mov	x22, x0
	cmp	w21, #1
	b.gt	LBB0_7
; %bb.5:
	mov	w23, #62208
	movk	w23, #16, lsl #16
	lsl	w21, w21, #2
	add	w1, w21, w23
	mov	x0, x20
	mov	x2, x19
	bl	_nv_wr32
	ldr	w8, [x22, #8]
	cmp	w8, #2
	b.lt	LBB0_13
; %bb.6:
	add	w8, w23, w21
	add	w1, w8, #8
	b	LBB0_12
LBB0_7:
	cmp	w21, #3
	b.hi	LBB0_13
; %bb.8:
	mov	w23, #62208
	movk	w23, #16, lsl #16
	lsl	w21, w21, #2
	add	w8, w21, w23
	add	w1, w8, #24
	mov	x0, x20
	mov	x2, x19
	bl	_nv_wr32
	ldr	w8, [x22, #8]
	cmp	w8, #2
	b.lt	LBB0_13
; %bb.9:
	add	w8, w23, w21
	add	w1, w8, #32
	b	LBB0_12
LBB0_10:
	cmp	w21, #15
	b.ne	LBB0_13
; %bb.11:
	add	w1, w1, #76
LBB0_12:
	mov	x0, x20
	mov	x2, x19
	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
LBB0_13:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_NV_MEM_TYPE_GDDR5,8,3          ; @NV_MEM_TYPE_GDDR5
	.no_dead_strip	_mclk_mrs
.subsections_via_symbols
