	.file	"extr_ics932s401.c_show_spread.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"0%%\n"
.LC1:
	.string	"-0.%lu%%\n"
	.text
	.p2align 4
	.type	show_spread, @function
show_spread:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rdx
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rsi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	ics932s401_update_device@PLT
	mov	rdx, QWORD PTR ICS932S401_REG_CFG2[rip]
	mov	rbp, rax
	mov	rax, QWORD PTR [rax]
	mov	edx, DWORD PTR [rax+rdx*4]
	test	DWORD PTR ICS932S401_CFG1_SPREAD[rip], edx
	je	.L8
	lea	rdx, dev_attr_src_spread[rip]
	cmp	rbx, rdx
	je	.L11
	lea	rdx, dev_attr_cpu_spread[rip]
	cmp	rbx, rdx
	je	.L12
	xor	eax, eax
	call	BUG@PLT
	mov	rax, QWORD PTR 0[rbp]
.L5:
	mov	edx, DWORD PTR 4[rax+r13*4]
	mov	rdi, r12
	lea	rsi, .LC1[rip]
	sal	edx, 8
	or	edx, DWORD PTR [rax+r13*4]
	xor	eax, eax
	movsx	rdx, edx
	and	rdx, QWORD PTR ICS932S401_SPREAD_MASK[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	imul	rdx, rdx, 500000
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	shr	rdx, 14
	jmp	sprintf@PLT
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	movsx	r13, DWORD PTR ICS932S401_REG_CPU_SPREAD1[rip]
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L11:
	movsx	r13, DWORD PTR ICS932S401_REG_SRC_SPREAD1[rip]
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L8:
	mov	rdi, r12
	lea	rsi, .LC0[rip]
	xor	eax, eax
	call	sprintf@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 40
	mov	eax, 3
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	show_spread, .-show_spread
	.comm	dev_attr_src_spread,4,4
	.comm	dev_attr_cpu_spread,4,4
	.comm	ICS932S401_SPREAD_MASK,8,8
	.comm	ICS932S401_REG_SRC_SPREAD1,4,4
	.comm	ICS932S401_REG_CPU_SPREAD1,4,4
	.comm	ICS932S401_REG_CFG2,8,8
	.comm	ICS932S401_CFG1_SPREAD,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_ics932s401.c_show_spread.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"0%%\012\000"
	.align	2
.LC1:
	.ascii	"-0.%lu%%\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	show_spread, %function
show_spread:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r1
	mov	r6, r2
	bl	ics932s401_update_device
	ldr	r3, .L13
	ldr	r2, [r0]
	ldr	r1, [r3]
	ldr	r3, .L13+4
	ldr	r1, [r2, r1, lsl #2]
	ldr	r3, [r3]
	tst	r1, r3
	beq	.L8
	ldr	r3, .L13+8
	cmp	r4, r3
	beq	.L11
	ldr	r3, .L13+12
	cmp	r4, r3
	beq	.L12
	mov	r5, r0
	bl	BUG
	ldr	r2, [r5]
.L5:
	add	r3, r2, r7, lsl #2
	ldr	r0, .L13+16
	ldr	r1, [r3, #4]
	ldr	r3, [r2, r7, lsl #2]
	ldr	r2, [r0]
	orr	r3, r3, r1, lsl #8
	and	r3, r3, r2
	rsb	r2, r3, r3, lsl #5
	rsb	r2, r2, r2, lsl #6
	add	r3, r3, r2, lsl #3
	lsl	r3, r3, #5
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, lr}
	ldr	r1, .L13+20
	lsr	r2, r3, #14
	b	sprintf
.L12:
	ldr	r3, .L13+24
	ldr	r7, [r3]
	b	.L5
.L11:
	ldr	r3, .L13+28
	ldr	r7, [r3]
	b	.L5
.L8:
	mov	r0, r6
	ldr	r1, .L13+32
	bl	sprintf
	mov	r0, #3
	pop	{r4, r5, r6, r7, r8, pc}
.L14:
	.align	2
.L13:
	.word	ICS932S401_REG_CFG2
	.word	ICS932S401_CFG1_SPREAD
	.word	dev_attr_src_spread
	.word	dev_attr_cpu_spread
	.word	ICS932S401_SPREAD_MASK
	.word	.LC1
	.word	ICS932S401_REG_CPU_SPREAD1
	.word	ICS932S401_REG_SRC_SPREAD1
	.word	.LC0
	.size	show_spread, .-show_spread
	.comm	dev_attr_src_spread,4,4
	.comm	dev_attr_cpu_spread,4,4
	.comm	ICS932S401_SPREAD_MASK,4,4
	.comm	ICS932S401_REG_SRC_SPREAD1,4,4
	.comm	ICS932S401_REG_CPU_SPREAD1,4,4
	.comm	ICS932S401_REG_CFG2,4,4
	.comm	ICS932S401_CFG1_SPREAD,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
