	.file	"675904.c"
	.intel_syntax noprefix
	.text
	.globl	fd_i2c1
	.bss
	.align 4
	.type	fd_i2c1, @object
	.size	fd_i2c1, 4
fd_i2c1:
	.zero	4
	.globl	fd_device
	.align 4
	.type	fd_device, @object
	.size	fd_device, 4
fd_device:
	.zero	4
	.section	.rodata
.LC0:
	.string	"/dev/i2c-1"
.LC1:
	.string	"/dev/i2c-9"
	.text
	.globl	XDfeSi570_InitI2C
	.type	XDfeSi570_InitI2C, @function
XDfeSi570_InitI2C:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	esi, 2
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR fd_i2c1[rip], eax
	mov	eax, DWORD PTR fd_i2c1[rip]
	test	eax, eax
	jns	.L2
	mov	eax, 1
	jmp	.L3
.L2:
	mov	esi, 2
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR fd_device[rip], eax
	mov	eax, DWORD PTR fd_device[rip]
	test	eax, eax
	jns	.L4
	mov	eax, 1
	jmp	.L3
.L4:
	mov	eax, 0
.L3:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	XDfeSi570_InitI2C, .-XDfeSi570_InitI2C
	.type	XDfeSi570_I2CRdData_sub, @function
XDfeSi570_I2CRdData_sub:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 96
	mov	DWORD PTR -68[rbp], edi
	mov	QWORD PTR -80[rbp], rdx
	mov	eax, ecx
	mov	edx, esi
	mov	BYTE PTR -72[rbp], dl
	mov	BYTE PTR -84[rbp], al
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -52[rbp], 0
	movzx	eax, BYTE PTR -72[rbp]
	mov	WORD PTR -32[rbp], ax
	mov	WORD PTR -30[rbp], 1
	movzx	eax, BYTE PTR -84[rbp]
	mov	WORD PTR -28[rbp], ax
	mov	rax, QWORD PTR -80[rbp]
	mov	QWORD PTR -24[rbp], rax
	lea	rax, -32[rbp]
	mov	QWORD PTR -48[rbp], rax
	mov	DWORD PTR -40[rbp], 1
	lea	rdx, -48[rbp]
	mov	eax, DWORD PTR -68[rbp]
	mov	esi, 1799
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	test	eax, eax
	jns	.L6
	mov	DWORD PTR -52[rbp], 1
.L6:
	mov	eax, DWORD PTR -52[rbp]
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L8
	call	__stack_chk_fail@PLT
.L8:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	XDfeSi570_I2CRdData_sub, .-XDfeSi570_I2CRdData_sub
	.type	XDfeSi570_I2CWrData_sub, @function
XDfeSi570_I2CWrData_sub:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 96
	mov	DWORD PTR -68[rbp], edi
	mov	QWORD PTR -80[rbp], rdx
	mov	eax, ecx
	mov	edx, esi
	mov	BYTE PTR -72[rbp], dl
	mov	BYTE PTR -84[rbp], al
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -52[rbp], 0
	movzx	eax, BYTE PTR -72[rbp]
	mov	WORD PTR -32[rbp], ax
	mov	WORD PTR -30[rbp], 0
	movzx	eax, BYTE PTR -84[rbp]
	mov	WORD PTR -28[rbp], ax
	mov	rax, QWORD PTR -80[rbp]
	mov	QWORD PTR -24[rbp], rax
	lea	rax, -32[rbp]
	mov	QWORD PTR -48[rbp], rax
	mov	DWORD PTR -40[rbp], 1
	lea	rdx, -48[rbp]
	mov	eax, DWORD PTR -68[rbp]
	mov	esi, 1799
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	test	eax, eax
	jns	.L10
	mov	DWORD PTR -52[rbp], 1
.L10:
	mov	eax, DWORD PTR -52[rbp]
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	XDfeSi570_I2CWrData_sub, .-XDfeSi570_I2CWrData_sub
	.type	XDfeSi570_GetBusSwitchI2C1, @function
XDfeSi570_GetBusSwitchI2C1:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	eax, DWORD PTR fd_i2c1[rip]
	mov	rdx, QWORD PTR -24[rbp]
	mov	ecx, 1
	mov	esi, 116
	mov	edi, eax
	call	XDfeSi570_I2CRdData_sub
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 1
	jne	.L14
	mov	eax, 1
	jmp	.L15
.L14:
	mov	eax, 0
.L15:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	XDfeSi570_GetBusSwitchI2C1, .-XDfeSi570_GetBusSwitchI2C1
	.type	XDfeSi570_SetBusSwitchI2C1, @function
XDfeSi570_SetBusSwitchI2C1:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	eax, edi
	mov	BYTE PTR -20[rbp], al
	mov	eax, DWORD PTR fd_i2c1[rip]
	lea	rdx, -20[rbp]
	mov	ecx, 1
	mov	esi, 116
	mov	edi, eax
	call	XDfeSi570_I2CWrData_sub
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 1
	jne	.L17
	mov	eax, 1
	jmp	.L18
.L17:
	mov	eax, 0
.L18:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	XDfeSi570_SetBusSwitchI2C1, .-XDfeSi570_SetBusSwitchI2C1
	.section	.rodata
.LC2:
	.string	"i2c1 MUX status"
.LC3:
	.string	"issue in %s: %s"
	.text
	.type	XDfeSi570_I2CRdData, @function
XDfeSi570_I2CRdData:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rdx
	mov	eax, ecx
	mov	ecx, r8d
	mov	edx, esi
	mov	BYTE PTR -24[rbp], dl
	mov	BYTE PTR -36[rbp], al
	mov	eax, ecx
	mov	BYTE PTR -40[rbp], al
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	BYTE PTR -13[rbp], 0
	mov	DWORD PTR -12[rbp], 0
	jmp	.L20
.L27:
	movzx	eax, BYTE PTR -40[rbp]
	mov	edi, eax
	call	XDfeSi570_SetBusSwitchI2C1
	cmp	eax, 1
	je	.L32
	movzx	ecx, BYTE PTR -36[rbp]
	movzx	esi, BYTE PTR -24[rbp]
	mov	rdx, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	edi, eax
	call	XDfeSi570_I2CRdData_sub
	cmp	eax, 1
	je	.L33
	lea	rax, -13[rbp]
	mov	rdi, rax
	call	XDfeSi570_GetBusSwitchI2C1
	cmp	eax, 1
	je	.L34
	movzx	eax, BYTE PTR -13[rbp]
	cmp	BYTE PTR -40[rbp], al
	je	.L35
	lea	rdx, .LC2[rip]
	lea	rsi, __func__.2[rip]
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -12[rbp]
	add	eax, 1
	imul	eax, eax, 100
	mov	edi, eax
	call	usleep@PLT
	jmp	.L22
.L32:
	nop
	jmp	.L22
.L33:
	nop
	jmp	.L22
.L34:
	nop
.L22:
	add	DWORD PTR -12[rbp], 1
.L20:
	cmp	DWORD PTR -12[rbp], 4
	jbe	.L27
	jmp	.L26
.L35:
	nop
.L26:
	cmp	DWORD PTR -12[rbp], 4
	ja	.L28
	mov	eax, 0
	jmp	.L30
.L28:
	mov	eax, 1
.L30:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L31
	call	__stack_chk_fail@PLT
.L31:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	XDfeSi570_I2CRdData, .-XDfeSi570_I2CRdData
	.type	XDfeSi570_I2CWrData, @function
XDfeSi570_I2CWrData:
.LFB12:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rdx
	mov	eax, ecx
	mov	ecx, r8d
	mov	edx, esi
	mov	BYTE PTR -24[rbp], dl
	mov	BYTE PTR -36[rbp], al
	mov	eax, ecx
	mov	BYTE PTR -40[rbp], al
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	BYTE PTR -13[rbp], 0
	mov	DWORD PTR -12[rbp], 0
	jmp	.L37
.L44:
	movzx	eax, BYTE PTR -40[rbp]
	mov	edi, eax
	call	XDfeSi570_SetBusSwitchI2C1
	cmp	eax, 1
	je	.L49
	movzx	ecx, BYTE PTR -36[rbp]
	movzx	esi, BYTE PTR -24[rbp]
	mov	rdx, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	edi, eax
	call	XDfeSi570_I2CWrData_sub
	cmp	eax, 1
	je	.L50
	lea	rax, -13[rbp]
	mov	rdi, rax
	call	XDfeSi570_GetBusSwitchI2C1
	cmp	eax, 1
	je	.L51
	movzx	eax, BYTE PTR -13[rbp]
	cmp	BYTE PTR -40[rbp], al
	je	.L52
	lea	rdx, .LC2[rip]
	lea	rsi, __func__.1[rip]
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -12[rbp]
	add	eax, 1
	imul	eax, eax, 100
	mov	edi, eax
	call	usleep@PLT
	jmp	.L39
.L49:
	nop
	jmp	.L39
.L50:
	nop
	jmp	.L39
.L51:
	nop
.L39:
	add	DWORD PTR -12[rbp], 1
.L37:
	cmp	DWORD PTR -12[rbp], 4
	jbe	.L44
	jmp	.L43
.L52:
	nop
.L43:
	cmp	DWORD PTR -12[rbp], 4
	ja	.L45
	mov	eax, 0
	jmp	.L47
.L45:
	mov	eax, 1
.L47:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L48
	call	__stack_chk_fail@PLT
.L48:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	XDfeSi570_I2CWrData, .-XDfeSi570_I2CWrData
	.section	.rodata
.LC7:
	.string	"Not available setting"
	.text
	.globl	XDfeSi570_SetFrequency
	.type	XDfeSi570_SetFrequency, @function
XDfeSi570_SetFrequency:
.LFB13:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 144
	movsd	QWORD PTR -136[rbp], xmm0
	movsd	QWORD PTR -144[rbp], xmm1
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	movabs	rax, 864420644417570052
	mov	QWORD PTR -40[rbp], rax
	mov	BYTE PTR -115[rbp], -121
	mov	BYTE PTR -113[rbp], 8
	mov	BYTE PTR -114[rbp], 1
	mov	DWORD PTR -112[rbp], 0
	movzx	ecx, BYTE PTR -113[rbp]
	mov	eax, DWORD PTR fd_device[rip]
	lea	rdx, -115[rbp]
	mov	r8d, ecx
	mov	ecx, 1
	mov	esi, 93
	mov	edi, eax
	call	XDfeSi570_I2CWrData
	movzx	ecx, BYTE PTR -113[rbp]
	mov	eax, DWORD PTR fd_device[rip]
	lea	rdx, -114[rbp]
	mov	r8d, ecx
	mov	ecx, 1
	mov	esi, 93
	mov	edi, eax
	call	XDfeSi570_I2CWrData
	mov	BYTE PTR -115[rbp], 7
	jmp	.L54
.L55:
	movzx	ecx, BYTE PTR -113[rbp]
	mov	eax, DWORD PTR fd_device[rip]
	lea	rdx, -115[rbp]
	mov	r8d, ecx
	mov	ecx, 1
	mov	esi, 93
	mov	edi, eax
	call	XDfeSi570_I2CWrData
	movzx	ecx, BYTE PTR -113[rbp]
	lea	rdx, -32[rbp]
	mov	eax, DWORD PTR -112[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR fd_device[rip]
	mov	r8d, ecx
	mov	ecx, 1
	mov	esi, 93
	mov	edi, eax
	call	XDfeSi570_I2CRdData
	add	DWORD PTR -112[rbp], 1
	movzx	eax, BYTE PTR -115[rbp]
	add	eax, 1
	mov	BYTE PTR -115[rbp], al
.L54:
	movzx	eax, BYTE PTR -115[rbp]
	cmp	al, 12
	jbe	.L55
	movzx	eax, BYTE PTR -31[rbp]
	movzx	eax, al
	sal	rax, 32
	mov	rdx, rax
	movabs	rax, 270582939648
	and	rdx, rax
	movzx	eax, BYTE PTR -30[rbp]
	movzx	eax, al
	sal	eax, 24
	cdqe
	add	rdx, rax
	movzx	eax, BYTE PTR -29[rbp]
	movzx	eax, al
	sal	eax, 16
	cdqe
	add	rdx, rax
	movzx	eax, BYTE PTR -28[rbp]
	movzx	eax, al
	sal	eax, 8
	cdqe
	add	rdx, rax
	movzx	eax, BYTE PTR -27[rbp]
	movzx	eax, al
	add	rax, rdx
	mov	QWORD PTR -88[rbp], rax
	mov	rax, QWORD PTR -88[rbp]
	test	rax, rax
	js	.L56
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rax
	jmp	.L57
.L56:
	mov	rdx, rax
	shr	rdx
	and	eax, 1
	or	rdx, rax
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rdx
	addsd	xmm0, xmm0
.L57:
	movsd	xmm1, QWORD PTR .LC4[rip]
	divsd	xmm0, xmm1
	movsd	QWORD PTR -80[rbp], xmm0
	movzx	eax, BYTE PTR -32[rbp]
	movzx	eax, al
	sal	eax, 2
	and	eax, 124
	mov	edx, eax
	movzx	eax, BYTE PTR -31[rbp]
	shr	al, 6
	movzx	eax, al
	or	eax, edx
	add	eax, 1
	mov	DWORD PTR -104[rbp], eax
	movzx	eax, BYTE PTR -32[rbp]
	shr	al, 5
	movzx	eax, al
	mov	eax, eax
	movzx	eax, BYTE PTR -40[rbp+rax]
	movzx	eax, al
	mov	DWORD PTR -100[rbp], eax
	mov	eax, DWORD PTR -104[rbp]
	test	rax, rax
	js	.L58
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rax
	jmp	.L59
.L58:
	mov	rdx, rax
	shr	rdx
	and	eax, 1
	or	rdx, rax
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rdx
	addsd	xmm0, xmm0
.L59:
	movapd	xmm1, xmm0
	mulsd	xmm1, QWORD PTR -136[rbp]
	mov	eax, DWORD PTR -100[rbp]
	test	rax, rax
	js	.L60
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rax
	jmp	.L61
.L60:
	mov	rdx, rax
	shr	rdx
	and	eax, 1
	or	rdx, rax
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rdx
	addsd	xmm0, xmm0
.L61:
	mulsd	xmm0, xmm1
	divsd	xmm0, QWORD PTR -80[rbp]
	movsd	QWORD PTR -72[rbp], xmm0
	mov	DWORD PTR -108[rbp], 1
	jmp	.L62
.L76:
	cmp	DWORD PTR -108[rbp], 1
	je	.L63
	mov	eax, DWORD PTR -108[rbp]
	shr	eax
	add	eax, eax
	cmp	DWORD PTR -108[rbp], eax
	jne	.L87
.L63:
	mov	DWORD PTR -112[rbp], 0
	jmp	.L65
.L75:
	mov	eax, DWORD PTR -112[rbp]
	movzx	eax, BYTE PTR -40[rbp+rax]
	movzx	eax, al
	mov	DWORD PTR -100[rbp], eax
	cmp	DWORD PTR -100[rbp], 255
	je	.L88
	mov	eax, DWORD PTR -108[rbp]
	test	rax, rax
	js	.L68
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rax
	jmp	.L69
.L68:
	mov	rdx, rax
	shr	rdx
	and	eax, 1
	or	rdx, rax
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rdx
	addsd	xmm0, xmm0
.L69:
	movapd	xmm1, xmm0
	mulsd	xmm1, QWORD PTR -144[rbp]
	mov	eax, DWORD PTR -100[rbp]
	test	rax, rax
	js	.L70
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rax
	jmp	.L71
.L70:
	mov	rdx, rax
	shr	rdx
	and	eax, 1
	or	rdx, rax
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rdx
	addsd	xmm0, xmm0
.L71:
	mulsd	xmm0, xmm1
	movsd	QWORD PTR -64[rbp], xmm0
	movsd	xmm0, QWORD PTR -64[rbp]
	comisd	xmm0, QWORD PTR .LC5[rip]
	jbe	.L67
	movsd	xmm0, QWORD PTR .LC6[rip]
	comisd	xmm0, QWORD PTR -64[rbp]
	ja	.L89
	jmp	.L67
.L88:
	nop
.L67:
	add	DWORD PTR -112[rbp], 1
.L65:
	cmp	DWORD PTR -112[rbp], 7
	jbe	.L75
	add	DWORD PTR -108[rbp], 2
	jmp	.L64
.L87:
	nop
.L64:
	add	DWORD PTR -108[rbp], 1
.L62:
	cmp	DWORD PTR -108[rbp], 128
	jbe	.L76
	lea	rdx, .LC7[rip]
	lea	rsi, __func__.0[rip]
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 1
	jmp	.L84
.L89:
	nop
.L74:
	movsd	xmm0, QWORD PTR -64[rbp]
	divsd	xmm0, QWORD PTR -72[rbp]
	movsd	QWORD PTR -56[rbp], xmm0
	movsd	xmm1, QWORD PTR -56[rbp]
	movsd	xmm0, QWORD PTR .LC4[rip]
	mulsd	xmm0, xmm1
	comisd	xmm0, QWORD PTR .LC8[rip]
	jnb	.L78
	cvttsd2si	rax, xmm0
	mov	QWORD PTR -48[rbp], rax
	jmp	.L79
.L78:
	movsd	xmm1, QWORD PTR .LC8[rip]
	subsd	xmm0, xmm1
	cvttsd2si	rax, xmm0
	mov	QWORD PTR -48[rbp], rax
	movabs	rax, -9223372036854775808
	xor	QWORD PTR -48[rbp], rax
.L79:
	mov	rax, QWORD PTR -48[rbp]
	mov	QWORD PTR -48[rbp], rax
	mov	eax, DWORD PTR -108[rbp]
	sub	eax, 1
	mov	eax, eax
	sal	rax, 38
	mov	rdx, rax
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	QWORD PTR -96[rbp], rax
	mov	DWORD PTR -112[rbp], 0
	jmp	.L80
.L81:
	mov	rax, QWORD PTR -96[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -112[rbp]
	mov	BYTE PTR -32[rbp+rax], dl
	shr	QWORD PTR -96[rbp], 8
	add	DWORD PTR -112[rbp], 1
.L80:
	cmp	DWORD PTR -112[rbp], 5
	jbe	.L81
	mov	BYTE PTR -115[rbp], -119
	mov	BYTE PTR -114[rbp], 16
	movzx	ecx, BYTE PTR -113[rbp]
	mov	eax, DWORD PTR fd_device[rip]
	lea	rdx, -115[rbp]
	mov	r8d, ecx
	mov	ecx, 1
	mov	esi, 93
	mov	edi, eax
	call	XDfeSi570_I2CWrData
	movzx	ecx, BYTE PTR -113[rbp]
	mov	eax, DWORD PTR fd_device[rip]
	lea	rdx, -114[rbp]
	mov	r8d, ecx
	mov	ecx, 1
	mov	esi, 93
	mov	edi, eax
	call	XDfeSi570_I2CWrData
	mov	DWORD PTR -112[rbp], 0
	mov	BYTE PTR -115[rbp], 7
	jmp	.L82
.L83:
	movzx	ecx, BYTE PTR -113[rbp]
	mov	eax, DWORD PTR fd_device[rip]
	lea	rdx, -115[rbp]
	mov	r8d, ecx
	mov	ecx, 1
	mov	esi, 93
	mov	edi, eax
	call	XDfeSi570_I2CWrData
	movzx	ecx, BYTE PTR -113[rbp]
	lea	rdx, -32[rbp]
	mov	eax, DWORD PTR -112[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR fd_device[rip]
	mov	r8d, ecx
	mov	ecx, 1
	mov	esi, 93
	mov	edi, eax
	call	XDfeSi570_I2CWrData
	add	DWORD PTR -112[rbp], 1
	movzx	eax, BYTE PTR -115[rbp]
	add	eax, 1
	mov	BYTE PTR -115[rbp], al
.L82:
	movzx	eax, BYTE PTR -115[rbp]
	cmp	al, 12
	jbe	.L83
	mov	BYTE PTR -115[rbp], -119
	mov	BYTE PTR -114[rbp], 0
	movzx	ecx, BYTE PTR -113[rbp]
	mov	eax, DWORD PTR fd_device[rip]
	lea	rdx, -115[rbp]
	mov	r8d, ecx
	mov	ecx, 1
	mov	esi, 93
	mov	edi, eax
	call	XDfeSi570_I2CWrData
	movzx	ecx, BYTE PTR -113[rbp]
	mov	eax, DWORD PTR fd_device[rip]
	lea	rdx, -114[rbp]
	mov	r8d, ecx
	mov	ecx, 1
	mov	esi, 93
	mov	edi, eax
	call	XDfeSi570_I2CWrData
	mov	BYTE PTR -115[rbp], -121
	mov	BYTE PTR -114[rbp], 64
	movzx	ecx, BYTE PTR -113[rbp]
	mov	eax, DWORD PTR fd_device[rip]
	lea	rdx, -115[rbp]
	mov	r8d, ecx
	mov	ecx, 1
	mov	esi, 93
	mov	edi, eax
	call	XDfeSi570_I2CWrData
	movzx	ecx, BYTE PTR -113[rbp]
	mov	eax, DWORD PTR fd_device[rip]
	lea	rdx, -114[rbp]
	mov	r8d, ecx
	mov	ecx, 1
	mov	esi, 93
	mov	edi, eax
	call	XDfeSi570_I2CWrData
	mov	eax, 0
.L84:
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L85
	call	__stack_chk_fail@PLT
.L85:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	XDfeSi570_SetFrequency, .-XDfeSi570_SetFrequency
	.section	.rodata
.LC9:
	.string	"devmem 0xFD615000 w 0"
.LC10:
	.string	"devmem 0xac001000"
.LC11:
	.string	"devmem 0xac001008"
.LC12:
	.string	"devmem 0xac001000 32 0"
	.text
	.globl	XDfeSi570_SetPL
	.type	XDfeSi570_SetPL, @function
XDfeSi570_SetPL:
.LFB14:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rdi, .LC9[rip]
	call	system@PLT
	lea	rdi, .LC10[rip]
	call	system@PLT
	lea	rdi, .LC11[rip]
	call	system@PLT
	lea	rdi, .LC12[rip]
	call	system@PLT
	lea	rdi, .LC11[rip]
	call	system@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	XDfeSi570_SetPL, .-XDfeSi570_SetPL
	.globl	XDfeSi570_SetMgtOscillator
	.type	XDfeSi570_SetMgtOscillator, @function
XDfeSi570_SetMgtOscillator:
.LFB15:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	movsd	QWORD PTR -8[rbp], xmm0
	movsd	QWORD PTR -16[rbp], xmm1
	call	XDfeSi570_InitI2C
	cmp	eax, 1
	jne	.L92
	mov	eax, 1
	jmp	.L93
.L92:
	movsd	xmm0, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -8[rbp]
	movapd	xmm1, xmm0
	movq	xmm0, rax
	call	XDfeSi570_SetFrequency
	test	eax, eax
	je	.L94
	mov	eax, 1
	jmp	.L93
.L94:
	mov	eax, 0
	call	XDfeSi570_SetPL
	mov	eax, 0
.L93:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	XDfeSi570_SetMgtOscillator, .-XDfeSi570_SetMgtOscillator
	.section	.rodata
	.align 16
	.type	__func__.2, @object
	.size	__func__.2, 20
__func__.2:
	.string	"XDfeSi570_I2CRdData"
	.align 16
	.type	__func__.1, @object
	.size	__func__.1, 20
__func__.1:
	.string	"XDfeSi570_I2CWrData"
	.align 16
	.type	__func__.0, @object
	.size	__func__.0, 23
__func__.0:
	.string	"XDfeSi570_SetFrequency"
	.align 8
.LC4:
	.long	0
	.long	1102053376
	.align 8
.LC5:
	.long	0
	.long	1085469184
	.align 8
.LC6:
	.long	0
	.long	1085679104
	.align 8
.LC8:
	.long	0
	.long	1138753536
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.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, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"675904.c"
	.text
	.comm	fd_i2c1,4,4
	.comm	fd_device,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"/dev/i2c-1\000"
	.align	2
.LC1:
	.ascii	"/dev/i2c-9\000"
	.text
	.align	2
	.global	XDfeSi570_InitI2C
	.syntax unified
	.arm
	.fpu softvfp
	.type	XDfeSi570_InitI2C, %function
XDfeSi570_InitI2C:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	mov	r1, #2
	ldr	r0, .L5
	bl	open
	mov	r3, r0
	ldr	r2, .L5+4
	str	r3, [r2]
	ldr	r3, .L5+4
	ldr	r3, [r3]
	cmp	r3, #0
	bge	.L2
	mov	r3, #1
	b	.L3
.L2:
	mov	r1, #2
	ldr	r0, .L5+8
	bl	open
	mov	r3, r0
	ldr	r2, .L5+12
	str	r3, [r2]
	ldr	r3, .L5+12
	ldr	r3, [r3]
	cmp	r3, #0
	bge	.L4
	mov	r3, #1
	b	.L3
.L4:
	mov	r3, #0
.L3:
	mov	r0, r3
	pop	{fp, pc}
.L6:
	.align	2
.L5:
	.word	.LC0
	.word	fd_i2c1
	.word	.LC1
	.word	fd_device
	.size	XDfeSi570_InitI2C, .-XDfeSi570_InitI2C
	.section	.rodata
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	XDfeSi570_I2CRdData_sub, %function
XDfeSi570_I2CRdData_sub:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #48
	str	r0, [fp, #-40]
	str	r2, [fp, #-48]
	mov	r2, r3
	mov	r3, r1
	strb	r3, [fp, #-41]
	mov	r3, r2
	strb	r3, [fp, #-42]
	ldr	r3, .L11
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-32]
	ldrb	r3, [fp, #-41]	@ zero_extendqisi2
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	strh	r3, [fp, #-20]	@ movhi
	mov	r3, #1
	strh	r3, [fp, #-18]	@ movhi
	ldrb	r3, [fp, #-42]	@ zero_extendqisi2
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	strh	r3, [fp, #-16]	@ movhi
	ldr	r3, [fp, #-48]
	str	r3, [fp, #-12]
	sub	r3, fp, #20
	str	r3, [fp, #-28]
	mov	r3, #1
	str	r3, [fp, #-24]
	sub	r3, fp, #28
	mov	r2, r3
	ldr	r1, .L11+4
	ldr	r0, [fp, #-40]
	bl	ioctl
	mov	r3, r0
	cmp	r3, #0
	bge	.L8
	mov	r3, #1
	str	r3, [fp, #-32]
.L8:
	ldr	r3, [fp, #-32]
	ldr	r2, .L11
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L10
	bl	__stack_chk_fail
.L10:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L12:
	.align	2
.L11:
	.word	.LC2
	.word	1799
	.size	XDfeSi570_I2CRdData_sub, .-XDfeSi570_I2CRdData_sub
	.section	.rodata
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	XDfeSi570_I2CWrData_sub, %function
XDfeSi570_I2CWrData_sub:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #48
	str	r0, [fp, #-40]
	str	r2, [fp, #-48]
	mov	r2, r3
	mov	r3, r1
	strb	r3, [fp, #-41]
	mov	r3, r2
	strb	r3, [fp, #-42]
	ldr	r3, .L17
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-32]
	ldrb	r3, [fp, #-41]	@ zero_extendqisi2
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	strh	r3, [fp, #-20]	@ movhi
	mov	r3, #0
	strh	r3, [fp, #-18]	@ movhi
	ldrb	r3, [fp, #-42]	@ zero_extendqisi2
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	strh	r3, [fp, #-16]	@ movhi
	ldr	r3, [fp, #-48]
	str	r3, [fp, #-12]
	sub	r3, fp, #20
	str	r3, [fp, #-28]
	mov	r3, #1
	str	r3, [fp, #-24]
	sub	r3, fp, #28
	mov	r2, r3
	ldr	r1, .L17+4
	ldr	r0, [fp, #-40]
	bl	ioctl
	mov	r3, r0
	cmp	r3, #0
	bge	.L14
	mov	r3, #1
	str	r3, [fp, #-32]
.L14:
	ldr	r3, [fp, #-32]
	ldr	r2, .L17
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L16
	bl	__stack_chk_fail
.L16:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L18:
	.align	2
.L17:
	.word	.LC3
	.word	1799
	.size	XDfeSi570_I2CWrData_sub, .-XDfeSi570_I2CWrData_sub
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	XDfeSi570_GetBusSwitchI2C1, %function
XDfeSi570_GetBusSwitchI2C1:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	ldr	r3, .L22
	ldr	r0, [r3]
	mov	r3, #1
	ldr	r2, [fp, #-16]
	mov	r1, #116
	bl	XDfeSi570_I2CRdData_sub
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #1
	bne	.L20
	mov	r3, #1
	b	.L21
.L20:
	mov	r3, #0
.L21:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L23:
	.align	2
.L22:
	.word	fd_i2c1
	.size	XDfeSi570_GetBusSwitchI2C1, .-XDfeSi570_GetBusSwitchI2C1
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	XDfeSi570_SetBusSwitchI2C1, %function
XDfeSi570_SetBusSwitchI2C1:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	mov	r3, r0
	strb	r3, [fp, #-13]
	ldr	r3, .L27
	ldr	r0, [r3]
	sub	r2, fp, #13
	mov	r3, #1
	mov	r1, #116
	bl	XDfeSi570_I2CWrData_sub
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #1
	bne	.L25
	mov	r3, #1
	b	.L26
.L25:
	mov	r3, #0
.L26:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L28:
	.align	2
.L27:
	.word	fd_i2c1
	.size	XDfeSi570_SetBusSwitchI2C1, .-XDfeSi570_SetBusSwitchI2C1
	.section	.rodata
	.align	2
.LC4:
	.ascii	"i2c1 MUX status\000"
	.align	2
.LC5:
	.ascii	"issue in %s: %s\000"
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	XDfeSi570_I2CRdData, %function
XDfeSi570_I2CRdData:
	@ args = 4, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-24]
	str	r2, [fp, #-32]
	mov	r2, r3
	mov	r3, r1
	strb	r3, [fp, #-25]
	mov	r3, r2
	strb	r3, [fp, #-26]
	ldr	r3, .L46
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	strb	r3, [fp, #-13]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L30
.L37:
	ldrb	r3, [fp, #4]	@ zero_extendqisi2
	mov	r0, r3
	bl	XDfeSi570_SetBusSwitchI2C1
	mov	r3, r0
	cmp	r3, #1
	beq	.L42
	ldrb	r3, [fp, #-26]	@ zero_extendqisi2
	ldrb	r1, [fp, #-25]	@ zero_extendqisi2
	ldr	r2, [fp, #-32]
	ldr	r0, [fp, #-24]
	bl	XDfeSi570_I2CRdData_sub
	mov	r3, r0
	cmp	r3, #1
	beq	.L43
	sub	r3, fp, #13
	mov	r0, r3
	bl	XDfeSi570_GetBusSwitchI2C1
	mov	r3, r0
	cmp	r3, #1
	beq	.L44
	ldrb	r3, [fp, #-13]	@ zero_extendqisi2
	ldrb	r2, [fp, #4]	@ zero_extendqisi2
	cmp	r2, r3
	beq	.L45
	ldr	r2, .L46+4
	ldr	r1, .L46+8
	ldr	r0, .L46+12
	bl	printf
	ldr	r3, [fp, #-12]
	add	r2, r3, #1
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r0, r3
	bl	usleep
	b	.L32
.L42:
	nop
	b	.L32
.L43:
	nop
	b	.L32
.L44:
	nop
.L32:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L30:
	ldr	r3, [fp, #-12]
	cmp	r3, #4
	bls	.L37
	b	.L36
.L45:
	nop
.L36:
	ldr	r3, [fp, #-12]
	cmp	r3, #4
	bhi	.L38
	mov	r3, #0
	b	.L40
.L38:
	mov	r3, #1
.L40:
	ldr	r2, .L46
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L41
	bl	__stack_chk_fail
.L41:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L47:
	.align	2
.L46:
	.word	.LC6
	.word	.LC4
	.word	__func__.6099
	.word	.LC5
	.size	XDfeSi570_I2CRdData, .-XDfeSi570_I2CRdData
	.section	.rodata
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	XDfeSi570_I2CWrData, %function
XDfeSi570_I2CWrData:
	@ args = 4, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-24]
	str	r2, [fp, #-32]
	mov	r2, r3
	mov	r3, r1
	strb	r3, [fp, #-25]
	mov	r3, r2
	strb	r3, [fp, #-26]
	ldr	r3, .L65
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	strb	r3, [fp, #-13]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L49
.L56:
	ldrb	r3, [fp, #4]	@ zero_extendqisi2
	mov	r0, r3
	bl	XDfeSi570_SetBusSwitchI2C1
	mov	r3, r0
	cmp	r3, #1
	beq	.L61
	ldrb	r3, [fp, #-26]	@ zero_extendqisi2
	ldrb	r1, [fp, #-25]	@ zero_extendqisi2
	ldr	r2, [fp, #-32]
	ldr	r0, [fp, #-24]
	bl	XDfeSi570_I2CWrData_sub
	mov	r3, r0
	cmp	r3, #1
	beq	.L62
	sub	r3, fp, #13
	mov	r0, r3
	bl	XDfeSi570_GetBusSwitchI2C1
	mov	r3, r0
	cmp	r3, #1
	beq	.L63
	ldrb	r3, [fp, #-13]	@ zero_extendqisi2
	ldrb	r2, [fp, #4]	@ zero_extendqisi2
	cmp	r2, r3
	beq	.L64
	ldr	r2, .L65+4
	ldr	r1, .L65+8
	ldr	r0, .L65+12
	bl	printf
	ldr	r3, [fp, #-12]
	add	r2, r3, #1
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r0, r3
	bl	usleep
	b	.L51
.L61:
	nop
	b	.L51
.L62:
	nop
	b	.L51
.L63:
	nop
.L51:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L49:
	ldr	r3, [fp, #-12]
	cmp	r3, #4
	bls	.L56
	b	.L55
.L64:
	nop
.L55:
	ldr	r3, [fp, #-12]
	cmp	r3, #4
	bhi	.L57
	mov	r3, #0
	b	.L59
.L57:
	mov	r3, #1
.L59:
	ldr	r2, .L65
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L60
	bl	__stack_chk_fail
.L60:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L66:
	.align	2
.L65:
	.word	.LC7
	.word	.LC4
	.word	__func__.6114
	.word	.LC5
	.size	XDfeSi570_I2CWrData, .-XDfeSi570_I2CWrData
	.global	__aeabi_ui2d
	.global	__aeabi_ddiv
	.global	__aeabi_dmul
	.global	__aeabi_dcmpgt
	.global	__aeabi_dcmplt
	.section	.rodata
	.align	2
.LC9:
	.ascii	"Not available setting\000"
	.global	__aeabi_d2uiz
	.align	2
.LC8:
	.ascii	"\004\005\006\007\377\011\377\013"
	.align	2
.LC10:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	XDfeSi570_SetFrequency
	.syntax unified
	.arm
	.fpu softvfp
	.type	XDfeSi570_SetFrequency, %function
XDfeSi570_SetFrequency:
	@ args = 0, pretend = 0, frame = 112
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #120
	str	r0, [fp, #-116]
	str	r1, [fp, #-112]
	str	r2, [fp, #-124]
	str	r3, [fp, #-120]
	ldr	r3, .L92
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r2, .L92+4
	sub	r3, fp, #44
	ldm	r2, {r0, r1}
	stm	r3, {r0, r1}
	mvn	r3, #120
	strb	r3, [fp, #-107]
	mov	r3, #8
	strb	r3, [fp, #-105]
	mov	r3, #1
	strb	r3, [fp, #-106]
	mov	r3, #0
	str	r3, [fp, #-100]
	ldr	r3, .L92+8
	ldr	r0, [r3]
	sub	r2, fp, #107
	ldrb	r3, [fp, #-105]	@ zero_extendqisi2
	str	r3, [sp]
	mov	r3, #1
	mov	r1, #93
	bl	XDfeSi570_I2CWrData
	ldr	r3, .L92+8
	ldr	r0, [r3]
	sub	r2, fp, #106
	ldrb	r3, [fp, #-105]	@ zero_extendqisi2
	str	r3, [sp]
	mov	r3, #1
	mov	r1, #93
	bl	XDfeSi570_I2CWrData
	mov	r3, #7
	strb	r3, [fp, #-107]
	b	.L68
.L69:
	ldr	r3, .L92+8
	ldr	r0, [r3]
	sub	r2, fp, #107
	ldrb	r3, [fp, #-105]	@ zero_extendqisi2
	str	r3, [sp]
	mov	r3, #1
	mov	r1, #93
	bl	XDfeSi570_I2CWrData
	ldr	r3, .L92+8
	ldr	r0, [r3]
	sub	r2, fp, #36
	ldr	r3, [fp, #-100]
	add	r2, r2, r3
	ldrb	r3, [fp, #-105]	@ zero_extendqisi2
	str	r3, [sp]
	mov	r3, #1
	mov	r1, #93
	bl	XDfeSi570_I2CRdData
	ldr	r3, [fp, #-100]
	add	r3, r3, #1
	str	r3, [fp, #-100]
	ldrb	r3, [fp, #-107]	@ zero_extendqisi2
	add	r3, r3, #1
	and	r3, r3, #255
	strb	r3, [fp, #-107]
.L68:
	ldrb	r3, [fp, #-107]	@ zero_extendqisi2
	cmp	r3, #12
	bls	.L69
	ldrb	r3, [fp, #-34]	@ zero_extendqisi2
	lsl	r3, r3, #24
	mov	r2, r3
	ldrb	r3, [fp, #-33]	@ zero_extendqisi2
	lsl	r3, r3, #16
	add	r3, r2, r3
	ldrb	r2, [fp, #-32]	@ zero_extendqisi2
	lsl	r2, r2, #8
	add	r3, r3, r2
	ldrb	r2, [fp, #-31]	@ zero_extendqisi2
	add	r3, r3, r2
	str	r3, [fp, #-92]
	ldr	r0, [fp, #-92]
	bl	__aeabi_ui2d
	mov	r2, #0
	ldr	r3, .L92+12
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-76]
	str	r3, [fp, #-72]
	ldrb	r3, [fp, #-36]	@ zero_extendqisi2
	lsl	r3, r3, #2
	and	r3, r3, #124
	ldrb	r2, [fp, #-35]	@ zero_extendqisi2
	lsr	r2, r2, #6
	and	r2, r2, #255
	orr	r3, r3, r2
	add	r3, r3, #1
	str	r3, [fp, #-88]
	ldrb	r3, [fp, #-36]	@ zero_extendqisi2
	lsr	r3, r3, #5
	and	r3, r3, #255
	sub	r2, fp, #12
	add	r3, r2, r3
	ldrb	r3, [r3, #-32]	@ zero_extendqisi2
	str	r3, [fp, #-84]
	ldr	r0, [fp, #-88]
	bl	__aeabi_ui2d
	sub	r3, fp, #116
	ldmia	r3, {r2-r3}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r4, r2
	mov	r5, r3
	ldr	r0, [fp, #-84]
	bl	__aeabi_ui2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	sub	r3, fp, #76
	ldmia	r3, {r2-r3}
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-68]
	str	r3, [fp, #-64]
	mov	r3, #1
	str	r3, [fp, #-96]
	b	.L70
.L80:
	ldr	r3, [fp, #-96]
	cmp	r3, #1
	beq	.L71
	ldr	r3, [fp, #-96]
	lsr	r3, r3, #1
	lsl	r3, r3, #1
	ldr	r2, [fp, #-96]
	cmp	r2, r3
	bne	.L89
.L71:
	mov	r3, #0
	str	r3, [fp, #-100]
	b	.L73
.L79:
	sub	r2, fp, #44
	ldr	r3, [fp, #-100]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	str	r3, [fp, #-84]
	ldr	r3, [fp, #-84]
	cmp	r3, #255
	beq	.L90
	ldr	r0, [fp, #-96]
	bl	__aeabi_ui2d
	sub	r3, fp, #124
	ldmia	r3, {r2-r3}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r4, r2
	mov	r5, r3
	ldr	r0, [fp, #-84]
	bl	__aeabi_ui2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-60]
	str	r3, [fp, #-56]
	mov	r2, #0
	ldr	r3, .L92+16
	sub	r1, fp, #60
	ldmia	r1, {r0-r1}
	bl	__aeabi_dcmpgt
	mov	r3, r0
	cmp	r3, #0
	beq	.L75
	mov	r2, #0
	ldr	r3, .L92+20
	sub	r1, fp, #60
	ldmia	r1, {r0-r1}
	bl	__aeabi_dcmplt
	mov	r3, r0
	cmp	r3, #0
	bne	.L91
	b	.L75
.L90:
	nop
.L75:
	ldr	r3, [fp, #-100]
	add	r3, r3, #1
	str	r3, [fp, #-100]
.L73:
	ldr	r3, [fp, #-100]
	cmp	r3, #7
	bls	.L79
	ldr	r3, [fp, #-96]
	add	r3, r3, #2
	str	r3, [fp, #-96]
	b	.L72
.L89:
	nop
.L72:
	ldr	r3, [fp, #-96]
	add	r3, r3, #1
	str	r3, [fp, #-96]
.L70:
	ldr	r3, [fp, #-96]
	cmp	r3, #128
	bls	.L80
	ldr	r2, .L92+24
	ldr	r1, .L92+28
	ldr	r0, .L92+32
	bl	printf
	mov	r3, #1
	b	.L86
.L91:
	nop
.L78:
	sub	r3, fp, #68
	ldmia	r3, {r2-r3}
	sub	r1, fp, #60
	ldmia	r1, {r0-r1}
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-52]
	str	r3, [fp, #-48]
	mov	r2, #0
	ldr	r3, .L92+12
	sub	r1, fp, #52
	ldmia	r1, {r0-r1}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2uiz
	mov	r3, r0
	str	r3, [fp, #-80]
	ldr	r3, [fp, #-96]
	sub	r3, r3, #1
	mov	r2, #38
	lsl	r3, r3, r2
	ldr	r2, [fp, #-80]
	add	r3, r2, r3
	str	r3, [fp, #-104]
	mov	r3, #0
	str	r3, [fp, #-100]
	b	.L82
.L83:
	ldr	r3, [fp, #-104]
	and	r1, r3, #255
	sub	r2, fp, #36
	ldr	r3, [fp, #-100]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
	ldr	r3, [fp, #-104]
	lsr	r3, r3, #8
	str	r3, [fp, #-104]
	ldr	r3, [fp, #-100]
	add	r3, r3, #1
	str	r3, [fp, #-100]
.L82:
	ldr	r3, [fp, #-100]
	cmp	r3, #5
	bls	.L83
	mvn	r3, #118
	strb	r3, [fp, #-107]
	mov	r3, #16
	strb	r3, [fp, #-106]
	ldr	r3, .L92+8
	ldr	r0, [r3]
	sub	r2, fp, #107
	ldrb	r3, [fp, #-105]	@ zero_extendqisi2
	str	r3, [sp]
	mov	r3, #1
	mov	r1, #93
	bl	XDfeSi570_I2CWrData
	ldr	r3, .L92+8
	ldr	r0, [r3]
	sub	r2, fp, #106
	ldrb	r3, [fp, #-105]	@ zero_extendqisi2
	str	r3, [sp]
	mov	r3, #1
	mov	r1, #93
	bl	XDfeSi570_I2CWrData
	mov	r3, #0
	str	r3, [fp, #-100]
	mov	r3, #7
	strb	r3, [fp, #-107]
	b	.L84
.L85:
	ldr	r3, .L92+8
	ldr	r0, [r3]
	sub	r2, fp, #107
	ldrb	r3, [fp, #-105]	@ zero_extendqisi2
	str	r3, [sp]
	mov	r3, #1
	mov	r1, #93
	bl	XDfeSi570_I2CWrData
	ldr	r3, .L92+8
	ldr	r0, [r3]
	sub	r2, fp, #36
	ldr	r3, [fp, #-100]
	add	r2, r2, r3
	ldrb	r3, [fp, #-105]	@ zero_extendqisi2
	str	r3, [sp]
	mov	r3, #1
	mov	r1, #93
	bl	XDfeSi570_I2CWrData
	ldr	r3, [fp, #-100]
	add	r3, r3, #1
	str	r3, [fp, #-100]
	ldrb	r3, [fp, #-107]	@ zero_extendqisi2
	add	r3, r3, #1
	and	r3, r3, #255
	strb	r3, [fp, #-107]
.L84:
	ldrb	r3, [fp, #-107]	@ zero_extendqisi2
	cmp	r3, #12
	bls	.L85
	mvn	r3, #118
	strb	r3, [fp, #-107]
	mov	r3, #0
	strb	r3, [fp, #-106]
	ldr	r3, .L92+8
	ldr	r0, [r3]
	sub	r2, fp, #107
	ldrb	r3, [fp, #-105]	@ zero_extendqisi2
	str	r3, [sp]
	mov	r3, #1
	mov	r1, #93
	bl	XDfeSi570_I2CWrData
	ldr	r3, .L92+8
	ldr	r0, [r3]
	sub	r2, fp, #106
	ldrb	r3, [fp, #-105]	@ zero_extendqisi2
	str	r3, [sp]
	mov	r3, #1
	mov	r1, #93
	bl	XDfeSi570_I2CWrData
	mvn	r3, #120
	strb	r3, [fp, #-107]
	mov	r3, #64
	strb	r3, [fp, #-106]
	ldr	r3, .L92+8
	ldr	r0, [r3]
	sub	r2, fp, #107
	ldrb	r3, [fp, #-105]	@ zero_extendqisi2
	str	r3, [sp]
	mov	r3, #1
	mov	r1, #93
	bl	XDfeSi570_I2CWrData
	ldr	r3, .L92+8
	ldr	r0, [r3]
	sub	r2, fp, #106
	ldrb	r3, [fp, #-105]	@ zero_extendqisi2
	str	r3, [sp]
	mov	r3, #1
	mov	r1, #93
	bl	XDfeSi570_I2CWrData
	mov	r3, #0
.L86:
	ldr	r2, .L92
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L87
	bl	__stack_chk_fail
.L87:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L93:
	.align	2
.L92:
	.word	.LC10
	.word	.LC8
	.word	fd_device
	.word	1102053376
	.word	1085469184
	.word	1085679104
	.word	.LC9
	.word	__func__.6150
	.word	.LC5
	.size	XDfeSi570_SetFrequency, .-XDfeSi570_SetFrequency
	.section	.rodata
	.align	2
.LC11:
	.ascii	"devmem 0xFD615000 w 0\000"
	.align	2
.LC12:
	.ascii	"devmem 0xac001000\000"
	.align	2
.LC13:
	.ascii	"devmem 0xac001008\000"
	.align	2
.LC14:
	.ascii	"devmem 0xac001000 32 0\000"
	.text
	.align	2
	.global	XDfeSi570_SetPL
	.syntax unified
	.arm
	.fpu softvfp
	.type	XDfeSi570_SetPL, %function
XDfeSi570_SetPL:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r0, .L95
	bl	system
	ldr	r0, .L95+4
	bl	system
	ldr	r0, .L95+8
	bl	system
	ldr	r0, .L95+12
	bl	system
	ldr	r0, .L95+8
	bl	system
	nop
	pop	{fp, pc}
.L96:
	.align	2
.L95:
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.size	XDfeSi570_SetPL, .-XDfeSi570_SetPL
	.align	2
	.global	XDfeSi570_SetMgtOscillator
	.syntax unified
	.arm
	.fpu softvfp
	.type	XDfeSi570_SetMgtOscillator, %function
XDfeSi570_SetMgtOscillator:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-12]
	str	r1, [fp, #-8]
	str	r2, [fp, #-20]
	str	r3, [fp, #-16]
	bl	XDfeSi570_InitI2C
	mov	r3, r0
	cmp	r3, #1
	bne	.L98
	mov	r3, #1
	b	.L99
.L98:
	sub	r3, fp, #20
	ldmia	r3, {r2-r3}
	sub	r1, fp, #12
	ldmia	r1, {r0-r1}
	bl	XDfeSi570_SetFrequency
	mov	r3, r0
	cmp	r3, #0
	beq	.L100
	mov	r3, #1
	b	.L99
.L100:
	bl	XDfeSi570_SetPL
	mov	r3, #0
.L99:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	XDfeSi570_SetMgtOscillator, .-XDfeSi570_SetMgtOscillator
	.section	.rodata
	.align	2
	.type	__func__.6099, %object
	.size	__func__.6099, 20
__func__.6099:
	.ascii	"XDfeSi570_I2CRdData\000"
	.align	2
	.type	__func__.6114, %object
	.size	__func__.6114, 20
__func__.6114:
	.ascii	"XDfeSi570_I2CWrData\000"
	.align	2
	.type	__func__.6150, %object
	.size	__func__.6150, 23
__func__.6150:
	.ascii	"XDfeSi570_SetFrequency\000"
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
