	.file	"extr_nv50.c_mxm_match_dcb.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	mxm_match_dcb, @function
mxm_match_dcb:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rdx
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rsi
	call	nouveau_bios@PLT
	lea	rdx, 8[r12]
	mov	rsi, rbx
	mov	rdi, rbp
	mov	r14d, DWORD PTR [rbx]
	mov	r13, rax
	call	mxms_output_device@PLT
	mov	rax, QWORD PTR [r12]
	mov	eax, DWORD PTR [rax]
	and	eax, 15
	cmp	eax, DWORD PTR 8[r12]
	jne	.L7
	and	r14d, 240
	cmp	r14d, 31
	jg	.L4
.L8:
	movabs	rdx, 25769803782
	mov	eax, DWORD PTR [rbx]
	and	al, 15
	mov	DWORD PTR [rbx], eax
	cmp	QWORD PTR 8[r12], rdx
	je	.L12
.L6:
	or	al, -16
	mov	DWORD PTR [rbx], eax
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	mov	esi, DWORD PTR 16[r12]
	mov	rdi, r13
	call	mxm_sor_map@PLT
	mov	rcx, QWORD PTR [r12]
	mov	edx, eax
	sal	edx, 24
	xor	edx, DWORD PTR [rcx]
	and	edx, 251658240
	jne	.L7
	mov	edx, DWORD PTR 4[rcx]
	sar	eax, 4
	and	eax, 3
	sar	edx, 4
	and	edx, eax
	cmp	edx, eax
	je	.L8
	.p2align 4,,10
	.p2align 3
.L7:
	mov	eax, 1
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	mov	edx, DWORD PTR mxm_match_tmds_partner[rip]
	mov	rcx, r12
	mov	esi, 1
	mov	rdi, rbp
	call	mxms_foreach@PLT
	test	rax, rax
	je	.L13
	or	DWORD PTR [rbx], 32
	xor	eax, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L13:
	mov	eax, DWORD PTR [rbx]
	jmp	.L6
	.cfi_endproc
.LFE0:
	.size	mxm_match_dcb, .-mxm_match_dcb
	.comm	mxm_match_tmds_partner,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_nv50.c_mxm_match_dcb.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mxm_match_dcb, %function
mxm_match_dcb:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r2
	mov	r5, r1
	mov	r6, r0
	bl	nouveau_bios
	add	r2, r4, #4
	mov	r7, r0
	mov	r1, r5
	mov	r0, r6
	ldr	r8, [r5]
	bl	mxms_output_device
	ldr	r3, [r4]
	ldr	r2, [r4, #4]
	ldr	r3, [r3]
	and	r3, r3, #15
	cmp	r3, r2
	bne	.L7
	and	r8, r8, #240
	cmp	r8, #31
	bgt	.L4
.L8:
	ldr	r3, [r5]
	bic	r3, r3, #240
	str	r3, [r5]
	ldr	r2, [r4, #4]
	cmp	r2, #6
	beq	.L12
.L6:
	orr	r3, r3, #240
	mov	r0, #0
	str	r3, [r5]
	pop	{r4, r5, r6, r7, r8, pc}
.L4:
	mov	r0, r7
	ldr	r1, [r4, #12]
	bl	mxm_sor_map
	ldr	r2, [r4]
	ldr	r3, [r2]
	eor	r3, r3, r0, lsl #24
	tst	r3, #251658240
	bne	.L7
	ldr	r3, [r2, #4]
	asr	r0, r0, #4
	and	r0, r0, #3
	bics	r3, r0, r3, asr #4
	beq	.L8
.L7:
	mov	r0, #1
	pop	{r4, r5, r6, r7, r8, pc}
.L12:
	ldr	r2, [r4, #8]
	cmp	r2, #6
	bne	.L6
	ldr	r2, .L13
	mov	r3, r4
	mov	r0, r6
	mov	r1, #1
	ldr	r2, [r2]
	bl	mxms_foreach
	cmp	r0, #0
	ldr	r3, [r5]
	beq	.L6
	orr	r3, r3, #32
	mov	r0, #0
	str	r3, [r5]
	pop	{r4, r5, r6, r7, r8, pc}
.L14:
	.align	2
.L13:
	.word	mxm_match_tmds_partner
	.size	mxm_match_dcb, .-mxm_match_dcb
	.comm	mxm_match_tmds_partner,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
