	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nv04_dmaobj_bind
_nv04_dmaobj_bind:                      ## @nv04_dmaobj_bind
	.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, %r14
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	callq	_nv04_dmaobj
	movq	%rax, %r15
	movq	16(%rax), %rax
	movq	(%rax), %r12
	movl	8(%r15), %r13d
	movl	12(%r15), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	%r13d, %ebx
	andl	$-4096, %ebx                    ## imm = 0xF000
	cmpq	$0, 24(%r15)
	je	LBB0_3
## %bb.1:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	(%r12), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	(%rax), %r14
	testl	%r13d, %r13d
	je	LBB0_6
## %bb.2:
	movq	%r14, %rdi
	callq	_nvkm_kmap
	sarl	$10, %ebx
	addl	$8, %ebx
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_nvkm_ro32
	movl	%eax, %ebx
	andl	$-4096, %ebx                    ## imm = 0xF000
	movq	%r14, %rdi
	callq	_nvkm_done
	movq	-56(%rbp), %r14                 ## 8-byte Reload
LBB0_3:
	movq	-64(%rbp), %r8                  ## 8-byte Reload
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movq	%r12, %rdi
	movl	$16, %esi
	xorl	%ecx, %ecx
	movq	%r14, %r9
	callq	_nvkm_gpuobj_new
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:
	movl	-48(%rbp), %r12d                ## 4-byte Reload
	subl	%r13d, %r12d
	movq	(%r14), %rdi
	callq	_nvkm_kmap
	movq	(%r14), %rdi
	shll	$20, %r13d
	orl	(%r15), %r13d
	xorl	%esi, %esi
	movl	%r13d, %edx
	callq	_nvkm_wo32
	movq	(%r14), %rdi
	movl	$4, %esi
	movl	%r12d, %edx
	callq	_nvkm_wo32
	movq	(%r14), %rdi
	movl	4(%r15), %edx
	orl	%ebx, %edx
	movl	$8, %esi
	callq	_nvkm_wo32
	movq	(%r14), %rdi
	orl	4(%r15), %ebx
	movl	$12, %esi
	movl	%ebx, %edx
	callq	_nvkm_wo32
	movq	(%r14), %rdi
	callq	_nvkm_done
	xorl	%eax, %eax
LBB0_5:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	%r14, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_nvkm_gpuobj_wrap               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_nv04_dmaobj_bind
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nv04_dmaobj_bind
_nv04_dmaobj_bind:                      ; @nv04_dmaobj_bind
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x3
	mov	x22, x2
	mov	x21, x1
	bl	_nv04_dmaobj
	mov	x20, x0
	ldp	x8, x9, [x0, #16]
	ldr	x23, [x8]
	ldp	w26, w27, [x0, #8]
	and	w25, w26, #0xfffff000
	cbz	x9, LBB0_3
; %bb.1:
	ldr	x8, [x23]
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	x24, [x8]
	cbz	w26, LBB0_6
; %bb.2:
	mov	x0, x24
	bl	_nvkm_kmap
	asr	w8, w25, #10
	add	w1, w8, #8
	mov	x0, x24
	bl	_nvkm_ro32
	and	w25, w0, #0xfffff000
	mov	x0, x24
	bl	_nvkm_done
LBB0_3:
	mov	x0, x23
	mov	w1, #16
	mov	x2, x22
	mov	w3, #0
	mov	x4, x21
	mov	x5, x19
	bl	_nvkm_gpuobj_new
	cbnz	w0, LBB0_5
; %bb.4:
	sub	w21, w27, w26
	ldr	x0, [x19]
	bl	_nvkm_kmap
	ldr	x0, [x19]
	ldr	w8, [x20]
	orr	w2, w8, w26, lsl #20
	mov	w1, #0
	bl	_nvkm_wo32
	ldr	x0, [x19]
	mov	w1, #4
	mov	x2, x21
	bl	_nvkm_wo32
	ldr	x0, [x19]
	ldr	w8, [x20, #4]
	orr	w2, w8, w25
	mov	w1, #8
	bl	_nvkm_wo32
	ldr	x0, [x19]
	ldr	w8, [x20, #4]
	orr	w2, w8, w25
	mov	w1, #12
	bl	_nvkm_wo32
	ldr	x0, [x19]
	bl	_nvkm_done
	mov	w0, #0
LBB0_5:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_6:
	mov	x0, x24
	mov	x1, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_nvkm_gpuobj_wrap
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_nv04_dmaobj_bind
.subsections_via_symbols
