	.file	"extr_amdgpu_dm.c_handle_hpd_rx_irq.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"KMS: Failed to detect connector\n"
	.text
	.p2align 4
	.type	handle_hpd_rx_irq, @function
handle_hpd_rx_irq:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdi
	sub	rsp, 24
	.cfi_def_cfa_offset 64
	mov	rbp, QWORD PTR 40[rdi]
	mov	r13, QWORD PTR 24[rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	eax, DWORD PTR dc_connection_none[rip]
	mov	r12d, DWORD PTR 32[rdi]
	mov	DWORD PTR 4[rsp], eax
	mov	rax, QWORD PTR dc_connection_mst_branch[rip]
	cmp	QWORD PTR 0[rbp], rax
	je	.L2
	lea	rdi, 4[rdi]
	call	mutex_lock@PLT
.L2:
	xor	edx, edx
	xor	esi, esi
	mov	rdi, rbp
	call	dc_link_handle_hpd_rx_irq@PLT
	test	r12d, r12d
	jne	.L5
	test	rax, rax
	jne	.L24
.L5:
	mov	rax, QWORD PTR LANE_COUNT_UNKNOWN[rip]
	cmp	QWORD PTR 8[rbp], rax
	jne	.L11
	mov	rax, QWORD PTR dc_connection_mst_branch[rip]
	cmp	QWORD PTR 0[rbp], rax
	je	.L11
.L13:
	lea	rdi, 8[rbx]
	call	drm_dp_cec_irq@PLT
	lea	rdi, 4[rbx]
	call	mutex_unlock@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L11:
	mov	rdi, rbx
	call	dm_handle_hpd_rx_irq@PLT
	mov	rax, QWORD PTR dc_connection_mst_branch[rip]
	cmp	QWORD PTR 0[rbp], rax
	jne	.L13
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L25
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L24:
	.cfi_restore_state
	lea	rsi, 4[rsp]
	mov	rdi, rbp
	call	dc_link_detect_sink@PLT
	test	eax, eax
	je	.L26
.L6:
	cmp	QWORD PTR 16[rbx], 0
	lea	r12, 16[rbx]
	je	.L7
	mov	eax, DWORD PTR dc_connection_none[rip]
	cmp	DWORD PTR 4[rsp], eax
	je	.L27
.L7:
	mov	esi, DWORD PTR DETECT_REASON_HPDRX[rip]
	mov	rdi, rbp
	call	dc_link_detect@PLT
	test	rax, rax
	je	.L5
	mov	eax, DWORD PTR [rbx]
	test	eax, eax
	je	.L10
.L22:
	mov	DWORD PTR [rbx], 0
.L10:
	mov	rdi, rbx
	call	amdgpu_dm_update_connector_after_detect@PLT
	mov	rdi, r13
	call	drm_modeset_lock_all@PLT
	mov	rsi, r12
	mov	rdi, r13
	call	dm_restore_drm_connector_state@PLT
	mov	rdi, r13
	call	drm_modeset_unlock_all@PLT
	mov	rdi, r13
	call	drm_kms_helper_hotplug_event@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L26:
	lea	rdi, .LC0[rip]
	call	DRM_ERROR@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L27:
	mov	rdi, rbp
	call	emulated_link_detect@PLT
	mov	edx, DWORD PTR [rbx]
	test	edx, edx
	je	.L10
	jmp	.L22
.L25:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	handle_hpd_rx_irq, .-handle_hpd_rx_irq
	.comm	dc_connection_none,4,4
	.comm	dc_connection_mst_branch,8,8
	.comm	LANE_COUNT_UNKNOWN,8,8
	.comm	DETECT_REASON_HPDRX,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_amdgpu_dm.c_handle_hpd_rx_irq.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"KMS: Failed to detect connector\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	handle_hpd_rx_irq, %function
handle_hpd_rx_irq:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	ldr	r6, .L33
	ldr	r5, [r0, #24]
	ldr	r2, [r6]
	ldr	r1, [r5]
	ldr	r7, .L33+4
	cmp	r1, r2
	ldr	r3, [r7]
	ldr	r2, .L33+8
	sub	sp, sp, #12
	ldr	r2, [r2]
	str	r2, [sp, #4]
	mov	r2,#0
	mov	r4, r0
	ldr	r8, [r0, #16]
	ldr	r9, [r0, #20]
	str	r3, [sp]
	beq	.L2
	add	r0, r0, #4
	bl	mutex_lock
.L2:
	mov	r2, #0
	mov	r0, r5
	mov	r1, r2
	bl	dc_link_handle_hpd_rx_irq
	subs	r0, r0, #0
	movne	r0, #1
	cmp	r9, #0
	movne	r0, #0
	cmp	r0, #0
	bne	.L29
.L4:
	ldr	r3, .L33+12
	ldr	r2, [r5, #4]
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L10
	ldr	r2, [r5]
	ldr	r3, [r6]
	cmp	r2, r3
	beq	.L10
.L12:
	add	r0, r4, #8
	bl	drm_dp_cec_irq
	add	r0, r4, #4
	bl	mutex_unlock
	b	.L1
.L10:
	mov	r0, r4
	bl	dm_handle_hpd_rx_irq
	ldr	r2, [r5]
	ldr	r3, [r6]
	cmp	r2, r3
	bne	.L12
.L1:
	ldr	r3, .L33+8
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L30
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L29:
	mov	r1, sp
	mov	r0, r5
	bl	dc_link_detect_sink
	cmp	r0, #0
	beq	.L31
.L5:
	ldr	r3, [r4, #12]
	add	r9, r4, #12
	cmp	r3, #0
	beq	.L6
	ldr	r3, [r7]
	ldr	r2, [sp]
	cmp	r2, r3
	beq	.L32
.L6:
	ldr	r3, .L33+16
	mov	r0, r5
	ldr	r1, [r3]
	bl	dc_link_detect
	cmp	r0, #0
	beq	.L4
	ldr	r3, [r4]
	cmp	r3, #0
	beq	.L9
.L27:
	mov	r3, #0
	str	r3, [r4]
.L9:
	mov	r0, r4
	bl	amdgpu_dm_update_connector_after_detect
	mov	r0, r8
	bl	drm_modeset_lock_all
	mov	r1, r9
	mov	r0, r8
	bl	dm_restore_drm_connector_state
	mov	r0, r8
	bl	drm_modeset_unlock_all
	mov	r0, r8
	bl	drm_kms_helper_hotplug_event
	b	.L4
.L31:
	ldr	r0, .L33+20
	bl	DRM_ERROR
	b	.L5
.L32:
	mov	r0, r5
	bl	emulated_link_detect
	ldr	r3, [r4]
	cmp	r3, #0
	beq	.L9
	b	.L27
.L30:
	bl	__stack_chk_fail
.L34:
	.align	2
.L33:
	.word	dc_connection_mst_branch
	.word	dc_connection_none
	.word	.LC1
	.word	LANE_COUNT_UNKNOWN
	.word	DETECT_REASON_HPDRX
	.word	.LC0
	.size	handle_hpd_rx_irq, .-handle_hpd_rx_irq
	.comm	dc_connection_none,4,4
	.comm	dc_connection_mst_branch,4,4
	.comm	LANE_COUNT_UNKNOWN,4,4
	.comm	DETECT_REASON_HPDRX,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
