	.file	"845553.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"Masukkan nilai resistansi (Ohm) : "
.LC1:
	.string	"%f"
	.align 8
.LC2:
	.string	"Masukkan nilai induktansi (H) : "
	.align 8
.LC3:
	.string	"Masukkan nilai kapasitansi (C) : "
	.align 8
.LC4:
	.string	"Masukkan nilai tegangan (V) : "
.LC5:
	.string	"%d"
.LC6:
	.string	"Masukkan jumlah frekuensi : "
	.align 8
.LC8:
	.string	"Masukkan frekuensi %d (rad/s) : "
.LC9:
	.string	"Simulasi respon frekuensi ..."
.LC10:
	.string	"Frekuensi %d : %d rad/s\n"
.LC11:
	.string	"Impedansi rangkaian : "
.LC12:
	.string	" Ohm"
.LC13:
	.string	"Arus rangkaian : "
.LC14:
	.string	"A"
.LC15:
	.string	"Tegangan resistor : "
.LC16:
	.string	" V"
.LC17:
	.string	"Tegangan induktor : "
.LC18:
	.string	"Tegangan kapasitor : "
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 136
	.cfi_offset 3, -24
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -144[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -140[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -136[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -132[rbp]
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	edi, 10
	call	putchar@PLT
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -128[rbp]
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -128[rbp]
	cdqe
	sal	rax, 4
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -120[rbp], rax
	mov	eax, DWORD PTR -128[rbp]
	cdqe
	sal	rax, 4
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -112[rbp], rax
	mov	eax, DWORD PTR -128[rbp]
	cdqe
	sal	rax, 3
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -104[rbp], rax
	mov	eax, DWORD PTR -132[rbp]
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, eax
	movss	DWORD PTR -88[rbp], xmm0
	pxor	xmm0, xmm0
	movss	DWORD PTR -84[rbp], xmm0
	movss	xmm0, DWORD PTR -84[rbp]
	mov	eax, DWORD PTR -88[rbp]
	movaps	xmm1, xmm0
	movd	xmm0, eax
	call	Imag
	movd	eax, xmm0
	mov	DWORD PTR -92[rbp], eax
	movss	xmm0, DWORD PTR -84[rbp]
	mov	eax, DWORD PTR -88[rbp]
	movaps	xmm1, xmm0
	movd	xmm0, eax
	call	Real
	movd	eax, xmm0
	mov	DWORD PTR -96[rbp], eax
	mov	DWORD PTR -124[rbp], 0
	jmp	.L2
.L3:
	mov	eax, DWORD PTR -124[rbp]
	add	eax, 1
	mov	esi, eax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -124[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -104[rbp]
	add	rax, rdx
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	add	DWORD PTR -124[rbp], 1
.L2:
	mov	eax, DWORD PTR -128[rbp]
	cmp	DWORD PTR -124[rbp], eax
	jl	.L3
	mov	edi, 10
	call	putchar@PLT
	lea	rdi, .LC9[rip]
	call	puts@PLT
	mov	edi, 10
	call	putchar@PLT
	mov	DWORD PTR -124[rbp], 0
	jmp	.L4
.L5:
	mov	eax, DWORD PTR -124[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -104[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	edx, DWORD PTR -124[rbp]
	lea	ecx, 1[rdx]
	mov	edx, eax
	mov	esi, ecx
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -124[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -104[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	movss	xmm1, DWORD PTR -136[rbp]
	movss	xmm0, DWORD PTR -140[rbp]
	mov	eax, DWORD PTR -144[rbp]
	mov	ecx, DWORD PTR -124[rbp]
	movsx	rcx, ecx
	mov	rsi, rcx
	sal	rsi, 4
	mov	rcx, QWORD PTR -112[rbp]
	lea	rbx, [rsi+rcx]
	mov	edi, edx
	movaps	xmm2, xmm1
	movaps	xmm1, xmm0
	movd	xmm0, eax
	call	CalculateImpedance
	movq	rax, xmm0
	movdqa	xmm0, xmm1
	mov	QWORD PTR [rbx], rax
	movq	QWORD PTR 8[rbx], xmm0
	mov	eax, DWORD PTR -124[rbp]
	cdqe
	sal	rax, 4
	mov	rdx, rax
	mov	rax, QWORD PTR -112[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR -124[rbp]
	movsx	rdx, edx
	mov	rcx, rdx
	sal	rcx, 4
	mov	rdx, QWORD PTR -120[rbp]
	lea	rbx, [rcx+rdx]
	mov	rsi, QWORD PTR [rax]
	mov	rcx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -96[rbp]
	mov	rdx, QWORD PTR -88[rbp]
	movq	xmm2, rsi
	movq	xmm3, rcx
	movq	xmm0, rax
	movq	xmm1, rdx
	call	CalculateCurrent
	movq	rax, xmm0
	movdqa	xmm0, xmm1
	mov	QWORD PTR [rbx], rax
	movq	QWORD PTR 8[rbx], xmm0
	mov	eax, DWORD PTR -124[rbp]
	cdqe
	sal	rax, 4
	mov	rdx, rax
	mov	rax, QWORD PTR -120[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR -124[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*8]
	mov	rdx, QWORD PTR -104[rbp]
	add	rdx, rcx
	mov	edi, DWORD PTR [rdx]
	movss	xmm1, DWORD PTR -136[rbp]
	movss	xmm0, DWORD PTR -140[rbp]
	mov	r8d, DWORD PTR -144[rbp]
	lea	rcx, -48[rbp]
	lea	rdx, -64[rbp]
	lea	rsi, -80[rbp]
	mov	r9, QWORD PTR [rax]
	mov	rax, QWORD PTR 8[rax]
	movq	xmm3, r9
	movq	xmm4, rax
	movaps	xmm2, xmm1
	movaps	xmm1, xmm0
	movd	xmm0, r8d
	call	CalculateVoltage
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -124[rbp]
	cdqe
	sal	rax, 4
	mov	rdx, rax
	mov	rax, QWORD PTR -112[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR 8[rax]
	movq	xmm0, rdx
	movq	xmm1, rax
	call	PrintComplex
	lea	rdi, .LC12[rip]
	call	puts@PLT
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -124[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -104[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR -124[rbp]
	cdqe
	sal	rax, 4
	mov	rcx, rax
	mov	rax, QWORD PTR -120[rbp]
	add	rax, rcx
	mov	rcx, QWORD PTR [rax]
	mov	rax, QWORD PTR 8[rax]
	mov	edi, edx
	movq	xmm0, rcx
	movq	xmm1, rax
	call	PrintPhasor
	lea	rdi, .LC14[rip]
	call	puts@PLT
	lea	rdi, .LC15[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -124[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -104[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	rdx, QWORD PTR -80[rbp]
	mov	rcx, QWORD PTR -72[rbp]
	mov	edi, eax
	movq	xmm0, rdx
	movq	xmm1, rcx
	call	PrintPhasor
	lea	rdi, .LC16[rip]
	call	puts@PLT
	lea	rdi, .LC17[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -124[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -104[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	rdx, QWORD PTR -64[rbp]
	mov	rcx, QWORD PTR -56[rbp]
	mov	edi, eax
	movq	xmm0, rdx
	movq	xmm1, rcx
	call	PrintPhasor
	lea	rdi, .LC16[rip]
	call	puts@PLT
	lea	rdi, .LC18[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -124[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -104[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	rdx, QWORD PTR -48[rbp]
	mov	rcx, QWORD PTR -40[rbp]
	mov	edi, eax
	movq	xmm0, rdx
	movq	xmm1, rcx
	call	PrintPhasor
	lea	rdi, .LC16[rip]
	call	puts@PLT
	mov	edi, 10
	call	putchar@PLT
	add	DWORD PTR -124[rbp], 1
.L4:
	mov	eax, DWORD PTR -128[rbp]
	cmp	DWORD PTR -124[rbp], eax
	jl	.L5
	mov	eax, 0
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L7
	call	__stack_chk_fail@PLT
.L7:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.globl	Magnitude
	.type	Magnitude, @function
Magnitude:
.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, 16
	movss	DWORD PTR -4[rbp], xmm0
	movss	DWORD PTR -8[rbp], xmm1
	movss	xmm0, DWORD PTR -4[rbp]
	movaps	xmm1, xmm0
	mulss	xmm1, xmm0
	movss	xmm0, DWORD PTR -8[rbp]
	mulss	xmm0, xmm0
	addss	xmm0, xmm1
	pxor	xmm2, xmm2
	cvtss2sd	xmm2, xmm0
	movq	rax, xmm2
	movq	xmm0, rax
	call	sqrt@PLT
	cvtsd2ss	xmm0, xmm0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	Magnitude, .-Magnitude
	.globl	Angle
	.type	Angle, @function
Angle:
.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, 16
	movss	DWORD PTR -4[rbp], xmm0
	movss	DWORD PTR -8[rbp], xmm1
	pxor	xmm0, xmm0
	cvtss2sd	xmm0, DWORD PTR -4[rbp]
	pxor	xmm2, xmm2
	cvtss2sd	xmm2, DWORD PTR -8[rbp]
	movq	rax, xmm2
	movapd	xmm1, xmm0
	movq	xmm0, rax
	call	atan2@PLT
	cvtsd2ss	xmm0, xmm0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	Angle, .-Angle
	.globl	Real
	.type	Real, @function
Real:
.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, 16
	movss	DWORD PTR -4[rbp], xmm0
	movss	DWORD PTR -8[rbp], xmm1
	pxor	xmm2, xmm2
	cvtss2sd	xmm2, DWORD PTR -4[rbp]
	movsd	QWORD PTR -16[rbp], xmm2
	pxor	xmm3, xmm3
	cvtss2sd	xmm3, DWORD PTR -8[rbp]
	movq	rax, xmm3
	movq	xmm0, rax
	call	cos@PLT
	mulsd	xmm0, QWORD PTR -16[rbp]
	cvtsd2ss	xmm0, xmm0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	Real, .-Real
	.globl	Imag
	.type	Imag, @function
Imag:
.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, 16
	movss	DWORD PTR -4[rbp], xmm0
	movss	DWORD PTR -8[rbp], xmm1
	pxor	xmm2, xmm2
	cvtss2sd	xmm2, DWORD PTR -4[rbp]
	movsd	QWORD PTR -16[rbp], xmm2
	pxor	xmm3, xmm3
	cvtss2sd	xmm3, DWORD PTR -8[rbp]
	movq	rax, xmm3
	movq	xmm0, rax
	call	sin@PLT
	mulsd	xmm0, QWORD PTR -16[rbp]
	cvtsd2ss	xmm0, xmm0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	Imag, .-Imag
	.globl	CalculateImpedance
	.type	CalculateImpedance, @function
CalculateImpedance:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 40
	.cfi_offset 3, -24
	movss	DWORD PTR -36[rbp], xmm0
	movss	DWORD PTR -40[rbp], xmm1
	movss	DWORD PTR -44[rbp], xmm2
	mov	DWORD PTR -48[rbp], edi
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, DWORD PTR -48[rbp]
	mulss	xmm0, DWORD PTR -40[rbp]
	pxor	xmm1, xmm1
	cvtsi2ss	xmm1, DWORD PTR -48[rbp]
	movaps	xmm2, xmm1
	mulss	xmm2, DWORD PTR -44[rbp]
	movss	xmm1, DWORD PTR .LC19[rip]
	divss	xmm1, xmm2
	subss	xmm0, xmm1
	movss	DWORD PTR -28[rbp], xmm0
	movss	xmm0, DWORD PTR -36[rbp]
	movss	DWORD PTR -32[rbp], xmm0
	movss	xmm0, DWORD PTR -28[rbp]
	mov	eax, DWORD PTR -32[rbp]
	movaps	xmm1, xmm0
	movd	xmm0, eax
	call	Magnitude
	movd	eax, xmm0
	mov	DWORD PTR -24[rbp], eax
	movss	xmm0, DWORD PTR -28[rbp]
	mov	eax, DWORD PTR -32[rbp]
	movaps	xmm1, xmm0
	movd	xmm0, eax
	call	Angle
	movd	eax, xmm0
	mov	DWORD PTR -20[rbp], eax
	mov	rax, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	mov	rcx, rax
	mov	rbx, rdx
	mov	rax, rdx
	movq	xmm0, rcx
	movq	xmm1, rax
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	CalculateImpedance, .-CalculateImpedance
	.globl	CalculateCurrent
	.type	CalculateCurrent, @function
CalculateCurrent:
.LFB12:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 72
	.cfi_offset 3, -24
	movq	rax, xmm0
	movdqa	xmm0, xmm1
	movq	rdx, xmm0
	mov	QWORD PTR -48[rbp], rax
	mov	QWORD PTR -40[rbp], rdx
	movdqa	xmm1, xmm2
	movdqa	xmm0, xmm3
	movaps	XMMWORD PTR -80[rbp], xmm1
	mov	rax, QWORD PTR -80[rbp]
	mov	rdx, QWORD PTR -72[rbp]
	movq	rdx, xmm0
	mov	QWORD PTR -64[rbp], rax
	mov	QWORD PTR -56[rbp], rdx
	movss	xmm0, DWORD PTR -40[rbp]
	movss	xmm1, DWORD PTR -56[rbp]
	divss	xmm0, xmm1
	movss	DWORD PTR -24[rbp], xmm0
	movss	xmm0, DWORD PTR -36[rbp]
	movss	xmm1, DWORD PTR -52[rbp]
	subss	xmm0, xmm1
	pxor	xmm1, xmm1
	cvtss2sd	xmm1, xmm0
	movsd	xmm0, QWORD PTR .LC20[rip]
	mulsd	xmm0, xmm1
	cvtsd2ss	xmm0, xmm0
	movss	DWORD PTR -20[rbp], xmm0
	movss	xmm0, DWORD PTR -20[rbp]
	mov	eax, DWORD PTR -24[rbp]
	movaps	xmm1, xmm0
	movd	xmm0, eax
	call	Real
	movd	eax, xmm0
	mov	DWORD PTR -32[rbp], eax
	movss	xmm0, DWORD PTR -20[rbp]
	mov	eax, DWORD PTR -24[rbp]
	movaps	xmm1, xmm0
	movd	xmm0, eax
	call	Imag
	movd	eax, xmm0
	mov	DWORD PTR -28[rbp], eax
	mov	rax, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	mov	rcx, rax
	mov	rbx, rdx
	mov	rax, rdx
	movq	xmm0, rcx
	movq	xmm1, rax
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	CalculateCurrent, .-CalculateCurrent
	.globl	CalculateVoltage
	.type	CalculateVoltage, @function
CalculateVoltage:
.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, 80
	movss	DWORD PTR -4[rbp], xmm0
	movss	DWORD PTR -8[rbp], xmm1
	movss	DWORD PTR -12[rbp], xmm2
	mov	DWORD PTR -16[rbp], edi
	movdqa	xmm1, xmm3
	movdqa	xmm0, xmm4
	movaps	XMMWORD PTR -80[rbp], xmm1
	mov	r8, QWORD PTR -80[rbp]
	mov	r9, QWORD PTR -72[rbp]
	movq	r9, xmm0
	mov	QWORD PTR -32[rbp], r8
	mov	QWORD PTR -24[rbp], r9
	mov	QWORD PTR -40[rbp], rsi
	mov	QWORD PTR -48[rbp], rdx
	mov	QWORD PTR -56[rbp], rcx
	movss	xmm0, DWORD PTR -24[rbp]
	mulss	xmm0, DWORD PTR -4[rbp]
	mov	rax, QWORD PTR -40[rbp]
	movss	DWORD PTR 8[rax], xmm0
	movss	xmm0, DWORD PTR -20[rbp]
	mov	rax, QWORD PTR -40[rbp]
	movss	DWORD PTR 12[rax], xmm0
	movss	xmm1, DWORD PTR -20[rbp]
	movss	xmm0, DWORD PTR -24[rbp]
	mulss	xmm0, DWORD PTR -4[rbp]
	movd	eax, xmm0
	movd	xmm0, eax
	call	Real
	movd	eax, xmm0
	mov	rdx, QWORD PTR -40[rbp]
	mov	DWORD PTR [rdx], eax
	movss	xmm1, DWORD PTR -20[rbp]
	movss	xmm0, DWORD PTR -24[rbp]
	mulss	xmm0, DWORD PTR -4[rbp]
	movd	eax, xmm0
	movd	xmm0, eax
	call	Imag
	movd	eax, xmm0
	mov	rdx, QWORD PTR -40[rbp]
	mov	DWORD PTR 4[rdx], eax
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, DWORD PTR -16[rbp]
	movaps	xmm1, xmm0
	mulss	xmm1, DWORD PTR -8[rbp]
	movss	xmm0, DWORD PTR -24[rbp]
	mulss	xmm0, xmm1
	mov	rax, QWORD PTR -48[rbp]
	movss	DWORD PTR 8[rax], xmm0
	movss	xmm1, DWORD PTR -20[rbp]
	movss	xmm0, DWORD PTR .LC21[rip]
	addss	xmm0, xmm1
	mov	rax, QWORD PTR -48[rbp]
	movss	DWORD PTR 12[rax], xmm0
	movss	xmm1, DWORD PTR -20[rbp]
	movss	xmm0, DWORD PTR .LC21[rip]
	movaps	xmm2, xmm1
	addss	xmm2, xmm0
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, DWORD PTR -16[rbp]
	movaps	xmm1, xmm0
	mulss	xmm1, DWORD PTR -8[rbp]
	movss	xmm0, DWORD PTR -24[rbp]
	mulss	xmm1, xmm0
	movd	eax, xmm1
	movaps	xmm1, xmm2
	movd	xmm0, eax
	call	Real
	movd	eax, xmm0
	mov	rdx, QWORD PTR -48[rbp]
	mov	DWORD PTR [rdx], eax
	movss	xmm1, DWORD PTR -20[rbp]
	movss	xmm0, DWORD PTR .LC21[rip]
	movaps	xmm2, xmm1
	addss	xmm2, xmm0
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, DWORD PTR -16[rbp]
	movaps	xmm1, xmm0
	mulss	xmm1, DWORD PTR -8[rbp]
	movss	xmm0, DWORD PTR -24[rbp]
	mulss	xmm1, xmm0
	movd	eax, xmm1
	movaps	xmm1, xmm2
	movd	xmm0, eax
	call	Imag
	movd	eax, xmm0
	mov	rdx, QWORD PTR -48[rbp]
	mov	DWORD PTR 4[rdx], eax
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, DWORD PTR -16[rbp]
	movaps	xmm2, xmm0
	mulss	xmm2, DWORD PTR -12[rbp]
	movss	xmm0, DWORD PTR .LC19[rip]
	movaps	xmm1, xmm0
	divss	xmm1, xmm2
	movss	xmm0, DWORD PTR -24[rbp]
	mulss	xmm0, xmm1
	mov	rax, QWORD PTR -56[rbp]
	movss	DWORD PTR 8[rax], xmm0
	movss	xmm0, DWORD PTR -20[rbp]
	movss	xmm1, DWORD PTR .LC21[rip]
	subss	xmm0, xmm1
	mov	rax, QWORD PTR -56[rbp]
	movss	DWORD PTR 12[rax], xmm0
	movss	xmm0, DWORD PTR -20[rbp]
	movss	xmm1, DWORD PTR .LC21[rip]
	movaps	xmm3, xmm0
	subss	xmm3, xmm1
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, DWORD PTR -16[rbp]
	movaps	xmm2, xmm0
	mulss	xmm2, DWORD PTR -8[rbp]
	movss	xmm0, DWORD PTR .LC19[rip]
	movaps	xmm1, xmm0
	divss	xmm1, xmm2
	movss	xmm0, DWORD PTR -24[rbp]
	mulss	xmm1, xmm0
	movd	eax, xmm1
	movaps	xmm1, xmm3
	movd	xmm0, eax
	call	Real
	movd	eax, xmm0
	mov	rdx, QWORD PTR -56[rbp]
	mov	DWORD PTR [rdx], eax
	movss	xmm0, DWORD PTR -20[rbp]
	movss	xmm1, DWORD PTR .LC21[rip]
	movaps	xmm3, xmm0
	subss	xmm3, xmm1
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, DWORD PTR -16[rbp]
	movaps	xmm2, xmm0
	mulss	xmm2, DWORD PTR -8[rbp]
	movss	xmm0, DWORD PTR .LC19[rip]
	movaps	xmm1, xmm0
	divss	xmm1, xmm2
	movss	xmm0, DWORD PTR -24[rbp]
	mulss	xmm1, xmm0
	movd	eax, xmm1
	movaps	xmm1, xmm3
	movd	xmm0, eax
	call	Imag
	movd	eax, xmm0
	mov	rdx, QWORD PTR -56[rbp]
	mov	DWORD PTR 4[rdx], eax
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	CalculateVoltage, .-CalculateVoltage
	.section	.rodata
.LC22:
	.string	"%.2f + j%.2f"
.LC24:
	.string	"%.2f - j%.2f"
.LC25:
	.string	"%.2f"
	.text
	.globl	PrintComplex
	.type	PrintComplex, @function
PrintComplex:
.LFB14:
	.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
	movq	rax, xmm0
	movdqa	xmm0, xmm1
	movq	rdx, xmm0
	mov	QWORD PTR -16[rbp], rax
	mov	QWORD PTR -8[rbp], rdx
	movss	xmm0, DWORD PTR -12[rbp]
	pxor	xmm1, xmm1
	comiss	xmm0, xmm1
	jbe	.L22
	movss	xmm0, DWORD PTR -12[rbp]
	cvtss2sd	xmm0, xmm0
	movss	xmm1, DWORD PTR -16[rbp]
	pxor	xmm2, xmm2
	cvtss2sd	xmm2, xmm1
	movq	rax, xmm2
	movapd	xmm1, xmm0
	movq	xmm0, rax
	lea	rdi, .LC22[rip]
	mov	eax, 2
	call	printf@PLT
.L22:
	movss	xmm1, DWORD PTR -12[rbp]
	pxor	xmm0, xmm0
	comiss	xmm0, xmm1
	jbe	.L24
	movss	xmm0, DWORD PTR -12[rbp]
	movss	xmm1, DWORD PTR .LC23[rip]
	xorps	xmm0, xmm1
	cvtss2sd	xmm0, xmm0
	movss	xmm1, DWORD PTR -16[rbp]
	pxor	xmm3, xmm3
	cvtss2sd	xmm3, xmm1
	movq	rax, xmm3
	movapd	xmm1, xmm0
	movq	xmm0, rax
	lea	rdi, .LC24[rip]
	mov	eax, 2
	call	printf@PLT
.L24:
	movss	xmm0, DWORD PTR -12[rbp]
	pxor	xmm1, xmm1
	ucomiss	xmm0, xmm1
	jp	.L31
	pxor	xmm1, xmm1
	ucomiss	xmm0, xmm1
	je	.L30
	jmp	.L31
.L30:
	movss	xmm0, DWORD PTR -16[rbp]
	pxor	xmm4, xmm4
	cvtss2sd	xmm4, xmm0
	movq	rax, xmm4
	movq	xmm0, rax
	lea	rdi, .LC25[rip]
	mov	eax, 1
	call	printf@PLT
.L31:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	PrintComplex, .-PrintComplex
	.section	.rodata
.LC26:
	.string	"%.2f cos(%dt + %.2f)"
.LC27:
	.string	"%.2f cos(%dt - %.2f)"
.LC28:
	.string	"%.2f cos(%dt)"
	.text
	.globl	PrintPhasor
	.type	PrintPhasor, @function
PrintPhasor:
.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, 32
	movq	rax, xmm0
	movdqa	xmm0, xmm1
	movq	rdx, xmm0
	mov	QWORD PTR -16[rbp], rax
	mov	QWORD PTR -8[rbp], rdx
	mov	DWORD PTR -20[rbp], edi
	movss	xmm0, DWORD PTR -4[rbp]
	pxor	xmm1, xmm1
	comiss	xmm0, xmm1
	jbe	.L33
	movss	xmm0, DWORD PTR -4[rbp]
	cvtss2sd	xmm0, xmm0
	movss	xmm1, DWORD PTR -8[rbp]
	pxor	xmm2, xmm2
	cvtss2sd	xmm2, xmm1
	movq	rax, xmm2
	mov	edx, DWORD PTR -20[rbp]
	movapd	xmm1, xmm0
	mov	esi, edx
	movq	xmm0, rax
	lea	rdi, .LC26[rip]
	mov	eax, 2
	call	printf@PLT
.L33:
	movss	xmm1, DWORD PTR -4[rbp]
	pxor	xmm0, xmm0
	comiss	xmm0, xmm1
	jbe	.L35
	movss	xmm0, DWORD PTR -4[rbp]
	movss	xmm1, DWORD PTR .LC23[rip]
	xorps	xmm0, xmm1
	cvtss2sd	xmm0, xmm0
	movss	xmm1, DWORD PTR -8[rbp]
	pxor	xmm3, xmm3
	cvtss2sd	xmm3, xmm1
	movq	rax, xmm3
	mov	edx, DWORD PTR -20[rbp]
	movapd	xmm1, xmm0
	mov	esi, edx
	movq	xmm0, rax
	lea	rdi, .LC27[rip]
	mov	eax, 2
	call	printf@PLT
.L35:
	movss	xmm0, DWORD PTR -4[rbp]
	pxor	xmm1, xmm1
	ucomiss	xmm0, xmm1
	jp	.L42
	pxor	xmm1, xmm1
	ucomiss	xmm0, xmm1
	je	.L41
	jmp	.L42
.L41:
	movss	xmm0, DWORD PTR -8[rbp]
	pxor	xmm4, xmm4
	cvtss2sd	xmm4, xmm0
	movq	rax, xmm4
	mov	edx, DWORD PTR -20[rbp]
	mov	esi, edx
	movq	xmm0, rax
	lea	rdi, .LC28[rip]
	mov	eax, 1
	call	printf@PLT
.L42:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	PrintPhasor, .-PrintPhasor
	.section	.rodata
	.align 4
.LC19:
	.long	1065353216
	.align 8
.LC20:
	.long	442745336
	.long	1078765020
	.align 4
.LC21:
	.long	1119092736
	.align 16
.LC23:
	.long	-2147483648
	.long	0
	.long	0
	.long	0
	.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	"845553.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Masukkan nilai resistansi (Ohm) : \000"
	.align	2
.LC1:
	.ascii	"%f\000"
	.align	2
.LC2:
	.ascii	"Masukkan nilai induktansi (H) : \000"
	.align	2
.LC3:
	.ascii	"Masukkan nilai kapasitansi (C) : \000"
	.align	2
.LC4:
	.ascii	"Masukkan nilai tegangan (V) : \000"
	.align	2
.LC5:
	.ascii	"%d\000"
	.align	2
.LC6:
	.ascii	"Masukkan jumlah frekuensi : \000"
	.global	__aeabi_i2f
	.align	2
.LC7:
	.ascii	"Masukkan frekuensi %d (rad/s) : \000"
	.align	2
.LC8:
	.ascii	"Simulasi respon frekuensi ...\000"
	.align	2
.LC9:
	.ascii	"Frekuensi %d : %d rad/s\012\000"
	.align	2
.LC10:
	.ascii	"Impedansi rangkaian : \000"
	.align	2
.LC11:
	.ascii	" Ohm\000"
	.align	2
.LC12:
	.ascii	"Arus rangkaian : \000"
	.align	2
.LC13:
	.ascii	"A\000"
	.align	2
.LC14:
	.ascii	"Tegangan resistor : \000"
	.align	2
.LC15:
	.ascii	" V\000"
	.align	2
.LC16:
	.ascii	"Tegangan induktor : \000"
	.align	2
.LC17:
	.ascii	"Tegangan kapasitor : \000"
	.align	2
.LC18:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 120
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, fp, lr}
	add	fp, sp, #16
	sub	sp, sp, #156
	ldr	r3, .L8
	ldr	r3, [r3]
	str	r3, [fp, #-24]
	mov	r3,#0
	ldr	r0, .L8+4
	bl	printf
	sub	r3, fp, #124
	mov	r1, r3
	ldr	r0, .L8+8
	bl	__isoc99_scanf
	ldr	r0, .L8+12
	bl	printf
	sub	r3, fp, #120
	mov	r1, r3
	ldr	r0, .L8+8
	bl	__isoc99_scanf
	ldr	r0, .L8+16
	bl	printf
	sub	r3, fp, #116
	mov	r1, r3
	ldr	r0, .L8+8
	bl	__isoc99_scanf
	ldr	r0, .L8+20
	bl	printf
	sub	r3, fp, #112
	mov	r1, r3
	ldr	r0, .L8+24
	bl	__isoc99_scanf
	mov	r0, #10
	bl	putchar
	ldr	r0, .L8+28
	bl	printf
	sub	r3, fp, #108
	mov	r1, r3
	ldr	r0, .L8+24
	bl	__isoc99_scanf
	ldr	r3, [fp, #-108]
	lsl	r3, r3, #4
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-100]
	ldr	r3, [fp, #-108]
	lsl	r3, r3, #4
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-96]
	ldr	r3, [fp, #-108]
	lsl	r3, r3, #3
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-92]
	ldr	r3, [fp, #-112]
	mov	r0, r3
	bl	__aeabi_i2f
	mov	r3, r0
	str	r3, [fp, #-80]	@ float
	mov	r3, #0
	str	r3, [fp, #-76]	@ float
	ldr	r3, [fp, #-80]	@ float
	ldr	r2, [fp, #-76]	@ float
	mov	r1, r2
	mov	r0, r3
	bl	Imag
	mov	r3, r0
	str	r3, [fp, #-84]	@ float
	ldr	r3, [fp, #-80]	@ float
	ldr	r2, [fp, #-76]	@ float
	mov	r1, r2
	mov	r0, r3
	bl	Real
	mov	r3, r0
	str	r3, [fp, #-88]	@ float
	mov	r3, #0
	str	r3, [fp, #-104]
	b	.L2
.L3:
	ldr	r3, [fp, #-104]
	add	r3, r3, #1
	mov	r1, r3
	ldr	r0, .L8+32
	bl	printf
	ldr	r3, [fp, #-104]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-92]
	add	r3, r2, r3
	mov	r1, r3
	ldr	r0, .L8+24
	bl	__isoc99_scanf
	ldr	r3, [fp, #-104]
	add	r3, r3, #1
	str	r3, [fp, #-104]
.L2:
	ldr	r3, [fp, #-108]
	ldr	r2, [fp, #-104]
	cmp	r2, r3
	blt	.L3
	mov	r0, #10
	bl	putchar
	ldr	r0, .L8+36
	bl	puts
	mov	r0, #10
	bl	putchar
	mov	r3, #0
	str	r3, [fp, #-104]
	b	.L4
.L5:
	ldr	r3, [fp, #-104]
	add	r1, r3, #1
	ldr	r3, [fp, #-104]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-92]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r0, .L8+40
	bl	printf
	ldr	ip, [fp, #-124]	@ float
	ldr	lr, [fp, #-120]	@ float
	ldr	r4, [fp, #-116]	@ float
	ldr	r3, [fp, #-104]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-92]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-104]
	lsl	r2, r2, #4
	ldr	r1, [fp, #-96]
	add	r5, r1, r2
	sub	r0, fp, #140
	str	r3, [sp]
	mov	r3, r4
	mov	r2, lr
	mov	r1, ip
	bl	CalculateImpedance
	mov	ip, r5
	sub	r3, fp, #140
	ldm	r3, {r0, r1, r2, r3}
	stm	ip, {r0, r1, r2, r3}
	ldr	r3, [fp, #-104]
	lsl	r3, r3, #4
	ldr	r2, [fp, #-96]
	add	r1, r2, r3
	ldr	r3, [fp, #-104]
	lsl	r3, r3, #4
	ldr	r2, [fp, #-100]
	add	r4, r2, r3
	sub	lr, fp, #140
	add	ip, sp, #4
	mov	r3, r1
	ldm	r3, {r0, r1, r2, r3}
	stm	ip, {r0, r1, r2, r3}
	ldr	r3, [fp, #-76]
	str	r3, [sp]
	sub	r3, fp, #88
	ldm	r3, {r1, r2, r3}
	mov	r0, lr
	bl	CalculateCurrent
	mov	ip, r4
	sub	r3, fp, #140
	ldm	r3, {r0, r1, r2, r3}
	stm	ip, {r0, r1, r2, r3}
	ldr	lr, [fp, #-124]	@ float
	ldr	r4, [fp, #-120]	@ float
	ldr	r5, [fp, #-116]	@ float
	ldr	r3, [fp, #-104]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-92]
	add	r3, r2, r3
	ldr	r6, [r3]
	ldr	r3, [fp, #-104]
	lsl	r3, r3, #4
	ldr	r2, [fp, #-100]
	add	r2, r2, r3
	sub	r3, fp, #40
	str	r3, [sp, #24]
	sub	r3, fp, #56
	str	r3, [sp, #20]
	sub	r3, fp, #72
	str	r3, [sp, #16]
	mov	ip, sp
	mov	r3, r2
	ldm	r3, {r0, r1, r2, r3}
	stm	ip, {r0, r1, r2, r3}
	mov	r3, r6
	mov	r2, r5
	mov	r1, r4
	mov	r0, lr
	bl	CalculateVoltage
	ldr	r0, .L8+44
	bl	printf
	ldr	r3, [fp, #-104]
	lsl	r3, r3, #4
	ldr	r2, [fp, #-96]
	add	r3, r2, r3
	ldm	r3, {r0, r1, r2, r3}
	bl	PrintComplex
	ldr	r0, .L8+48
	bl	puts
	ldr	r0, .L8+52
	bl	printf
	ldr	r3, [fp, #-104]
	lsl	r3, r3, #4
	ldr	r2, [fp, #-100]
	add	r3, r2, r3
	ldr	r2, [fp, #-104]
	lsl	r2, r2, #3
	ldr	r1, [fp, #-92]
	add	r2, r1, r2
	ldr	r2, [r2]
	str	r2, [sp]
	ldm	r3, {r0, r1, r2, r3}
	bl	PrintPhasor
	ldr	r0, .L8+56
	bl	puts
	ldr	r0, .L8+60
	bl	printf
	ldr	r3, [fp, #-104]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-92]
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [sp]
	sub	r3, fp, #72
	ldm	r3, {r0, r1, r2, r3}
	bl	PrintPhasor
	ldr	r0, .L8+64
	bl	puts
	ldr	r0, .L8+68
	bl	printf
	ldr	r3, [fp, #-104]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-92]
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [sp]
	sub	r3, fp, #56
	ldm	r3, {r0, r1, r2, r3}
	bl	PrintPhasor
	ldr	r0, .L8+64
	bl	puts
	ldr	r0, .L8+72
	bl	printf
	ldr	r3, [fp, #-104]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-92]
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [sp]
	sub	r3, fp, #40
	ldm	r3, {r0, r1, r2, r3}
	bl	PrintPhasor
	ldr	r0, .L8+64
	bl	puts
	mov	r0, #10
	bl	putchar
	ldr	r3, [fp, #-104]
	add	r3, r3, #1
	str	r3, [fp, #-104]
.L4:
	ldr	r3, [fp, #-108]
	ldr	r2, [fp, #-104]
	cmp	r2, r3
	blt	.L5
	mov	r3, #0
	ldr	r2, .L8
	ldr	r1, [r2]
	ldr	r2, [fp, #-24]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L7
	bl	__stack_chk_fail
.L7:
	mov	r0, r3
	sub	sp, fp, #16
	@ sp needed
	pop	{r4, r5, r6, fp, pc}
.L9:
	.align	2
.L8:
	.word	.LC18
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.size	main, .-main
	.global	__aeabi_fmul
	.global	__aeabi_fadd
	.global	__aeabi_f2d
	.global	__aeabi_d2f
	.align	2
	.global	Magnitude
	.syntax unified
	.arm
	.fpu softvfp
	.type	Magnitude, %function
Magnitude:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #12
	str	r0, [fp, #-16]	@ float
	str	r1, [fp, #-20]	@ float
	ldr	r1, [fp, #-16]	@ float
	ldr	r0, [fp, #-16]	@ float
	bl	__aeabi_fmul
	mov	r3, r0
	mov	r4, r3
	ldr	r1, [fp, #-20]	@ float
	ldr	r0, [fp, #-20]	@ float
	bl	__aeabi_fmul
	mov	r3, r0
	mov	r1, r3
	mov	r0, r4
	bl	__aeabi_fadd
	mov	r3, r0
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	sqrt
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2f
	mov	r3, r0
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
	.size	Magnitude, .-Magnitude
	.align	2
	.global	Angle
	.syntax unified
	.arm
	.fpu softvfp
	.type	Angle, %function
Angle:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #8
	str	r0, [fp, #-16]	@ float
	str	r1, [fp, #-20]	@ float
	ldr	r0, [fp, #-20]	@ float
	bl	__aeabi_f2d
	mov	r4, r0
	mov	r5, r1
	ldr	r0, [fp, #-16]	@ float
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	atan2
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2f
	mov	r3, r0
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
	.size	Angle, .-Angle
	.global	__aeabi_dmul
	.align	2
	.global	Real
	.syntax unified
	.arm
	.fpu softvfp
	.type	Real, %function
Real:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #8
	str	r0, [fp, #-16]	@ float
	str	r1, [fp, #-20]	@ float
	ldr	r0, [fp, #-16]	@ float
	bl	__aeabi_f2d
	mov	r4, r0
	mov	r5, r1
	ldr	r0, [fp, #-20]	@ float
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	cos
	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
	bl	__aeabi_d2f
	mov	r3, r0
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
	.size	Real, .-Real
	.align	2
	.global	Imag
	.syntax unified
	.arm
	.fpu softvfp
	.type	Imag, %function
Imag:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #8
	str	r0, [fp, #-16]	@ float
	str	r1, [fp, #-20]	@ float
	ldr	r0, [fp, #-16]	@ float
	bl	__aeabi_f2d
	mov	r4, r0
	mov	r5, r1
	ldr	r0, [fp, #-20]	@ float
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	sin
	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
	bl	__aeabi_d2f
	mov	r3, r0
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
	.size	Imag, .-Imag
	.global	__aeabi_fdiv
	.global	__aeabi_fsub
	.align	2
	.global	CalculateImpedance
	.syntax unified
	.arm
	.fpu softvfp
	.type	CalculateImpedance, %function
CalculateImpedance:
	@ args = 4, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #36
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]	@ float
	str	r2, [fp, #-40]	@ float
	str	r3, [fp, #-44]	@ float
	ldr	r0, [fp, #4]
	bl	__aeabi_i2f
	mov	r3, r0
	ldr	r1, [fp, #-40]	@ float
	mov	r0, r3
	bl	__aeabi_fmul
	mov	r3, r0
	mov	r4, r3
	ldr	r0, [fp, #4]
	bl	__aeabi_i2f
	mov	r3, r0
	ldr	r1, [fp, #-44]	@ float
	mov	r0, r3
	bl	__aeabi_fmul
	mov	r3, r0
	mov	r1, r3
	mov	r0, #1065353216
	bl	__aeabi_fdiv
	mov	r3, r0
	mov	r1, r3
	mov	r0, r4
	bl	__aeabi_fsub
	mov	r3, r0
	str	r3, [fp, #-24]	@ float
	ldr	r3, [fp, #-36]	@ float
	str	r3, [fp, #-28]	@ float
	ldr	r3, [fp, #-28]	@ float
	ldr	r2, [fp, #-24]	@ float
	mov	r1, r2
	mov	r0, r3
	bl	Magnitude
	mov	r3, r0
	str	r3, [fp, #-20]	@ float
	ldr	r3, [fp, #-28]	@ float
	ldr	r2, [fp, #-24]	@ float
	mov	r1, r2
	mov	r0, r3
	bl	Angle
	mov	r3, r0
	str	r3, [fp, #-16]	@ float
	ldr	r3, [fp, #-32]
	mov	ip, r3
	sub	r3, fp, #28
	ldm	r3, {r0, r1, r2, r3}
	stm	ip, {r0, r1, r2, r3}
	ldr	r0, [fp, #-32]
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
	.size	CalculateImpedance, .-CalculateImpedance
	.align	2
	.global	CalculateCurrent
	.syntax unified
	.arm
	.fpu softvfp
	.type	CalculateCurrent, %function
CalculateCurrent:
	@ args = 36, pretend = 16, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	sub	sp, sp, #16
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	add	r0, fp, #8
	stm	r0, {r1, r2, r3}
	ldr	r3, [fp, #16]	@ float
	ldr	r2, [fp, #32]	@ float
	mov	r1, r2
	mov	r0, r3
	bl	__aeabi_fdiv
	mov	r3, r0
	str	r3, [fp, #-12]	@ float
	ldr	r3, [fp, #20]	@ float
	ldr	r2, [fp, #36]	@ float
	mov	r1, r2
	mov	r0, r3
	bl	__aeabi_fsub
	mov	r3, r0
	mov	r0, r3
	bl	__aeabi_f2d
	ldr	r2, .L22
	ldr	r3, .L22+4
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2f
	mov	r3, r0
	str	r3, [fp, #-8]	@ float
	ldr	r3, [fp, #-12]	@ float
	ldr	r2, [fp, #-8]	@ float
	mov	r1, r2
	mov	r0, r3
	bl	Real
	mov	r3, r0
	str	r3, [fp, #-20]	@ float
	ldr	r3, [fp, #-12]	@ float
	ldr	r2, [fp, #-8]	@ float
	mov	r1, r2
	mov	r0, r3
	bl	Imag
	mov	r3, r0
	str	r3, [fp, #-16]	@ float
	ldr	r3, [fp, #-24]
	mov	ip, r3
	sub	r3, fp, #20
	ldm	r3, {r0, r1, r2, r3}
	stm	ip, {r0, r1, r2, r3}
	ldr	r0, [fp, #-24]
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, lr}
	add	sp, sp, #16
	bx	lr
.L23:
	.align	2
.L22:
	.word	442745336
	.word	1078765020
	.size	CalculateCurrent, .-CalculateCurrent
	.align	2
	.global	CalculateVoltage
	.syntax unified
	.arm
	.fpu softvfp
	.type	CalculateVoltage, %function
CalculateVoltage:
	@ args = 28, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #20
	str	r0, [fp, #-16]	@ float
	str	r1, [fp, #-20]	@ float
	str	r2, [fp, #-24]	@ float
	str	r3, [fp, #-28]
	ldr	r3, [fp, #12]	@ float
	ldr	r1, [fp, #-16]	@ float
	mov	r0, r3
	bl	__aeabi_fmul
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #20]
	str	r2, [r3, #8]	@ float
	ldr	r2, [fp, #16]	@ float
	ldr	r3, [fp, #20]
	str	r2, [r3, #12]	@ float
	ldr	r3, [fp, #12]	@ float
	ldr	r1, [fp, #-16]	@ float
	mov	r0, r3
	bl	__aeabi_fmul
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #16]	@ float
	mov	r1, r3
	mov	r0, r2
	bl	Real
	mov	r2, r0
	ldr	r3, [fp, #20]
	str	r2, [r3]	@ float
	ldr	r3, [fp, #12]	@ float
	ldr	r1, [fp, #-16]	@ float
	mov	r0, r3
	bl	__aeabi_fmul
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #16]	@ float
	mov	r1, r3
	mov	r0, r2
	bl	Imag
	mov	r2, r0
	ldr	r3, [fp, #20]
	str	r2, [r3, #4]	@ float
	ldr	r0, [fp, #-28]
	bl	__aeabi_i2f
	mov	r3, r0
	ldr	r1, [fp, #-20]	@ float
	mov	r0, r3
	bl	__aeabi_fmul
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #12]	@ float
	mov	r1, r3
	mov	r0, r2
	bl	__aeabi_fmul
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #24]
	str	r2, [r3, #8]	@ float
	ldr	r3, [fp, #16]	@ float
	ldr	r1, .L25
	mov	r0, r3
	bl	__aeabi_fadd
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #24]
	str	r2, [r3, #12]	@ float
	ldr	r0, [fp, #-28]
	bl	__aeabi_i2f
	mov	r3, r0
	ldr	r1, [fp, #-20]	@ float
	mov	r0, r3
	bl	__aeabi_fmul
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #12]	@ float
	mov	r1, r3
	mov	r0, r2
	bl	__aeabi_fmul
	mov	r3, r0
	mov	r4, r3
	ldr	r3, [fp, #16]	@ float
	ldr	r1, .L25
	mov	r0, r3
	bl	__aeabi_fadd
	mov	r3, r0
	mov	r1, r3
	mov	r0, r4
	bl	Real
	mov	r2, r0
	ldr	r3, [fp, #24]
	str	r2, [r3]	@ float
	ldr	r0, [fp, #-28]
	bl	__aeabi_i2f
	mov	r3, r0
	ldr	r1, [fp, #-20]	@ float
	mov	r0, r3
	bl	__aeabi_fmul
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #12]	@ float
	mov	r1, r3
	mov	r0, r2
	bl	__aeabi_fmul
	mov	r3, r0
	mov	r4, r3
	ldr	r3, [fp, #16]	@ float
	ldr	r1, .L25
	mov	r0, r3
	bl	__aeabi_fadd
	mov	r3, r0
	mov	r1, r3
	mov	r0, r4
	bl	Imag
	mov	r2, r0
	ldr	r3, [fp, #24]
	str	r2, [r3, #4]	@ float
	ldr	r0, [fp, #-28]
	bl	__aeabi_i2f
	mov	r3, r0
	ldr	r1, [fp, #-24]	@ float
	mov	r0, r3
	bl	__aeabi_fmul
	mov	r3, r0
	mov	r1, r3
	mov	r0, #1065353216
	bl	__aeabi_fdiv
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #12]	@ float
	mov	r1, r3
	mov	r0, r2
	bl	__aeabi_fmul
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #28]
	str	r2, [r3, #8]	@ float
	ldr	r3, [fp, #16]	@ float
	ldr	r1, .L25
	mov	r0, r3
	bl	__aeabi_fsub
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #28]
	str	r2, [r3, #12]	@ float
	ldr	r0, [fp, #-28]
	bl	__aeabi_i2f
	mov	r3, r0
	ldr	r1, [fp, #-20]	@ float
	mov	r0, r3
	bl	__aeabi_fmul
	mov	r3, r0
	mov	r1, r3
	mov	r0, #1065353216
	bl	__aeabi_fdiv
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #12]	@ float
	mov	r1, r3
	mov	r0, r2
	bl	__aeabi_fmul
	mov	r3, r0
	mov	r4, r3
	ldr	r3, [fp, #16]	@ float
	ldr	r1, .L25
	mov	r0, r3
	bl	__aeabi_fsub
	mov	r3, r0
	mov	r1, r3
	mov	r0, r4
	bl	Real
	mov	r2, r0
	ldr	r3, [fp, #28]
	str	r2, [r3]	@ float
	ldr	r0, [fp, #-28]
	bl	__aeabi_i2f
	mov	r3, r0
	ldr	r1, [fp, #-20]	@ float
	mov	r0, r3
	bl	__aeabi_fmul
	mov	r3, r0
	mov	r1, r3
	mov	r0, #1065353216
	bl	__aeabi_fdiv
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #12]	@ float
	mov	r1, r3
	mov	r0, r2
	bl	__aeabi_fmul
	mov	r3, r0
	mov	r4, r3
	ldr	r3, [fp, #16]	@ float
	ldr	r1, .L25
	mov	r0, r3
	bl	__aeabi_fsub
	mov	r3, r0
	mov	r1, r3
	mov	r0, r4
	bl	Imag
	mov	r2, r0
	ldr	r3, [fp, #28]
	str	r2, [r3, #4]	@ float
	nop
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L26:
	.align	2
.L25:
	.word	1119092736
	.size	CalculateVoltage, .-CalculateVoltage
	.global	__aeabi_fcmpgt
	.section	.rodata
	.align	2
.LC19:
	.ascii	"%.2f + j%.2f\000"
	.global	__aeabi_fcmplt
	.align	2
.LC20:
	.ascii	"%.2f - j%.2f\000"
	.global	__aeabi_fcmpeq
	.align	2
.LC21:
	.ascii	"%.2f\000"
	.text
	.align	2
	.global	PrintComplex
	.syntax unified
	.arm
	.fpu softvfp
	.type	PrintComplex, %function
PrintComplex:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #24
	sub	ip, fp, #28
	stm	ip, {r0, r1, r2, r3}
	ldr	r3, [fp, #-24]	@ float
	mov	r1, #0
	mov	r0, r3
	bl	__aeabi_fcmpgt
	mov	r3, r0
	cmp	r3, #0
	beq	.L28
	ldr	r3, [fp, #-28]	@ float
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r4, r0
	mov	r5, r1
	ldr	r3, [fp, #-24]	@ float
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	stm	sp, {r2-r3}
	mov	r2, r4
	mov	r3, r5
	ldr	r0, .L38
	bl	printf
.L28:
	ldr	r3, [fp, #-24]	@ float
	mov	r1, #0
	mov	r0, r3
	bl	__aeabi_fcmplt
	mov	r3, r0
	cmp	r3, #0
	beq	.L30
	ldr	r3, [fp, #-28]	@ float
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r4, r0
	mov	r5, r1
	ldr	r3, [fp, #-24]	@ float
	eor	r3, r3, #-2147483648
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	stm	sp, {r2-r3}
	mov	r2, r4
	mov	r3, r5
	ldr	r0, .L38+4
	bl	printf
.L30:
	ldr	r3, [fp, #-24]	@ float
	mov	r1, #0
	mov	r0, r3
	bl	__aeabi_fcmpeq
	mov	r3, r0
	cmp	r3, #0
	bne	.L36
	b	.L37
.L36:
	ldr	r3, [fp, #-28]	@ float
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L38+8
	bl	printf
.L37:
	nop
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L39:
	.align	2
.L38:
	.word	.LC19
	.word	.LC20
	.word	.LC21
	.size	PrintComplex, .-PrintComplex
	.section	.rodata
	.align	2
.LC22:
	.ascii	"%.2f cos(%dt + %.2f)\000"
	.align	2
.LC23:
	.ascii	"%.2f cos(%dt - %.2f)\000"
	.align	2
.LC24:
	.ascii	"%.2f cos(%dt)\000"
	.text
	.align	2
	.global	PrintPhasor
	.syntax unified
	.arm
	.fpu softvfp
	.type	PrintPhasor, %function
PrintPhasor:
	@ args = 4, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #32
	sub	ip, fp, #28
	stm	ip, {r0, r1, r2, r3}
	ldr	r3, [fp, #-16]	@ float
	mov	r1, #0
	mov	r0, r3
	bl	__aeabi_fcmpgt
	mov	r3, r0
	cmp	r3, #0
	beq	.L41
	ldr	r3, [fp, #-20]	@ float
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r4, r0
	mov	r5, r1
	ldr	r3, [fp, #-16]	@ float
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	str	r2, [sp, #8]
	str	r3, [sp, #12]
	ldr	r3, [fp, #4]
	str	r3, [sp]
	mov	r2, r4
	mov	r3, r5
	ldr	r0, .L51
	bl	printf
.L41:
	ldr	r3, [fp, #-16]	@ float
	mov	r1, #0
	mov	r0, r3
	bl	__aeabi_fcmplt
	mov	r3, r0
	cmp	r3, #0
	beq	.L43
	ldr	r3, [fp, #-20]	@ float
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r4, r0
	mov	r5, r1
	ldr	r3, [fp, #-16]	@ float
	eor	r3, r3, #-2147483648
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	str	r2, [sp, #8]
	str	r3, [sp, #12]
	ldr	r3, [fp, #4]
	str	r3, [sp]
	mov	r2, r4
	mov	r3, r5
	ldr	r0, .L51+4
	bl	printf
.L43:
	ldr	r3, [fp, #-16]	@ float
	mov	r1, #0
	mov	r0, r3
	bl	__aeabi_fcmpeq
	mov	r3, r0
	cmp	r3, #0
	bne	.L49
	b	.L50
.L49:
	ldr	r3, [fp, #-20]	@ float
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	ldr	r1, [fp, #4]
	str	r1, [sp]
	ldr	r0, .L51+8
	bl	printf
.L50:
	nop
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L52:
	.align	2
.L51:
	.word	.LC22
	.word	.LC23
	.word	.LC24
	.size	PrintPhasor, .-PrintPhasor
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
