	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dw_hdmi_rockchip_bind
_dw_hdmi_rockchip_bind:                 ## @dw_hdmi_rockchip_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, %rbx
	movq	%rdi, %r15
	callq	_to_platform_device
	cmpl	$0, (%rax)
	je	LBB0_8
## %bb.1:
	movq	%rax, %r12
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	movq	%rax, %rdi
	movl	$40, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_7
## %bb.2:
	movq	%rax, %r14
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	_dw_hdmi_rockchip_dt_ids@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r12), %esi
	callq	_of_match_node
	movl	(%rax), %esi
	movl	(%r13), %ecx
	movq	%r12, %rdi
	movl	$8, %edx
	callq	_devm_kmemdup
	testq	%rax, %rax
	je	LBB0_7
## %bb.3:
	movq	%rax, %r13
	movq	%r12, 8(%r14)
	movq	(%rax), %rax
	movq	%rax, 32(%r14)
	movq	%r14, (%r13)
	movl	(%r15), %esi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_drm_of_find_possible_crtcs
	movq	%rax, 24(%r14)
	testq	%rax, %rax
	je	LBB0_12
## %bb.4:
	movq	%r14, %rdi
	callq	_rockchip_hdmi_parse_dt
	testl	%eax, %eax
	je	LBB0_13
## %bb.5:
	movl	%eax, %ebx
	movq	8(%r14), %rdi
	leaq	L_.str(%rip), %rsi
LBB0_6:
	xorl	%eax, %eax
	callq	_DRM_DEV_ERROR
	jmp	LBB0_10
LBB0_7:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_8:
	movq	_ENODEV@GOTPCREL(%rip), %rax
LBB0_9:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_10:
	movl	%ebx, %eax
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movq	_EPROBE_DEFER@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_13:
	movl	(%r14), %edi
	callq	_clk_prepare_enable
	testl	%eax, %eax
	je	LBB0_16
## %bb.14:
	movl	%eax, %ebx
	movq	8(%r14), %rdi
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_DRM_DEV_ERROR
	jmp	LBB0_10
LBB0_16:
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	callq	_devm_phy_optional_get
	movl	%eax, 16(%r14)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_19
## %bb.17:
	movl	16(%r14), %edi
	callq	_PTR_ERR
	movl	%eax, %ebx
	movq	_EPROBE_DEFER@GOTPCREL(%rip), %rax
	movl	%ebx, %ecx
	addl	(%rax), %ecx
	je	LBB0_10
## %bb.18:
	movq	8(%r14), %rdi
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_6
LBB0_19:
	movq	%r14, %r15
	addq	$24, %r15
	movq	_dw_hdmi_rockchip_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	_dw_hdmi_rockchip_encoder_funcs@GOTPCREL(%rip), %rdx
	xorl	%ebx, %ebx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	xorl	%r8d, %r8d
	callq	_drm_encoder_init
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_platform_set_drvdata
	movq	%r12, %rdi
	movq	%r15, %rsi
	movq	%r13, %rdx
	callq	_dw_hdmi_bind
	movl	%eax, 4(%r14)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_10
## %bb.20:
	movl	4(%r14), %edi
	callq	_PTR_ERR
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_drm_encoder_cleanup
	movl	(%r14), %edi
	callq	_clk_disable_unprepare
	movl	%ebx, %eax
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_dw_hdmi_rockchip_dt_ids,4,2    ## @dw_hdmi_rockchip_dt_ids
	.comm	_EPROBE_DEFER,4,2               ## @EPROBE_DEFER
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unable to parse OF data\n"

L_.str.1:                               ## @.str.1
	.asciz	"Failed to enable HDMI vpll: %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"hdmi"

L_.str.3:                               ## @.str.3
	.asciz	"failed to get phy\n"

	.comm	_dw_hdmi_rockchip_encoder_helper_funcs,4,2 ## @dw_hdmi_rockchip_encoder_helper_funcs
	.comm	_dw_hdmi_rockchip_encoder_funcs,4,2 ## @dw_hdmi_rockchip_encoder_funcs
	.comm	_DRM_MODE_ENCODER_TMDS,4,2      ## @DRM_MODE_ENCODER_TMDS
	.no_dead_strip	_dw_hdmi_rockchip_bind
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dw_hdmi_rockchip_bind
_dw_hdmi_rockchip_bind:                 ; @dw_hdmi_rockchip_bind
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x2
	mov	x22, x0
	bl	_to_platform_device
	ldr	w8, [x0]
	cbz	w8, LBB0_7
; %bb.1:
	mov	x20, x0
Lloh0:
	adrp	x23, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x23, [x23, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w2, [x23]
	mov	w1, #40
	bl	_devm_kzalloc
	cbz	x0, LBB0_6
; %bb.2:
	mov	x19, x0
Lloh2:
	adrp	x8, _dw_hdmi_rockchip_dt_ids@GOTPAGE
Lloh3:
	ldr	x8, [x8, _dw_hdmi_rockchip_dt_ids@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	ldr	w1, [x20]
	bl	_of_match_node
	ldr	w1, [x0]
	ldr	w3, [x23]
	mov	x0, x20
	mov	w2, #8
	bl	_devm_kmemdup
	cbz	x0, LBB0_6
; %bb.3:
	mov	x24, x0
	str	x20, [x19, #8]
	ldr	x8, [x0]
	str	x8, [x19, #32]
	str	x19, [x0]
	ldr	w1, [x22]
	mov	x0, x21
	bl	_drm_of_find_possible_crtcs
	mov	x23, x19
	str	x0, [x23, #24]!
	cbz	x0, LBB0_11
; %bb.4:
	mov	x0, x19
	bl	_rockchip_hdmi_parse_dt
	cbz	w0, LBB0_12
; %bb.5:
	mov	x25, x0
	ldr	x0, [x19, #8]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_DRM_DEV_ERROR
	b	LBB0_9
LBB0_6:
Lloh7:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
Lloh9:
	adrp	x8, _ENODEV@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	neg	w25, w8
LBB0_9:
	mov	x0, x25
LBB0_10:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_11:
Lloh11:
	adrp	x8, _EPROBE_DEFER@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EPROBE_DEFER@GOTPAGEOFF]
	b	LBB0_8
LBB0_12:
	ldr	w0, [x19]
	bl	_clk_prepare_enable
	cbz	w0, LBB0_14
; %bb.13:
	mov	x25, x0
	ldr	x0, [x19, #8]
	str	x25, [sp]
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_DRM_DEV_ERROR
	b	LBB0_9
LBB0_14:
Lloh15:
	adrp	x1, l_.str.2@PAGE
Lloh16:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x22
	bl	_devm_phy_optional_get
	str	w0, [x19, #16]
	bl	_IS_ERR
	cbz	x0, LBB0_17
; %bb.15:
	ldr	w0, [x19, #16]
	bl	_PTR_ERR
	mov	x25, x0
Lloh17:
	adrp	x8, _EPROBE_DEFER@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EPROBE_DEFER@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	cmn	w0, w8
	b.eq	LBB0_9
; %bb.16:
	ldr	x0, [x19, #8]
Lloh20:
	adrp	x1, l_.str.3@PAGE
Lloh21:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_DRM_DEV_ERROR
	b	LBB0_9
LBB0_17:
Lloh22:
	adrp	x1, _dw_hdmi_rockchip_encoder_helper_funcs@GOTPAGE
Lloh23:
	ldr	x1, [x1, _dw_hdmi_rockchip_encoder_helper_funcs@GOTPAGEOFF]
	mov	x0, x23
	bl	_drm_encoder_helper_add
Lloh24:
	adrp	x8, _DRM_MODE_ENCODER_TMDS@GOTPAGE
Lloh25:
	ldr	x8, [x8, _DRM_MODE_ENCODER_TMDS@GOTPAGEOFF]
Lloh26:
	ldr	w3, [x8]
Lloh27:
	adrp	x2, _dw_hdmi_rockchip_encoder_funcs@GOTPAGE
Lloh28:
	ldr	x2, [x2, _dw_hdmi_rockchip_encoder_funcs@GOTPAGEOFF]
	mov	x0, x21
	mov	x1, x23
	mov	x4, #0
	bl	_drm_encoder_init
	mov	x0, x20
	mov	x1, x19
	bl	_platform_set_drvdata
	mov	x0, x20
	mov	x1, x23
	mov	x2, x24
	bl	_dw_hdmi_bind
	str	w0, [x19, #4]
	bl	_IS_ERR
	cbz	x0, LBB0_19
; %bb.18:
	ldr	w0, [x19, #4]
	bl	_PTR_ERR
	mov	x20, x0
	mov	x0, x23
	bl	_drm_encoder_cleanup
	ldr	w0, [x19]
	bl	_clk_disable_unprepare
	mov	x0, x20
	b	LBB0_10
LBB0_19:
	mov	w25, #0
	b	LBB0_9
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_dw_hdmi_rockchip_dt_ids,4,2    ; @dw_hdmi_rockchip_dt_ids
	.comm	_EPROBE_DEFER,4,2               ; @EPROBE_DEFER
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unable to parse OF data\n"

l_.str.1:                               ; @.str.1
	.asciz	"Failed to enable HDMI vpll: %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"hdmi"

l_.str.3:                               ; @.str.3
	.asciz	"failed to get phy\n"

	.comm	_dw_hdmi_rockchip_encoder_helper_funcs,4,2 ; @dw_hdmi_rockchip_encoder_helper_funcs
	.comm	_dw_hdmi_rockchip_encoder_funcs,4,2 ; @dw_hdmi_rockchip_encoder_funcs
	.comm	_DRM_MODE_ENCODER_TMDS,4,2      ; @DRM_MODE_ENCODER_TMDS
	.no_dead_strip	_dw_hdmi_rockchip_bind
.subsections_via_symbols
