	.file	"extr_nv50.c_nv50_gpio_reset.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	nv50_gpio_reset, @function
nv50_gpio_reset:
.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
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13d, esi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	ebx, -1
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	lea	r15, 20[rsp]
	lea	r14, 16[rsp]
	call	nouveau_bios@PLT
	mov	rbp, rax
	.p2align 4,,10
	.p2align 3
.L2:
	add	ebx, 1
	xor	esi, esi
	mov	r8, r15
	mov	rcx, r14
	mov	edx, ebx
	mov	rdi, rbp
	call	dcb_gpio_entry@PLT
	mov	esi, eax
	test	eax, eax
	je	.L13
	mov	rdi, rbp
	call	nv_ro32@PLT
	mov	r9d, eax
	movzx	edx, ah
	mov	eax, DWORD PTR DCB_GPIO_UNUSED[rip]
	cmp	eax, edx
	je	.L2
	cmp	edx, r13d
	je	.L7
	cmp	eax, r13d
	jne	.L2
.L7:
	mov	eax, r9d
	lea	rdi, regs.1962[rip]
	mov	ecx, r9d
	mov	r8d, r9d
	sar	eax, 4
	and	ecx, 15
	shr	r8d, 24
	mov	DWORD PTR 8[rsp], r9d
	and	eax, 1
	mov	DWORD PTR 4[rsp], ecx
	xor	esi, esi
	and	r8d, 1
	mov	r10d, DWORD PTR [rdi+rax*4]
	mov	rdi, r12
	mov	DWORD PTR 12[rsp], r10d
	call	[QWORD PTR [r12]]
	mov	r9d, DWORD PTR 8[rsp]
	mov	ecx, DWORD PTR 4[rsp]
	mov	rdi, r12
	mov	r10d, DWORD PTR 12[rsp]
	mov	edx, 65537
	mov	eax, r9d
	shr	r9d, 25
	shr	eax, 10
	and	r9d, 1
	sal	edx, cl
	mov	esi, r10d
	and	eax, 65536
	or	r9d, eax
	sal	r9d, cl
	mov	ecx, r9d
	call	nv_mask@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L13:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L14
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
	ret
.L14:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	nv50_gpio_reset, .-nv50_gpio_reset
	.section	.rodata
	.align 8
	.type	regs.1962, @object
	.size	regs.1962, 8
regs.1962:
	.long	57600
	.long	57996
	.comm	DCB_GPIO_UNUSED,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_nv50_gpio_reset.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	nv50_gpio_reset, %function
nv50_gpio_reset:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, .L10
	sub	sp, sp, #28
	mov	r5, r1
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	mov	r9, r0
	bl	nouveau_bios
	mvn	r6, #0
	mov	r7, r0
	add	r10, sp, #16
.L2:
	add	r6, r6, #1
	mov	r1, #0
	mov	r2, r6
	mov	r0, r7
	str	r10, [sp]
	add	r3, sp, #12
	bl	dcb_gpio_entry
	subs	r1, r0, #0
	beq	.L8
	mov	r0, r7
	bl	nv_ro32
	ldr	r3, .L10+4
	asr	r2, r0, #8
	ldr	r1, [r3]
	and	r2, r2, #255
	cmp	r1, r2
	mov	r4, r0
	beq	.L2
	cmp	r2, r5
	cmpne	r1, r5
	movne	r1, #1
	moveq	r1, #0
	bne	.L2
	lsr	r3, r0, #24
	ldr	lr, .L10+8
	and	r3, r3, #1
	asr	ip, r0, #4
	and	r8, r0, #15
	str	r3, [sp]
	and	ip, ip, #1
	ldr	fp, [lr, ip, lsl #2]
	mov	r3, r8
	mov	r0, r9
	ldr	ip, [r9]
	blx	ip
	lsr	r3, r4, #10
	ldr	r2, .L10+12
	lsl	r4, r4, #6
	and	r3, r3, #65536
	orr	r3, r3, r4, lsr #31
	mov	r1, fp
	mov	r0, r9
	lsl	r3, r3, r8
	lsl	r2, r2, r8
	bl	nv_mask
	b	.L2
.L8:
	ldr	r3, .L10
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L9
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L9:
	bl	__stack_chk_fail
.L11:
	.align	2
.L10:
	.word	.LC0
	.word	DCB_GPIO_UNUSED
	.word	.LANCHOR0
	.word	65537
	.size	nv50_gpio_reset, .-nv50_gpio_reset
	.comm	DCB_GPIO_UNUSED,4,4
	.section	.rodata
	.align	2
	.set	.LANCHOR0,. + 0
	.type	regs.4246, %object
	.size	regs.4246, 8
regs.4246:
	.word	57600
	.word	57996
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
