	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mcp77_ram_init
_mcp77_ram_init:                        ## @mcp77_ram_init
	.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
	callq	_mcp77_ram
	movq	16(%rax), %rcx
	movq	(%rcx), %r14
	movl	8(%rax), %ebx
	subl	(%rax), %ebx
	movl	%ebx, %edx
	sarl	$5, %edx
	decl	%edx
	leal	-32(%rbx), %r15d
	sarl	$5, %r15d
	decl	%r15d
	addl	$-64, %ebx
	sarl	$5, %ebx
	decl	%ebx
	movq	%r14, %rdi
	movl	$1051672, %esi                  ## imm = 0x100C18
	callq	_nvkm_wr32
	movq	%r14, %rdi
	movl	$1051668, %esi                  ## imm = 0x100C14
	xorl	%edx, %edx
	movl	$1, %ecx
	callq	_nvkm_mask
	movq	%r14, %rdi
	movl	$1051676, %esi                  ## imm = 0x100C1C
	movl	%r15d, %edx
	callq	_nvkm_wr32
	movq	%r14, %rdi
	movl	$1051668, %esi                  ## imm = 0x100C14
	xorl	%edx, %edx
	movl	$2, %ecx
	callq	_nvkm_mask
	movq	%r14, %rdi
	movl	$1051684, %esi                  ## imm = 0x100C24
	movl	%ebx, %edx
	callq	_nvkm_wr32
	movq	%r14, %rdi
	movl	$1051668, %esi                  ## imm = 0x100C14
	xorl	%edx, %edx
	movl	$65536, %ecx                    ## imm = 0x10000
	callq	_nvkm_mask
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_mcp77_ram_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mcp77_ram_init
_mcp77_ram_init:                        ; @mcp77_ram_init
	.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
	bl	_mcp77_ram
	ldr	x8, [x0, #16]
	ldr	x19, [x8]
	ldr	w8, [x0, #8]
	ldr	w9, [x0]
	sub	w8, w8, w9
	asr	w9, w8, #5
	sub	w2, w9, #1
	sub	w9, w8, #32
	asr	w9, w9, #5
	sub	w20, w9, #1
	sub	w8, w8, #64
	asr	w8, w8, #5
	sub	w21, w8, #1
	mov	w22, #3092
	movk	w22, #16, lsl #16
	add	w1, w22, #4
	mov	x0, x19
	bl	_nvkm_wr32
	mov	x0, x19
	mov	w1, #3092
	movk	w1, #16, lsl #16
	mov	w2, #0
	mov	w3, #1
	bl	_nvkm_mask
	orr	w1, w22, #0x8
	mov	x0, x19
	mov	x2, x20
	bl	_nvkm_wr32
	mov	x0, x19
	mov	w1, #3092
	movk	w1, #16, lsl #16
	mov	w2, #0
	mov	w3, #2
	bl	_nvkm_mask
	add	w1, w22, #16
	mov	x0, x19
	mov	x2, x21
	bl	_nvkm_wr32
	mov	x0, x19
	mov	w1, #3092
	movk	w1, #16, lsl #16
	mov	w2, #0
	mov	w3, #65536
	bl	_nvkm_mask
	mov	w0, #0
	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
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_mcp77_ram_init
.subsections_via_symbols
