	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nv50_dma_push                  ## -- Begin function nv50_dma_push
	.p2align	4, 0x90
_nv50_dma_push:                         ## @nv50_dma_push
	.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
	movl	%edx, %r12d
	movl	%esi, %r13d
	movq	%rdi, %rbx
	movq	32(%rdi), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	24(%rdi), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	(%rdi), %r14d
	movl	4(%rdi), %r15d
	leal	(%r15,%r14,2), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	xorl	%edi, %edi
	cmpl	$0, 8(%rbx)
	setle	%dil
	callq	_BUG_ON
	leal	(%r15,%r14,2), %r15d
	incl	%r15d
	movl	%r13d, %edi
	callq	_lower_32_bits
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	%eax, %edx
	callq	_nouveau_bo_wr32
	movl	%r13d, %edi
	callq	_upper_32_bits
	shll	$8, %r12d
	orl	%eax, %r12d
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%r12d, %edx
	callq	_nouveau_bo_wr32
	movl	(%rbx), %eax
	incl	%eax
	andl	12(%rbx), %eax
	movl	%eax, (%rbx)
	xorl	%eax, %eax
	callq	_mb
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_nouveau_bo_rd32
	leaq	20(%rbx), %rdi
	movl	(%rbx), %edx
	movl	$140, %esi
	callq	_nvif_wr32
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movl	16(%rbx), %esi
	callq	*%rax
LBB0_3:
	decl	8(%rbx)
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nv50_dma_push                  ; -- Begin function nv50_dma_push
	.p2align	2
_nv50_dma_push:                         ; @nv50_dma_push
	.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	x21, x2
	mov	x22, x1
	mov	x19, x0
	ldp	x23, x20, [x0, #24]
	ldp	w8, w9, [x0]
	add	w24, w9, w8, lsl #1
	ldr	w8, [x0, #8]
	cmp	w8, #1
	cset	w0, lt
	bl	_BUG_ON
	add	w25, w24, #1
	mov	x0, x22
	bl	_lower_32_bits
	mov	x2, x0
	mov	x0, x23
	mov	x1, x24
	bl	_nouveau_bo_wr32
	mov	x0, x22
	bl	_upper_32_bits
	orr	w2, w0, w21, lsl #8
	mov	x0, x23
	mov	x1, x25
	bl	_nouveau_bo_wr32
	ldr	w8, [x19]
	add	w8, w8, #1
	ldr	w9, [x19, #12]
	and	w8, w8, w9
	str	w8, [x19]
	bl	_mb
	mov	x0, x23
	mov	w1, #0
	bl	_nouveau_bo_rd32
	add	x0, x19, #20
	ldr	w2, [x19]
	mov	w1, #140
	bl	_nvif_wr32
	ldr	x8, [x20]
	cbz	x8, LBB0_3
; %bb.1:
	ldr	x8, [x8]
	cbz	x8, LBB0_3
; %bb.2:
	ldr	w1, [x19, #16]
	mov	x0, x20
	blr	x8
LBB0_3:
	ldr	w8, [x19, #8]
	sub	w8, w8, #1
	str	w8, [x19, #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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
