	.file	"extr_output.c_tegra_output_probe.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"nvidia,panel"
.LC1:
	.string	"nvidia,edid"
.LC2:
	.string	"nvidia,ddc-i2c-bus"
.LC3:
	.string	"HDMI hotplug detect"
.LC4:
	.string	"nvidia,hpd-gpio"
.LC5:
	.string	"gpiod_to_irq(): %d\n"
.LC6:
	.string	"hpd"
.LC7:
	.string	"failed to request IRQ#%u: %d\n"
	.text
	.p2align 4
	.globl	tegra_output_probe
	.type	tegra_output_probe, @function
tegra_output_probe:
.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
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rdi
	sub	rsp, 16
	.cfi_def_cfa_offset 48
	mov	rdi, QWORD PTR 32[rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	test	rdi, rdi
	jne	.L2
	mov	rax, QWORD PTR 8[rbx]
	mov	rdi, QWORD PTR [rax]
	mov	QWORD PTR 32[rbx], rdi
.L2:
	xor	edx, edx
	lea	rsi, .LC0[rip]
	call	of_parse_phandle@PLT
	mov	r12, rax
	test	rax, rax
	je	.L3
	mov	rdi, rax
	call	of_drm_find_panel@PLT
	mov	QWORD PTR 48[rbx], rax
	mov	rdi, rax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L26
	mov	rdi, r12
	call	of_node_put@PLT
.L3:
	mov	rdi, QWORD PTR 32[rbx]
	lea	rdx, 4[rsp]
	lea	rsi, .LC1[rip]
	call	of_get_property@PLT
	mov	rdi, QWORD PTR 32[rbx]
	xor	edx, edx
	lea	rsi, .LC2[rip]
	mov	DWORD PTR 44[rbx], eax
	call	of_parse_phandle@PLT
	mov	rbp, rax
	test	rax, rax
	je	.L6
	mov	rdi, rax
	call	of_find_i2c_adapter_by_node@PLT
	mov	DWORD PTR 40[rbx], eax
	test	eax, eax
	je	.L27
	mov	rdi, rbp
	call	of_node_put@PLT
.L6:
	mov	rsi, QWORD PTR 32[rbx]
	mov	rdi, QWORD PTR 8[rbx]
	lea	r9, .LC3[rip]
	xor	ecx, ecx
	mov	r8d, DWORD PTR GPIOD_IN[rip]
	lea	rdx, .LC4[rip]
	call	devm_gpiod_get_from_of_node@PLT
	mov	QWORD PTR 24[rbx], rax
	mov	rdi, rax
	call	IS_ERR@PLT
	mov	rdi, QWORD PTR 24[rbx]
	test	rax, rax
	jne	.L28
	test	rdi, rdi
	je	.L10
	call	gpiod_to_irq@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L29
	mov	DWORD PTR [rbx], eax
	mov	edx, DWORD PTR hpd_irq[rip]
	mov	r9, rbx
	xor	esi, esi
	mov	rcx, QWORD PTR IRQF_TRIGGER_RISING[rip]
	lea	r8, .LC6[rip]
	mov	edi, eax
	or	rcx, QWORD PTR IRQF_TRIGGER_FALLING[rip]
	or	rcx, QWORD PTR IRQF_ONESHOT[rip]
	call	request_threaded_irq@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L30
	mov	eax, DWORD PTR DRM_CONNECTOR_POLL_HPD[rip]
	mov	edi, DWORD PTR [rbx]
	mov	DWORD PTR 16[rbx], eax
	call	disable_irq@PLT
.L10:
	mov	rdi, QWORD PTR 8[rbx]
	xor	r12d, r12d
	call	cec_notifier_get@PLT
	mov	DWORD PTR 4[rbx], eax
	test	eax, eax
	jne	.L1
	mov	r12d, DWORD PTR ENOMEM[rip]
	neg	r12d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L26:
	mov	rdi, QWORD PTR 48[rbx]
	call	PTR_ERR@PLT
	mov	r12d, eax
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L31
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L28:
	.cfi_restore_state
	call	PTR_ERR@PLT
	add	eax, DWORD PTR ENOENT[rip]
	jne	.L32
	mov	QWORD PTR 24[rbx], 0
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L27:
	mov	r12d, DWORD PTR EPROBE_DEFER[rip]
	mov	rdi, rbp
	neg	r12d
	call	of_node_put@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L30:
	mov	rdi, QWORD PTR 8[rbx]
	mov	edx, DWORD PTR [rbx]
	mov	ecx, eax
	lea	rsi, .LC7[rip]
	xor	eax, eax
	call	dev_err@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L29:
	mov	rdi, QWORD PTR 8[rbx]
	mov	edx, eax
	lea	rsi, .LC5[rip]
	xor	eax, eax
	call	dev_err@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L32:
	mov	rdi, QWORD PTR 24[rbx]
	call	PTR_ERR@PLT
	mov	r12d, eax
	jmp	.L1
.L31:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	tegra_output_probe, .-tegra_output_probe
	.comm	hpd_irq,4,4
	.comm	IRQF_TRIGGER_RISING,8,8
	.comm	IRQF_TRIGGER_FALLING,8,8
	.comm	IRQF_ONESHOT,8,8
	.comm	GPIOD_IN,4,4
	.comm	EPROBE_DEFER,4,4
	.comm	ENOMEM,4,4
	.comm	ENOENT,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_output.c_tegra_output_probe.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"nvidia,panel\000"
	.align	2
.LC1:
	.ascii	"nvidia,edid\000"
	.align	2
.LC2:
	.ascii	"nvidia,ddc-i2c-bus\000"
	.align	2
.LC3:
	.ascii	"nvidia,hpd-gpio\000"
	.align	2
.LC4:
	.ascii	"HDMI hotplug detect\000"
	.align	2
.LC5:
	.ascii	"gpiod_to_irq(): %d\012\000"
	.align	2
.LC6:
	.ascii	"hpd\000"
	.align	2
.LC7:
	.ascii	"failed to request IRQ#%u: %d\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC8:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	tegra_output_probe
	.syntax unified
	.arm
	.fpu softvfp
	.type	tegra_output_probe, %function
tegra_output_probe:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r3, .L32
	mov	r4, r0
	sub	sp, sp, #16
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	ldr	r0, [r0, #20]
	mov	r2, #0
	cmp	r0, #0
	ldreq	r3, [r4, #8]
	ldr	r1, .L32+4
	ldreq	r0, [r3]
	streq	r0, [r4, #20]
	bl	of_parse_phandle
	subs	r5, r0, #0
	beq	.L3
	bl	of_drm_find_panel
	str	r0, [r4, #32]
	bl	IS_ERR
	cmp	r0, #0
	bne	.L26
	mov	r0, r5
	bl	of_node_put
.L3:
	ldr	r1, .L32+8
	add	r2, sp, #8
	ldr	r0, [r4, #20]
	bl	of_get_property
	mov	r2, #0
	str	r0, [r4, #28]
	ldr	r1, .L32+12
	ldr	r0, [r4, #20]
	bl	of_parse_phandle
	subs	r5, r0, #0
	beq	.L6
	bl	of_find_i2c_adapter_by_node
	cmp	r0, #0
	str	r0, [r4, #24]
	beq	.L27
	mov	r0, r5
	bl	of_node_put
.L6:
	ldr	r3, .L32+16
	ldr	r2, .L32+20
	ldr	r3, [r3]
	str	r2, [sp, #4]
	str	r3, [sp]
	ldr	r2, .L32+24
	mov	r3, #0
	ldr	r1, [r4, #20]
	ldr	r0, [r4, #8]
	bl	devm_gpiod_get_from_of_node
	str	r0, [r4, #16]
	bl	IS_ERR
	subs	r6, r0, #0
	ldr	r0, [r4, #16]
	bne	.L28
	cmp	r0, #0
	beq	.L10
	bl	gpiod_to_irq
	subs	r5, r0, #0
	blt	.L29
	ldr	r2, .L32+28
	ldr	r3, .L32+32
	ldr	r2, [r2]
	ldr	r3, [r3]
	ldr	r1, .L32+36
	ldr	ip, .L32+40
	ldr	lr, [r1]
	orr	r3, r2, r3
	ldr	r2, .L32+44
	str	r5, [r4]
	str	r4, [sp, #4]
	ldr	r2, [r2]
	mov	r1, r6
	orr	r3, r3, lr
	str	ip, [sp]
	bl	request_threaded_irq
	subs	r5, r0, #0
	blt	.L30
	ldr	r3, .L32+48
	ldr	r0, [r4]
	ldr	r3, [r3]
	str	r3, [r4, #12]
	bl	disable_irq
.L10:
	ldr	r0, [r4, #8]
	bl	cec_notifier_get
	cmp	r0, #0
	ldreq	r3, .L32+52
	str	r0, [r4, #4]
	ldreq	r0, [r3]
	movne	r5, #0
	rsbeq	r5, r0, #0
	b	.L1
.L26:
	ldr	r0, [r4, #32]
	bl	PTR_ERR
	mov	r5, r0
.L1:
	ldr	r3, .L32
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L31
	mov	r0, r5
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, pc}
.L28:
	bl	PTR_ERR
	ldr	r3, .L32+56
	ldr	r3, [r3]
	cmn	r0, r3
	moveq	r3, #0
	streq	r3, [r4, #16]
	beq	.L10
	ldr	r0, [r4, #16]
	bl	PTR_ERR
	mov	r5, r0
	b	.L1
.L27:
	ldr	r3, .L32+60
	mov	r0, r5
	ldr	r5, [r3]
	rsb	r5, r5, #0
	bl	of_node_put
	b	.L1
.L30:
	mov	r3, r5
	ldr	r2, [r4]
	ldr	r0, [r4, #8]
	ldr	r1, .L32+64
	bl	dev_err
	b	.L1
.L29:
	mov	r2, r5
	ldr	r0, [r4, #8]
	ldr	r1, .L32+68
	bl	dev_err
	b	.L1
.L31:
	bl	__stack_chk_fail
.L33:
	.align	2
.L32:
	.word	.LC8
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	GPIOD_IN
	.word	.LC4
	.word	.LC3
	.word	IRQF_TRIGGER_RISING
	.word	IRQF_TRIGGER_FALLING
	.word	IRQF_ONESHOT
	.word	.LC6
	.word	hpd_irq
	.word	DRM_CONNECTOR_POLL_HPD
	.word	ENOMEM
	.word	ENOENT
	.word	EPROBE_DEFER
	.word	.LC7
	.word	.LC5
	.size	tegra_output_probe, .-tegra_output_probe
	.comm	hpd_irq,4,4
	.comm	IRQF_TRIGGER_RISING,4,4
	.comm	IRQF_TRIGGER_FALLING,4,4
	.comm	IRQF_ONESHOT,4,4
	.comm	GPIOD_IN,4,4
	.comm	EPROBE_DEFER,4,4
	.comm	ENOMEM,4,4
	.comm	ENOENT,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
