	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gk20a_instobj_ctor_dma
_gk20a_instobj_ctor_dma:                ## @gk20a_instobj_ctor_dma
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
                                        ## kill: def $edx killed $edx def $rdx
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movl	%esi, %r14d
	movq	%rdi, %r12
	movq	8(%rdi), %rax
	movq	(%rax), %r13
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$40, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	leaq	8(%r12), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	leaq	16(%rbx), %rax
	movq	%rax, (%r15)
	leaq	32(%rbx), %rsi
	movq	_gk20a_instobj_func_dma@GOTPCREL(%rip), %rdi
	callq	_nvkm_memory_ctor
	movq	_gk20a_instobj_ptrs@GOTPCREL(%rip), %rax
	movq	%rax, 32(%rbx)
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %r15
	movb	(%r15), %cl
	movl	%r14d, %esi
	shll	%cl, %esi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	(%r12), %r8d
	movq	%r13, %rdi
	movq	%rbx, %rdx
	callq	_dma_alloc_attrs
	movl	%eax, 24(%rbx)
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	leal	-1(%r12), %edi
	andl	(%rbx), %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	leaq	L_.str.1(%rip), %rsi
	movq	%r13, %rdi
	movq	%rbx, %rdx
	movl	%r12d, %ecx
	callq	_nvkm_warn
LBB0_6:
	movq	%rbx, %rax
	addq	$4, %rax
	movl	$12, 4(%rbx)
	movl	(%rbx), %ecx
	sarl	$12, %ecx
	movl	%ecx, 8(%rbx)
	movb	(%r15), %cl
	shll	%cl, %r14d
	sarl	$12, %r14d
	movl	%r14d, 12(%rbx)
	movq	%rax, 16(%rbx)
	xorl	%eax, %eax
	jmp	LBB0_7
LBB0_3:
	leaq	L_.str(%rip), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_nvkm_error
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_7:
	addq	$24, %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_instobj_func_dma,4,2     ## @gk20a_instobj_func_dma
	.comm	_gk20a_instobj_ptrs,4,2         ## @gk20a_instobj_ptrs
	.comm	_PAGE_SHIFT,4,2                 ## @PAGE_SHIFT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cannot allocate DMA memory\n"

L_.str.1:                               ## @.str.1
	.asciz	"memory not aligned as requested: %pad (0x%x)\n"

	.no_dead_strip	_gk20a_instobj_ctor_dma
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gk20a_instobj_ctor_dma
_gk20a_instobj_ctor_dma:                ; @gk20a_instobj_ctor_dma
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x25, x3
	mov	x21, x2
	mov	x19, x1
	mov	x23, x0
	mov	x22, x0
	ldr	x8, [x22, #8]!
	ldr	x24, [x8]
Lloh0:
	adrp	x26, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x26, [x26, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x26]
	mov	w0, #40
	bl	_kzalloc
	cbz	x0, LBB0_6
; %bb.1:
	mov	x20, x0
	add	x8, x0, #16
	str	x8, [x25]
	add	x1, x0, #32
Lloh2:
	adrp	x0, _gk20a_instobj_func_dma@GOTPAGE
Lloh3:
	ldr	x0, [x0, _gk20a_instobj_func_dma@GOTPAGEOFF]
	bl	_nvkm_memory_ctor
Lloh4:
	adrp	x8, _gk20a_instobj_ptrs@GOTPAGE
Lloh5:
	ldr	x8, [x8, _gk20a_instobj_ptrs@GOTPAGEOFF]
	str	x8, [x20, #32]
Lloh6:
	adrp	x25, _PAGE_SHIFT@GOTPAGE
Lloh7:
	ldr	x25, [x25, _PAGE_SHIFT@GOTPAGEOFF]
	ldr	w8, [x25]
	lsl	w1, w19, w8
	ldr	w3, [x26]
	ldr	w4, [x23]
	mov	x0, x24
	mov	x2, x20
	bl	_dma_alloc_attrs
	str	w0, [x20, #24]
	cbz	w0, LBB0_5
; %bb.2:
	ldr	w8, [x20]
	sub	w9, w21, #1
	and	w0, w8, w9
	bl	_unlikely
	cbz	x0, LBB0_4
; %bb.3:
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x22
	mov	x2, x20
	mov	x3, x21
	bl	_nvkm_warn
LBB0_4:
	mov	w0, #0
	mov	w8, #12
	mov	x9, x20
	str	w8, [x9, #4]!
	ldr	w8, [x20]
	asr	w8, w8, #12
	ldr	w10, [x25]
	lsl	w10, w19, w10
	asr	w10, w10, #12
	stp	w8, w10, [x20, #8]
	str	x9, [x20, #16]
	b	LBB0_7
LBB0_5:
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	bl	_nvkm_error
LBB0_6:
Lloh12:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_gk20a_instobj_func_dma,4,2     ; @gk20a_instobj_func_dma
	.comm	_gk20a_instobj_ptrs,4,2         ; @gk20a_instobj_ptrs
	.comm	_PAGE_SHIFT,4,2                 ; @PAGE_SHIFT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cannot allocate DMA memory\n"

l_.str.1:                               ; @.str.1
	.asciz	"memory not aligned as requested: %pad (0x%x)\n"

	.no_dead_strip	_gk20a_instobj_ctor_dma
.subsections_via_symbols
