	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vop_enable
_vop_enable:                            ## @vop_enable
	.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	%rsi, %r12
	movq	%rdi, %r14
	callq	_to_vop
	movq	%rax, %r15
	movq	%rax, %r13
	movl	8(%rax), %edi
	callq	_pm_runtime_get_sync
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movq	%r13, %rdi
	callq	_vop_core_clks_enable
	movl	%eax, %ebx
	movl	%eax, %edi
	shrl	$31, %edi
	callq	_WARN_ON
	testq	%rax, %rax
	jne	LBB0_7
## %bb.3:
	movl	12(%r13), %edi
	callq	_clk_enable
	movl	%eax, %ebx
	movl	%eax, %edi
	shrl	$31, %edi
	callq	_WARN_ON
	testq	%rax, %rax
	jne	LBB0_6
## %bb.4:
	movl	8(%r13), %esi
	movl	56(%r13), %edi
	callq	_rockchip_drm_dma_attach_device
	testl	%eax, %eax
	je	LBB0_8
## %bb.5:
	movl	%eax, %ebx
	movl	8(%r13), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %edx
	callq	_DRM_DEV_ERROR
	movl	12(%r13), %edi
	callq	_clk_disable
LBB0_6:
	movq	%r13, %rdi
	callq	_vop_core_clks_disable
LBB0_7:
	movl	8(%r13), %edi
	callq	_pm_runtime_put_sync
	jmp	LBB0_17
LBB0_1:
	movl	%eax, %ebx
	movl	8(%r13), %edi
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	callq	_DRM_DEV_ERROR
LBB0_17:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	addq	$16, %r15
	movq	%r15, %rdi
	callq	_spin_lock
	cmpl	$0, (%r13)
	jle	LBB0_11
## %bb.9:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	48(%r13), %rax
	movl	(%rax,%rbx), %edi
	movq	40(%r13), %rsi
	addq	%rbx, %rsi
	callq	_writel_relaxed
	addq	$4, %rbx
	cmpl	%ebx, (%r13)
	jg	LBB0_10
LBB0_11:
	testq	%r12, %r12
	je	LBB0_13
## %bb.12:
	cmpl	$0, (%r12)
	jne	LBB0_16
LBB0_13:
	movq	32(%r13), %rax
	cmpl	$0, (%rax)
	jle	LBB0_16
## %bb.14:
	xorl	%r12d, %r12d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movq	24(%r13), %rsi
	addq	%r12, %rsi
	movq	%r13, %rdi
	callq	_vop_win_disable
	incq	%rbx
	movq	32(%r13), %rax
	movslq	(%rax), %rax
	addq	$4, %r12
	cmpq	%rax, %rbx
	jl	LBB0_15
LBB0_16:
	movq	%r15, %rdi
	callq	_spin_unlock
	movq	%r13, %rdi
	callq	_vop_cfg_done
	movl	$1, 4(%r13)
	movq	%r15, %rdi
	callq	_spin_lock
	movq	_common@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_standby@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	movl	$1, %ecx
	callq	_VOP_REG_SET
	movq	%r15, %rdi
	callq	_spin_unlock
	movq	%r14, %rdi
	callq	_drm_crtc_vblank_on
	xorl	%ebx, %ebx
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to get pm runtime: %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"failed to attach dma mapping, %d\n"

	.comm	_common,4,2                     ## @common
	.comm	_standby,4,2                    ## @standby
	.no_dead_strip	_vop_enable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vop_enable
_vop_enable:                            ; @vop_enable
	.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	x22, x1
	mov	x20, x0
	bl	_to_vop
	mov	x19, x0
	ldr	w0, [x0, #8]
	bl	_pm_runtime_get_sync
	tbnz	w0, #31, LBB0_7
; %bb.1:
	mov	x0, x19
	bl	_vop_core_clks_enable
	mov	x21, x0
	lsr	w0, w0, #31
	bl	_WARN_ON
	cbnz	x0, LBB0_6
; %bb.2:
	ldr	w0, [x19, #12]
	bl	_clk_enable
	mov	x21, x0
	lsr	w0, w0, #31
	bl	_WARN_ON
	cbnz	x0, LBB0_5
; %bb.3:
	ldr	w0, [x19, #56]
	ldr	w1, [x19, #8]
	bl	_rockchip_drm_dma_attach_device
	cbz	w0, LBB0_9
; %bb.4:
	mov	x21, x0
	ldr	w0, [x19, #8]
Lloh0:
	adrp	x1, l_.str.1@PAGE
Lloh1:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x21
	bl	_DRM_DEV_ERROR
	ldr	w0, [x19, #12]
	bl	_clk_disable
LBB0_5:
	mov	x0, x19
	bl	_vop_core_clks_disable
LBB0_6:
	ldr	w0, [x19, #8]
	bl	_pm_runtime_put_sync
	b	LBB0_8
LBB0_7:
	mov	x21, x0
	ldr	w0, [x19, #8]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x21
	bl	_DRM_DEV_ERROR
LBB0_8:
	mov	x0, x21
	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
LBB0_9:
	add	x21, x19, #16
	mov	x0, x21
	bl	_spin_lock
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.10:
	mov	x23, #0
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldp	x9, x8, [x19, #40]
	ldr	w0, [x8, x23]
	add	x1, x23, x9
	bl	_writel_relaxed
	add	x23, x23, #4
	ldr	w8, [x19]
	cmp	w8, w23
	b.gt	LBB0_11
LBB0_12:
	cbz	x22, LBB0_14
; %bb.13:
	ldr	w8, [x22]
	cbnz	w8, LBB0_17
LBB0_14:
	ldr	x8, [x19, #32]
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_17
; %bb.15:
	mov	x22, #0
	mov	x23, #0
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #24]
	add	x1, x8, x22
	mov	x0, x19
	bl	_vop_win_disable
	add	x23, x23, #1
	ldr	x8, [x19, #32]
	ldrsw	x8, [x8]
	add	x22, x22, #4
	cmp	x23, x8
	b.lt	LBB0_16
LBB0_17:
	mov	x0, x21
	bl	_spin_unlock
	mov	x0, x19
	bl	_vop_cfg_done
	mov	w8, #1
	str	w8, [x19, #4]
	mov	x0, x21
	bl	_spin_lock
Lloh4:
	adrp	x8, _common@GOTPAGE
Lloh5:
	ldr	x8, [x8, _common@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
Lloh7:
	adrp	x8, _standby@GOTPAGE
Lloh8:
	ldr	x8, [x8, _standby@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w3, #1
	bl	_VOP_REG_SET
	mov	x0, x21
	bl	_spin_unlock
	mov	x0, x20
	bl	_drm_crtc_vblank_on
	mov	w21, #0
	b	LBB0_8
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to get pm runtime: %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"failed to attach dma mapping, %d\n"

	.comm	_common,4,2                     ; @common
	.comm	_standby,4,2                    ; @standby
	.no_dead_strip	_vop_enable
.subsections_via_symbols
