	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nouveau_fbcon_output_poll_changed ## -- Begin function nouveau_fbcon_output_poll_changed
	.p2align	4, 0x90
_nouveau_fbcon_output_poll_changed:     ## @nouveau_fbcon_output_poll_changed
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	callq	_nouveau_drm
	movq	8(%rax), %rbx
	testq	%rbx, %rbx
	je	LBB0_8
## %bb.1:
	movq	%rax, %r12
	leaq	4(%rbx), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movl	(%r15), %edi
	callq	_pm_runtime_get
	cmpl	$1, %eax
	je	LBB0_3
## %bb.2:
	movq	_EACCES@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	%eax, %ecx
	jne	LBB0_4
LBB0_3:
	addq	$8, %rbx
	movq	%rbx, %rdi
	callq	_drm_fb_helper_hotplug_event
	movl	(%r15), %edi
	callq	_pm_runtime_mark_last_busy
	movl	(%r15), %edi
	callq	_pm_runtime_put_autosuspend
LBB0_7:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mutex_unlock                   ## TAILCALL
LBB0_8:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	callq	_DRM_WARN
	jmp	LBB0_7
LBB0_5:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_NV_DEBUG
	movl	$1, (%rbx)
	movq	(%r12), %rax
	movl	(%rax), %edi
	callq	_pm_runtime_put_noidle
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_EACCES,4,2                     ## @EACCES
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"fbcon HPD event deferred until runtime resume\n"

L_.str.1:                               ## @.str.1
	.asciz	"fbcon HPD event lost due to RPM failure: %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nouveau_fbcon_output_poll_changed ; -- Begin function nouveau_fbcon_output_poll_changed
	.p2align	2
_nouveau_fbcon_output_poll_changed:     ; @nouveau_fbcon_output_poll_changed
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x0
	bl	_nouveau_drm
	ldr	x22, [x0, #8]
	cbz	x22, LBB0_5
; %bb.1:
	mov	x21, x0
	add	x19, x22, #4
	mov	x0, x19
	bl	_mutex_lock
	ldr	w0, [x20]
	bl	_pm_runtime_get
	cmp	w0, #1
	b.eq	LBB0_3
; %bb.2:
	mov	x1, x0
Lloh0:
	adrp	x8, _EACCES@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EACCES@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmn	w0, w8
	b.ne	LBB0_6
LBB0_3:
	add	x0, x22, #8
	bl	_drm_fb_helper_hotplug_event
	ldr	w0, [x20]
	bl	_pm_runtime_mark_last_busy
	ldr	w0, [x20]
	bl	_pm_runtime_put_autosuspend
LBB0_4:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_mutex_unlock
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_6:
	cbz	w1, LBB0_8
; %bb.7:
Lloh3:
	adrp	x0, l_.str.1@PAGE
Lloh4:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DRM_WARN
	b	LBB0_4
LBB0_8:
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_NV_DEBUG
	mov	w8, #1
	str	w8, [x22]
	ldr	x8, [x21]
	ldr	w0, [x8]
	bl	_pm_runtime_put_noidle
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_EACCES,4,2                     ; @EACCES
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"fbcon HPD event deferred until runtime resume\n"

l_.str.1:                               ; @.str.1
	.asciz	"fbcon HPD event lost due to RPM failure: %d\n"

.subsections_via_symbols
