	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rk3066_hdmi_register
_rk3066_hdmi_register:                  ## @rk3066_hdmi_register
	.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, %rbx
	movq	%rdi, %r14
	movq	8(%rsi), %rax
	movl	(%rax), %esi
	callq	_drm_of_find_possible_crtcs
	movq	%rax, 16(%rbx)
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	leaq	16(%rbx), %r15
	movq	_rk3066_hdmi_encoder_helper_funcs@GOTPCREL(%rip), %rsi
	movq	%r15, %rdi
	callq	_drm_encoder_helper_add
	movq	_DRM_MODE_ENCODER_TMDS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_rk3066_hdmi_encoder_funcs@GOTPCREL(%rip), %rdx
	xorl	%r12d, %r12d
	movq	%r14, %rdi
	movq	%r15, %rsi
	xorl	%r8d, %r8d
	callq	_drm_encoder_init
	movq	_DRM_CONNECTOR_POLL_HPD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	movq	_rk3066_hdmi_connector_helper_funcs@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	callq	_drm_connector_helper_add
	movq	_DRM_MODE_CONNECTOR_HDMIA@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_rk3066_hdmi_connector_funcs@GOTPCREL(%rip), %rdx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_drm_connector_init
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_drm_connector_attach_encoder
	jmp	LBB0_3
LBB0_1:
	movq	_EPROBE_DEFER@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
LBB0_3:
	movl	%r12d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EPROBE_DEFER,4,2               ## @EPROBE_DEFER
	.comm	_rk3066_hdmi_encoder_helper_funcs,4,2 ## @rk3066_hdmi_encoder_helper_funcs
	.comm	_rk3066_hdmi_encoder_funcs,4,2  ## @rk3066_hdmi_encoder_funcs
	.comm	_DRM_MODE_ENCODER_TMDS,4,2      ## @DRM_MODE_ENCODER_TMDS
	.comm	_DRM_CONNECTOR_POLL_HPD,4,2     ## @DRM_CONNECTOR_POLL_HPD
	.comm	_rk3066_hdmi_connector_helper_funcs,4,2 ## @rk3066_hdmi_connector_helper_funcs
	.comm	_rk3066_hdmi_connector_funcs,4,2 ## @rk3066_hdmi_connector_funcs
	.comm	_DRM_MODE_CONNECTOR_HDMIA,4,2   ## @DRM_MODE_CONNECTOR_HDMIA
	.no_dead_strip	_rk3066_hdmi_register
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rk3066_hdmi_register
_rk3066_hdmi_register:                  ; @rk3066_hdmi_register
	.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	x19, x1
	mov	x20, x0
	ldr	x8, [x1, #8]
	ldr	w1, [x8]
	bl	_drm_of_find_possible_crtcs
	mov	x21, x19
	str	x0, [x21, #16]!
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x1, _rk3066_hdmi_encoder_helper_funcs@GOTPAGE
Lloh1:
	ldr	x1, [x1, _rk3066_hdmi_encoder_helper_funcs@GOTPAGEOFF]
	mov	x0, x21
	bl	_drm_encoder_helper_add
Lloh2:
	adrp	x8, _DRM_MODE_ENCODER_TMDS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DRM_MODE_ENCODER_TMDS@GOTPAGEOFF]
Lloh4:
	ldr	w3, [x8]
Lloh5:
	adrp	x2, _rk3066_hdmi_encoder_funcs@GOTPAGE
Lloh6:
	ldr	x2, [x2, _rk3066_hdmi_encoder_funcs@GOTPAGEOFF]
	mov	x0, x20
	mov	x1, x21
	mov	x4, #0
	bl	_drm_encoder_init
Lloh7:
	adrp	x8, _DRM_CONNECTOR_POLL_HPD@GOTPAGE
Lloh8:
	ldr	x8, [x8, _DRM_CONNECTOR_POLL_HPD@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	str	w8, [x19]
Lloh10:
	adrp	x1, _rk3066_hdmi_connector_helper_funcs@GOTPAGE
Lloh11:
	ldr	x1, [x1, _rk3066_hdmi_connector_helper_funcs@GOTPAGEOFF]
	mov	x0, x19
	bl	_drm_connector_helper_add
Lloh12:
	adrp	x8, _DRM_MODE_CONNECTOR_HDMIA@GOTPAGE
Lloh13:
	ldr	x8, [x8, _DRM_MODE_CONNECTOR_HDMIA@GOTPAGEOFF]
Lloh14:
	ldr	w3, [x8]
Lloh15:
	adrp	x2, _rk3066_hdmi_connector_funcs@GOTPAGE
Lloh16:
	ldr	x2, [x2, _rk3066_hdmi_connector_funcs@GOTPAGEOFF]
	mov	x0, x20
	mov	x1, x19
	bl	_drm_connector_init
	mov	x0, x19
	mov	x1, x21
	bl	_drm_connector_attach_encoder
	mov	w0, #0
	b	LBB0_3
LBB0_2:
Lloh17:
	adrp	x8, _EPROBE_DEFER@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EPROBE_DEFER@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	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 AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_EPROBE_DEFER,4,2               ; @EPROBE_DEFER
	.comm	_rk3066_hdmi_encoder_helper_funcs,4,2 ; @rk3066_hdmi_encoder_helper_funcs
	.comm	_rk3066_hdmi_encoder_funcs,4,2  ; @rk3066_hdmi_encoder_funcs
	.comm	_DRM_MODE_ENCODER_TMDS,4,2      ; @DRM_MODE_ENCODER_TMDS
	.comm	_DRM_CONNECTOR_POLL_HPD,4,2     ; @DRM_CONNECTOR_POLL_HPD
	.comm	_rk3066_hdmi_connector_helper_funcs,4,2 ; @rk3066_hdmi_connector_helper_funcs
	.comm	_rk3066_hdmi_connector_funcs,4,2 ; @rk3066_hdmi_connector_funcs
	.comm	_DRM_MODE_CONNECTOR_HDMIA,4,2   ; @DRM_MODE_CONNECTOR_HDMIA
	.no_dead_strip	_rk3066_hdmi_register
.subsections_via_symbols
