	.file	"extr_sorgm200.c_gm200_sor_dp_drive.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	gm200_sor_dp_drive
	.type	gm200_sor_dp_drive, @function
gm200_sor_dp_drive:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rdi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13d, r9d
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	sal	r13d, 8
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	and	r13d, 3840
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	ebx, esi
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	rax, QWORD PTR 8[rdi]
	mov	DWORD PTR 16[rsp], ecx
	mov	r12, QWORD PTR [rax]
	mov	DWORD PTR 12[rsp], edx
	mov	DWORD PTR 20[rsp], r8d
	call	nv50_sor_link@PLT
	movsx	rdx, ebx
	mov	rdi, r12
	mov	DWORD PTR 28[rsp], ebx
	mov	ebp, eax
	mov	rax, QWORD PTR [r14]
	mov	ebx, 255
	lea	r8d, 6406424[rbp]
	mov	rax, QWORD PTR [rax]
	mov	esi, r8d
	mov	DWORD PTR 24[rsp], r8d
	mov	r14d, DWORD PTR [rax+rdx*4]
	lea	r15d, 0[0+r14*8]
	lea	r14d, 6406432[rbp]
	mov	DWORD PTR 8[rsp], r15d
	call	nvkm_rd32@PLT
	mov	ecx, r15d
	mov	esi, r14d
	mov	rdi, r12
	sal	ebx, cl
	lea	r15d, 6406448[rbp]
	not	ebx
	and	eax, ebx
	mov	DWORD PTR [rsp], eax
	call	nvkm_rd32@PLT
	mov	esi, r15d
	mov	rdi, r12
	and	eax, ebx
	mov	DWORD PTR 4[rsp], eax
	call	nvkm_rd32@PLT
	mov	r8d, DWORD PTR 24[rsp]
	mov	r10d, eax
	and	eax, 3840
	cmp	eax, r13d
	jl	.L4
	mov	eax, DWORD PTR 28[rsp]
	test	eax, eax
	jne	.L2
.L4:
	and	r10d, -3841
	or	r10d, r13d
.L2:
	mov	r13d, DWORD PTR 8[rsp]
	mov	edx, DWORD PTR 16[rsp]
	mov	esi, r8d
	mov	rdi, r12
	mov	DWORD PTR 24[rsp], r10d
	add	ebp, 6406460
	mov	ecx, r13d
	sal	edx, cl
	or	edx, DWORD PTR [rsp]
	call	nvkm_wr32@PLT
	mov	edx, DWORD PTR 20[rsp]
	mov	ecx, r13d
	mov	esi, r14d
	mov	rdi, r12
	sal	edx, cl
	or	edx, DWORD PTR 4[rsp]
	call	nvkm_wr32@PLT
	mov	r10d, DWORD PTR 24[rsp]
	mov	esi, r15d
	mov	rdi, r12
	mov	edx, r10d
	call	nvkm_wr32@PLT
	mov	esi, ebp
	mov	rdi, r12
	call	nvkm_rd32@PLT
	mov	edx, DWORD PTR 12[rsp]
	mov	ecx, r13d
	add	rsp, 40
	.cfi_def_cfa_offset 56
	and	ebx, eax
	mov	esi, ebp
	mov	rdi, r12
	sal	edx, cl
	or	edx, ebx
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	jmp	nvkm_wr32@PLT
	.cfi_endproc
.LFE0:
	.size	gm200_sor_dp_drive, .-gm200_sor_dp_drive
	.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_sorgm200.c_gm200_sor_dp_drive.c"
	.text
	.align	2
	.global	gm200_sor_dp_drive
	.syntax unified
	.arm
	.fpu softvfp
	.type	gm200_sor_dp_drive, %function
gm200_sor_dp_drive:
	@ args = 8, pretend = 0, frame = 32
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	sub	sp, sp, #36
	str	r3, [sp, #28]
	ldr	r3, [sp, #72]
	mov	r6, r0
	ldr	ip, [r0, #4]
	str	r3, [sp, #16]
	ldr	r3, [sp, #76]
	ldr	r5, [ip]
	mov	r4, r1
	str	r2, [sp, #12]
	str	r3, [sp, #20]
	bl	nv50_sor_link
	ldr	r1, [r6]
	ldr	r3, .L8
	ldr	r1, [r1]
	add	r3, r0, r3
	mov	r8, r0
	ldr	r7, [r1, r4, lsl #2]
	mov	r0, r5
	mov	r1, r3
	str	r3, [sp, #24]
	mov	r6, #255
	bl	nvkm_rd32
	lsl	r7, r7, #3
	mov	ip, r0
	mvn	r6, r6, lsl r7
	ldr	r10, .L8+4
	and	r2, ip, r6
	add	r10, r8, r10
	mov	r1, r10
	mov	r0, r5
	str	r2, [sp, #4]
	bl	nvkm_rd32
	mov	fp, r0
	ldr	r9, .L8+8
	and	r2, r6, fp
	add	r9, r8, r9
	mov	r1, r9
	mov	r0, r5
	str	r2, [sp, #8]
	bl	nvkm_rd32
	clz	r1, r4
	ldr	r3, [sp, #20]
	mov	r4, r0
	lsl	ip, r3, #8
	and	ip, ip, #3840
	and	r0, r0, #3840
	lsr	r1, r1, #5
	cmp	r0, ip
	orrlt	r1, r1, #1
	ldr	r3, [sp, #24]
	cmp	r1, #0
	ldr	r2, [sp, #28]
	ldr	r1, [sp, #4]
	bicne	r4, r4, #3840
	orr	r2, r1, r2, lsl r7
	mov	r0, r5
	mov	r1, r3
	orrne	r4, r4, ip
	bl	nvkm_wr32
	ldr	r3, [sp, #8]
	ldr	r2, [sp, #16]
	ldr	fp, .L8+12
	orr	r2, r3, r2, lsl r7
	mov	r1, r10
	mov	r0, r5
	bl	nvkm_wr32
	add	fp, r8, fp
	mov	r2, r4
	mov	r1, r9
	mov	r0, r5
	bl	nvkm_wr32
	mov	r1, fp
	mov	r0, r5
	bl	nvkm_rd32
	mov	r1, fp
	and	r2, r6, r0
	mov	r0, r5
	ldr	r3, [sp, #12]
	orr	r2, r2, r3, lsl r7
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	nvkm_wr32
.L9:
	.align	2
.L8:
	.word	6406424
	.word	6406432
	.word	6406448
	.word	6406460
	.size	gm200_sor_dp_drive, .-gm200_sor_dp_drive
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
