	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rockchip_dp_drm_encoder_disable
_rockchip_dp_drm_encoder_disable:       ## @rockchip_dp_drm_encoder_disable
	.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	%rsi, %r12
	movq	%rdi, %rbx
	callq	_to_dp
	movq	%rax, %r14
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_rockchip_dp_drm_get_new_crtc
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	%rax, %r15
	movq	%r12, %rdi
	movq	%rax, %rsi
	callq	_drm_atomic_get_new_crtc_state
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	cmpl	$0, (%rax)
	je	LBB0_4
## %bb.3:
	movq	_PSR_WAIT_LINE_FLAG_TIMEOUT_MS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_rockchip_drm_wait_vact_end
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DRM_DEV_ERROR                  ## TAILCALL
LBB0_4:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PSR_WAIT_LINE_FLAG_TIMEOUT_MS,4,2 ## @PSR_WAIT_LINE_FLAG_TIMEOUT_MS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"line flag irq timed out\n"

	.no_dead_strip	_rockchip_dp_drm_encoder_disable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rockchip_dp_drm_encoder_disable
_rockchip_dp_drm_encoder_disable:       ; @rockchip_dp_drm_encoder_disable
	.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	x21, x1
	mov	x20, x0
	bl	_to_dp
	mov	x19, x0
	mov	x0, x20
	mov	x1, x21
	bl	_rockchip_dp_drm_get_new_crtc
	cbz	x0, LBB0_5
; %bb.1:
	mov	x20, x0
	mov	x0, x21
	mov	x1, x20
	bl	_drm_atomic_get_new_crtc_state
	cbz	x0, LBB0_5
; %bb.2:
	ldr	w8, [x0]
	cbz	w8, LBB0_5
; %bb.3:
Lloh0:
	adrp	x8, _PSR_WAIT_LINE_FLAG_TIMEOUT_MS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PSR_WAIT_LINE_FLAG_TIMEOUT_MS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_rockchip_drm_wait_vact_end
	cbz	w0, LBB0_5
; %bb.4:
	ldr	w0, [x19]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	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	_DRM_DEV_ERROR
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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_PSR_WAIT_LINE_FLAG_TIMEOUT_MS,4,2 ; @PSR_WAIT_LINE_FLAG_TIMEOUT_MS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"line flag irq timed out\n"

	.no_dead_strip	_rockchip_dp_drm_encoder_disable
.subsections_via_symbols
