	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gk20a_instmem_new              ## -- Begin function gk20a_instmem_new
	.p2align	4, 0x90
_gk20a_instmem_new:                     ## @gk20a_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, %r14
	movl	%esi, %r13d
	movq	%rdi, %r12
	movq	(%rdi), %rax
	callq	*(%rax)
	movq	%rax, %r15
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$72, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movl	%r13d, %edx
	movq	%r14, %r13
	leaq	8(%rax), %r14
	movq	_gk20a_instmem@GOTPCREL(%rip), %rdi
	movq	%r12, %rsi
	movq	%r14, %rcx
	callq	_nvkm_instmem_ctor
	leaq	64(%rbx), %rdi
	callq	_mutex_init
	movq	%r14, (%r13)
	movq	$0, 56(%rbx)
	movl	$1048576, (%rbx)                ## imm = 0x100000
	movq	%rbx, %rdi
	addq	$48, %rdi
	callq	_INIT_LIST_HEAD
	movq	16(%r15), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	leaq	28(%r15), %rcx
	movq	%rcx, 40(%rbx)
	movq	%r15, %rcx
	addq	$24, %rcx
	movq	%rcx, 32(%rbx)
	movq	%rax, 24(%rbx)
	movl	8(%r15), %eax
	movl	%eax, 16(%rbx)
	movq	(%r15), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rbx)
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_5
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_6
LBB0_4:
	movq	_DMA_ATTR_NON_CONSISTENT@GOTPCREL(%rip), %rax
	movq	_DMA_ATTR_WEAK_ORDERING@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_DMA_ATTR_WRITE_COMBINE@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, 4(%rbx)
	leaq	L_.str.1(%rip), %rsi
LBB0_5:
	movq	%r14, %rdi
	callq	_nvkm_info
	xorl	%eax, %eax
LBB0_6:
	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	_gk20a_instmem,4,2              ## @gk20a_instmem
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"using IOMMU\n"

	.comm	_DMA_ATTR_NON_CONSISTENT,4,2    ## @DMA_ATTR_NON_CONSISTENT
	.comm	_DMA_ATTR_WEAK_ORDERING,4,2     ## @DMA_ATTR_WEAK_ORDERING
	.comm	_DMA_ATTR_WRITE_COMBINE,4,2     ## @DMA_ATTR_WRITE_COMBINE
L_.str.1:                               ## @.str.1
	.asciz	"using DMA API\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gk20a_instmem_new              ; -- Begin function gk20a_instmem_new
	.p2align	2
_gk20a_instmem_new:                     ; @gk20a_instmem_new
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x22, x2
	mov	x23, x1
	mov	x24, x0
	ldr	x8, [x0]
	ldr	x8, [x8]
	blr	x8
	mov	x21, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #72
	bl	_kzalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
	add	x20, x0, #8
Lloh3:
	adrp	x0, _gk20a_instmem@GOTPAGE
Lloh4:
	ldr	x0, [x0, _gk20a_instmem@GOTPAGEOFF]
	mov	x1, x24
	mov	x2, x23
	mov	x3, x20
	bl	_nvkm_instmem_ctor
	add	x0, x19, #64
	bl	_mutex_init
	str	x20, [x22]
	str	xzr, [x19, #56]
	mov	w8, #1048576
	str	w8, [x19]
	add	x0, x19, #48
	bl	_INIT_LIST_HEAD
	ldr	x8, [x21, #16]
	cbz	x8, LBB0_4
; %bb.2:
	add	x10, x21, #28
	add	x9, x21, #24
	stp	x9, x10, [x19, #32]
	str	x8, [x19, #24]
	ldr	w8, [x21, #8]
	ldr	x9, [x21]
	ldr	w9, [x9]
	stp	w9, w8, [x19, #12]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_5
LBB0_3:
Lloh7:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_6
LBB0_4:
Lloh10:
	adrp	x8, _DMA_ATTR_NON_CONSISTENT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _DMA_ATTR_NON_CONSISTENT@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
Lloh13:
	adrp	x9, _DMA_ATTR_WEAK_ORDERING@GOTPAGE
Lloh14:
	ldr	x9, [x9, _DMA_ATTR_WEAK_ORDERING@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh16:
	adrp	x9, _DMA_ATTR_WRITE_COMBINE@GOTPAGE
Lloh17:
	ldr	x9, [x9, _DMA_ATTR_WRITE_COMBINE@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	w8, [x19, #4]
Lloh19:
	adrp	x1, l_.str.1@PAGE
Lloh20:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_5:
	mov	x0, x20
	bl	_nvkm_info
	mov	w0, #0
LBB0_6:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_gk20a_instmem,4,2              ; @gk20a_instmem
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"using IOMMU\n"

	.comm	_DMA_ATTR_NON_CONSISTENT,4,2    ; @DMA_ATTR_NON_CONSISTENT
	.comm	_DMA_ATTR_WEAK_ORDERING,4,2     ; @DMA_ATTR_WEAK_ORDERING
	.comm	_DMA_ATTR_WRITE_COMBINE,4,2     ; @DMA_ATTR_WRITE_COMBINE
l_.str.1:                               ; @.str.1
	.asciz	"using DMA API\n"

.subsections_via_symbols
