	.file	"extr_w83627hf.c_store_temp_type.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Sensor type %d is deprecated, please use 4 instead\n"
	.align 8
.LC1:
	.string	"Invalid sensor type %ld; must be 1, 2, or 4\n"
	.text
	.p2align 4
	.type	store_temp_type, @function
store_temp_type:
.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
	mov	r14, rdx
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rcx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdi
	mov	rdi, rsi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	call	to_sensor_dev_attr@PLT
	mov	rdi, r12
	movsx	r15, DWORD PTR [rax]
	call	dev_get_drvdata@PLT
	mov	rdi, r14
	xor	esi, esi
	mov	edx, 10
	mov	rbp, rax
	call	simple_strtoul@PLT
	lea	r14, 8[rbp]
	mov	ebx, eax
	mov	rdi, r14
	call	mutex_lock@PLT
	cmp	ebx, 4
	je	.L2
	jg	.L3
	cmp	ebx, 1
	je	.L4
	cmp	ebx, 2
	jne	.L6
	mov	esi, DWORD PTR W83781D_REG_SCFG1[rip]
	mov	rdi, rbp
	call	w83627hf_read_value@PLT
	mov	rdx, QWORD PTR BIT_SCFG1[rip]
	mov	esi, DWORD PTR W83781D_REG_SCFG1[rip]
	mov	rdi, rbp
	or	eax, DWORD PTR [rdx+r15*4]
	mov	edx, eax
	call	w83627hf_write_value@PLT
	mov	esi, DWORD PTR W83781D_REG_SCFG2[rip]
	mov	rdi, rbp
	call	w83627hf_read_value@PLT
	mov	rdx, QWORD PTR BIT_SCFG2[rip]
	mov	esi, DWORD PTR W83781D_REG_SCFG2[rip]
	mov	rdi, rbp
	mov	edx, DWORD PTR [rdx+r15*4]
	not	edx
	and	edx, eax
	call	w83627hf_write_value@PLT
	mov	rax, QWORD PTR 0[rbp]
	mov	DWORD PTR [rax+r15*4], 2
.L8:
	mov	rdi, r14
	call	mutex_unlock@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rax, r13
	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
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	cmp	ebx, 128
	jne	.L6
	mov	edx, 128
	lea	rsi, .LC0[rip]
	mov	rdi, r12
	call	dev_warn@PLT
.L2:
	mov	esi, DWORD PTR W83781D_REG_SCFG1[rip]
	mov	rdi, rbp
	call	w83627hf_read_value@PLT
	mov	rdx, QWORD PTR BIT_SCFG1[rip]
	mov	esi, DWORD PTR W83781D_REG_SCFG1[rip]
	mov	rdi, rbp
	mov	edx, DWORD PTR [rdx+r15*4]
	not	edx
	and	edx, eax
	call	w83627hf_write_value@PLT
	mov	rax, QWORD PTR 0[rbp]
	mov	DWORD PTR [rax+r15*4], ebx
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L6:
	movsx	rdx, ebx
	lea	rsi, .LC1[rip]
	mov	rdi, r12
	call	dev_err@PLT
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L4:
	mov	esi, DWORD PTR W83781D_REG_SCFG1[rip]
	mov	rdi, rbp
	call	w83627hf_read_value@PLT
	mov	rdx, QWORD PTR BIT_SCFG1[rip]
	mov	esi, DWORD PTR W83781D_REG_SCFG1[rip]
	mov	rdi, rbp
	or	eax, DWORD PTR [rdx+r15*4]
	mov	edx, eax
	call	w83627hf_write_value@PLT
	mov	esi, DWORD PTR W83781D_REG_SCFG2[rip]
	mov	rdi, rbp
	call	w83627hf_read_value@PLT
	mov	rdx, QWORD PTR BIT_SCFG2[rip]
	mov	esi, DWORD PTR W83781D_REG_SCFG2[rip]
	mov	rdi, rbp
	or	eax, DWORD PTR [rdx+r15*4]
	mov	edx, eax
	call	w83627hf_write_value@PLT
	mov	rax, QWORD PTR 0[rbp]
	mov	DWORD PTR [rax+r15*4], 1
	jmp	.L8
	.cfi_endproc
.LFE0:
	.size	store_temp_type, .-store_temp_type
	.comm	W83781D_REG_SCFG2,4,4
	.comm	W83781D_REG_SCFG1,4,4
	.comm	BIT_SCFG2,8,8
	.comm	BIT_SCFG1,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_w83627hf.c_store_temp_type.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Sensor type %d is deprecated, please use 4 instead\012"
	.ascii	"\000"
	.align	2
.LC1:
	.ascii	"Invalid sensor type %ld; must be 1, 2, or 4\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	store_temp_type, %function
store_temp_type:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r7, r0
	mov	r0, r1
	mov	r4, r2
	mov	r8, r3
	bl	to_sensor_dev_attr
	mov	r3, r0
	mov	r0, r7
	ldr	r9, [r3]
	bl	dev_get_drvdata
	mov	r2, #10
	mov	r6, r0
	mov	r1, #0
	mov	r0, r4
	bl	simple_strtoul
	mov	r4, r0
	add	r5, r6, #4
	mov	r0, r5
	bl	mutex_lock
	cmp	r4, #4
	beq	.L2
	bgt	.L3
	cmp	r4, #1
	beq	.L4
	cmp	r4, #2
	bne	.L6
	ldr	r7, .L15
	mov	r0, r6
	ldr	r1, [r7]
	bl	w83627hf_read_value
	ldr	r3, .L15+4
	ldr	r1, [r7]
	ldr	r3, [r3]
	ldr	r7, .L15+8
	ldr	r2, [r3, r9, lsl #2]
	orr	r2, r0, r2
	mov	r0, r6
	bl	w83627hf_write_value
	mov	r0, r6
	ldr	r1, [r7]
	bl	w83627hf_read_value
	mov	r3, r0
	ldr	r2, .L15+12
.L13:
	ldr	r2, [r2]
	mov	r0, r6
	ldr	r2, [r2, r9, lsl #2]
	ldr	r1, [r7]
	bic	r2, r3, r2
	bl	w83627hf_write_value
	ldr	r3, [r6]
	str	r4, [r3, r9, lsl #2]
.L8:
	mov	r0, r5
	bl	mutex_unlock
	mov	r0, r8
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L3:
	cmp	r4, #128
	bne	.L6
	mov	r0, r7
	mov	r2, r4
	ldr	r1, .L15+16
	bl	dev_warn
.L2:
	ldr	r7, .L15
	mov	r0, r6
	ldr	r1, [r7]
	bl	w83627hf_read_value
	ldr	r2, .L15+4
	mov	r3, r0
	b	.L13
.L6:
	mov	r2, r4
	mov	r0, r7
	ldr	r1, .L15+20
	bl	dev_err
	b	.L8
.L4:
	ldr	r7, .L15
	mov	r0, r6
	ldr	r1, [r7]
	bl	w83627hf_read_value
	ldr	r3, .L15+4
	ldr	r1, [r7]
	ldr	r3, [r3]
	ldr	r7, .L15+8
	ldr	r2, [r3, r9, lsl #2]
	orr	r2, r0, r2
	mov	r0, r6
	bl	w83627hf_write_value
	ldr	r1, [r7]
	mov	r0, r6
	bl	w83627hf_read_value
	mov	r2, r0
	ldr	r3, .L15+12
	mov	r0, r6
	ldr	r3, [r3]
	ldr	r1, [r7]
	ldr	r3, [r3, r9, lsl #2]
	orr	r2, r2, r3
	bl	w83627hf_write_value
	ldr	r3, [r6]
	str	r4, [r3, r9, lsl #2]
	b	.L8
.L16:
	.align	2
.L15:
	.word	W83781D_REG_SCFG1
	.word	BIT_SCFG1
	.word	W83781D_REG_SCFG2
	.word	BIT_SCFG2
	.word	.LC0
	.word	.LC1
	.size	store_temp_type, .-store_temp_type
	.comm	W83781D_REG_SCFG2,4,4
	.comm	W83781D_REG_SCFG1,4,4
	.comm	BIT_SCFG2,4,4
	.comm	BIT_SCFG1,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
