	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nv04_dmaobj_new                ## -- Begin function nv04_dmaobj_new
	.p2align	4, 0x90
_nv04_dmaobj_new:                       ## @nv04_dmaobj_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r13
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	%rdx, -64(%rbp)
	movl	%ecx, -44(%rbp)
	movq	(%rdi), %r12
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$20, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	leaq	12(%rax), %r12
	movq	%r12, (%r13)
	movq	_nv04_dmaobj_func@GOTPCREL(%rip), %rdi
	leaq	-64(%rbp), %rcx
	leaq	-44(%rbp), %r8
	movq	%rbx, %rsi
	movq	%r14, %rdx
	movq	%r12, %r9
	callq	_nvkm_dmaobj_ctor
	testl	%eax, %eax
	jne	LBB0_21
## %bb.3:
	movl	(%r12), %edx
	movq	_NV_MEM_TARGET_VM@GOTPCREL(%rip), %rax
	cmpl	(%rax), %edx
	jne	LBB0_8
## %bb.4:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	(%rax), %rax
	cmpq	_nv04_mmu@GOTPCREL(%rip), %rax
	jne	LBB0_6
## %bb.5:
	movl	$1, (%r15)
LBB0_6:
	movabsq	$566935683202, %rax             ## imm = 0x8400000082
	movq	%rax, 12(%r15)
	movl	(%r14), %eax
	movq	%r15, %rcx
	addq	$4, %rcx
	jmp	LBB0_7
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
LBB0_20:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_21:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movl	(%r14), %eax
	movq	%r15, %rcx
	addq	$4, %rcx
	movl	%eax, 4(%r15)
	cmpl	$130, %edx
	je	LBB0_7
## %bb.9:
	cmpl	$129, %edx
	je	LBB0_12
## %bb.10:
	cmpl	$128, %edx
	jne	LBB0_19
## %bb.11:
	orl	$12288, %eax                    ## imm = 0x3000
	jmp	LBB0_13
LBB0_7:
	orl	$143360, %eax                   ## imm = 0x23000
LBB0_13:
	movl	%eax, (%rcx)
	movl	16(%r15), %edx
	cmpl	$131, %edx
	je	LBB0_17
## %bb.14:
	cmpl	$132, %edx
	je	LBB0_18
## %bb.15:
	cmpl	$133, %edx
	jne	LBB0_19
## %bb.16:
	orl	$16384, %eax                    ## imm = 0x4000
	movl	%eax, (%rcx)
	xorl	%eax, %eax
	jmp	LBB0_21
LBB0_19:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_20
LBB0_17:
	orl	$32768, %eax                    ## imm = 0x8000
	movl	%eax, (%rcx)
LBB0_18:
	orb	$2, 8(%r15)
	xorl	%eax, %eax
	jmp	LBB0_21
LBB0_12:
	orl	$208896, %eax                   ## imm = 0x33000
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_nv04_dmaobj_func,4,2           ## @nv04_dmaobj_func
	.comm	_NV_MEM_TARGET_VM,4,2           ## @NV_MEM_TARGET_VM
	.comm	_nv04_mmu,4,2                   ## @nv04_mmu
	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function nv04_dmaobj_new
lCPI0_0:
	.long	130                             ; 0x82
	.long	132                             ; 0x84
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_nv04_dmaobj_new
	.p2align	2
_nv04_dmaobj_new:                       ; @nv04_dmaobj_new
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x23, x4
	mov	x20, x1
	mov	x21, x0
	str	x2, [sp, #8]
	str	w3, [sp, #4]
	ldr	x24, [x0]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #20
	bl	_kzalloc
	cbz	x0, LBB0_6
; %bb.1:
	mov	x19, x0
	add	x22, x0, #12
	str	x22, [x23]
Lloh3:
	adrp	x0, _nv04_dmaobj_func@GOTPAGE
Lloh4:
	ldr	x0, [x0, _nv04_dmaobj_func@GOTPAGEOFF]
	add	x3, sp, #8
	add	x4, sp, #4
	mov	x1, x21
	mov	x2, x20
	mov	x5, x22
	bl	_nvkm_dmaobj_ctor
	cbnz	w0, LBB0_8
; %bb.2:
	ldr	w10, [x22]
Lloh5:
	adrp	x8, _NV_MEM_TARGET_VM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _NV_MEM_TARGET_VM@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmp	w10, w8
	b.ne	LBB0_9
; %bb.3:
	ldr	x8, [x24]
	ldr	x8, [x8]
Lloh8:
	adrp	x9, _nv04_mmu@GOTPAGE
Lloh9:
	ldr	x9, [x9, _nv04_mmu@GOTPAGEOFF]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.4:
	mov	w8, #1
	str	w8, [x19]
LBB0_5:
Lloh10:
	adrp	x8, lCPI0_0@PAGE
Lloh11:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	stur	d0, [x19, #12]
	ldr	w9, [x20]
	add	x8, x19, #4
	b	LBB0_13
LBB0_6:
Lloh12:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	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
	add	sp, sp, #80
	ret
LBB0_9:
	ldr	w9, [x20]
	mov	x8, x19
	str	w9, [x8, #4]!
	cmp	w10, #130
	b.eq	LBB0_13
; %bb.10:
	cmp	w10, #129
	b.eq	LBB0_21
; %bb.11:
	cmp	w10, #128
	b.ne	LBB0_18
; %bb.12:
	orr	w9, w9, #0x3000
	b	LBB0_14
LBB0_13:
	mov	w10, #12288
	movk	w10, #2, lsl #16
	orr	w9, w9, w10
LBB0_14:
	str	w9, [x8]
	ldr	w10, [x19, #16]
	cmp	w10, #131
	b.eq	LBB0_19
; %bb.15:
	cmp	w10, #132
	b.eq	LBB0_20
; %bb.16:
	cmp	w10, #133
	b.ne	LBB0_18
; %bb.17:
	mov	w0, #0
	orr	w9, w9, #0x4000
	str	w9, [x8]
	b	LBB0_8
LBB0_18:
Lloh14:
	adrp	x8, _EINVAL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_7
LBB0_19:
	orr	w9, w9, #0x8000
	str	w9, [x8]
LBB0_20:
	mov	w0, #0
	ldr	w8, [x19, #8]
	orr	w8, w8, #0x2
	str	w8, [x19, #8]
	b	LBB0_8
LBB0_21:
	mov	w10, #12288
	movk	w10, #2, lsl #16
	orr	w9, w9, w10
	orr	w9, w9, #0x10000
	b	LBB0_14
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdr	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_nv04_dmaobj_func,4,2           ; @nv04_dmaobj_func
	.comm	_NV_MEM_TARGET_VM,4,2           ; @NV_MEM_TARGET_VM
	.comm	_nv04_mmu,4,2                   ; @nv04_mmu
	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
