	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gk104_ram_prog                 ## -- Begin function gk104_ram_prog
	.p2align	4, 0x90
_gk104_ram_prog:                        ## @gk104_ram_prog
	.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	_gk104_ram
	movq	%rax, %rbx
	leaq	24(%rax), %r14
	movq	8(%rax), %r15
	movq	16(%rax), %rax
	movq	(%rax), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	$1, %edx
	callq	_nvkm_boolopt
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	%rbx, %rdi
	movl	$1000, %esi                     ## imm = 0x3E8
	callq	_gk104_ram_prog_0
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_ram_exec
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_gk104_ram_prog_0
	jmp	LBB0_3
LBB0_1:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_ram_exec
LBB0_3:
	xorl	%eax, %eax
	cmpq	%rbx, 8(%rbx)
	sete	%al
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"NvMemExec"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gk104_ram_prog                 ; -- Begin function gk104_ram_prog
	.p2align	2
_gk104_ram_prog:                        ; @gk104_ram_prog
	.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	_gk104_ram
	mov	x19, x0
	add	x20, x0, #24
	ldp	x21, x8, [x0, #8]
	ldr	x8, [x8]
	ldr	w0, [x8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w2, #1
	bl	_nvkm_boolopt
	cbz	w0, LBB0_2
; %bb.1:
	mov	x0, x19
	mov	w1, #1000
	bl	_gk104_ram_prog_0
	mov	x0, x20
	mov	w1, #1
	bl	_ram_exec
	ldr	w1, [x21]
	mov	x0, x19
	bl	_gk104_ram_prog_0
	b	LBB0_3
LBB0_2:
	mov	x0, x20
	mov	w1, #0
	bl	_ram_exec
LBB0_3:
	ldr	x8, [x19, #8]
	cmp	x8, x19
	cset	w0, eq
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"NvMemExec"

.subsections_via_symbols
