	.file	"extr_sti_hdmi.c_sti_hdmi_bind.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Failed to attach a connector to a encoder\n"
	.align 8
.LC1:
	.string	"Failed to attach an audio codec\n"
	.align 8
.LC2:
	.string	"Failed to init audio infoframe\n"
	.text
	.p2align 4
	.type	sti_hdmi_bind, @function
sti_hdmi_bind:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rdi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	call	dev_get_drvdata@PLT
	mov	rdi, r12
	mov	QWORD PTR 16[rax], r12
	mov	rbp, rax
	call	sti_hdmi_find_encoder@PLT
	test	rax, rax
	je	.L11
	mov	edx, DWORD PTR GFP_KERNEL[rip]
	mov	esi, 16
	mov	rdi, r14
	mov	r15, rax
	call	devm_kzalloc@PLT
	mov	r13, rax
	test	rax, rax
	je	.L11
	mov	QWORD PTR 8[rax], rbp
	mov	edx, DWORD PTR GFP_KERNEL[rip]
	mov	esi, 16
	mov	rdi, r14
	call	devm_kzalloc@PLT
	mov	rsi, rax
	test	rax, rax
	je	.L11
	mov	QWORD PTR 8[rax], rbp
	lea	rax, sti_hdmi_bridge_funcs[rip]
	xor	edx, edx
	mov	rdi, r15
	mov	QWORD PTR [rsi], rax
	call	drm_bridge_attach@PLT
	mov	QWORD PTR 0[r13], r15
	mov	r8d, DWORD PTR 12[rbp]
	mov	rsi, r13
	mov	eax, DWORD PTR DRM_CONNECTOR_POLL_HPD[rip]
	lea	rdx, sti_hdmi_connector_funcs[rip]
	mov	rdi, r12
	mov	DWORD PTR 0[r13], eax
	mov	ecx, DWORD PTR DRM_MODE_CONNECTOR_HDMIA[rip]
	call	drm_connector_init_with_ddc@PLT
	lea	rsi, sti_hdmi_connector_helper_funcs[rip]
	mov	rdi, r13
	call	drm_connector_helper_add@PLT
	mov	rsi, r13
	mov	rdi, r12
	call	sti_hdmi_connector_init_property@PLT
	mov	QWORD PTR 0[rbp], r13
	mov	rsi, r15
	mov	rdi, r13
	call	drm_connector_attach_encoder@PLT
	test	eax, eax
	jne	.L13
	mov	rsi, rbp
	mov	rdi, r14
	call	sti_hdmi_register_audio_driver@PLT
	test	eax, eax
	jne	.L14
	lea	rdi, 8[rbp]
	call	hdmi_audio_infoframe_init@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L15
	mov	edx, DWORD PTR HDMI_INT_EN[rip]
	mov	esi, DWORD PTR HDMI_DEFAULT_INT[rip]
	mov	rdi, rbp
	call	hdmi_write@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L14:
	lea	rdi, .LC1[rip]
	call	DRM_ERROR@PLT
.L7:
	mov	QWORD PTR 0[rbp], 0
.L11:
	mov	r12d, DWORD PTR EINVAL[rip]
	neg	r12d
.L1:
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	lea	rdi, .LC0[rip]
	call	DRM_ERROR@PLT
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L15:
	lea	rdi, .LC2[rip]
	call	DRM_ERROR@PLT
	jmp	.L7
	.cfi_endproc
.LFE0:
	.size	sti_hdmi_bind, .-sti_hdmi_bind
	.comm	sti_hdmi_connector_helper_funcs,4,4
	.comm	sti_hdmi_connector_funcs,4,4
	.comm	sti_hdmi_bridge_funcs,4,4
	.comm	HDMI_INT_EN,4,4
	.comm	HDMI_DEFAULT_INT,4,4
	.comm	GFP_KERNEL,4,4
	.comm	EINVAL,4,4
	.comm	DRM_MODE_CONNECTOR_HDMIA,4,4
	.comm	DRM_CONNECTOR_POLL_HPD,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_sti_hdmi.c_sti_hdmi_bind.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Failed to attach a connector to a encoder\012\000"
	.align	2
.LC1:
	.ascii	"Failed to attach an audio codec\012\000"
	.align	2
.LC2:
	.ascii	"Failed to init audio infoframe\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	sti_hdmi_bind, %function
sti_hdmi_bind:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	sub	sp, sp, #12
	mov	r5, r2
	mov	r7, r0
	bl	dev_get_drvdata
	mov	r4, r0
	mov	r0, r5
	str	r5, [r4, #12]
	bl	sti_hdmi_find_encoder
	subs	r8, r0, #0
	beq	.L11
	ldr	r9, .L16
	mov	r1, #8
	mov	r0, r7
	ldr	r2, [r9]
	bl	devm_kzalloc
	subs	r6, r0, #0
	beq	.L11
	mov	r1, #8
	mov	r0, r7
	ldr	r2, [r9]
	str	r4, [r6, #4]
	bl	devm_kzalloc
	subs	r1, r0, #0
	beq	.L11
	ldr	r3, .L16+4
	mov	r2, #0
	stm	r1, {r3, r4}
	mov	r0, r8
	bl	drm_bridge_attach
	ldr	r2, .L16+8
	ldr	r3, .L16+12
	ldr	r1, [r2]
	ldr	r2, [r4, #8]
	str	r1, [r6]
	ldr	r3, [r3]
	mov	r1, r6
	str	r2, [sp]
	mov	r0, r5
	ldr	r2, .L16+16
	bl	drm_connector_init_with_ddc
	ldr	r1, .L16+20
	mov	r0, r6
	bl	drm_connector_helper_add
	mov	r1, r6
	mov	r0, r5
	bl	sti_hdmi_connector_init_property
	mov	r1, r8
	mov	r0, r6
	str	r6, [r4]
	bl	drm_connector_attach_encoder
	cmp	r0, #0
	bne	.L13
	mov	r0, r7
	mov	r1, r4
	bl	sti_hdmi_register_audio_driver
	cmp	r0, #0
	bne	.L14
	add	r0, r4, #4
	bl	hdmi_audio_infoframe_init
	subs	r5, r0, #0
	bne	.L15
	ldr	r3, .L16+24
	ldr	r2, .L16+28
	mov	r0, r4
	ldr	r2, [r2]
	ldr	r1, [r3]
	bl	hdmi_write
	b	.L1
.L11:
	ldr	r3, .L16+32
	ldr	r5, [r3]
	rsb	r5, r5, #0
.L1:
	mov	r0, r5
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L14:
	ldr	r0, .L16+36
	bl	DRM_ERROR
.L7:
	ldr	r3, .L16+32
	mov	r2, #0
	ldr	r5, [r3]
	str	r2, [r4]
	rsb	r5, r5, #0
	mov	r0, r5
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L13:
	ldr	r0, .L16+40
	bl	DRM_ERROR
	b	.L7
.L15:
	ldr	r0, .L16+44
	bl	DRM_ERROR
	b	.L7
.L17:
	.align	2
.L16:
	.word	GFP_KERNEL
	.word	sti_hdmi_bridge_funcs
	.word	DRM_CONNECTOR_POLL_HPD
	.word	DRM_MODE_CONNECTOR_HDMIA
	.word	sti_hdmi_connector_funcs
	.word	sti_hdmi_connector_helper_funcs
	.word	HDMI_DEFAULT_INT
	.word	HDMI_INT_EN
	.word	EINVAL
	.word	.LC1
	.word	.LC0
	.word	.LC2
	.size	sti_hdmi_bind, .-sti_hdmi_bind
	.comm	sti_hdmi_connector_helper_funcs,4,4
	.comm	sti_hdmi_connector_funcs,4,4
	.comm	sti_hdmi_bridge_funcs,4,4
	.comm	HDMI_INT_EN,4,4
	.comm	HDMI_DEFAULT_INT,4,4
	.comm	GFP_KERNEL,4,4
	.comm	EINVAL,4,4
	.comm	DRM_MODE_CONNECTOR_HDMIA,4,4
	.comm	DRM_CONNECTOR_POLL_HPD,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
