	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vc4_hdmi_bind
_vc4_hdmi_bind:                         ## @vc4_hdmi_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	callq	_to_platform_device
	movq	%rax, %r13
	movq	%rbx, %rdi
	callq	_dev_get_drvdata
	movq	%rax, %r15
	movq	(%rax), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movq	%r14, %rdi
	movl	$128, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	%rax, %r12
	movl	(%rbx), %edx
	movq	%r14, %rdi
	movl	$8, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	_VC4_ENCODER_TYPE_HDMI@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 4(%rax)
	movq	%rax, 24(%r12)
	movq	%r13, 120(%r12)
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_vc4_ioremap_regs
	movq	%rax, 112(%r12)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_8
## %bb.3:
	movq	112(%r12), %rdi
	jmp	LBB0_14
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_5:
	xorl	%ebx, %ebx
LBB0_6:
	subl	(%rax), %ebx
LBB0_7:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	%r13, %rdi
	movl	$1, %esi
	callq	_vc4_ioremap_regs
	movq	%rax, 80(%r12)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	80(%r12), %rdi
	jmp	LBB0_14
LBB0_10:
	movq	112(%r12), %rax
	movq	%rax, 104(%r12)
	movq	_hdmi_regs@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	%rdi, 96(%r12)
	callq	_ARRAY_SIZE
	movq	%rax, 88(%r12)
	movq	80(%r12), %rax
	movq	%rax, 72(%r12)
	movq	_hd_regs@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	%rdi, 64(%r12)
	callq	_ARRAY_SIZE
	movq	%rax, 56(%r12)
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_clk_get
	movq	%rax, 48(%r12)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_DRM_ERROR
	movq	48(%r12), %rdi
	jmp	LBB0_14
LBB0_12:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_clk_get
	movq	%rax, 16(%r12)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_15
## %bb.13:
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_DRM_ERROR
	movq	16(%r12), %rdi
LBB0_14:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_15:
	movl	(%r14), %edi
	leaq	L_.str.4(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%edx, %edx
	callq	_of_parse_phandle
	testq	%rax, %rax
	je	LBB0_19
## %bb.16:
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_of_find_i2c_adapter_by_node
	movq	%rax, 8(%r12)
	movq	%r13, %rdi
	callq	_of_node_put
	cmpq	$0, 8(%r12)
	je	LBB0_20
## %bb.17:
	movq	16(%r12), %rdi
	movq	_HSM_CLOCK_FREQ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_clk_set_rate
	testl	%eax, %eax
	je	LBB0_21
## %bb.18:
	movl	%eax, %ebx
	leaq	L_.str.7(%rip), %rdi
	jmp	LBB0_23
LBB0_19:
	leaq	L_.str.5(%rip), %rdi
	xorl	%eax, %eax
	callq	_DRM_ERROR
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_20:
	leaq	L_.str.6(%rip), %rdi
	callq	_DRM_DEBUG
	movq	_EPROBE_DEFER@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_21:
	movq	16(%r12), %rdi
	callq	_clk_prepare_enable
	testl	%eax, %eax
	je	LBB0_25
## %bb.22:
	movl	%eax, %ebx
	leaq	L_.str.8(%rip), %rdi
LBB0_23:
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_DRM_ERROR
LBB0_24:
	movq	8(%r12), %rdi
	callq	_put_device
	jmp	LBB0_7
LBB0_25:
	movl	(%r14), %edi
	leaq	L_.str.9(%rip), %rsi
	leaq	-60(%rbp), %rdx
	callq	_of_find_property
	testq	%rax, %rax
	je	LBB0_28
## %bb.26:
	movl	(%r14), %edi
	leaq	L_.str.9(%rip), %rsi
	leaq	-44(%rbp), %rcx
	xorl	%edx, %edx
	callq	_of_get_named_gpio_flags
	movl	%eax, (%r12)
	testl	%eax, %eax
	js	LBB0_34
## %bb.27:
	movq	_OF_GPIO_ACTIVE_LOW@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	-44(%rbp), %eax
	movl	%eax, 4(%r12)
LBB0_28:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%r12, (%rax)
	movq	_VC4_HD_M_CTL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_HD_READ
	movq	_VC4_HD_M_ENABLE@GOTPCREL(%rip), %r13
	testl	%eax, (%r13)
	jne	LBB0_30
## %bb.29:
	movl	(%rbx), %edi
	movq	_VC4_HD_M_SW_RST@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_HD_WRITE
	movl	$1, %edi
	callq	_udelay
	movl	(%rbx), %edi
	xorl	%esi, %esi
	callq	_HD_WRITE
	movl	(%rbx), %edi
	movl	(%r13), %esi
	callq	_HD_WRITE
LBB0_30:
	movq	%r14, %rdi
	callq	_pm_runtime_enable
	movq	24(%r12), %rsi
	movq	_DRM_MODE_ENCODER_TMDS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_vc4_hdmi_encoder_funcs@GOTPCREL(%rip), %rdx
	movq	%r15, %rdi
	xorl	%r8d, %r8d
	callq	_drm_encoder_init
	movq	24(%r12), %rdi
	movq	_vc4_hdmi_encoder_helper_funcs@GOTPCREL(%rip), %rsi
	callq	_drm_encoder_helper_add
	movq	24(%r12), %rsi
	movq	%r15, %rdi
	callq	_vc4_hdmi_connector_init
	movq	%rax, 32(%r12)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_32
## %bb.31:
	movq	32(%r12), %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
	jmp	LBB0_33
LBB0_32:
	movq	%r12, %rdi
	callq	_vc4_hdmi_audio_init
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_36
LBB0_33:
	movq	24(%r12), %rdi
	callq	_vc4_hdmi_encoder_destroy
	jmp	LBB0_35
LBB0_34:
	movl	%eax, %ebx
LBB0_35:
	movq	16(%r12), %rdi
	callq	_clk_disable_unprepare
	movq	%r14, %rdi
	callq	_pm_runtime_disable
	jmp	LBB0_24
LBB0_36:
	movq	_vc4_hdmi_debugfs_regs@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.10(%rip), %rsi
	movq	%r15, %rdi
	movq	%r12, %rcx
	callq	_vc4_debugfs_add_file
	xorl	%ebx, %ebx
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_VC4_ENCODER_TYPE_HDMI,4,2      ## @VC4_ENCODER_TYPE_HDMI
	.comm	_hdmi_regs,8,3                  ## @hdmi_regs
	.comm	_hd_regs,8,3                    ## @hd_regs
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pixel"

L_.str.1:                               ## @.str.1
	.asciz	"Failed to get pixel clock\n"

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

L_.str.3:                               ## @.str.3
	.asciz	"Failed to get HDMI state machine clock\n"

L_.str.4:                               ## @.str.4
	.asciz	"ddc"

L_.str.5:                               ## @.str.5
	.asciz	"Failed to find ddc node in device tree\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
L_.str.6:                               ## @.str.6
	.asciz	"Failed to get ddc i2c adapter by node\n"

	.comm	_EPROBE_DEFER,4,2               ## @EPROBE_DEFER
	.comm	_HSM_CLOCK_FREQ,4,2             ## @HSM_CLOCK_FREQ
L_.str.7:                               ## @.str.7
	.asciz	"Failed to set HSM clock rate: %d\n"

L_.str.8:                               ## @.str.8
	.asciz	"Failed to turn on HDMI state machine clock: %d\n"

L_.str.9:                               ## @.str.9
	.asciz	"hpd-gpios"

	.comm	_OF_GPIO_ACTIVE_LOW,4,2         ## @OF_GPIO_ACTIVE_LOW
	.comm	_VC4_HD_M_CTL,4,2               ## @VC4_HD_M_CTL
	.comm	_VC4_HD_M_ENABLE,4,2            ## @VC4_HD_M_ENABLE
	.comm	_VC4_HD_M_SW_RST,4,2            ## @VC4_HD_M_SW_RST
	.comm	_vc4_hdmi_encoder_funcs,4,2     ## @vc4_hdmi_encoder_funcs
	.comm	_DRM_MODE_ENCODER_TMDS,4,2      ## @DRM_MODE_ENCODER_TMDS
	.comm	_vc4_hdmi_encoder_helper_funcs,4,2 ## @vc4_hdmi_encoder_helper_funcs
L_.str.10:                              ## @.str.10
	.asciz	"hdmi_regs"

	.comm	_vc4_hdmi_debugfs_regs,4,2      ## @vc4_hdmi_debugfs_regs
	.comm	_CEC_CAP_LOG_ADDRS,4,2          ## @CEC_CAP_LOG_ADDRS
	.comm	_CEC_CAP_PASSTHROUGH,4,2        ## @CEC_CAP_PASSTHROUGH
	.comm	_CEC_CAP_RC,4,2                 ## @CEC_CAP_RC
	.comm	_CEC_CAP_TRANSMIT,4,2           ## @CEC_CAP_TRANSMIT
	.comm	_VC4_HDMI_CEC_ADDR_MASK,4,2     ## @VC4_HDMI_CEC_ADDR_MASK
	.comm	_VC4_HDMI_CEC_CNTRL_1,4,2       ## @VC4_HDMI_CEC_CNTRL_1
	.comm	_VC4_HDMI_CEC_DIV_CLK_CNT_MASK,4,2 ## @VC4_HDMI_CEC_DIV_CLK_CNT_MASK
	.comm	_VC4_HDMI_CEC_DIV_CLK_CNT_SHIFT,4,2 ## @VC4_HDMI_CEC_DIV_CLK_CNT_SHIFT
	.comm	_VC4_HDMI_CPU_MASK_SET,4,2      ## @VC4_HDMI_CPU_MASK_SET
	.comm	_vc4_cec_irq_handler,4,2        ## @vc4_cec_irq_handler
	.comm	_vc4_cec_irq_handler_thread,4,2 ## @vc4_cec_irq_handler_thread
	.comm	_vc4_hdmi_cec_adap_ops,4,2      ## @vc4_hdmi_cec_adap_ops
	.no_dead_strip	_vc4_hdmi_bind
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vc4_hdmi_bind
_vc4_hdmi_bind:                         ; @vc4_hdmi_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	x19, x1
	mov	x20, x0
	bl	_to_platform_device
	mov	x22, x0
	mov	x0, x19
	bl	_dev_get_drvdata
	mov	x21, x0
	ldr	x23, [x0]
Lloh0:
	adrp	x24, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x24, [x24, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w2, [x24]
	mov	x0, x20
	mov	w1, #128
	bl	_devm_kzalloc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x0
	ldr	w2, [x24]
	mov	x0, x20
	mov	w1, #8
	bl	_devm_kzalloc
	cbz	x0, LBB0_4
; %bb.2:
Lloh2:
	adrp	x8, _VC4_ENCODER_TYPE_HDMI@GOTPAGE
Lloh3:
	ldr	x8, [x8, _VC4_ENCODER_TYPE_HDMI@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [x0, #4]
	str	x0, [x19, #24]
	str	x22, [x19, #120]
	mov	x0, x22
	mov	w1, #0
	bl	_vc4_ioremap_regs
	str	x0, [x19, #112]
	bl	_IS_ERR
	cbz	x0, LBB0_7
; %bb.3:
	ldr	x0, [x19, #112]
	b	LBB0_13
LBB0_4:
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_6:
	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_7:
	mov	x0, x22
	mov	w1, #1
	bl	_vc4_ioremap_regs
	str	x0, [x19, #80]
	bl	_IS_ERR
	cbz	x0, LBB0_9
; %bb.8:
	ldr	x0, [x19, #80]
	b	LBB0_13
LBB0_9:
	ldr	x8, [x19, #112]
Lloh7:
	adrp	x9, _hdmi_regs@GOTPAGE
Lloh8:
	ldr	x9, [x9, _hdmi_regs@GOTPAGEOFF]
Lloh9:
	ldr	x0, [x9]
	stp	x0, x8, [x19, #96]
	bl	_ARRAY_SIZE
	str	x0, [x19, #88]
	ldr	x8, [x19, #80]
Lloh10:
	adrp	x9, _hd_regs@GOTPAGE
Lloh11:
	ldr	x9, [x9, _hd_regs@GOTPAGEOFF]
Lloh12:
	ldr	x0, [x9]
	stp	x0, x8, [x19, #64]
	bl	_ARRAY_SIZE
	str	x0, [x19, #56]
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_devm_clk_get
	str	x0, [x19, #48]
	bl	_IS_ERR
	cbz	x0, LBB0_11
; %bb.10:
Lloh15:
	adrp	x0, l_.str.1@PAGE
Lloh16:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DRM_ERROR
	ldr	x0, [x19, #48]
	b	LBB0_13
LBB0_11:
Lloh17:
	adrp	x1, l_.str.2@PAGE
Lloh18:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_devm_clk_get
	str	x0, [x19, #16]
	bl	_IS_ERR
	cbz	x0, LBB0_14
; %bb.12:
Lloh19:
	adrp	x0, l_.str.3@PAGE
Lloh20:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_DRM_ERROR
	ldr	x0, [x19, #16]
LBB0_13:
	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_14:
	ldr	w0, [x20]
Lloh21:
	adrp	x1, l_.str.4@PAGE
Lloh22:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	w2, #0
	bl	_of_parse_phandle
	cbz	x0, LBB0_18
; %bb.15:
	mov	x22, x0
	bl	_of_find_i2c_adapter_by_node
	str	x0, [x19, #8]
	mov	x0, x22
	bl	_of_node_put
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_19
; %bb.16:
	ldr	x0, [x19, #16]
Lloh23:
	adrp	x8, _HSM_CLOCK_FREQ@GOTPAGE
Lloh24:
	ldr	x8, [x8, _HSM_CLOCK_FREQ@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	bl	_clk_set_rate
	cbz	w0, LBB0_20
; %bb.17:
	mov	x22, x0
	str	x22, [sp]
Lloh26:
	adrp	x0, l_.str.7@PAGE
Lloh27:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_DRM_ERROR
	b	LBB0_33
LBB0_18:
Lloh28:
	adrp	x0, l_.str.5@PAGE
Lloh29:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_DRM_ERROR
Lloh30:
	adrp	x8, _ENODEV@GOTPAGE
Lloh31:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_5
LBB0_19:
Lloh32:
	adrp	x0, l_.str.6@PAGE
Lloh33:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_DRM_DEBUG
Lloh34:
	adrp	x8, _EPROBE_DEFER@GOTPAGE
Lloh35:
	ldr	x8, [x8, _EPROBE_DEFER@GOTPAGEOFF]
	b	LBB0_5
LBB0_20:
	ldr	x0, [x19, #16]
	bl	_clk_prepare_enable
	cbz	w0, LBB0_22
; %bb.21:
	mov	x22, x0
	str	x22, [sp]
Lloh36:
	adrp	x0, l_.str.8@PAGE
Lloh37:
	add	x0, x0, l_.str.8@PAGEOFF
	bl	_DRM_ERROR
                                        ; kill: def $w22 killed $w22 killed $x22 def $x22
	b	LBB0_33
LBB0_22:
	ldr	w0, [x20]
Lloh38:
	adrp	x1, l_.str.9@PAGE
Lloh39:
	add	x1, x1, l_.str.9@PAGEOFF
	add	x2, sp, #12
	bl	_of_find_property
	cbz	x0, LBB0_25
; %bb.23:
	ldr	w0, [x20]
Lloh40:
	adrp	x1, l_.str.9@PAGE
Lloh41:
	add	x1, x1, l_.str.9@PAGEOFF
	add	x3, sp, #8
	mov	w2, #0
	bl	_of_get_named_gpio_flags
	str	w0, [x19]
	tbnz	w0, #31, LBB0_31
; %bb.24:
	ldr	w8, [sp, #8]
Lloh42:
	adrp	x9, _OF_GPIO_ACTIVE_LOW@GOTPAGE
Lloh43:
	ldr	x9, [x9, _OF_GPIO_ACTIVE_LOW@GOTPAGEOFF]
Lloh44:
	ldr	w9, [x9]
	and	w8, w9, w8
	str	w8, [x19, #4]
LBB0_25:
	str	x19, [x23]
Lloh45:
	adrp	x22, _VC4_HD_M_CTL@GOTPAGE
Lloh46:
	ldr	x22, [x22, _VC4_HD_M_CTL@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	_HD_READ
Lloh47:
	adrp	x23, _VC4_HD_M_ENABLE@GOTPAGE
Lloh48:
	ldr	x23, [x23, _VC4_HD_M_ENABLE@GOTPAGEOFF]
	ldr	w8, [x23]
	tst	w8, w0
	b.ne	LBB0_27
; %bb.26:
	ldr	w0, [x22]
Lloh49:
	adrp	x8, _VC4_HD_M_SW_RST@GOTPAGE
Lloh50:
	ldr	x8, [x8, _VC4_HD_M_SW_RST@GOTPAGEOFF]
Lloh51:
	ldr	w1, [x8]
	bl	_HD_WRITE
	mov	w0, #1
	bl	_udelay
	ldr	w0, [x22]
	mov	w1, #0
	bl	_HD_WRITE
	ldr	w0, [x22]
	ldr	w1, [x23]
	bl	_HD_WRITE
LBB0_27:
	mov	x0, x20
	bl	_pm_runtime_enable
	ldr	x1, [x19, #24]
Lloh52:
	adrp	x8, _DRM_MODE_ENCODER_TMDS@GOTPAGE
Lloh53:
	ldr	x8, [x8, _DRM_MODE_ENCODER_TMDS@GOTPAGEOFF]
Lloh54:
	ldr	w3, [x8]
Lloh55:
	adrp	x2, _vc4_hdmi_encoder_funcs@GOTPAGE
Lloh56:
	ldr	x2, [x2, _vc4_hdmi_encoder_funcs@GOTPAGEOFF]
	mov	x0, x21
	mov	x4, #0
	bl	_drm_encoder_init
	ldr	x0, [x19, #24]
Lloh57:
	adrp	x1, _vc4_hdmi_encoder_helper_funcs@GOTPAGE
Lloh58:
	ldr	x1, [x1, _vc4_hdmi_encoder_helper_funcs@GOTPAGEOFF]
	bl	_drm_encoder_helper_add
	ldr	x1, [x19, #24]
	mov	x0, x21
	bl	_vc4_hdmi_connector_init
	str	x0, [x19, #32]
	bl	_IS_ERR
	cbz	x0, LBB0_29
; %bb.28:
	ldr	x0, [x19, #32]
	bl	_PTR_ERR
	mov	x22, x0
	b	LBB0_30
LBB0_29:
	mov	x0, x19
	bl	_vc4_hdmi_audio_init
	mov	x22, x0
	cbz	w0, LBB0_34
LBB0_30:
	ldr	x0, [x19, #24]
	bl	_vc4_hdmi_encoder_destroy
	b	LBB0_32
LBB0_31:
	mov	x22, x0
LBB0_32:
	ldr	x0, [x19, #16]
	bl	_clk_disable_unprepare
	mov	x0, x20
	bl	_pm_runtime_disable
LBB0_33:
	ldr	x0, [x19, #8]
	bl	_put_device
	b	LBB0_6
LBB0_34:
Lloh59:
	adrp	x8, _vc4_hdmi_debugfs_regs@GOTPAGE
Lloh60:
	ldr	x8, [x8, _vc4_hdmi_debugfs_regs@GOTPAGEOFF]
Lloh61:
	ldr	w2, [x8]
Lloh62:
	adrp	x1, l_.str.10@PAGE
Lloh63:
	add	x1, x1, l_.str.10@PAGEOFF
	mov	x0, x21
	mov	x3, x19
	bl	_vc4_debugfs_add_file
	b	LBB0_6
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGot	Lloh47, Lloh48
	.loh AdrpLdrGot	Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGot	Lloh57, Lloh58
	.loh AdrpLdrGot	Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpAdd	Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_VC4_ENCODER_TYPE_HDMI,4,2      ; @VC4_ENCODER_TYPE_HDMI
	.comm	_hdmi_regs,8,3                  ; @hdmi_regs
	.comm	_hd_regs,8,3                    ; @hd_regs
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pixel"

l_.str.1:                               ; @.str.1
	.asciz	"Failed to get pixel clock\n"

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

l_.str.3:                               ; @.str.3
	.asciz	"Failed to get HDMI state machine clock\n"

l_.str.4:                               ; @.str.4
	.asciz	"ddc"

l_.str.5:                               ; @.str.5
	.asciz	"Failed to find ddc node in device tree\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
l_.str.6:                               ; @.str.6
	.asciz	"Failed to get ddc i2c adapter by node\n"

	.comm	_EPROBE_DEFER,4,2               ; @EPROBE_DEFER
	.comm	_HSM_CLOCK_FREQ,4,2             ; @HSM_CLOCK_FREQ
l_.str.7:                               ; @.str.7
	.asciz	"Failed to set HSM clock rate: %d\n"

l_.str.8:                               ; @.str.8
	.asciz	"Failed to turn on HDMI state machine clock: %d\n"

l_.str.9:                               ; @.str.9
	.asciz	"hpd-gpios"

	.comm	_OF_GPIO_ACTIVE_LOW,4,2         ; @OF_GPIO_ACTIVE_LOW
	.comm	_VC4_HD_M_CTL,4,2               ; @VC4_HD_M_CTL
	.comm	_VC4_HD_M_ENABLE,4,2            ; @VC4_HD_M_ENABLE
	.comm	_VC4_HD_M_SW_RST,4,2            ; @VC4_HD_M_SW_RST
	.comm	_vc4_hdmi_encoder_funcs,4,2     ; @vc4_hdmi_encoder_funcs
	.comm	_DRM_MODE_ENCODER_TMDS,4,2      ; @DRM_MODE_ENCODER_TMDS
	.comm	_vc4_hdmi_encoder_helper_funcs,4,2 ; @vc4_hdmi_encoder_helper_funcs
l_.str.10:                              ; @.str.10
	.asciz	"hdmi_regs"

	.comm	_vc4_hdmi_debugfs_regs,4,2      ; @vc4_hdmi_debugfs_regs
	.comm	_CEC_CAP_LOG_ADDRS,4,2          ; @CEC_CAP_LOG_ADDRS
	.comm	_CEC_CAP_PASSTHROUGH,4,2        ; @CEC_CAP_PASSTHROUGH
	.comm	_CEC_CAP_RC,4,2                 ; @CEC_CAP_RC
	.comm	_CEC_CAP_TRANSMIT,4,2           ; @CEC_CAP_TRANSMIT
	.comm	_VC4_HDMI_CEC_ADDR_MASK,4,2     ; @VC4_HDMI_CEC_ADDR_MASK
	.comm	_VC4_HDMI_CEC_CNTRL_1,4,2       ; @VC4_HDMI_CEC_CNTRL_1
	.comm	_VC4_HDMI_CEC_DIV_CLK_CNT_MASK,4,2 ; @VC4_HDMI_CEC_DIV_CLK_CNT_MASK
	.comm	_VC4_HDMI_CEC_DIV_CLK_CNT_SHIFT,4,2 ; @VC4_HDMI_CEC_DIV_CLK_CNT_SHIFT
	.comm	_VC4_HDMI_CPU_MASK_SET,4,2      ; @VC4_HDMI_CPU_MASK_SET
	.comm	_vc4_cec_irq_handler,4,2        ; @vc4_cec_irq_handler
	.comm	_vc4_cec_irq_handler_thread,4,2 ; @vc4_cec_irq_handler_thread
	.comm	_vc4_hdmi_cec_adap_ops,4,2      ; @vc4_hdmi_cec_adap_ops
	.no_dead_strip	_vc4_hdmi_bind
.subsections_via_symbols
