	.file	"extr_speedstep-ich.c_speedstep_set_state.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"read at pmbase 0x%x + 0x50 returned 0x%x\n"
	.align 8
.LC1:
	.string	"writing 0x%x to pmbase 0x%x + 0x50\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC2:
	.string	"change to %u MHz succeeded\n"
.LC3:
	.string	"change failed - I/O error\n"
	.text
	.p2align 4
	.type	speedstep_set_state, @function
speedstep_set_state:
.LFB0:
	.cfi_startproc
	endbr64
	cmp	edi, 1
	jbe	.L8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	xor	r13d, r13d
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	ebx, edi
	mov	rdi, r13
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	local_irq_save@PLT
	mov	eax, DWORD PTR pmbase[rip]
	lea	edi, 80[rax]
	call	inb@PLT
	mov	esi, DWORD PTR pmbase[rip]
	lea	rdi, .LC0[rip]
	mov	ebp, eax
	mov	edx, eax
	xor	eax, eax
	call	pr_debug@PLT
	and	ebp, 254
	mov	edx, DWORD PTR pmbase[rip]
	xor	eax, eax
	or	ebp, ebx
	lea	rdi, .LC1[rip]
	mov	esi, ebp
	call	pr_debug@PLT
	mov	eax, DWORD PTR pmbase[rip]
	lea	edi, 32[rax]
	call	inb@PLT
	mov	r12d, eax
	mov	eax, DWORD PTR pmbase[rip]
	mov	edi, r12d
	lea	esi, 32[rax]
	or	edi, 1
	call	outb@PLT
	mov	eax, DWORD PTR pmbase[rip]
	mov	edi, ebp
	lea	esi, 80[rax]
	call	outb@PLT
	mov	eax, DWORD PTR pmbase[rip]
	mov	edi, r12d
	and	edi, 254
	lea	esi, 32[rax]
	call	outb@PLT
	mov	eax, DWORD PTR pmbase[rip]
	lea	edi, 80[rax]
	call	inb@PLT
	mov	rdi, r13
	mov	ebp, eax
	call	local_irq_restore@PLT
	mov	esi, DWORD PTR pmbase[rip]
	mov	edx, ebp
	xor	eax, eax
	lea	rdi, .LC0[rip]
	and	ebp, 1
	call	pr_debug@PLT
	cmp	ebp, ebx
	je	.L9
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	lea	rdi, .LC3[rip]
	pop	rbx
	.cfi_restore 3
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_restore 6
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_restore 12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_restore 13
	.cfi_def_cfa_offset 8
	jmp	pr_err@PLT
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	mov	edi, DWORD PTR speedstep_processor[rip]
	call	speedstep_get_frequency@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 40
	lea	rdi, .LC2[rip]
	movsx	rsi, eax
	sar	eax, 31
	pop	rbx
	.cfi_restore 3
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_restore 6
	.cfi_def_cfa_offset 24
	imul	rsi, rsi, 274877907
	pop	r12
	.cfi_restore 12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_restore 13
	.cfi_def_cfa_offset 8
	sar	rsi, 38
	sub	esi, eax
	xor	eax, eax
	jmp	pr_debug@PLT
	.cfi_endproc
.LFE0:
	.size	speedstep_set_state, .-speedstep_set_state
	.comm	speedstep_processor,4,4
	.comm	pmbase,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_speedstep-ich.c_speedstep_set_state.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"read at pmbase 0x%x + 0x50 returned 0x%x\012\000"
	.align	2
.LC1:
	.ascii	"writing 0x%x to pmbase 0x%x + 0x50\012\000"
	.align	2
.LC2:
	.ascii	"change to %u MHz succeeded\012\000"
	.align	2
.LC3:
	.ascii	"change failed - I/O error\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	speedstep_set_state, %function
speedstep_set_state:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	cmp	r0, #1
	bxhi	lr
	push	{r4, r5, r6, r7, r8, lr}
	mov	r7, #0
	ldr	r6, .L9
	mov	r4, r0
	mov	r0, r7
	bl	local_irq_save
	ldr	r0, [r6]
	add	r0, r0, #80
	bl	inb
	mov	r5, r0
	and	r5, r5, #254
	mov	r2, r0
	orr	r5, r5, r4
	ldr	r1, [r6]
	ldr	r0, .L9+4
	bl	pr_debug
	ldr	r2, [r6]
	mov	r1, r5
	ldr	r0, .L9+8
	bl	pr_debug
	ldr	r0, [r6]
	add	r0, r0, #32
	bl	inb
	mov	r8, r0
	ldr	r1, [r6]
	orr	r0, r0, #1
	add	r1, r1, #32
	bl	outb
	ldr	r1, [r6]
	mov	r0, r5
	add	r1, r1, #80
	bl	outb
	ldr	r1, [r6]
	and	r0, r8, #254
	add	r1, r1, #32
	bl	outb
	ldr	r0, [r6]
	add	r0, r0, #80
	bl	inb
	mov	r5, r0
	mov	r0, r7
	bl	local_irq_restore
	mov	r2, r5
	ldr	r1, [r6]
	ldr	r0, .L9+4
	and	r5, r5, #1
	bl	pr_debug
	cmp	r5, r4
	beq	.L8
	pop	{r4, r5, r6, r7, r8, lr}
	ldr	r0, .L9+12
	b	pr_err
.L8:
	ldr	r3, .L9+16
	ldr	r0, [r3]
	bl	speedstep_get_frequency
	pop	{r4, r5, r6, r7, r8, lr}
	ldr	r1, .L9+20
	asr	r3, r0, #31
	smull	r2, r1, r0, r1
	ldr	r0, .L9+24
	rsb	r1, r3, r1, asr #6
	b	pr_debug
.L10:
	.align	2
.L9:
	.word	pmbase
	.word	.LC0
	.word	.LC1
	.word	.LC3
	.word	speedstep_processor
	.word	274877907
	.word	.LC2
	.size	speedstep_set_state, .-speedstep_set_state
	.comm	speedstep_processor,4,4
	.comm	pmbase,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
