	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nv50_msto_atomic_check
_nv50_msto_atomic_check:                ## @nv50_msto_atomic_check
	.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	%rsi, %rbx
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	24(%rsi), %r13
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	(%rdx), %r14
	movq	%r14, %rdi
	callq	_nv50_mstc
	movq	%rax, %r12
	movq	8(%rax), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_nv50_head_atom
	movq	%rax, %r15
	cmpq	$0, 16(%rbx)
	jne	LBB0_2
## %bb.1:
	cmpq	$0, 8(%rbx)
	je	LBB0_7
LBB0_2:
	cmpl	$0, (%r13)
	je	LBB0_4
## %bb.3:
	movl	4(%r15), %ecx
	jmp	LBB0_5
LBB0_4:
	movl	(%r14), %eax
	leal	(%rax,%rax,2), %esi
	movl	(%rbx), %edi
	callq	_drm_dp_calc_pbn_mode
	movl	%eax, %ecx
	movl	%eax, 4(%r15)
LBB0_5:
	movl	4(%r12), %edx
	movq	%r13, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_drm_dp_atomic_find_vcpi_slots
	testl	%eax, %eax
	js	LBB0_8
## %bb.6:
	movl	%eax, (%r15)
LBB0_7:
	movl	(%r12), %ecx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_nv50_outp_atomic_check_view    ## TAILCALL
LBB0_8:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_nv50_msto_atomic_check
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nv50_msto_atomic_check
_nv50_msto_atomic_check:                ; @nv50_msto_atomic_check
	.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	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldr	x23, [x1, #24]
	ldr	x26, [x2]
	mov	x0, x26
	bl	_nv50_mstc
	mov	x22, x0
	ldr	x25, [x0, #8]
	mov	x0, x20
	bl	_nv50_head_atom
	mov	x24, x0
	ldr	x8, [x20, #16]
	cbnz	x8, LBB0_2
; %bb.1:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_7
LBB0_2:
	ldr	w8, [x23]
	cbz	w8, LBB0_4
; %bb.3:
	ldr	w3, [x24, #4]
	b	LBB0_5
LBB0_4:
	ldr	w8, [x26]
	add	w1, w8, w8, lsl #1
	ldr	w0, [x20]
	bl	_drm_dp_calc_pbn_mode
	mov	x3, x0
	str	w0, [x24, #4]
LBB0_5:
	ldr	w2, [x22, #4]
	mov	x0, x23
	mov	x1, x25
	bl	_drm_dp_atomic_find_vcpi_slots
	tbnz	w0, #31, LBB0_8
; %bb.6:
	str	w0, [x24]
LBB0_7:
	ldr	w3, [x22]
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	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
	b	_nv50_outp_atomic_check_view
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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_nv50_msto_atomic_check
.subsections_via_symbols
