	.file	"extr_tegra_soctherm.c_soctherm_get_temp.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	soctherm_get_temp, @function
soctherm_get_temp:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, rcx
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdx
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	call	device_get_softc@PLT
	mov	rdi, rax
	cmp	rbx, 255
	ja	.L2
	mov	rdx, QWORD PTR [rax]
	test	rdx, rdx
	je	.L4
	mov	rax, QWORD PTR 8[rax]
	xor	ecx, ecx
	mov	rsi, QWORD PTR [rax]
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L7:
	add	rcx, 1
	cmp	rcx, rdx
	je	.L4
.L8:
	cmp	rsi, rbx
	jne	.L7
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rdx, r12
	lea	rsi, [rax+rsi*8]
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	soctherm_read_temp@PLT
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	sub	rbx, 256
	cmp	QWORD PTR [rax], rbx
	ja	.L5
.L4:
	mov	eax, DWORD PTR ERANGE[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	rax, QWORD PTR 8[rax]
	add	rsp, 8
	.cfi_def_cfa_offset 24
	mov	rdx, r12
	lea	rsi, [rax+rbx*8]
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	soctherm_read_temp@PLT
	.cfi_endproc
.LFE0:
	.size	soctherm_get_temp, .-soctherm_get_temp
	.comm	ERANGE,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_tegra_soctherm.c_soctherm_get_temp.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	soctherm_get_temp, %function
soctherm_get_temp:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r2
	mov	r5, r3
	bl	device_get_softc
	cmp	r4, #255
	mov	lr, r0
	bhi	.L2
	ldr	r2, [r0]
	cmp	r2, #0
	beq	.L4
	ldr	r3, [r0, #4]
	mov	ip, #0
	ldr	r1, [r3]
	b	.L8
.L7:
	cmp	r2, ip
	beq	.L4
.L8:
	cmp	r1, r4
	add	ip, ip, #1
	bne	.L7
	mov	r2, r5
	mov	r0, lr
	pop	{r4, r5, r6, lr}
	add	r1, r3, r1, lsl #2
	b	soctherm_read_temp
.L2:
	ldr	r3, [r0]
	sub	r4, r4, #256
	cmp	r3, r4
	bhi	.L5
.L4:
	ldr	r3, .L13
	ldr	r0, [r3]
	pop	{r4, r5, r6, pc}
.L5:
	ldr	r1, [r0, #4]
	mov	r2, r5
	add	r1, r1, r4, lsl #2
	pop	{r4, r5, r6, lr}
	b	soctherm_read_temp
.L14:
	.align	2
.L13:
	.word	ERANGE
	.size	soctherm_get_temp, .-soctherm_get_temp
	.comm	ERANGE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
