	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gt215_ram_new                  ## -- Begin function gt215_ram_new
	.p2align	4, 0x90
_gt215_ram_new:                         ## @gt215_ram_new
	.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
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$304, %edi                      ## imm = 0x130
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	leaq	296(%rax), %rdx
	movq	%rdx, (%rbx)
	movq	_gt215_ram_func@GOTPCREL(%rip), %rdi
	movq	%r15, %rsi
	callq	_nv50_ram_ctor
	testl	%eax, %eax
	jne	LBB0_7
## %bb.3:
	movl	$5648, %edi                     ## imm = 0x1610
	callq	_ramfuc_reg
	movq	%rax, 288(%r14)
	movl	$5888, %edi                     ## imm = 0x1700
	callq	_ramfuc_reg
	movq	%rax, 280(%r14)
	movl	$9476, %edi                     ## imm = 0x2504
	callq	_ramfuc_reg
	movq	%rax, 272(%r14)
	movl	$16384, %edi                    ## imm = 0x4000
	callq	_ramfuc_reg
	movq	%rax, 264(%r14)
	movl	$16388, %edi                    ## imm = 0x4004
	callq	_ramfuc_reg
	movq	%rax, 256(%r14)
	movl	$16408, %edi                    ## imm = 0x4018
	callq	_ramfuc_reg
	movq	%rax, 248(%r14)
	movl	$16680, %edi                    ## imm = 0x4128
	callq	_ramfuc_reg
	movq	%rax, 240(%r14)
	movl	$16744, %edi                    ## imm = 0x4168
	callq	_ramfuc_reg
	movq	%rax, 232(%r14)
	movl	$1048704, %edi                  ## imm = 0x100080
	callq	_ramfuc_reg
	movq	%rax, 224(%r14)
	movl	$1049088, %edi                  ## imm = 0x100200
	callq	_ramfuc_reg
	movq	%rax, 216(%r14)
	movl	$1049104, %edi                  ## imm = 0x100210
	callq	_ramfuc_reg
	movq	%rax, 208(%r14)
	movl	$1049120, %edi                  ## imm = 0x100220
	callq	_ramfuc_reg
	movq	200(%r14), %rcx
	movq	%rax, (%rcx)
	movl	$1049124, %edi                  ## imm = 0x100224
	callq	_ramfuc_reg
	movq	200(%r14), %rcx
	movq	%rax, 8(%rcx)
	movl	$1049128, %edi                  ## imm = 0x100228
	callq	_ramfuc_reg
	movq	200(%r14), %rcx
	movq	%rax, 16(%rcx)
	movl	$1049132, %edi                  ## imm = 0x10022C
	callq	_ramfuc_reg
	movq	200(%r14), %rcx
	movq	%rax, 24(%rcx)
	movl	$1049136, %edi                  ## imm = 0x100230
	callq	_ramfuc_reg
	movq	200(%r14), %rcx
	movq	%rax, 32(%rcx)
	movl	$1049140, %edi                  ## imm = 0x100234
	callq	_ramfuc_reg
	movq	200(%r14), %rcx
	movq	%rax, 40(%rcx)
	movl	$1049144, %edi                  ## imm = 0x100238
	callq	_ramfuc_reg
	movq	200(%r14), %rcx
	movq	%rax, 48(%rcx)
	movl	$1049148, %edi                  ## imm = 0x10023C
	callq	_ramfuc_reg
	movq	200(%r14), %rcx
	movq	%rax, 56(%rcx)
	movl	$1049152, %edi                  ## imm = 0x100240
	callq	_ramfuc_reg
	movq	200(%r14), %rcx
	movq	%rax, 64(%rcx)
	movl	$1049188, %edi                  ## imm = 0x100264
	callq	_ramfuc_reg
	movq	%rax, 192(%r14)
	movl	$1049296, %edi                  ## imm = 0x1002D0
	callq	_ramfuc_reg
	movq	%rax, 184(%r14)
	movl	$1049300, %edi                  ## imm = 0x1002D4
	callq	_ramfuc_reg
	movq	%rax, 176(%r14)
	movl	$1049308, %edi                  ## imm = 0x1002DC
	callq	_ramfuc_reg
	movq	%rax, 168(%r14)
	movl	$1049916, %edi                  ## imm = 0x10053C
	callq	_ramfuc_reg
	movq	%rax, 160(%r14)
	movl	$1050016, %edi                  ## imm = 0x1005A0
	callq	_ramfuc_reg
	movq	%rax, 152(%r14)
	movl	$1050020, %edi                  ## imm = 0x1005A4
	callq	_ramfuc_reg
	movq	%rax, 144(%r14)
	movl	$1050368, %edi                  ## imm = 0x100700
	callq	_ramfuc_reg
	movq	%rax, 136(%r14)
	movl	$1050388, %edi                  ## imm = 0x100714
	callq	_ramfuc_reg
	movq	%rax, 128(%r14)
	movl	$1050392, %edi                  ## imm = 0x100718
	callq	_ramfuc_reg
	movq	%rax, 120(%r14)
	movl	$1050396, %edi                  ## imm = 0x10071C
	callq	_ramfuc_reg
	movq	%rax, 112(%r14)
	movl	$1050400, %edi                  ## imm = 0x100720
	callq	_ramfuc_reg
	movq	%rax, 104(%r14)
	movl	300(%r14), %edx
	movl	$1050464, %edi                  ## imm = 0x100760
	movl	$4, %esi
	callq	_ramfuc_stride
	movq	%rax, 96(%r14)
	movl	300(%r14), %edx
	movl	$1050528, %edi                  ## imm = 0x1007A0
	movl	$4, %esi
	callq	_ramfuc_stride
	movq	%rax, 88(%r14)
	movl	300(%r14), %edx
	movl	$1050592, %edi                  ## imm = 0x1007E0
	movl	$4, %esi
	callq	_ramfuc_stride
	movq	%rax, 80(%r14)
	movl	300(%r14), %edx
	movl	$1052064, %edi                  ## imm = 0x100DA0
	movl	$4, %esi
	callq	_ramfuc_stride
	movq	%rax, 72(%r14)
	movl	$1112068, %edi                  ## imm = 0x10F804
	callq	_ramfuc_reg
	movq	%rax, 64(%r14)
	movl	300(%r14), %edx
	movl	$1118432, %edi                  ## imm = 0x1110E0
	movl	$4, %esi
	callq	_ramfuc_stride
	movq	%rax, 56(%r14)
	movl	$1118464, %edi                  ## imm = 0x111100
	callq	_ramfuc_reg
	movq	%rax, 48(%r14)
	movl	$1118468, %edi                  ## imm = 0x111104
	callq	_ramfuc_reg
	movq	%rax, 40(%r14)
	movl	$1118688, %edi                  ## imm = 0x1111E0
	callq	_ramfuc_reg
	movq	%rax, 32(%r14)
	movl	$1119232, %edi                  ## imm = 0x111400
	callq	_ramfuc_reg
	movq	%rax, 24(%r14)
	movl	$6361600, %edi                  ## imm = 0x611200
	callq	_ramfuc_reg
	movq	%rax, 16(%r14)
	cmpl	$2, 296(%r14)
	jl	LBB0_5
## %bb.4:
	movl	$1049280, %edi                  ## imm = 0x1002C0
	movl	$1049288, %esi                  ## imm = 0x1002C8
	callq	_ramfuc_reg2
	movq	8(%r14), %rcx
	movq	%rax, (%rcx)
	movl	$1049284, %edi                  ## imm = 0x1002C4
	movl	$1049292, %esi                  ## imm = 0x1002CC
	callq	_ramfuc_reg2
	movq	8(%r14), %rcx
	movq	%rax, 8(%rcx)
	movl	$1049312, %edi                  ## imm = 0x1002E0
	movl	$1049320, %esi                  ## imm = 0x1002E8
	callq	_ramfuc_reg2
	movq	8(%r14), %rcx
	movq	%rax, 16(%rcx)
	movl	$1049316, %edi                  ## imm = 0x1002E4
	movl	$1049324, %esi                  ## imm = 0x1002EC
	callq	_ramfuc_reg2
	jmp	LBB0_6
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_7
LBB0_5:
	movl	$1049280, %edi                  ## imm = 0x1002C0
	callq	_ramfuc_reg
	movq	8(%r14), %rcx
	movq	%rax, (%rcx)
	movl	$1049284, %edi                  ## imm = 0x1002C4
	callq	_ramfuc_reg
	movq	8(%r14), %rcx
	movq	%rax, 8(%rcx)
	movl	$1049312, %edi                  ## imm = 0x1002E0
	callq	_ramfuc_reg
	movq	8(%r14), %rcx
	movq	%rax, 16(%rcx)
	movl	$1049316, %edi                  ## imm = 0x1002E4
	callq	_ramfuc_reg
LBB0_6:
	movq	8(%r14), %rcx
	movq	%rax, 24(%rcx)
	movl	$57604, %edi                    ## imm = 0xE104
	callq	_ramfuc_reg
	movq	(%r14), %rcx
	movq	%rax, (%rcx)
	movl	$57608, %edi                    ## imm = 0xE108
	callq	_ramfuc_reg
	movq	(%r14), %rcx
	movq	%rax, 8(%rcx)
	movl	$57632, %edi                    ## imm = 0xE120
	callq	_ramfuc_reg
	movq	(%r14), %rcx
	movq	%rax, 16(%rcx)
	movl	$57636, %edi                    ## imm = 0xE124
	callq	_ramfuc_reg
	movq	(%r14), %rcx
	movq	%rax, 24(%rcx)
	xorl	%eax, %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_gt215_ram_func,4,2             ## @gt215_ram_func
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gt215_ram_new                  ; -- Begin function gt215_ram_new
	.p2align	2
_gt215_ram_new:                         ; @gt215_ram_new
	.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
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #304
	bl	_kzalloc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x0
	add	x2, x0, #296
	str	x2, [x21]
Lloh3:
	adrp	x0, _gt215_ram_func@GOTPAGE
Lloh4:
	ldr	x0, [x0, _gt215_ram_func@GOTPAGEOFF]
	mov	x1, x20
	bl	_nv50_ram_ctor
	cbnz	w0, LBB0_7
; %bb.2:
	mov	w20, #704
	movk	w20, #16, lsl #16
	mov	w0, #5648
	bl	_ramfuc_reg
	str	x0, [x19, #288]
	mov	w0, #5888
	bl	_ramfuc_reg
	str	x0, [x19, #280]
	mov	w0, #9476
	bl	_ramfuc_reg
	str	x0, [x19, #272]
	mov	w0, #16384
	bl	_ramfuc_reg
	str	x0, [x19, #264]
	mov	w0, #16388
	bl	_ramfuc_reg
	str	x0, [x19, #256]
	mov	w0, #16408
	bl	_ramfuc_reg
	str	x0, [x19, #248]
	mov	w0, #16680
	bl	_ramfuc_reg
	str	x0, [x19, #240]
	mov	w0, #16744
	bl	_ramfuc_reg
	str	x0, [x19, #232]
	sub	w0, w20, #576
	bl	_ramfuc_reg
	str	x0, [x19, #224]
	sub	w0, w20, #192
	bl	_ramfuc_reg
	str	x0, [x19, #216]
	sub	w0, w20, #176
	bl	_ramfuc_reg
	str	x0, [x19, #208]
	sub	w0, w20, #160
	bl	_ramfuc_reg
	ldr	x8, [x19, #200]
	str	x0, [x8]
	sub	w0, w20, #156
	bl	_ramfuc_reg
	ldr	x8, [x19, #200]
	str	x0, [x8, #8]
	sub	w0, w20, #152
	bl	_ramfuc_reg
	ldr	x8, [x19, #200]
	str	x0, [x8, #16]
	sub	w0, w20, #148
	bl	_ramfuc_reg
	ldr	x8, [x19, #200]
	str	x0, [x8, #24]
	sub	w0, w20, #144
	bl	_ramfuc_reg
	ldr	x8, [x19, #200]
	str	x0, [x8, #32]
	sub	w0, w20, #140
	bl	_ramfuc_reg
	ldr	x8, [x19, #200]
	str	x0, [x8, #40]
	sub	w0, w20, #136
	bl	_ramfuc_reg
	ldr	x8, [x19, #200]
	str	x0, [x8, #48]
	sub	w0, w20, #132
	bl	_ramfuc_reg
	ldr	x8, [x19, #200]
	str	x0, [x8, #56]
	sub	w0, w20, #128
	bl	_ramfuc_reg
	ldr	x8, [x19, #200]
	str	x0, [x8, #64]
	sub	w0, w20, #92
	bl	_ramfuc_reg
	str	x0, [x19, #192]
	orr	w0, w20, #0x10
	bl	_ramfuc_reg
	str	x0, [x19, #184]
	mov	w8, #20
	orr	w0, w20, w8
	bl	_ramfuc_reg
	str	x0, [x19, #176]
	orr	w0, w20, #0x1c
	bl	_ramfuc_reg
	str	x0, [x19, #168]
	add	w0, w20, #636
	bl	_ramfuc_reg
	str	x0, [x19, #160]
	add	w0, w20, #736
	bl	_ramfuc_reg
	str	x0, [x19, #152]
	add	w0, w20, #740
	bl	_ramfuc_reg
	str	x0, [x19, #144]
	add	w0, w20, #1088
	bl	_ramfuc_reg
	str	x0, [x19, #136]
	add	w0, w20, #1108
	bl	_ramfuc_reg
	str	x0, [x19, #128]
	add	w0, w20, #1112
	bl	_ramfuc_reg
	str	x0, [x19, #120]
	add	w0, w20, #1116
	bl	_ramfuc_reg
	str	x0, [x19, #112]
	add	w0, w20, #1120
	bl	_ramfuc_reg
	str	x0, [x19, #104]
	ldr	w2, [x19, #300]
	add	w0, w20, #1184
	mov	w1, #4
	bl	_ramfuc_stride
	str	x0, [x19, #96]
	ldr	w2, [x19, #300]
	add	w0, w20, #1248
	mov	w1, #4
	bl	_ramfuc_stride
	str	x0, [x19, #88]
	ldr	w2, [x19, #300]
	mov	w8, #1312
	orr	w0, w20, w8
	mov	w1, #4
	bl	_ramfuc_stride
	str	x0, [x19, #80]
	ldr	w2, [x19, #300]
	add	w0, w20, #2784
	mov	w1, #4
	bl	_ramfuc_stride
	str	x0, [x19, #72]
	mov	w0, #63492
	movk	w0, #16, lsl #16
	bl	_ramfuc_reg
	str	x0, [x19, #64]
	ldr	w2, [x19, #300]
	mov	w21, #4320
	movk	w21, #17, lsl #16
	mov	w0, #4320
	movk	w0, #17, lsl #16
	mov	w1, #4
	bl	_ramfuc_stride
	str	x0, [x19, #56]
	add	w0, w21, #32
	bl	_ramfuc_reg
	str	x0, [x19, #48]
	add	w0, w21, #36
	bl	_ramfuc_reg
	str	x0, [x19, #40]
	orr	w0, w21, #0x100
	bl	_ramfuc_reg
	str	x0, [x19, #32]
	add	w0, w21, #800
	bl	_ramfuc_reg
	str	x0, [x19, #24]
	mov	w0, #4608
	movk	w0, #97, lsl #16
	bl	_ramfuc_reg
	str	x0, [x19, #16]
	ldr	w8, [x19, #296]
	cmp	w8, #2
	b.lt	LBB0_5
; %bb.3:
	add	w1, w20, #8
	mov	w0, #704
	movk	w0, #16, lsl #16
	bl	_ramfuc_reg2
	ldr	x8, [x19, #8]
	str	x0, [x8]
	add	w0, w20, #4
	add	w1, w20, #12
	bl	_ramfuc_reg2
	ldr	x8, [x19, #8]
	str	x0, [x8, #8]
	add	w0, w20, #32
	add	w1, w20, #40
	bl	_ramfuc_reg2
	ldr	x8, [x19, #8]
	str	x0, [x8, #16]
	add	w0, w20, #36
	add	w1, w20, #44
	bl	_ramfuc_reg2
	b	LBB0_6
LBB0_4:
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_7
LBB0_5:
	mov	w0, #704
	movk	w0, #16, lsl #16
	bl	_ramfuc_reg
	ldr	x8, [x19, #8]
	str	x0, [x8]
	add	w0, w20, #4
	bl	_ramfuc_reg
	ldr	x8, [x19, #8]
	str	x0, [x8, #8]
	add	w0, w20, #32
	bl	_ramfuc_reg
	ldr	x8, [x19, #8]
	str	x0, [x8, #16]
	add	w0, w20, #36
	bl	_ramfuc_reg
LBB0_6:
	ldr	x8, [x19, #8]
	str	x0, [x8, #24]
	mov	w0, #57604
	bl	_ramfuc_reg
	ldr	x8, [x19]
	str	x0, [x8]
	mov	w0, #57608
	bl	_ramfuc_reg
	ldr	x8, [x19]
	str	x0, [x8, #8]
	mov	w0, #57632
	bl	_ramfuc_reg
	ldr	x8, [x19]
	str	x0, [x8, #16]
	mov	w0, #57636
	bl	_ramfuc_reg
	mov	x8, x0
	mov	w0, #0
	ldr	x9, [x19]
	str	x8, [x9, #24]
LBB0_7:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_gt215_ram_func,4,2             ; @gt215_ram_func
.subsections_via_symbols
