	.file	"extr_gt215.c_gt215_devinit_mmio.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	gt215_devinit_mmio, @function
gt215_devinit_mmio:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	ebx, esi
	call	nv50_devinit@PLT
	mov	rcx, QWORD PTR gt215_devinit_mmio_part[rip]
	mov	rbp, rax
	mov	eax, DWORD PTR [rcx]
	test	eax, eax
	je	.L6
	.p2align 4,,10
	.p2align 3
.L2:
	cmp	ebx, eax
	jl	.L4
	cmp	DWORD PTR 4[rcx], ebx
	jge	.L12
.L4:
	mov	eax, DWORD PTR 12[rcx]
	add	rcx, 12
	test	eax, eax
	jne	.L2
.L6:
	mov	eax, ebx
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	mov	eax, ebx
	mov	edi, DWORD PTR 0[rbp]
	cdq
	idiv	DWORD PTR 8[rcx]
	and	eax, 7
	mov	r12d, eax
	test	edi, edi
	je	.L13
.L5:
	sar	edi, 16
	movzx	edi, dil
	call	hweight8@PLT
	cmp	eax, r12d
	jg	.L6
	mov	eax, -1
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L13:
	mov	rdi, QWORD PTR 8[rbp]
	mov	esi, 5440
	call	nvkm_rd32@PLT
	mov	DWORD PTR 0[rbp], eax
	mov	edi, eax
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	gt215_devinit_mmio, .-gt215_devinit_mmio
	.comm	gt215_devinit_mmio_part,8,8
	.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_gt215.c_gt215_devinit_mmio.c"
	.text
	.global	__aeabi_idiv
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	gt215_devinit_mmio, %function
gt215_devinit_mmio:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r1
	bl	nv50_devinit
	ldr	r3, .L15
	ldr	r2, [r3]
	ldr	r3, [r2]
	cmp	r3, #0
	movne	r5, r0
	beq	.L6
.L7:
	cmp	r4, r3
	blt	.L4
	ldr	r3, [r2, #4]
	cmp	r3, r4
	bge	.L13
.L4:
	ldr	r3, [r2, #12]!
	cmp	r3, #0
	bne	.L7
.L6:
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L13:
	mov	r0, r4
	ldr	r1, [r2, #8]
	bl	__aeabi_idiv
	ldr	r3, [r5]
	and	r6, r0, #7
	cmp	r3, #0
	beq	.L14
.L5:
	asr	r0, r3, #16
	and	r0, r0, #255
	bl	hweight8
	cmp	r0, r6
	bgt	.L6
	mvn	r0, #0
	pop	{r4, r5, r6, pc}
.L14:
	mov	r1, #5440
	ldr	r0, [r5, #4]
	bl	nvkm_rd32
	mov	r3, r0
	str	r0, [r5]
	b	.L5
.L16:
	.align	2
.L15:
	.word	gt215_devinit_mmio_part
	.size	gt215_devinit_mmio, .-gt215_devinit_mmio
	.comm	gt215_devinit_mmio_part,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
