	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function prog_mem
_prog_mem:                              ## @prog_mem
	.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
	subq	$56, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	callq	_nouveau_dev
	movq	%rax, %rbx
	movq	%r14, -80(%rbp)
	movq	_mclk_timing_set@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -72(%rbp)
	movq	_mclk_clock_set@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -68(%rbp)
	movq	_mclk_mrs@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -64(%rbp)
	movq	_mclk_mrg@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -60(%rbp)
	movq	_mclk_wait@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)
	movq	_mclk_refresh_self@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)
	movq	_mclk_refresh_auto@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movq	_mclk_refresh@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)
	movq	_mclk_precharge@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -40(%rbp)
	movq	%r15, -32(%rbp)
	cmpl	$207, (%rbx)
	jg	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	movl	$6361600, %esi                  ## imm = 0x611200
	movl	$13056, %edx                    ## imm = 0x3300
	jmp	LBB0_3
LBB0_2:
	movq	%rbx, %rdi
	movl	$6471680, %esi                  ## imm = 0x62C000
	movl	$50528256, %edx                 ## imm = 0x3030000
LBB0_3:
	callq	_nv_wr32
	movl	(%r14), %esi
	leaq	-80(%rbp), %rdi
	callq	_nouveau_mem_exec
	cmpl	$207, (%rbx)
	jg	LBB0_5
## %bb.4:
	movq	%rbx, %rdi
	movl	$6361600, %esi                  ## imm = 0x611200
	movl	$13104, %edx                    ## imm = 0x3330
	jmp	LBB0_6
LBB0_5:
	movq	%rbx, %rdi
	movl	$6471680, %esi                  ## imm = 0x62C000
	movl	$50529024, %edx                 ## imm = 0x3030300
LBB0_6:
	callq	_nv_wr32
	addq	$56, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_mclk_timing_set,4,2            ## @mclk_timing_set
	.comm	_mclk_clock_set,4,2             ## @mclk_clock_set
	.comm	_mclk_mrs,4,2                   ## @mclk_mrs
	.comm	_mclk_mrg,4,2                   ## @mclk_mrg
	.comm	_mclk_wait,4,2                  ## @mclk_wait
	.comm	_mclk_refresh_self,4,2          ## @mclk_refresh_self
	.comm	_mclk_refresh_auto,4,2          ## @mclk_refresh_auto
	.comm	_mclk_refresh,4,2               ## @mclk_refresh
	.comm	_mclk_precharge,4,2             ## @mclk_precharge
	.no_dead_strip	_prog_mem
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function prog_mem
_prog_mem:                              ; @prog_mem
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x20, x1
	mov	x21, x0
	bl	_nouveau_dev
	mov	x19, x0
Lloh0:
	adrp	x8, _mclk_timing_set@GOTPAGE
Lloh1:
	ldr	x8, [x8, _mclk_timing_set@GOTPAGEOFF]
Lloh2:
	adrp	x9, _mclk_clock_set@GOTPAGE
Lloh3:
	ldr	x9, [x9, _mclk_clock_set@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	ldr	w9, [x9]
	stp	w8, w9, [sp, #16]
Lloh6:
	adrp	x8, _mclk_mrs@GOTPAGE
Lloh7:
	ldr	x8, [x8, _mclk_mrs@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _mclk_mrg@GOTPAGE
Lloh10:
	ldr	x9, [x9, _mclk_mrg@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	stp	w8, w9, [sp, #24]
Lloh12:
	adrp	x8, _mclk_wait@GOTPAGE
Lloh13:
	ldr	x8, [x8, _mclk_wait@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _mclk_refresh_self@GOTPAGE
Lloh16:
	ldr	x9, [x9, _mclk_refresh_self@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	stp	w8, w9, [sp, #32]
Lloh18:
	adrp	x8, _mclk_refresh_auto@GOTPAGE
Lloh19:
	ldr	x8, [x8, _mclk_refresh_auto@GOTPAGEOFF]
Lloh20:
	adrp	x9, _mclk_refresh@GOTPAGE
Lloh21:
	ldr	x9, [x9, _mclk_refresh@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
Lloh23:
	ldr	w9, [x9]
	stp	w8, w9, [sp, #40]
Lloh24:
	adrp	x8, _mclk_precharge@GOTPAGE
Lloh25:
	ldr	x8, [x8, _mclk_precharge@GOTPAGEOFF]
	str	x20, [sp, #8]
Lloh26:
	ldr	w8, [x8]
	str	w8, [sp, #48]
	str	x21, [sp, #56]
	ldr	w8, [x0]
	cmp	w8, #207
	b.gt	LBB0_2
; %bb.1:
	mov	w1, #4608
	movk	w1, #97, lsl #16
	mov	w2, #13056
	b	LBB0_3
LBB0_2:
	mov	w1, #49152
	movk	w1, #98, lsl #16
	mov	w2, #50528256
LBB0_3:
	bl	_nv_wr32
	ldr	w1, [x20]
	add	x0, sp, #8
	bl	_nouveau_mem_exec
	ldr	w8, [x19]
	mov	x0, x19
	cmp	w8, #207
	b.gt	LBB0_5
; %bb.4:
	mov	w1, #4608
	movk	w1, #97, lsl #16
	mov	w2, #13104
	b	LBB0_6
LBB0_5:
	mov	w1, #49152
	movk	w1, #98, lsl #16
	mov	w2, #768
	movk	w2, #771, lsl #16
LBB0_6:
	bl	_nv_wr32
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh22
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_mclk_timing_set,4,2            ; @mclk_timing_set
	.comm	_mclk_clock_set,4,2             ; @mclk_clock_set
	.comm	_mclk_mrs,4,2                   ; @mclk_mrs
	.comm	_mclk_mrg,4,2                   ; @mclk_mrg
	.comm	_mclk_wait,4,2                  ; @mclk_wait
	.comm	_mclk_refresh_self,4,2          ; @mclk_refresh_self
	.comm	_mclk_refresh_auto,4,2          ; @mclk_refresh_auto
	.comm	_mclk_refresh,4,2               ; @mclk_refresh
	.comm	_mclk_precharge,4,2             ; @mclk_precharge
	.no_dead_strip	_prog_mem
.subsections_via_symbols
