#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
int /*<<< orphan*/ memcpy(float *, float *, int);
int nsvg__parseTransformArgs(char const *, float *, int, int *);
int /*<<< orphan*/ nsvg__xformSetSkewY(float *, float);
int nsvg__parseSkewY(float *xform, const char *str) {
  float args[1];
  int na = 0;
  float t[6];
  int len = nsvg__parseTransformArgs(str, args, 1, &na);
  nsvg__xformSetSkewY(t, args[0] / 180.0f * (3.14159265358979323846264338327f));
  memcpy(xform, t, sizeof(float) * 6);
  return len;
}


x86 assembly (clang, -O0):
<nsvg__parseSkewY>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x18(%rbp)
mov    -0x10(%rbp),%rdi
lea    -0x14(%rbp),%rsi
mov    $0x1,%edx
lea    -0x18(%rbp),%rcx
call   1050 <nsvg__parseTransformArgs@plt>
mov    %eax,-0x34(%rbp)
lea    -0x30(%rbp),%rdi
movss  -0x14(%rbp),%xmm0
movss  0xe93(%rip),%xmm1
divss  %xmm1,%xmm0
movss  0xe83(%rip),%xmm1
mulss  %xmm1,%xmm0
call   1040 <nsvg__xformSetSkewY@plt>
mov    -0x8(%rbp),%rdi
lea    -0x30(%rbp),%rsi
mov    $0x18,%edx
call   1030 <memcpy@plt>
mov    -0x34(%rbp),%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<nsvg__parseSkewY>:
push   %rbp
push   %r14
push   %rbx
sub    $0x30,%rsp
mov    %rsi,%rax
mov    %rdi,%r14
movl   $0x0,0x8(%rsp)
lea    0xc(%rsp),%rsi
lea    0x8(%rsp),%rcx
mov    %rax,%rdi
mov    $0x1,%edx
call   1050 <nsvg__parseTransformArgs@plt>
mov    %eax,%ebp
movss  0xc(%rsp),%xmm0
divss  0xe93(%rip),%xmm0
mulss  0xe8f(%rip),%xmm0
lea    0x10(%rsp),%rbx
mov    %rbx,%rdi
call   1040 <nsvg__xformSetSkewY@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
mov    $0x18,%edx
call   1030 <memcpy@plt>
mov    %ebp,%eax
add    $0x30,%rsp
pop    %rbx
pop    %r14
pop    %rbp
ret

LLVM IR (-O0):
define i32 @nsvg__parseSkewY(float* %0, i8* %1) {
%3 = alloca float*
%4 = alloca i8*
%5 = alloca [1 x float]
%6 = alloca i32
%7 = alloca [6 x float]
%8 = alloca i32
store float* %0, float** %3
store i8* %1, i8** %4
store i32 0, i32* %6
%9 = load i8*, i8** %4
%10 = getelementptr inbounds [1 x float], [1 x float]* %5, i64 0, i64 0
%11 = call i32 @nsvg__parseTransformArgs(i8* %9, float* %10, i32 1, i32* %6)
store i32 %11, i32* %8
%12 = getelementptr inbounds [6 x float], [6 x float]* %7, i64 0, i64 0
%13 = getelementptr inbounds [1 x float], [1 x float]* %5, i64 0, i64 0
%14 = load float, float* %13
%15 = fdiv float %14, 1.800000e+02
%16 = fmul float %15, 0x400921FB60000000
%17 = call i32 @nsvg__xformSetSkewY(float* %12, float %16)
%18 = load float*, float** %3
%19 = getelementptr inbounds [6 x float], [6 x float]* %7, i64 0, i64 0
%20 = call i32 @memcpy(float* %18, float* %19, i32 24)
%21 = load i32, i32* %8
ret i32 %21
}

LLVM IR (-O2):
define i32 @nsvg__parseSkewY(float* %0, i8* %1) {
%3 = alloca [1 x float]
%4 = alloca i32
%5 = alloca [6 x float]
%6 = bitcast [1 x float]* %3 to i8*
%7 = bitcast i32* %4 to i8*
store i32 0, i32* %4
%8 = bitcast [6 x float]* %5 to i8*
%9 = getelementptr inbounds [1 x float], [1 x float]* %3, i64 0, i64 0
%10 = call i32 @nsvg__parseTransformArgs(i8* %1, float* %9, i32 1, i32* %4)
%11 = getelementptr inbounds [6 x float], [6 x float]* %5, i64 0, i64 0
%12 = load float, float* %9
%13 = fdiv float %12, 1.800000e+02
%14 = fmul float %13, 0x400921FB60000000
%15 = call i32 @nsvg__xformSetSkewY(float* %11, float %14)
%16 = call i32 @memcpy(float* %0, float* %11, i32 24)
ret i32 %10
}