	.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	%r12
	pushq	%rbx
	subq	$64, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %rbx
	callq	_nouveau_dev
	movq	%rax, %r14
	movq	%r15, -88(%rbp)
	movq	_mclk_timing_set@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -80(%rbp)
	movq	_mclk_clock_set@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -76(%rbp)
	movq	_mclk_mrs@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -72(%rbp)
	movq	_mclk_mrg@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -68(%rbp)
	movq	_mclk_wait@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -64(%rbp)
	movq	_mclk_refresh_self@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -60(%rbp)
	movq	_mclk_refresh_auto@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)
	movq	_mclk_refresh@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)
	movq	_mclk_precharge@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movq	%rbx, -40(%rbp)
	movq	32(%r15), %rax
	cmpl	$750000, (%rax)                 ## imm = 0xB71B0
	jg	LBB0_2
## %bb.1:
	movabsq	$2459565876190380032, %rax      ## imm = 0x2222222210000000
	movq	%rax, (%r15)
LBB0_2:
	movq	%r14, %rdi
	movl	$16384, %esi                    ## imm = 0x4000
	callq	_nv_rd32
	movl	%eax, %r12d
	testb	$8, %r12b
	jne	LBB0_3
## %bb.5:
	movq	%r14, %rdi
	movl	$16744, %esi                    ## imm = 0x4168
	movl	$4141377, %edx                  ## imm = 0x3F3141
	movl	%r12d, %ecx
	callq	_nv_mask
	jmp	LBB0_6
LBB0_3:
	cmpl	$0, 24(%r15)
	je	LBB0_6
## %bb.4:
	movq	%r14, %rdi
	movl	$16680, %esi                    ## imm = 0x4128
	movl	$257, %edx                      ## imm = 0x101
	movl	$257, %ecx                      ## imm = 0x101
	callq	_nv_mask
	movl	24(%r15), %edx
	movq	%r14, %rdi
	movl	$16388, %esi                    ## imm = 0x4004
	callq	_nv_wr32
	movl	%r12d, %ebx
	orl	$1, %ebx
	movq	%r14, %rdi
	movl	$16384, %esi                    ## imm = 0x4000
	movl	%ebx, %edx
	callq	_nv_wr32
	andl	$-17, %ebx
	movq	%r14, %rdi
	movl	$16384, %esi                    ## imm = 0x4000
	movl	%ebx, %edx
	callq	_nv_wr32
	movq	%r14, %rdi
	movl	$16384, %esi                    ## imm = 0x4000
	movl	$131072, %edx                   ## imm = 0x20000
	movl	$131072, %ecx                   ## imm = 0x20000
	callq	_nv_wait
	movl	%r12d, %edx
	orl	$17, %edx
	movq	%r14, %rdi
	movl	$16384, %esi                    ## imm = 0x4000
	callq	_nv_wr32
	movl	$20480, %edx                    ## imm = 0x5000
	orl	(%r15), %edx
	movq	%r14, %rdi
	movl	$16408, %esi                    ## imm = 0x4018
	callq	_nv_wr32
	orl	$21, %r12d
	movq	%r14, %rdi
	movl	$16384, %esi                    ## imm = 0x4000
	movl	%r12d, %edx
	callq	_nv_wr32
LBB0_6:
	movq	8(%r15), %rax
	testq	%rax, %rax
	je	LBB0_10
## %bb.7:
	movl	$1536, %edx                     ## imm = 0x600
	testb	$16, 8(%rax)
	jne	LBB0_9
## %bb.8:
	movq	%r14, %rdi
	movl	$1118464, %esi                  ## imm = 0x111100
	movl	$1073741824, %edx               ## imm = 0x40000000
	movl	$1073741824, %ecx               ## imm = 0x40000000
	callq	_nv_mask
	movl	$384, %edx                      ## imm = 0x180
LBB0_9:
	movq	%r14, %rdi
	movl	$1118468, %esi                  ## imm = 0x111104
	xorl	%ecx, %ecx
	callq	_nv_mask
LBB0_10:
	movq	16(%r15), %rax
	testq	%rax, %rax
	je	LBB0_13
## %bb.11:
	testb	$2, 16(%rax)
	jne	LBB0_13
## %bb.12:
	movq	%r14, %rdi
	movl	$1049088, %esi                  ## imm = 0x100200
	movl	$2048, %edx                     ## imm = 0x800
	xorl	%ecx, %ecx
	callq	_nv_mask
LBB0_13:
	movq	%r14, %rdi
	movl	$6361600, %esi                  ## imm = 0x611200
	movl	$13056, %edx                    ## imm = 0x3300
	callq	_nv_wr32
	movq	8(%r15), %rax
	testb	$16, 8(%rax)
	jne	LBB0_15
## %bb.14:
	movq	%r14, %rdi
	movl	$1118464, %esi                  ## imm = 0x111100
	movl	$1275199488, %edx               ## imm = 0x4C020000
	callq	_nv_wr32
LBB0_15:
	movq	32(%r15), %rsi
	leaq	-88(%rbp), %rdi
	callq	_nouveau_mem_exec
	movq	%r14, %rdi
	movl	$6361600, %esi                  ## imm = 0x611200
	movl	$13104, %edx                    ## imm = 0x3330
	callq	_nv_wr32
	movq	16(%r15), %rax
	testq	%rax, %rax
	je	LBB0_18
## %bb.16:
	testb	$2, 16(%rax)
	je	LBB0_18
## %bb.17:
	movq	%r14, %rdi
	movl	$1049088, %esi                  ## imm = 0x100200
	movl	$2048, %edx                     ## imm = 0x800
	movl	$2048, %ecx                     ## imm = 0x800
	callq	_nv_mask
LBB0_18:
	movq	8(%r15), %rax
	testq	%rax, %rax
	je	LBB0_23
## %bb.19:
	testb	$16, 8(%rax)
	jne	LBB0_20
## %bb.21:
	movq	%r14, %rdi
	movl	$1118468, %esi                  ## imm = 0x111104
	movl	$1536, %edx                     ## imm = 0x600
	movl	$1536, %ecx                     ## imm = 0x600
	jmp	LBB0_22
LBB0_20:
	movq	%r14, %rdi
	movl	$1118468, %esi                  ## imm = 0x111104
	movl	$384, %edx                      ## imm = 0x180
	movl	$384, %ecx                      ## imm = 0x180
	callq	_nv_mask
	movq	%r14, %rdi
	movl	$1118464, %esi                  ## imm = 0x111100
	movl	$1073741824, %edx               ## imm = 0x40000000
	xorl	%ecx, %ecx
LBB0_22:
	callq	_nv_mask
LBB0_23:
	movl	$16744, %ebx                    ## imm = 0x4168
	cmpl	$0, 24(%r15)
	jne	LBB0_25
## %bb.24:
	movq	%r14, %rdi
	movl	$16384, %esi                    ## imm = 0x4000
	movl	$1, %edx
	xorl	%ecx, %ecx
	callq	_nv_mask
	movl	$16680, %ebx                    ## imm = 0x4128
LBB0_25:
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	$1, %edx
	xorl	%ecx, %ecx
	callq	_nv_mask
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	$256, %edx                      ## imm = 0x100
	xorl	%ecx, %ecx
	callq	_nv_mask
	addq	$64, %rsp
	popq	%rbx
	popq	%r12
	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
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function prog_mem
lCPI0_0:
	.long	268435456                       ; 0x10000000
	.long	572662306                       ; 0x22222222
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_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
	str	x20, [sp, #8]
Lloh0:
	adrp	x8, _mclk_timing_set@GOTPAGE
Lloh1:
	ldr	x8, [x8, _mclk_timing_set@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _mclk_clock_set@GOTPAGE
Lloh4:
	ldr	x9, [x9, _mclk_clock_set@GOTPAGEOFF]
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]
Lloh12:
	adrp	x10, _mclk_wait@GOTPAGE
Lloh13:
	ldr	x10, [x10, _mclk_wait@GOTPAGEOFF]
	stp	w8, w9, [sp, #24]
Lloh14:
	ldr	w8, [x10]
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:
	ldr	w8, [x8]
Lloh21:
	adrp	x9, _mclk_refresh@GOTPAGE
Lloh22:
	ldr	x9, [x9, _mclk_refresh@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	stp	w8, w9, [sp, #40]
Lloh24:
	adrp	x8, _mclk_precharge@GOTPAGE
Lloh25:
	ldr	x8, [x8, _mclk_precharge@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	str	w8, [sp, #48]
	str	x21, [sp, #56]
	ldr	x8, [x20, #32]
	mov	w9, #29104
	movk	w9, #11, lsl #16
	ldr	w8, [x8]
	cmp	w8, w9
	b.gt	LBB0_2
; %bb.1:
Lloh27:
	adrp	x8, lCPI0_0@PAGE
Lloh28:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x20]
LBB0_2:
	mov	x0, x19
	mov	w1, #16384
	bl	_nv_rd32
	mov	x21, x0
	tbnz	w0, #3, LBB0_4
; %bb.3:
	mov	x0, x19
	mov	w1, #16744
	mov	w2, #12609
	movk	w2, #63, lsl #16
	mov	x3, x21
	bl	_nv_mask
	b	LBB0_6
LBB0_4:
	ldr	w8, [x20, #24]
	cbz	w8, LBB0_6
; %bb.5:
	mov	x0, x19
	mov	w1, #16680
	mov	w2, #257
	mov	w3, #257
	bl	_nv_mask
	ldr	w2, [x20, #24]
	mov	x0, x19
	mov	w1, #16388
	bl	_nv_wr32
	orr	w22, w21, #0x1
	mov	x0, x19
	mov	w1, #16384
	mov	x2, x22
	bl	_nv_wr32
	and	w2, w22, #0xffffffef
	mov	x0, x19
	mov	w1, #16384
	bl	_nv_wr32
	mov	x0, x19
	mov	w1, #16384
	mov	w2, #131072
	mov	w3, #131072
	bl	_nv_wait
	mov	w8, #17
	orr	w2, w21, w8
	mov	x0, x19
	mov	w1, #16384
	bl	_nv_wr32
	ldr	w8, [x20]
	mov	w9, #20480
	orr	w2, w8, w9
	mov	x0, x19
	mov	w1, #16408
	bl	_nv_wr32
	mov	w8, #21
	orr	w2, w21, w8
	mov	x0, x19
	mov	w1, #16384
	bl	_nv_wr32
LBB0_6:
	mov	w21, #4352
	movk	w21, #17, lsl #16
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_11
; %bb.7:
	ldrb	w8, [x8, #8]
	tbnz	w8, #4, LBB0_9
; %bb.8:
	mov	x0, x19
	mov	w1, #4352
	movk	w1, #17, lsl #16
	mov	w2, #1073741824
	mov	w3, #1073741824
	bl	_nv_mask
	mov	w2, #384
	b	LBB0_10
LBB0_9:
	mov	w2, #1536
LBB0_10:
	add	w1, w21, #4
	mov	x0, x19
	mov	w3, #0
	bl	_nv_mask
LBB0_11:
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_14
; %bb.12:
	ldrb	w8, [x8, #16]
	tbnz	w8, #1, LBB0_14
; %bb.13:
	mov	x0, x19
	mov	w1, #512
	movk	w1, #16, lsl #16
	mov	w2, #2048
	mov	w3, #0
	bl	_nv_mask
LBB0_14:
	mov	x0, x19
	mov	w1, #4608
	movk	w1, #97, lsl #16
	mov	w2, #13056
	bl	_nv_wr32
	ldr	x8, [x20, #8]
	ldrb	w8, [x8, #8]
	tbnz	w8, #4, LBB0_16
; %bb.15:
	mov	x0, x19
	mov	w1, #4352
	movk	w1, #17, lsl #16
	mov	w2, #1275199488
	bl	_nv_wr32
LBB0_16:
	ldr	x1, [x20, #32]
	add	x0, sp, #8
	bl	_nouveau_mem_exec
	mov	x0, x19
	mov	w1, #4608
	movk	w1, #97, lsl #16
	mov	w2, #13104
	bl	_nv_wr32
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_19
; %bb.17:
	ldrb	w8, [x8, #16]
	tbz	w8, #1, LBB0_19
; %bb.18:
	mov	x0, x19
	mov	w1, #512
	movk	w1, #16, lsl #16
	mov	w2, #2048
	mov	w3, #2048
	bl	_nv_mask
LBB0_19:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_24
; %bb.20:
	ldrb	w8, [x8, #8]
	tbnz	w8, #4, LBB0_22
; %bb.21:
	add	w1, w21, #4
	mov	x0, x19
	mov	w2, #1536
	mov	w3, #1536
	b	LBB0_23
LBB0_22:
	add	w1, w21, #4
	mov	x0, x19
	mov	w2, #384
	mov	w3, #384
	bl	_nv_mask
	mov	x0, x19
	mov	w1, #4352
	movk	w1, #17, lsl #16
	mov	w2, #1073741824
	mov	w3, #0
LBB0_23:
	bl	_nv_mask
LBB0_24:
	ldr	w8, [x20, #24]
	cbz	w8, LBB0_26
; %bb.25:
	mov	w20, #16744
	b	LBB0_27
LBB0_26:
	mov	x0, x19
	mov	w1, #16384
	mov	w2, #1
	mov	w3, #0
	bl	_nv_mask
	mov	w20, #16680
LBB0_27:
	mov	x0, x19
	mov	x1, x20
	mov	w2, #1
	mov	w3, #0
	bl	_nv_mask
	mov	x0, x19
	mov	x1, x20
	mov	w2, #256
	mov	w3, #0
	bl	_nv_mask
	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	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdr	Lloh27, Lloh28
	.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
