	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vop_bind
_vop_bind:                              ## @vop_bind
	.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	%rdx, %r13
	movq	%rdi, %r12
	callq	_to_platform_device
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	callq	_of_device_get_match_data
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %rbx
	movq	_win@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	4(%rbx), %edx
	callq	_struct_size
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r15
	movq	%r12, 64(%rax)
	movq	%rbx, 24(%rax)
	movq	%r13, 8(%rax)
	movq	%r12, %rdi
	movq	%rax, %rsi
	callq	_dev_set_drvdata
	movq	%r15, %rdi
	callq	_vop_win_init
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	xorl	%edx, %edx
	callq	_platform_get_resource
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_resource_size
	movl	%eax, 56(%r15)
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_devm_ioremap_resource
	movl	%eax, 60(%r15)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_6
## %bb.18:
	movl	60(%r15), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_6:
	movl	56(%r15), %esi
	movl	(%r14), %edx
	movq	%r12, %rdi
	callq	_devm_kzalloc
	movq	%rax, 48(%r15)
	testq	%rax, %rax
	je	LBB0_4
## %bb.7:
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_platform_get_irq
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_8
## %bb.9:
	movl	%ebx, (%r15)
	leaq	40(%r15), %rdi
	callq	_spin_lock_init
	leaq	36(%r15), %rdi
	callq	_spin_lock_init
	leaq	32(%r15), %rdi
	callq	_mutex_init
	movq	%r15, %rdi
	callq	_vop_create_crtc
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_17
## %bb.10:
	movq	%r13, %rdi
	callq	_pm_runtime_enable
	movq	%r15, %rdi
	callq	_vop_initial
	testl	%eax, %eax
	js	LBB0_11
## %bb.12:
	movl	(%r15), %r14d
	movq	_vop_isr@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_IRQF_SHARED@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	%r12, %rdi
	callq	_dev_name
	movq	%r12, %rdi
	movl	%r14d, %esi
	movl	%ebx, %edx
	movl	%r13d, %ecx
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	movl	%eax, %r8d
	movq	%r15, %r9
	callq	_devm_request_irq
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_16
## %bb.13:
	movq	24(%r15), %rax
	movq	_VOP_FEATURE_INTERNAL_RGB@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	xorl	%ebx, %ebx
	testl	%ecx, (%rax)
	je	LBB0_17
## %bb.14:
	movq	%r15, %rsi
	addq	$16, %rsi
	movq	8(%r15), %rdx
	movq	%r12, %rdi
	callq	_rockchip_rgb_init
	movl	%eax, 4(%r15)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_17
## %bb.15:
	movl	4(%r15), %edi
	callq	_PTR_ERR
	movl	%eax, %ebx
	jmp	LBB0_16
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_17:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_DRM_DEV_ERROR
	jmp	LBB0_17
LBB0_11:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
	movq	%r13, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_DRM_DEV_ERROR
LBB0_16:
	movq	%r13, %rdi
	callq	_pm_runtime_disable
	movq	%r15, %rdi
	callq	_vop_destroy_crtc
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_win,4,2                        ## @win
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cannot find irq for vop\n"

L_.str.1:                               ## @.str.1
	.asciz	"cannot initial vop dev - err %d\n"

	.comm	_vop_isr,4,2                    ## @vop_isr
	.comm	_IRQF_SHARED,4,2                ## @IRQF_SHARED
	.comm	_VOP_FEATURE_INTERNAL_RGB,4,2   ## @VOP_FEATURE_INTERNAL_RGB
	.no_dead_strip	_vop_bind
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vop_bind
_vop_bind:                              ; @vop_bind
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x22, x2
	mov	x21, x0
	bl	_to_platform_device
	mov	x19, x0
	mov	x0, x21
	bl	_of_device_get_match_data
	cbz	x0, LBB0_4
; %bb.1:
	mov	x23, x0
Lloh0:
	adrp	x8, _win@GOTPAGE
Lloh1:
	ldr	x8, [x8, _win@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldr	w2, [x0, #4]
	bl	_struct_size
	mov	x1, x0
Lloh3:
	adrp	x24, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x24, [x24, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w2, [x24]
	mov	x0, x21
	bl	_devm_kzalloc
	cbz	x0, LBB0_13
; %bb.2:
	mov	x20, x0
	str	x21, [x0, #64]
	str	x23, [x0, #24]
	str	x22, [x0, #8]
	mov	x0, x21
	mov	x1, x20
	bl	_dev_set_drvdata
	mov	x0, x20
	bl	_vop_win_init
Lloh5:
	adrp	x8, _IORESOURCE_MEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IORESOURCE_MEM@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_platform_get_resource
	mov	x22, x0
	bl	_resource_size
	str	w0, [x20, #56]
	mov	x0, x21
	mov	x1, x22
	bl	_devm_ioremap_resource
	str	w0, [x20, #60]
	bl	_IS_ERR
	cbz	x0, LBB0_5
; %bb.3:
	ldr	w0, [x20, #60]
	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
	add	sp, sp, #80
	b	_PTR_ERR
LBB0_4:
Lloh8:
	adrp	x8, _ENODEV@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_14
LBB0_5:
	ldr	w1, [x20, #56]
	ldr	w2, [x24]
	mov	x0, x21
	bl	_devm_kzalloc
	str	x0, [x20, #48]
	cbz	x0, LBB0_13
; %bb.6:
	mov	x0, x19
	mov	w1, #0
	bl	_platform_get_irq
	mov	x22, x0
	tbnz	w0, #31, LBB0_16
; %bb.7:
	mov	x23, x20
	str	w22, [x23], #32
	add	x0, x20, #40
	bl	_spin_lock_init
	add	x0, x20, #36
	bl	_spin_lock_init
	mov	x0, x23
	bl	_mutex_init
	mov	x0, x20
	bl	_vop_create_crtc
	mov	x22, x0
	cbnz	w0, LBB0_15
; %bb.8:
	mov	x0, x19
	bl	_pm_runtime_enable
	mov	x0, x20
	bl	_vop_initial
	tbnz	w0, #31, LBB0_17
; %bb.9:
	ldr	w22, [x20]
Lloh10:
	adrp	x8, _vop_isr@GOTPAGE
Lloh11:
	ldr	x8, [x8, _vop_isr@GOTPAGEOFF]
Lloh12:
	ldr	w23, [x8]
Lloh13:
	adrp	x8, _IRQF_SHARED@GOTPAGE
Lloh14:
	ldr	x8, [x8, _IRQF_SHARED@GOTPAGEOFF]
Lloh15:
	ldr	w24, [x8]
	mov	x0, x21
	bl	_dev_name
	mov	x4, x0
	mov	x0, x21
	mov	x1, x22
	mov	x2, x23
	mov	x3, x24
	mov	x5, x20
	bl	_devm_request_irq
	mov	x22, x0
	cbnz	w0, LBB0_18
; %bb.10:
	ldr	x8, [x20, #24]
	ldr	w8, [x8]
Lloh16:
	adrp	x9, _VOP_FEATURE_INTERNAL_RGB@GOTPAGE
Lloh17:
	ldr	x9, [x9, _VOP_FEATURE_INTERNAL_RGB@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_19
; %bb.11:
	add	x1, x20, #16
	ldr	x2, [x20, #8]
	mov	x0, x21
	bl	_rockchip_rgb_init
	str	w0, [x20, #4]
	bl	_IS_ERR
	cbz	x0, LBB0_19
; %bb.12:
	ldr	w0, [x20, #4]
	bl	_PTR_ERR
	mov	x22, x0
	b	LBB0_18
LBB0_13:
Lloh19:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_14:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_15:
	mov	x0, x22
	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
	add	sp, sp, #80
	ret
LBB0_16:
Lloh21:
	adrp	x1, l_.str@PAGE
Lloh22:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_DRM_DEV_ERROR
	b	LBB0_15
LBB0_17:
	mov	x22, x0
	str	x22, [sp]
Lloh23:
	adrp	x1, l_.str.1@PAGE
Lloh24:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_DRM_DEV_ERROR
LBB0_18:
	mov	x0, x19
	bl	_pm_runtime_disable
	mov	x0, x20
	bl	_vop_destroy_crtc
	b	LBB0_15
LBB0_19:
	mov	w22, #0
	b	LBB0_15
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_win,4,2                        ; @win
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cannot find irq for vop\n"

l_.str.1:                               ; @.str.1
	.asciz	"cannot initial vop dev - err %d\n"

	.comm	_vop_isr,4,2                    ; @vop_isr
	.comm	_IRQF_SHARED,4,2                ; @IRQF_SHARED
	.comm	_VOP_FEATURE_INTERNAL_RGB,4,2   ; @VOP_FEATURE_INTERNAL_RGB
	.no_dead_strip	_vop_bind
.subsections_via_symbols
