	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nv50_msto_payload
_nv50_msto_payload:                     ## @nv50_msto_payload
	.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	%rdi, %rbx
	movl	4(%rdi), %edi
	callq	_nouveau_drm
	movq	%rax, %r15
	movq	8(%rbx), %rax
	movq	(%rax), %rcx
	movq	8(%rax), %r13
	movl	(%rcx), %r14d
	leaq	16(%r13), %rdi
	callq	_mutex_is_locked
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_WARN_ON
	movl	(%rbx), %edx
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	movl	%r14d, %ecx
	xorl	%eax, %eax
	callq	_NV_ATOMIC
	cmpl	$0, (%r13)
	jle	LBB0_9
## %bb.1:
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	movl	$8, %r14d
	leaq	L_.str.1(%rip), %r12
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r13), %rax
	movq	24(%r13), %rcx
	movl	(%rcx), %edx
	movl	(%rax,%r14), %r9d
	movl	-8(%rax,%r14), %r8d
	movl	-4(%rax,%r14), %eax
	movl	%eax, (%rsp)
	movq	%r15, %rdi
	movq	%r12, %rsi
	movl	%ebx, %ecx
	xorl	%eax, %eax
	callq	_NV_ATOMIC
	incq	%rbx
	movslq	(%r13), %rax
	addq	$12, %r14
	cmpq	%rax, %rbx
	jl	LBB0_2
## %bb.3:
	movl	%eax, %eax
	testl	%eax, %eax
	jle	LBB0_8
## %bb.4:
	movq	8(%r13), %rbx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%ecx, (%rbx)
	je	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	addq	$12, %rbx
	decq	%rax
	jne	LBB0_5
LBB0_8:
	xorl	%ebx, %ebx
LBB0_9:
	movq	%rbx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: vcpi %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"%s: %d: vcpi %d start 0x%02x slots 0x%02x\n"

	.no_dead_strip	_nv50_msto_payload
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nv50_msto_payload
_nv50_msto_payload:                     ; @nv50_msto_payload
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x21, x0
	ldr	w0, [x0, #4]
	bl	_nouveau_drm
	mov	x20, x0
	ldr	x8, [x21, #8]
	ldp	x8, x23, [x8]
	ldr	w19, [x8]
	add	x0, x23, #16
	bl	_mutex_is_locked
	cmp	w0, #0
	cset	w0, eq
	bl	_WARN_ON
	ldr	w2, [x21]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x3, x19
	bl	_NV_ATOMIC
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.1:
	mov	x24, #0
	mov	x21, #0
Lloh2:
	adrp	x22, l_.str.1@PAGE
Lloh3:
	add	x22, x22, l_.str.1@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x23, #8]
	ldr	x9, [x23, #24]
	ldr	w2, [x9]
	add	x8, x8, x24
	ldr	w10, [x8]
	ldp	w8, w9, [x8, #4]
	stp	x9, x8, [sp, #8]
	str	x10, [sp]
	mov	x0, x20
	mov	x1, x22
	mov	x3, x21
	bl	_NV_ATOMIC
	add	x21, x21, #1
	ldrsw	x8, [x23]
	add	x24, x24, #12
	cmp	x21, x8
	b.lt	LBB0_2
; %bb.3:
	and	x8, x8, #0xffffffff
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.4:
	ldr	x0, [x23, #8]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x0]
	cmp	w9, w19
	b.eq	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x0, x0, #12
	subs	x8, x8, #1
	b.ne	LBB0_5
LBB0_7:
	mov	x0, #0
LBB0_8:
	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
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: vcpi %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"%s: %d: vcpi %d start 0x%02x slots 0x%02x\n"

	.no_dead_strip	_nv50_msto_payload
.subsections_via_symbols
