	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nv50_outp_atomic_check_view
_nv50_outp_atomic_check_view:           ## @nv50_outp_atomic_check_view
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r12
	movq	%rsi, %r13
	movq	%rdi, %rbx
	movq	(%rdx), %r14
	movq	%rdx, %rdi
	callq	_nouveau_conn_atom
	movq	%rax, %r15
	movl	4(%rbx), %edi
	callq	_nouveau_drm
	movl	(%rbx), %edx
	leaq	L_.str(%rip), %rsi
	movq	%rax, %rdi
	callq	_NV_ATOMIC
	movl	$0, (%r15)
	testq	%r12, %r12
	je	LBB0_10
## %bb.1:
	leaq	16(%r13), %rbx
	movq	8(%r15), %rax
	movq	_DRM_MODE_SCALE_NONE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movq	%r13, %rcx
	jne	LBB0_7
## %bb.2:
	leaq	4(%rcx), %r13
	movl	(%r14), %eax
	andl	$-2, %eax
	cmpl	$128, %eax
	jne	LBB0_8
## %bb.3:
	movl	24(%rcx), %eax
	cmpl	8(%r12), %eax
	jne	LBB0_6
## %bb.4:
	movl	20(%rcx), %eax
	cmpl	4(%r12), %eax
	jne	LBB0_6
## %bb.5:
	movq	_DRM_MODE_TYPE_DRIVER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	jne	LBB0_8
LBB0_6:
	movl	$1, (%r15)
LBB0_7:
	movq	%r12, %r13
LBB0_8:
	movq	%rbx, %rdi
	movq	%rcx, %r14
	movq	%r13, %rsi
	callq	_drm_mode_equal
	testl	%eax, %eax
	jne	LBB0_10
## %bb.9:
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_drm_mode_copy
	movl	$1, (%r14)
LBB0_10:
	xorl	%eax, %eax
	addq	$8, %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 atomic_check\n"

	.comm	_DRM_MODE_SCALE_NONE,8,3        ## @DRM_MODE_SCALE_NONE
	.comm	_DRM_MODE_TYPE_DRIVER,4,2       ## @DRM_MODE_TYPE_DRIVER
	.no_dead_strip	_nv50_outp_atomic_check_view
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nv50_outp_atomic_check_view
_nv50_outp_atomic_check_view:           ; @nv50_outp_atomic_check_view
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x20, x3
	mov	x19, x1
	mov	x22, x0
	ldr	x24, [x2]
	mov	x0, x2
	bl	_nouveau_conn_atom
	mov	x21, x0
	ldr	w0, [x22, #4]
	bl	_nouveau_drm
	ldr	w2, [x22]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_NV_ATOMIC
	str	wzr, [x21]
	cbz	x20, LBB0_10
; %bb.1:
	add	x22, x19, #16
	ldr	x8, [x21, #8]
Lloh2:
	adrp	x9, _DRM_MODE_SCALE_NONE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _DRM_MODE_SCALE_NONE@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.2:
	add	x23, x19, #4
	ldr	w8, [x24]
	and	w8, w8, #0xfffffffe
	cmp	w8, #128
	b.ne	LBB0_8
; %bb.3:
	ldr	w8, [x19, #24]
	ldr	w9, [x20, #8]
	cmp	w8, w9
	b.ne	LBB0_6
; %bb.4:
	ldr	w8, [x19, #20]
	ldr	w9, [x20, #4]
	cmp	w8, w9
	b.ne	LBB0_6
; %bb.5:
	ldr	w8, [x22]
Lloh5:
	adrp	x9, _DRM_MODE_TYPE_DRIVER@GOTPAGE
Lloh6:
	ldr	x9, [x9, _DRM_MODE_TYPE_DRIVER@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_8
LBB0_6:
	mov	w8, #1
	str	w8, [x21]
LBB0_7:
	mov	x23, x20
LBB0_8:
	mov	x0, x22
	mov	x1, x23
	bl	_drm_mode_equal
	cbnz	w0, LBB0_10
; %bb.9:
	mov	x0, x22
	mov	x1, x23
	bl	_drm_mode_copy
	mov	w8, #1
	str	w8, [x19]
LBB0_10:
	mov	w0, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s atomic_check\n"

	.comm	_DRM_MODE_SCALE_NONE,8,3        ; @DRM_MODE_SCALE_NONE
	.comm	_DRM_MODE_TYPE_DRIVER,4,2       ; @DRM_MODE_TYPE_DRIVER
	.no_dead_strip	_nv50_outp_atomic_check_view
.subsections_via_symbols
