	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mclk_mrg
_mclk_mrg:                              ## @mclk_mrg
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %ebx
	movl	(%rdi), %edi
	callq	_nouveau_dev
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_nouveau_fb
	movq	(%rax), %rax
	movq	_NV_MEM_TYPE_GDDR5@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.4:
	testl	%ebx, %ebx
	je	LBB0_5
## %bb.6:
	movl	$1110860, %esi                  ## imm = 0x10F34C
	cmpl	$7, %ebx
	jg	LBB0_8
## %bb.7:
	leal	1110828(,%rbx,4), %esi
	jmp	LBB0_8
LBB0_1:
	leal	(,%rbx,4), %esi
	cmpl	$1, %ebx
	jg	LBB0_3
## %bb.2:
	addl	$1110784, %esi                  ## imm = 0x10F300
	jmp	LBB0_8
LBB0_3:
	addl	$1110808, %esi                  ## imm = 0x10F318
	jmp	LBB0_8
LBB0_5:
	movl	$1110784, %esi                  ## imm = 0x10F300
LBB0_8:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_nv_rd32                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_NV_MEM_TYPE_GDDR5,8,3          ## @NV_MEM_TYPE_GDDR5
	.no_dead_strip	_mclk_mrg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mclk_mrg
_mclk_mrg:                              ; @mclk_mrg
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, 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]
	mov	w10, #62208
	movk	w10, #16, lsl #16
	add	w11, w10, #76
	add	w12, w10, w19, lsl #2
	add	w12, w12, #44
	cmp	w19, #7
	csel	w11, w11, w12, gt
	cmp	w19, #0
	csel	w11, w10, w11, eq
	lsl	w12, w19, #2
	add	w10, w12, w10
	add	w12, w10, #24
	cmp	w19, #1
	csel	w10, w12, w10, gt
	cmp	x8, x9
	csel	w1, w11, w10, eq
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_nv_rd32
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_NV_MEM_TYPE_GDDR5,8,3          ; @NV_MEM_TYPE_GDDR5
	.no_dead_strip	_mclk_mrg
.subsections_via_symbols
