	.file	"extr_adt746x.c_adt746x_start.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Dev ID %#x, Company ID %#x, Rev ID %#x CNF: %#x\n"
	.text
	.p2align 4
	.type	adt746x_start, @function
adt746x_start:
.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
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	sub	rsp, 32
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	lea	r12, 20[rsp]
	call	device_get_softc@PLT
	mov	edx, DWORD PTR ADT746X_DEVICE_ID[rip]
	lea	rcx, 8[rsp]
	mov	esi, DWORD PTR 8[rax]
	mov	edi, DWORD PTR 12[rax]
	mov	rbx, rax
	call	adt746x_read@PLT
	mov	esi, DWORD PTR 8[rbx]
	mov	edi, DWORD PTR 12[rbx]
	lea	rcx, 12[rsp]
	mov	edx, DWORD PTR ADT746X_COMPANY_ID[rip]
	call	adt746x_read@PLT
	mov	esi, DWORD PTR 8[rbx]
	mov	edi, DWORD PTR 12[rbx]
	lea	rcx, 16[rsp]
	mov	edx, DWORD PTR ADT746X_REV_ID[rip]
	call	adt746x_read@PLT
	mov	esi, DWORD PTR 8[rbx]
	mov	edi, DWORD PTR 12[rbx]
	mov	rcx, r12
	mov	edx, DWORD PTR ADT746X_CONFIG[rip]
	call	adt746x_read@PLT
	mov	r9d, DWORD PTR 20[rsp]
	mov	ecx, DWORD PTR 12[rsp]
	mov	edi, ebp
	mov	r8d, DWORD PTR 16[rsp]
	mov	edx, DWORD PTR 8[rsp]
	lea	rsi, .LC0[rip]
	call	device_printf@PLT
	movsx	rax, DWORD PTR 8[rsp]
	cmp	rax, QWORD PTR ADT7460_DEV_ID[rip]
	mov	DWORD PTR [rbx], eax
	mov	DWORD PTR 20[rsp], 1
	je	.L6
.L2:
	mov	edi, ebp
	call	adt746x_attach_fans@PLT
	mov	edi, ebp
	call	adt746x_attach_sensors@PLT
	lea	rdi, 4[rbx]
	call	config_intrhook_disestablish@PLT
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L7
	add	rsp, 32
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	pop	rbx
	.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
.L6:
	.cfi_restore_state
	mov	esi, DWORD PTR 8[rbx]
	mov	edi, DWORD PTR 12[rbx]
	mov	rcx, r12
	mov	edx, DWORD PTR ADT746X_CONFIG[rip]
	call	adt746x_write@PLT
	jmp	.L2
.L7:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	adt746x_start, .-adt746x_start
	.comm	ADT746X_REV_ID,4,4
	.comm	ADT746X_DEVICE_ID,4,4
	.comm	ADT746X_CONFIG,4,4
	.comm	ADT746X_COMPANY_ID,4,4
	.comm	ADT7460_DEV_ID,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_adt746x.c_adt746x_start.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Dev ID %#x, Company ID %#x, Rev ID %#x CNF: %#x\012"
	.ascii	"\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	adt746x_start, %function
adt746x_start:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r3, .L8
	sub	sp, sp, #32
	ldr	r3, [r3]
	str	r3, [sp, #28]
	mov	r3,#0
	mov	r5, r0
	bl	device_get_softc
	mov	r4, r0
	ldr	r3, .L8+4
	ldr	r1, [r0, #8]
	ldr	r2, [r3]
	ldr	r0, [r0, #12]
	add	r3, sp, #12
	bl	adt746x_read
	ldr	r3, .L8+8
	ldr	r1, [r4, #8]
	ldr	r2, [r3]
	ldr	r0, [r4, #12]
	add	r3, sp, #16
	bl	adt746x_read
	ldr	r3, .L8+12
	ldr	r6, .L8+16
	ldr	r2, [r3]
	ldr	r1, [r4, #8]
	add	r3, sp, #20
	ldr	r0, [r4, #12]
	bl	adt746x_read
	ldr	r1, [r4, #8]
	ldr	r2, [r6]
	add	r3, sp, #24
	ldr	r0, [r4, #12]
	bl	adt746x_read
	ldr	r2, [sp, #24]
	ldr	r3, [sp, #20]
	ldr	r1, .L8+20
	str	r2, [sp, #4]
	str	r3, [sp]
	ldr	r2, [sp, #12]
	ldr	r3, [sp, #16]
	mov	r0, r5
	bl	device_printf
	mov	r2, #1
	ldr	r1, .L8+24
	ldr	r3, [sp, #12]
	ldr	r1, [r1]
	str	r3, [r4]
	cmp	r3, r1
	str	r2, [sp, #24]
	beq	.L6
.L2:
	mov	r0, r5
	bl	adt746x_attach_fans
	mov	r0, r5
	bl	adt746x_attach_sensors
	add	r0, r4, #4
	bl	config_intrhook_disestablish
	ldr	r3, .L8
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L7
	add	sp, sp, #32
	@ sp needed
	pop	{r4, r5, r6, pc}
.L6:
	ldr	r2, [r6]
	ldr	r1, [r4, #8]
	ldr	r0, [r4, #12]
	add	r3, sp, #24
	bl	adt746x_write
	b	.L2
.L7:
	bl	__stack_chk_fail
.L9:
	.align	2
.L8:
	.word	.LC1
	.word	ADT746X_DEVICE_ID
	.word	ADT746X_COMPANY_ID
	.word	ADT746X_REV_ID
	.word	ADT746X_CONFIG
	.word	.LC0
	.word	ADT7460_DEV_ID
	.size	adt746x_start, .-adt746x_start
	.comm	ADT746X_REV_ID,4,4
	.comm	ADT746X_DEVICE_ID,4,4
	.comm	ADT746X_CONFIG,4,4
	.comm	ADT746X_COMPANY_ID,4,4
	.comm	ADT7460_DEV_ID,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
