	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nv40_instmem_new               ## -- Begin function nv40_instmem_new
	.p2align	4, 0x90
_nv40_instmem_new:                      ## @nv40_instmem_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movl	%esi, %r12d
	movq	%rdi, %r13
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$8, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	movq	_nv40_instmem@GOTPCREL(%rip), %rdi
	movq	%r13, %rsi
	movl	%r12d, %edx
	movq	%rax, %rcx
	callq	_nvkm_instmem_ctor
	movq	%r14, (%r15)
	movq	(%r13), %rax
	movq	%r13, %rdi
	movl	$2, %esi
	callq	*(%rax)
	xorl	%ebx, %ebx
	testl	%eax, %eax
	sete	%bl
	orl	$2, %ebx
	movq	(%r13), %rax
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	*8(%rax)
	movl	%eax, %r15d
	movq	(%r13), %rax
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	*(%rax)
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_ioremap_wc
	movl	%eax, %ecx
	movl	%eax, 4(%r14)
	xorl	%eax, %eax
	testl	%ecx, %ecx
	jne	LBB0_5
## %bb.3:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_nvkm_error
	movq	_EFAULT@GOTPCREL(%rip), %rcx
	jmp	LBB0_4
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
LBB0_4:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_nv40_instmem,4,2               ## @nv40_instmem
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unable to map PRAMIN BAR\n"

	.comm	_EFAULT,4,2                     ## @EFAULT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nv40_instmem_new               ; -- Begin function nv40_instmem_new
	.p2align	2
_nv40_instmem_new:                      ; @nv40_instmem_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, x2
	mov	x22, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #8
	bl	_kzalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
Lloh3:
	adrp	x0, _nv40_instmem@GOTPAGE
Lloh4:
	ldr	x0, [x0, _nv40_instmem@GOTPAGEOFF]
	mov	x1, x20
	mov	x2, x22
	mov	x3, x19
	bl	_nvkm_instmem_ctor
	str	x19, [x21]
	ldr	x8, [x20]
	ldr	x8, [x8]
	mov	w21, #2
	mov	x0, x20
	mov	w1, #2
	blr	x8
	cmp	w0, #0
	cinc	w21, w21, eq
	ldr	x8, [x20]
	ldr	x8, [x8, #8]
	mov	x0, x20
	mov	x1, x21
	blr	x8
	mov	x22, x0
	ldr	x8, [x20]
	ldr	x8, [x8]
	mov	x0, x20
	mov	x1, x21
	blr	x8
	mov	x1, x0
	mov	x0, x22
	bl	_ioremap_wc
	str	w0, [x19, #4]
	cbz	w0, LBB0_4
; %bb.2:
	mov	w0, #0
	b	LBB0_6
LBB0_3:
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_nvkm_error
Lloh9:
	adrp	x8, _EFAULT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	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 AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_nv40_instmem,4,2               ; @nv40_instmem
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unable to map PRAMIN BAR\n"

	.comm	_EFAULT,4,2                     ; @EFAULT
.subsections_via_symbols
