	.file	"extr_plxsata_ide.c_workaround5458.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	workaround5458
	.type	workaround5458, @function
workaround5458:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	mov	ebx, 8221
.L2:
	mov	edi, ebx
	call	read_cr@PLT
	movzx	ecx, WORD PTR PH_GAIN_OFFSET[rip]
	movzx	edi, WORD PTR PH_GAIN[rip]
	mov	esi, ebx
	movzx	edx, WORD PTR FR_GAIN[rip]
	mov	r8d, eax
	add	ebx, 256
	movzx	eax, WORD PTR PH_GAIN_MASK[rip]
	sal	edi, cl
	movzx	ecx, WORD PTR FR_GAIN_OFFSET[rip]
	or	ax, WORD PTR FR_GAIN_MASK[rip]
	not	eax
	sal	edx, cl
	and	eax, r8d
	or	edi, edx
	or	edi, eax
	or	di, WORD PTR USE_INT_SETTING[rip]
	movzx	edi, di
	call	write_cr@PLT
	cmp	ebx, 8733
	jne	.L2
	pop	rbx
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	workaround5458, .-workaround5458
	.comm	USE_INT_SETTING,2,2
	.comm	PH_GAIN_OFFSET,2,2
	.comm	PH_GAIN_MASK,2,2
	.comm	PH_GAIN,2,2
	.comm	FR_GAIN_OFFSET,2,2
	.comm	FR_GAIN_MASK,2,2
	.comm	FR_GAIN,2,2
	.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_plxsata_ide.c_workaround5458.c"
	.text
	.align	2
	.global	workaround5458
	.syntax unified
	.arm
	.fpu softvfp
	.type	workaround5458, %function
workaround5458:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r4, .L7
	ldr	fp, .L7+4
	ldr	r10, .L7+8
	ldr	r9, .L7+12
	ldr	r8, .L7+16
	ldr	r7, .L7+20
	ldr	r6, .L7+24
	ldr	r5, .L7+28
.L2:
	mov	r0, r4
	bl	read_cr
	ldrh	lr, [r7]
	ldrh	ip, [r9]
	ldrh	r1, [r6]
	ldrh	r2, [r8]
	orr	r1, lr, r1
	lsl	r2, ip, r2
	ldrh	lr, [fp]
	ldrh	ip, [r10]
	bic	r1, r0, r1
	orr	r0, r2, lr, lsl ip
	ldrh	r2, [r5]
	orr	r0, r0, r1
	orr	r0, r0, r2
	lsl	r0, r0, #16
	mov	r1, r4
	lsr	r0, r0, #16
	bl	write_cr
	ldr	r3, .L7+32
	add	r4, r4, #256
	cmp	r4, r3
	bne	.L2
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L8:
	.align	2
.L7:
	.word	8221
	.word	PH_GAIN
	.word	PH_GAIN_OFFSET
	.word	FR_GAIN
	.word	FR_GAIN_OFFSET
	.word	PH_GAIN_MASK
	.word	FR_GAIN_MASK
	.word	USE_INT_SETTING
	.word	8733
	.size	workaround5458, .-workaround5458
	.comm	USE_INT_SETTING,2,2
	.comm	PH_GAIN_OFFSET,2,2
	.comm	PH_GAIN_MASK,2,2
	.comm	PH_GAIN,2,2
	.comm	FR_GAIN_OFFSET,2,2
	.comm	FR_GAIN_MASK,2,2
	.comm	FR_GAIN,2,2
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
