	.file	"extr_intel_ddi.c_intel_ddi_init.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	intel_ddi_init
	.type	intel_ddi_init, @function
intel_ddi_init:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rdi
	mov	edi, 64
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12d, esi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	call	kzalloc@PLT
	test	rax, rax
	je	.L1
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	mov	edi, 64
	mov	rbp, rax
	call	kzalloc@PLT
	mov	r13, rax
	test	rax, rax
	je	.L9
	cmp	DWORD PTR PORT_A[rip], r12d
	je	.L7
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	mov	edi, 64
	call	kzalloc@PLT
	mov	r14, rax
	test	rax, rax
	je	.L11
.L4:
	mov	ecx, DWORD PTR DRM_MODE_ENCODER_TMDS[rip]
	lea	rbx, 60[rbp]
	lea	rdx, intel_ddi_funcs[rip]
	mov	rdi, r15
	mov	rsi, rbx
	call	drm_encoder_init@PLT
	lea	rsi, intel_ddi_helper_funcs[rip]
	mov	rdi, rbx
	call	drm_encoder_helper_add@PLT
	mov	eax, DWORD PTR intel_enable_ddi[rip]
	mov	edi, r12d
	mov	DWORD PTR 56[rbp], eax
	mov	eax, DWORD PTR intel_ddi_pre_enable[rip]
	mov	DWORD PTR 52[rbp], eax
	mov	eax, DWORD PTR intel_disable_ddi[rip]
	mov	DWORD PTR 48[rbp], eax
	mov	eax, DWORD PTR intel_ddi_post_disable[rip]
	mov	DWORD PTR 44[rbp], eax
	mov	eax, DWORD PTR intel_ddi_get_hw_state[rip]
	mov	DWORD PTR 0[rbp], r12d
	mov	DWORD PTR 40[rbp], eax
	call	DDI_BUF_CTL@PLT
	mov	rdi, rax
	call	I915_READ@PLT
	and	eax, DWORD PTR DDI_BUF_PORT_REVERSAL[rip]
	mov	DWORD PTR 4[rbp], eax
	test	r14, r14
	je	.L5
	mov	edi, r12d
	call	DDI_BUF_CTL@PLT
	mov	edi, r12d
	mov	QWORD PTR 16[rbp], rax
	call	DDI_BUF_CTL@PLT
	mov	QWORD PTR 24[rbp], 7
	mov	rsi, r14
	mov	rdi, rbp
	mov	QWORD PTR 8[rbp], rax
	mov	eax, DWORD PTR INTEL_OUTPUT_UNKNOWN[rip]
	mov	DWORD PTR 36[rbp], eax
	mov	eax, DWORD PTR intel_ddi_hot_plug[rip]
	mov	DWORD PTR 32[rbp], eax
	call	intel_hdmi_init_connector@PLT
.L6:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rsi, r13
	mov	rdi, rbp
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	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
	jmp	intel_dp_init_connector@PLT
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	xor	r14d, r14d
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	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
.L5:
	.cfi_restore_state
	mov	QWORD PTR 16[rbp], 0
	mov	edi, r12d
	call	DDI_BUF_CTL@PLT
	mov	QWORD PTR 24[rbp], 7
	mov	QWORD PTR 8[rbp], rax
	mov	eax, DWORD PTR INTEL_OUTPUT_UNKNOWN[rip]
	mov	DWORD PTR 36[rbp], eax
	mov	eax, DWORD PTR intel_ddi_hot_plug[rip]
	mov	DWORD PTR 32[rbp], eax
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L11:
	mov	rdi, r13
	call	kfree@PLT
.L9:
	add	rsp, 8
	.cfi_def_cfa_offset 56
	mov	rdi, rbp
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	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
	jmp	kfree@PLT
	.cfi_endproc
.LFE0:
	.size	intel_ddi_init, .-intel_ddi_init
	.comm	intel_enable_ddi,4,4
	.comm	intel_disable_ddi,4,4
	.comm	intel_ddi_pre_enable,4,4
	.comm	intel_ddi_post_disable,4,4
	.comm	intel_ddi_hot_plug,4,4
	.comm	intel_ddi_helper_funcs,4,4
	.comm	intel_ddi_get_hw_state,4,4
	.comm	intel_ddi_funcs,4,4
	.comm	PORT_A,4,4
	.comm	INTEL_OUTPUT_UNKNOWN,4,4
	.comm	GFP_KERNEL,4,4
	.comm	DRM_MODE_ENCODER_TMDS,4,4
	.comm	DDI_BUF_PORT_REVERSAL,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_intel_ddi.c_intel_ddi_init.c"
	.text
	.align	2
	.global	intel_ddi_init
	.syntax unified
	.arm
	.fpu softvfp
	.type	intel_ddi_init, %function
intel_ddi_init:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r7, .L12
	mov	r5, r0
	mov	r8, r1
	mov	r0, #56
	ldr	r1, [r7]
	bl	kzalloc
	subs	r4, r0, #0
	popeq	{r4, r5, r6, r7, r8, pc}
	mov	r0, #56
	ldr	r1, [r7]
	bl	kzalloc
	subs	r6, r0, #0
	beq	.L9
	ldr	r3, .L12+4
	ldr	r3, [r3]
	cmp	r3, r8
	beq	.L7
	ldr	r1, [r7]
	mov	r0, #56
	bl	kzalloc
	subs	r7, r0, #0
	beq	.L11
.L4:
	add	r1, r4, #52
	mov	r0, r5
	mov	r5, r1
	ldr	r3, .L12+8
	ldr	r2, .L12+12
	ldr	r3, [r3]
	bl	drm_encoder_init
	ldr	r1, .L12+16
	mov	r0, r5
	bl	drm_encoder_helper_add
	ldr	ip, .L12+20
	ldr	r0, .L12+24
	ldr	r1, .L12+28
	ldr	r2, .L12+32
	ldr	r3, .L12+36
	ldr	ip, [ip]
	ldr	r3, [r3]
	ldr	r0, [r0]
	ldr	r1, [r1]
	ldr	r2, [r2]
	str	r3, [r4, #32]
	str	ip, [r4, #48]
	str	r0, [r4, #44]
	str	r1, [r4, #40]
	str	r2, [r4, #36]
	mov	r0, r8
	str	r8, [r4]
	bl	DDI_BUF_CTL
	bl	I915_READ
	ldr	r3, .L12+40
	cmp	r7, #0
	ldr	r3, [r3]
	and	r3, r3, r0
	str	r3, [r4, #4]
	beq	.L5
	mov	r0, r8
	bl	DDI_BUF_CTL
	mov	r3, r0
	mov	r0, r8
	str	r3, [r4, #12]
	bl	DDI_BUF_CTL
	mov	r2, #7
	mov	r3, #0
	ldr	ip, .L12+44
	ldr	r1, .L12+48
	ldr	lr, [ip]
	ldr	ip, [r1]
	str	r0, [r4, #8]
	mov	r1, r7
	mov	r0, r4
	str	lr, [r4, #28]
	str	ip, [r4, #24]
	str	r2, [r4, #16]
	str	r3, [r4, #20]
	bl	intel_hdmi_init_connector
	mov	r1, r6
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, lr}
	b	intel_dp_init_connector
.L7:
	mov	r7, #0
	b	.L4
.L5:
	mov	r0, r8
	str	r7, [r4, #12]
	bl	DDI_BUF_CTL
	mov	r3, #7
	ldr	r1, .L12+44
	ldr	r2, .L12+48
	ldr	r1, [r1]
	ldr	r2, [r2]
	str	r0, [r4, #8]
	str	r1, [r4, #28]
	mov	r0, r4
	mov	r1, r6
	str	r7, [r4, #20]
	str	r2, [r4, #24]
	str	r3, [r4, #16]
	pop	{r4, r5, r6, r7, r8, lr}
	b	intel_dp_init_connector
.L11:
	mov	r0, r6
	bl	kfree
.L9:
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, lr}
	b	kfree
.L13:
	.align	2
.L12:
	.word	GFP_KERNEL
	.word	PORT_A
	.word	DRM_MODE_ENCODER_TMDS
	.word	intel_ddi_funcs
	.word	intel_ddi_helper_funcs
	.word	intel_enable_ddi
	.word	intel_ddi_pre_enable
	.word	intel_disable_ddi
	.word	intel_ddi_post_disable
	.word	intel_ddi_get_hw_state
	.word	DDI_BUF_PORT_REVERSAL
	.word	INTEL_OUTPUT_UNKNOWN
	.word	intel_ddi_hot_plug
	.size	intel_ddi_init, .-intel_ddi_init
	.comm	intel_enable_ddi,4,4
	.comm	intel_disable_ddi,4,4
	.comm	intel_ddi_pre_enable,4,4
	.comm	intel_ddi_post_disable,4,4
	.comm	intel_ddi_hot_plug,4,4
	.comm	intel_ddi_helper_funcs,4,4
	.comm	intel_ddi_get_hw_state,4,4
	.comm	intel_ddi_funcs,4,4
	.comm	PORT_A,4,4
	.comm	INTEL_OUTPUT_UNKNOWN,4,4
	.comm	GFP_KERNEL,4,4
	.comm	DRM_MODE_ENCODER_TMDS,4,4
	.comm	DDI_BUF_PORT_REVERSAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
