	.file	"extr_amdgpu_connectors.c_amdgpu_connector_get_monitor_bpc.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"%s: HDMI deep color %d bpc unsupported. Using 12 bpc.\n"
	.align 8
.LC1:
	.string	"%s: hdmi mode dotclock %d kHz, max tmds input clock %d kHz.\n"
	.align 8
.LC2:
	.string	"%s: HDMI deep color 12 bpc exceeds max tmds clock. Using %d bpc.\n"
	.align 8
.LC3:
	.string	"%s: HDMI deep color 10 bpc exceeds max tmds clock. Using %d bpc.\n"
	.align 8
.LC4:
	.string	"%s: Required max tmds clock for HDMI deep color missing. Using 8 bpc.\n"
	.align 8
.LC5:
	.string	"%s: Deep color disabled. Set amdgpu module param deep_color=1 to enable.\n"
	.align 8
.LC6:
	.string	"%s: Display bpc=%d, returned bpc=%d\n"
	.section	.text.unlikely,"ax",@progbits
.LCOLDB7:
	.text
.LHOTB7:
	.p2align 4
	.globl	amdgpu_connector_get_monitor_bpc
	.type	amdgpu_connector_get_monitor_bpc, @function
amdgpu_connector_get_monitor_bpc:
.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, 8
	.cfi_def_cfa_offset 48
	call	to_amdgpu_connector@PLT
	mov	rbp, rax
	mov	eax, DWORD PTR [rbx]
	add	eax, -128
	cmp	eax, 6
	ja	.L28
	lea	rdx, .L4[rip]
	movsx	rax, DWORD PTR [rdx+rax*4]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L4:
	.long	.L7-.L4
	.long	.L7-.L4
	.long	.L5-.L4
	.long	.L46-.L4
	.long	.L6-.L4
	.long	.L5-.L4
	.long	.L46-.L4
	.text
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rax, QWORD PTR 8[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	eax, DWORD PTR CONNECTOR_OBJECT_ID_DISPLAYPORT[rip]
	je	.L10
	cmp	eax, DWORD PTR CONNECTOR_OBJECT_ID_eDP[rip]
	je	.L10
	.p2align 4,,10
	.p2align 3
.L46:
	mov	rdi, rbx
	call	amdgpu_connector_edid@PLT
	mov	edi, eax
	call	drm_detect_hdmi_monitor@PLT
	test	rax, rax
	jne	.L10
.L8:
	mov	r12d, 8
.L11:
	mov	rdi, rbx
	call	amdgpu_connector_edid@PLT
	mov	edi, eax
	call	drm_detect_hdmi_monitor@PLT
	test	rax, rax
	je	.L44
	mov	ecx, DWORD PTR 8[rbx]
	mov	esi, DWORD PTR 16[rbx]
	test	ecx, ecx
	jne	.L27
.L20:
	mov	edx, DWORD PTR 4[rbx]
	mov	ecx, r12d
	lea	rdi, .LC6[rip]
	xor	eax, eax
	call	DRM_DEBUG@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	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
.L5:
	.cfi_restore_state
	mov	eax, DWORD PTR 16[rbp]
	test	eax, eax
	je	.L8
	jmp	.L46
	.p2align 4,,10
	.p2align 3
.L7:
	mov	r12d, DWORD PTR 4[rbx]
	test	r12d, r12d
	je	.L49
.L2:
	mov	rdi, rbx
	call	amdgpu_connector_edid@PLT
	mov	edi, eax
	call	drm_detect_hdmi_monitor@PLT
	test	rax, rax
	je	.L12
	mov	esi, DWORD PTR 16[rbx]
	cmp	r12d, 12
	jle	.L13
	mov	edx, r12d
	lea	rdi, .LC0[rip]
	xor	eax, eax
	call	DRM_DEBUG@PLT
	mov	r13d, DWORD PTR 8[rbx]
	test	r13d, r13d
	jne	.L14
	mov	esi, DWORD PTR 16[rbx]
.L15:
	lea	rdi, .LC4[rip]
	xor	eax, eax
	mov	r12d, 8
	call	DRM_DEBUG@PLT
	mov	esi, DWORD PTR 16[rbx]
	jmp	.L20
	.p2align 4,,10
	.p2align 3
.L10:
	mov	r12d, DWORD PTR 4[rbx]
	test	r12d, r12d
	jne	.L2
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L27:
	mov	edx, DWORD PTR 0[rbp]
	lea	rdi, .LC1[rip]
	xor	eax, eax
	call	DRM_DEBUG@PLT
	.p2align 4,,10
	.p2align 3
.L44:
	mov	esi, DWORD PTR 16[rbx]
	jmp	.L20
	.p2align 4,,10
	.p2align 3
.L12:
	cmp	QWORD PTR amdgpu_deep_color[rip], 0
	mov	esi, DWORD PTR 16[rbx]
	jne	.L20
	cmp	r12d, 8
	jle	.L20
.L19:
	lea	rdi, .LC5[rip]
	xor	eax, eax
	mov	r12d, 8
	call	DRM_DEBUG@PLT
	mov	esi, DWORD PTR 16[rbx]
	jmp	.L20
	.p2align 4,,10
	.p2align 3
.L49:
	mov	rax, QWORD PTR 24[rbx]
	mov	rdi, rbx
	mov	r12d, 6
	call	[QWORD PTR [rax]]
	mov	rdi, rax
	call	to_amdgpu_encoder@PLT
	mov	rax, QWORD PTR [rax]
	mov	eax, DWORD PTR [rax]
	test	DWORD PTR ATOM_PANEL_MISC_V13_6BIT_PER_COLOR[rip], eax
	jne	.L11
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L13:
	mov	r13d, DWORD PTR 8[rbx]
	test	r13d, r13d
	je	.L16
	mov	ebp, DWORD PTR 0[rbp]
	xor	eax, eax
	mov	ecx, r13d
	lea	rdi, .LC1[rip]
	mov	edx, ebp
	call	DRM_DEBUG@PLT
	cmp	r12d, 12
	je	.L25
	cmp	r12d, 10
	jne	.L12
	lea	eax, 0[rbp+rbp*4]
	mov	esi, DWORD PTR 16[rbx]
	shr	eax, 2
	cmp	r13d, eax
	jb	.L50
.L24:
	cmp	QWORD PTR amdgpu_deep_color[rip], 0
	mov	r12d, 10
	jne	.L20
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L14:
	mov	ebp, DWORD PTR 0[rbp]
	mov	esi, DWORD PTR 16[rbx]
	mov	ecx, r13d
	lea	rdi, .LC1[rip]
	xor	eax, eax
	mov	edx, ebp
	call	DRM_DEBUG@PLT
.L25:
	lea	eax, 0[rbp+rbp*2]
	mov	esi, DWORD PTR 16[rbx]
	shr	eax
	cmp	eax, r13d
	jbe	.L51
	mov	eax, DWORD PTR 12[rbx]
	test	DWORD PTR DRM_EDID_HDMI_DC_30[rip], eax
	je	.L21
	lea	eax, 0[rbp+rbp*4]
	shr	eax, 2
	cmp	eax, r13d
	ja	.L21
	mov	edx, 10
	lea	rdi, .LC2[rip]
	xor	eax, eax
	call	DRM_DEBUG@PLT
	mov	esi, DWORD PTR 16[rbx]
	jmp	.L24
	.p2align 4,,10
	.p2align 3
.L51:
	cmp	QWORD PTR amdgpu_deep_color[rip], 0
	mov	r12d, 12
	jne	.L20
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L50:
	mov	edx, 8
	lea	rdi, .LC3[rip]
	xor	eax, eax
	mov	r12d, 8
	call	DRM_DEBUG@PLT
	mov	esi, DWORD PTR 16[rbx]
	jmp	.L20
.L16:
	cmp	r12d, 8
	jg	.L15
	jmp	.L20
	.p2align 4,,10
	.p2align 3
.L21:
	mov	edx, 8
	lea	rdi, .LC2[rip]
	xor	eax, eax
	mov	r12d, 8
	call	DRM_DEBUG@PLT
	mov	esi, DWORD PTR 16[rbx]
	jmp	.L20
	.cfi_endproc
	.section	.text.unlikely
	.cfi_startproc
	.type	amdgpu_connector_get_monitor_bpc.cold, @function
amdgpu_connector_get_monitor_bpc.cold:
.LFSB0:
.L28:
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -40
	.cfi_offset 6, -32
	.cfi_offset 12, -24
	.cfi_offset 13, -16
	mov	r12d, 8
	jmp	.L2
	.cfi_endproc
.LFE0:
	.text
	.size	amdgpu_connector_get_monitor_bpc, .-amdgpu_connector_get_monitor_bpc
	.section	.text.unlikely
	.size	amdgpu_connector_get_monitor_bpc.cold, .-amdgpu_connector_get_monitor_bpc.cold
.LCOLDE7:
	.text
.LHOTE7:
	.comm	amdgpu_deep_color,8,8
	.comm	DRM_EDID_HDMI_DC_30,4,4
	.comm	CONNECTOR_OBJECT_ID_eDP,4,4
	.comm	CONNECTOR_OBJECT_ID_DISPLAYPORT,4,4
	.comm	ATOM_PANEL_MISC_V13_8BIT_PER_COLOR,4,4
	.comm	ATOM_PANEL_MISC_V13_6BIT_PER_COLOR,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_connectors.c_amdgpu_connector_get_monitor_bpc.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"%s: HDMI deep color %d bpc unsupported. Using 12 bp"
	.ascii	"c.\012\000"
	.align	2
.LC1:
	.ascii	"%s: hdmi mode dotclock %d kHz, max tmds input clock"
	.ascii	" %d kHz.\012\000"
	.align	2
.LC2:
	.ascii	"%s: HDMI deep color 12 bpc exceeds max tmds clock. "
	.ascii	"Using %d bpc.\012\000"
	.align	2
.LC3:
	.ascii	"%s: HDMI deep color 10 bpc exceeds max tmds clock. "
	.ascii	"Using %d bpc.\012\000"
	.align	2
.LC4:
	.ascii	"%s: Required max tmds clock for HDMI deep color mis"
	.ascii	"sing. Using 8 bpc.\012\000"
	.align	2
.LC5:
	.ascii	"%s: Deep color disabled. Set amdgpu module param de"
	.ascii	"ep_color=1 to enable.\012\000"
	.align	2
.LC6:
	.ascii	"%s: Display bpc=%d, returned bpc=%d\012\000"
	.text
	.align	2
	.global	amdgpu_connector_get_monitor_bpc
	.syntax unified
	.arm
	.fpu softvfp
	.type	amdgpu_connector_get_monitor_bpc, %function
amdgpu_connector_get_monitor_bpc:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r0
	bl	to_amdgpu_connector
	ldr	r3, [r4]
	mov	r6, r0
	sub	r3, r3, #128
	cmp	r3, #6
	ldrls	pc, [pc, r3, asl #2]
	b	.L28
.L4:
	.word	.L7
	.word	.L7
	.word	.L5
	.word	.L55
	.word	.L6
	.word	.L5
	.word	.L55
.L6:
	ldr	r3, [r0, #4]
	ldr	r2, .L61
	ldr	r3, [r3]
	ldr	r2, [r2]
	cmp	r3, r2
	beq	.L10
	ldr	r2, .L61+4
	ldr	r2, [r2]
	cmp	r3, r2
	beq	.L10
.L55:
	mov	r0, r4
	bl	amdgpu_connector_edid
	bl	drm_detect_hdmi_monitor
	cmp	r0, #0
	bne	.L10
.L8:
	mov	r5, #8
.L11:
	mov	r0, r4
	bl	amdgpu_connector_edid
	bl	drm_detect_hdmi_monitor
	cmp	r0, #0
	beq	.L53
	ldr	r3, [r4, #8]
	ldr	r1, [r4, #16]
	cmp	r3, #0
	bne	.L27
.L20:
	mov	r3, r5
	ldr	r2, [r4, #4]
	ldr	r0, .L61+8
	bl	DRM_DEBUG
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, pc}
.L5:
	ldr	r3, [r0, #8]
	cmp	r3, #0
	beq	.L8
	b	.L55
.L7:
	ldr	r5, [r4, #4]
	cmp	r5, #0
	beq	.L58
.L2:
	mov	r0, r4
	bl	amdgpu_connector_edid
	bl	drm_detect_hdmi_monitor
	cmp	r0, #0
	beq	.L12
	cmp	r5, #12
	ldr	r1, [r4, #16]
	ble	.L13
	mov	r2, r5
	ldr	r0, .L61+12
	bl	DRM_DEBUG
	ldr	r7, [r4, #8]
	cmp	r7, #0
	bne	.L14
	ldr	r1, [r4, #16]
.L15:
	ldr	r0, .L61+16
	bl	DRM_DEBUG
	mov	r5, #8
	ldr	r1, [r4, #16]
	b	.L20
.L10:
	ldr	r5, [r4, #4]
	cmp	r5, #0
	bne	.L2
	b	.L8
.L27:
	ldr	r2, [r6]
	ldr	r0, .L61+20
	bl	DRM_DEBUG
.L53:
	ldr	r1, [r4, #16]
	b	.L20
.L12:
	ldr	r3, .L61+24
	ldr	r1, [r4, #16]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L20
	cmp	r5, #8
	ble	.L20
.L19:
	ldr	r0, .L61+28
	bl	DRM_DEBUG
	mov	r5, #8
	ldr	r1, [r4, #16]
	b	.L20
.L58:
	ldr	r3, [r4, #20]
	mov	r0, r4
	ldr	r3, [r3]
	blx	r3
	bl	to_amdgpu_encoder
	ldr	r3, .L61+32
	ldr	r2, [r0]
	ldr	r3, [r3]
	ldr	r2, [r2]
	tst	r2, r3
	movne	r5, #6
	bne	.L11
	b	.L8
.L13:
	ldr	r7, [r4, #8]
	cmp	r7, #0
	beq	.L16
	ldr	r6, [r6]
	mov	r3, r7
	mov	r2, r6
	ldr	r0, .L61+20
	bl	DRM_DEBUG
	cmp	r5, #12
	beq	.L25
	cmp	r5, #10
	bne	.L12
	add	r6, r6, r6, lsl #2
	cmp	r7, r6, lsr #2
	ldr	r1, [r4, #16]
	bcc	.L59
.L24:
	ldr	r3, .L61+24
	ldr	r3, [r3]
	cmp	r3, #0
	movne	r5, #10
	bne	.L20
	b	.L19
.L14:
	ldr	r6, [r6]
	mov	r3, r7
	mov	r2, r6
	ldr	r1, [r4, #16]
	ldr	r0, .L61+20
	bl	DRM_DEBUG
.L25:
	add	r3, r6, r6, lsl #1
	cmp	r7, r3, lsr #1
	ldr	r1, [r4, #16]
	bcs	.L60
	ldr	r3, .L61+36
	ldr	r2, [r4, #12]
	ldr	r3, [r3]
	tst	r2, r3
	beq	.L21
	add	r6, r6, r6, lsl #2
	cmp	r7, r6, lsr #2
	bcc	.L21
	mov	r2, #10
	ldr	r0, .L61+40
	bl	DRM_DEBUG
	ldr	r1, [r4, #16]
	b	.L24
.L60:
	ldr	r3, .L61+24
	ldr	r3, [r3]
	cmp	r3, #0
	movne	r5, #12
	bne	.L20
	b	.L19
.L59:
	mov	r2, #8
	ldr	r0, .L61+44
	bl	DRM_DEBUG
	mov	r5, #8
	ldr	r1, [r4, #16]
	b	.L20
.L16:
	cmp	r5, #8
	bgt	.L15
	b	.L20
.L21:
	mov	r2, #8
	ldr	r0, .L61+40
	bl	DRM_DEBUG
	mov	r5, #8
	ldr	r1, [r4, #16]
	b	.L20
.L28:
	mov	r5, #8
	b	.L2
.L62:
	.align	2
.L61:
	.word	CONNECTOR_OBJECT_ID_DISPLAYPORT
	.word	CONNECTOR_OBJECT_ID_eDP
	.word	.LC6
	.word	.LC0
	.word	.LC4
	.word	.LC1
	.word	amdgpu_deep_color
	.word	.LC5
	.word	ATOM_PANEL_MISC_V13_6BIT_PER_COLOR
	.word	DRM_EDID_HDMI_DC_30
	.word	.LC2
	.word	.LC3
	.size	amdgpu_connector_get_monitor_bpc, .-amdgpu_connector_get_monitor_bpc
	.comm	amdgpu_deep_color,4,4
	.comm	DRM_EDID_HDMI_DC_30,4,4
	.comm	CONNECTOR_OBJECT_ID_eDP,4,4
	.comm	CONNECTOR_OBJECT_ID_DISPLAYPORT,4,4
	.comm	ATOM_PANEL_MISC_V13_8BIT_PER_COLOR,4,4
	.comm	ATOM_PANEL_MISC_V13_6BIT_PER_COLOR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
