	.file	"extr_patch_hdmi.c_patch_generic_hdmi.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	patch_generic_hdmi, @function
patch_generic_hdmi:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	mov	edi, 4
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	call	kzalloc@PLT
	test	rax, rax
	je	.L9
	mov	QWORD PTR 8[rbp], rax
	mov	esi, 4
	mov	rdi, rax
	mov	r12, rax
	call	hdmi_array_init@PLT
	cmp	DWORD PTR 0[rbp], -2138691577
	je	.L10
	mov	rdi, rbp
	call	hdmi_parse_codec@PLT
	test	rax, rax
	js	.L11
.L5:
	mov	eax, DWORD PTR generic_hdmi_patch_ops[rip]
	cmp	DWORD PTR 0[rbp], -2138691577
	mov	DWORD PTR 4[rbp], eax
	je	.L12
.L6:
	mov	rdi, rbp
	call	generic_hdmi_init_per_pins@PLT
	xor	eax, eax
	call	init_channel_allocations@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	mov	eax, DWORD PTR ENOMEM[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	mov	eax, DWORD PTR haswell_set_power_state[rip]
	mov	DWORD PTR 4[rbp], eax
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L10:
	mov	esi, 1
	mov	rdi, rbp
	call	intel_haswell_enable_all_pins@PLT
	mov	rdi, rbp
	call	intel_haswell_fixup_enable_dp12@PLT
	mov	rdi, rbp
	call	hdmi_parse_codec@PLT
	test	rax, rax
	jns	.L5
.L11:
	mov	QWORD PTR 8[rbp], 0
	mov	rdi, r12
	call	kfree@PLT
	mov	eax, DWORD PTR EINVAL[rip]
	add	rsp, 8
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.cfi_endproc
.LFE0:
	.size	patch_generic_hdmi, .-patch_generic_hdmi
	.comm	haswell_set_power_state,4,4
	.comm	generic_hdmi_patch_ops,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.comm	EINVAL,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_patch_hdmi.c_patch_generic_hdmi.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	patch_generic_hdmi, %function
patch_generic_hdmi:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L12
	push	{r4, r5, r6, lr}
	ldr	r1, [r3]
	mov	r4, r0
	mov	r0, #4
	bl	kzalloc
	subs	r5, r0, #0
	beq	.L9
	mov	r1, #4
	str	r5, [r4, #8]
	bl	hdmi_array_init
	ldr	r3, .L12+4
	ldr	r2, [r4]
	cmp	r2, r3
	beq	.L10
	mov	r0, r4
	bl	hdmi_parse_codec
	cmp	r0, #0
	blt	.L11
.L5:
	ldr	r3, .L12+8
	ldr	r2, .L12+4
	ldr	r1, [r4]
	ldr	r3, [r3]
	cmp	r1, r2
	str	r3, [r4, #4]
	ldreq	r3, .L12+12
	mov	r0, r4
	ldreq	r3, [r3]
	streq	r3, [r4, #4]
	bl	generic_hdmi_init_per_pins
	bl	init_channel_allocations
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L9:
	ldr	r3, .L12+16
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, pc}
.L10:
	mov	r1, #1
	mov	r0, r4
	bl	intel_haswell_enable_all_pins
	mov	r0, r4
	bl	intel_haswell_fixup_enable_dp12
	mov	r0, r4
	bl	hdmi_parse_codec
	cmp	r0, #0
	bge	.L5
.L11:
	mov	r3, #0
	mov	r0, r5
	str	r3, [r4, #8]
	bl	kfree
	ldr	r3, .L12+20
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, pc}
.L13:
	.align	2
.L12:
	.word	GFP_KERNEL
	.word	-2138691577
	.word	generic_hdmi_patch_ops
	.word	haswell_set_power_state
	.word	ENOMEM
	.word	EINVAL
	.size	patch_generic_hdmi, .-patch_generic_hdmi
	.comm	haswell_set_power_state,4,4
	.comm	generic_hdmi_patch_ops,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
