	.file	"extr_base.c_nvkm_iccsense_validate_device.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	nvkm_iccsense_validate_device, @function
nvkm_iccsense_validate_device:
.LFB0:
	.cfi_startproc
	endbr64
	sub	rsp, 24
	.cfi_def_cfa_offset 32
	cmp	edx, 128
	je	.L2
	sub	edx, 129
	xor	eax, eax
	cmp	edx, 1
	ja	.L1
	xor	edx, edx
	call	nv_rd16i2cr@PLT
	not	eax
	shr	eax, 31
.L1:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	edx, 255
	mov	DWORD PTR 12[rsp], esi
	mov	QWORD PTR [rsp], rdi
	call	nv_rd16i2cr@PLT
	mov	rdi, QWORD PTR [rsp]
	mov	esi, DWORD PTR 12[rsp]
	mov	r8d, eax
	xor	eax, eax
	cmp	r8d, 12832
	jne	.L1
	mov	edx, 254
	call	nv_rd16i2cr@PLT
	cmp	eax, 21577
	sete	al
	movzx	eax, al
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	nvkm_iccsense_validate_device, .-nvkm_iccsense_validate_device
	.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_base.c_nvkm_iccsense_validate_device.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	nvkm_iccsense_validate_device, %function
nvkm_iccsense_validate_device:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	cmp	r2, #128
	push	{r4, r5, r6, lr}
	beq	.L2
	sub	r2, r2, #129
	cmp	r2, #1
	bhi	.L5
	mov	r2, #0
	bl	nv_rd16i2cr
	mvn	r0, r0
	lsr	r0, r0, #31
	pop	{r4, r5, r6, pc}
.L2:
	mov	r2, #255
	mov	r4, r0
	mov	r5, r1
	bl	nv_rd16i2cr
	ldr	r3, .L9
	cmp	r0, r3
	beq	.L8
.L5:
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L8:
	mov	r1, r5
	mov	r0, r4
	mov	r2, #254
	bl	nv_rd16i2cr
	ldr	r3, .L9+4
	sub	r0, r0, r3
	clz	r0, r0
	lsr	r0, r0, #5
	pop	{r4, r5, r6, pc}
.L10:
	.align	2
.L9:
	.word	12832
	.word	21577
	.size	nvkm_iccsense_validate_device, .-nvkm_iccsense_validate_device
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
