#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*/ log_error(char *, int);
int /*<<< orphan*/ song_get_arp_enable(int, int);
int /*<<< orphan*/ song_get_arp_gate_time(int, int);
int /*<<< orphan*/ song_get_arp_speed(int, int);
int /*<<< orphan*/ song_get_arp_type(int, int);
int /*<<< orphan*/ song_get_bias_track(int, int);
int /*<<< orphan*/ song_get_gate_time(int, int);
int /*<<< orphan*/ song_get_motion_dir(int, int);
int /*<<< orphan*/ song_get_motion_length(int, int);
int /*<<< orphan*/ song_get_motion_start(int, int);
int /*<<< orphan*/ song_get_mute(int, int);
int /*<<< orphan*/ song_get_pattern_type(int, int);
int /*<<< orphan*/ song_get_step_length(int, int);
int /*<<< orphan*/ song_get_tonality(int, int);
int /*<<< orphan*/ song_get_transpose(int, int);
int /*<<< orphan*/ song_set_arp_enable(int, int, int /*<<< orphan*/);
int /*<<< orphan*/ song_set_arp_gate_time(int, int, int /*<<< orphan*/);
int /*<<< orphan*/ song_set_arp_speed(int, int, int /*<<< orphan*/);
int /*<<< orphan*/ song_set_arp_type(int, int, int /*<<< orphan*/);
int /*<<< orphan*/ song_set_bias_track(int, int, int /*<<< orphan*/);
int /*<<< orphan*/ song_set_gate_time(int, int, int /*<<< orphan*/);
int /*<<< orphan*/ song_set_motion_dir(int, int, int /*<<< orphan*/);
int /*<<< orphan*/ song_set_motion_length(int, int, int /*<<< orphan*/);
int /*<<< orphan*/ song_set_motion_start(int, int, int /*<<< orphan*/);
int /*<<< orphan*/ song_set_mute(int, int, int /*<<< orphan*/);
int /*<<< orphan*/ song_set_pattern_type(int, int, int /*<<< orphan*/);
int /*<<< orphan*/ song_set_step_length(int, int, int /*<<< orphan*/);
int /*<<< orphan*/ song_set_tonality(int, int, int /*<<< orphan*/);
int /*<<< orphan*/ song_set_transpose(int, int, int /*<<< orphan*/);
void song_copy_scene(int dest, int src) {
  int track;
  if (dest < 0 || src >= 6) {
    log_error("scs - dest invalid: %d", dest);
    return;
  }
  if (src < 0 || src >= 6) {
    log_error("scs - src invalid: %d", src);
    return;
  }
  for (track = 0; track < 6; track++) {
    song_set_step_length(dest, track, song_get_step_length(src, track));
    song_set_tonality(dest, track, song_get_tonality(src, track));
    song_set_transpose(dest, track, song_get_transpose(src, track));
    song_set_bias_track(dest, track, song_get_bias_track(src, track));
    song_set_motion_start(dest, track, song_get_motion_start(src, track));
    song_set_motion_length(dest, track, song_get_motion_length(src, track));
    song_set_gate_time(dest, track, song_get_gate_time(src, track));
    song_set_pattern_type(dest, track, song_get_pattern_type(src, track));
    song_set_motion_dir(dest, track, song_get_motion_dir(src, track));
    song_set_mute(dest, track, song_get_mute(src, track));
    song_set_arp_speed(dest, track, song_get_arp_speed(src, track));
    song_set_arp_type(dest, track, song_get_arp_type(src, track));
    song_set_arp_gate_time(dest, track, song_get_arp_gate_time(src, track));
    song_set_arp_enable(dest, track, song_get_arp_enable(src, track));
  }
}


x86 assembly (clang, -O0):
<song_copy_scene>:
push   %rbp
mov    %rsp,%rbp
sub    $0x80,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
cmpl   $0x0,-0x4(%rbp)
jl     12f5 <song_copy_scene+0x25>
cmpl   $0x6,-0x8(%rbp)
jl     1309 <song_copy_scene+0x39>
mov    -0x4(%rbp),%esi
lea    0xd01(%rip),%rdi
call   1070 <log_error@plt>
jmp    1548 <song_copy_scene+0x278>
cmpl   $0x0,-0x8(%rbp)
jl     131d <song_copy_scene+0x4d>
cmpl   $0x6,-0x8(%rbp)
jl     1331 <song_copy_scene+0x61>
mov    -0x8(%rbp),%esi
lea    0xcf0(%rip),%rdi
call   1070 <log_error@plt>
jmp    1548 <song_copy_scene+0x278>
movl   $0x0,-0xc(%rbp)
cmpl   $0x6,-0xc(%rbp)
jge    1548 <song_copy_scene+0x278>
mov    -0x4(%rbp),%eax
mov    %eax,-0x7c(%rbp)
mov    -0xc(%rbp),%eax
mov    %eax,-0x78(%rbp)
mov    -0x8(%rbp),%edi
mov    -0xc(%rbp),%esi
call   10f0 <song_get_step_length@plt>
mov    -0x7c(%rbp),%edi
mov    -0x78(%rbp),%esi
mov    %eax,%edx
call   10b0 <song_set_step_length@plt>
mov    -0x4(%rbp),%eax
mov    %eax,-0x74(%rbp)
mov    -0xc(%rbp),%eax
mov    %eax,-0x70(%rbp)
mov    -0x8(%rbp),%edi
mov    -0xc(%rbp),%esi
call   1030 <song_get_tonality@plt>
mov    -0x74(%rbp),%edi
mov    -0x70(%rbp),%esi
mov    %eax,%edx
call   1040 <song_set_tonality@plt>
mov    -0x4(%rbp),%eax
mov    %eax,-0x6c(%rbp)
mov    -0xc(%rbp),%eax
mov    %eax,-0x68(%rbp)
mov    -0x8(%rbp),%edi
mov    -0xc(%rbp),%esi
call   11a0 <song_get_transpose@plt>
mov    -0x6c(%rbp),%edi
mov    -0x68(%rbp),%esi
mov    %eax,%edx
call   1130 <song_set_transpose@plt>
mov    -0x4(%rbp),%eax
mov    %eax,-0x64(%rbp)
mov    -0xc(%rbp),%eax
mov    %eax,-0x60(%rbp)
mov    -0x8(%rbp),%edi
mov    -0xc(%rbp),%esi
call   10a0 <song_get_bias_track@plt>
mov    -0x64(%rbp),%edi
mov    -0x60(%rbp),%esi
mov    %eax,%edx
call   1180 <song_set_bias_track@plt>
mov    -0x4(%rbp),%eax
mov    %eax,-0x5c(%rbp)
mov    -0xc(%rbp),%eax
mov    %eax,-0x58(%rbp)
mov    -0x8(%rbp),%edi
mov    -0xc(%rbp),%esi
call   1080 <song_get_motion_start@plt>
mov    -0x5c(%rbp),%edi
mov    -0x58(%rbp),%esi
mov    %eax,%edx
call   11d0 <song_set_motion_start@plt>
mov    -0x4(%rbp),%eax
mov    %eax,-0x54(%rbp)
mov    -0xc(%rbp),%eax
mov    %eax,-0x50(%rbp)
mov    -0x8(%rbp),%edi
mov    -0xc(%rbp),%esi
call   10e0 <song_get_motion_length@plt>
mov    -0x54(%rbp),%edi
mov    -0x50(%rbp),%esi
mov    %eax,%edx
call   1100 <song_set_motion_length@plt>
mov    -0x4(%rbp),%eax
mov    %eax,-0x4c(%rbp)
mov    -0xc(%rbp),%eax
mov    %eax,-0x48(%rbp)
mov    -0x8(%rbp),%edi
mov    -0xc(%rbp),%esi
call   1150 <song_get_gate_time@plt>
mov    -0x4c(%rbp),%edi
mov    -0x48(%rbp),%esi
mov    %eax,%edx
call   1110 <song_set_gate_time@plt>
mov    -0x4(%rbp),%eax
mov    %eax,-0x44(%rbp)
mov    -0xc(%rbp),%eax
mov    %eax,-0x40(%rbp)
mov    -0x8(%rbp),%edi
mov    -0xc(%rbp),%esi
call   1190 <song_get_pattern_type@plt>
mov    -0x44(%rbp),%edi
mov    -0x40(%rbp),%esi
mov    %eax,%edx
call   1050 <song_set_pattern_type@plt>
mov    -0x4(%rbp),%eax
mov    %eax,-0x3c(%rbp)
mov    -0xc(%rbp),%eax
mov    %eax,-0x38(%rbp)
mov    -0x8(%rbp),%edi
mov    -0xc(%rbp),%esi
call   1060 <song_get_motion_dir@plt>
mov    -0x3c(%rbp),%edi
mov    -0x38(%rbp),%esi
mov    %eax,%edx
call   1090 <song_set_motion_dir@plt>
mov    -0x4(%rbp),%eax
mov    %eax,-0x34(%rbp)
mov    -0xc(%rbp),%eax
mov    %eax,-0x30(%rbp)
mov    -0x8(%rbp),%edi
mov    -0xc(%rbp),%esi
call   1170 <song_get_mute@plt>
mov    -0x34(%rbp),%edi
mov    -0x30(%rbp),%esi
mov    %eax,%edx
call   1140 <song_set_mute@plt>
mov    -0x4(%rbp),%eax
mov    %eax,-0x2c(%rbp)
mov    -0xc(%rbp),%eax
mov    %eax,-0x28(%rbp)
mov    -0x8(%rbp),%edi
mov    -0xc(%rbp),%esi
call   11c0 <song_get_arp_speed@plt>
mov    -0x2c(%rbp),%edi
mov    -0x28(%rbp),%esi
mov    %eax,%edx
call   10d0 <song_set_arp_speed@plt>
mov    -0x4(%rbp),%eax
mov    %eax,-0x24(%rbp)
mov    -0xc(%rbp),%eax
mov    %eax,-0x20(%rbp)
mov    -0x8(%rbp),%edi
mov    -0xc(%rbp),%esi
call   1160 <song_get_arp_type@plt>
mov    -0x24(%rbp),%edi
mov    -0x20(%rbp),%esi
mov    %eax,%edx
call   10c0 <song_set_arp_type@plt>
mov    -0x4(%rbp),%eax
mov    %eax,-0x1c(%rbp)
mov    -0xc(%rbp),%eax
mov    %eax,-0x18(%rbp)
mov    -0x8(%rbp),%edi
mov    -0xc(%rbp),%esi
call   11f0 <song_get_arp_gate_time@plt>
mov    -0x1c(%rbp),%edi
mov    -0x18(%rbp),%esi
mov    %eax,%edx
call   11e0 <song_set_arp_gate_time@plt>
mov    -0x4(%rbp),%eax
mov    %eax,-0x14(%rbp)
mov    -0xc(%rbp),%eax
mov    %eax,-0x10(%rbp)
mov    -0x8(%rbp),%edi
mov    -0xc(%rbp),%esi
call   11b0 <song_get_arp_enable@plt>
mov    -0x14(%rbp),%edi
mov    -0x10(%rbp),%esi
mov    %eax,%edx
call   1120 <song_set_arp_enable@plt>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1338 <song_copy_scene+0x68>
add    $0x80,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<song_copy_scene>:
push   %rbp
push   %r14
push   %rbx
mov    %edi,%ebp
test   %edi,%edi
js     1437 <song_copy_scene+0x167>
mov    %esi,%r14d
cmp    $0x6,%esi
jge    1437 <song_copy_scene+0x167>
test   %r14d,%r14d
js     1442 <song_copy_scene+0x172>
xor    %ebx,%ebx
cs nopw 0x0(%rax,%rax,1)
nop
mov    %r14d,%edi
mov    %ebx,%esi
call   10f0 <song_get_step_length@plt>
mov    %ebp,%edi
mov    %ebx,%esi
mov    %eax,%edx
call   10b0 <song_set_step_length@plt>
mov    %r14d,%edi
mov    %ebx,%esi
call   1030 <song_get_tonality@plt>
mov    %ebp,%edi
mov    %ebx,%esi
mov    %eax,%edx
call   1040 <song_set_tonality@plt>
mov    %r14d,%edi
mov    %ebx,%esi
call   11a0 <song_get_transpose@plt>
mov    %ebp,%edi
mov    %ebx,%esi
mov    %eax,%edx
call   1130 <song_set_transpose@plt>
mov    %r14d,%edi
mov    %ebx,%esi
call   10a0 <song_get_bias_track@plt>
mov    %ebp,%edi
mov    %ebx,%esi
mov    %eax,%edx
call   1180 <song_set_bias_track@plt>
mov    %r14d,%edi
mov    %ebx,%esi
call   1080 <song_get_motion_start@plt>
mov    %ebp,%edi
mov    %ebx,%esi
mov    %eax,%edx
call   11d0 <song_set_motion_start@plt>
mov    %r14d,%edi
mov    %ebx,%esi
call   10e0 <song_get_motion_length@plt>
mov    %ebp,%edi
mov    %ebx,%esi
mov    %eax,%edx
call   1100 <song_set_motion_length@plt>
mov    %r14d,%edi
mov    %ebx,%esi
call   1150 <song_get_gate_time@plt>
mov    %ebp,%edi
mov    %ebx,%esi
mov    %eax,%edx
call   1110 <song_set_gate_time@plt>
mov    %r14d,%edi
mov    %ebx,%esi
call   1190 <song_get_pattern_type@plt>
mov    %ebp,%edi
mov    %ebx,%esi
mov    %eax,%edx
call   1050 <song_set_pattern_type@plt>
mov    %r14d,%edi
mov    %ebx,%esi
call   1060 <song_get_motion_dir@plt>
mov    %ebp,%edi
mov    %ebx,%esi
mov    %eax,%edx
call   1090 <song_set_motion_dir@plt>
mov    %r14d,%edi
mov    %ebx,%esi
call   1170 <song_get_mute@plt>
mov    %ebp,%edi
mov    %ebx,%esi
mov    %eax,%edx
call   1140 <song_set_mute@plt>
mov    %r14d,%edi
mov    %ebx,%esi
call   11c0 <song_get_arp_speed@plt>
mov    %ebp,%edi
mov    %ebx,%esi
mov    %eax,%edx
call   10d0 <song_set_arp_speed@plt>
mov    %r14d,%edi
mov    %ebx,%esi
call   1160 <song_get_arp_type@plt>
mov    %ebp,%edi
mov    %ebx,%esi
mov    %eax,%edx
call   10c0 <song_set_arp_type@plt>
mov    %r14d,%edi
mov    %ebx,%esi
call   11f0 <song_get_arp_gate_time@plt>
mov    %ebp,%edi
mov    %ebx,%esi
mov    %eax,%edx
call   11e0 <song_set_arp_gate_time@plt>
mov    %r14d,%edi
mov    %ebx,%esi
call   11b0 <song_get_arp_enable@plt>
mov    %ebp,%edi
mov    %ebx,%esi
mov    %eax,%edx
call   1120 <song_set_arp_enable@plt>
add    $0x1,%ebx
cmp    $0x6,%ebx
jne    1300 <song_copy_scene+0x30>
pop    %rbx
pop    %r14
pop    %rbp
ret
lea    0xbc2(%rip),%rdi
mov    %ebp,%esi
jmp    144c <song_copy_scene+0x17c>
lea    0xbce(%rip),%rdi
mov    %r14d,%esi
pop    %rbx
pop    %r14
pop    %rbp
jmp    1070 <log_error@plt>

LLVM IR (-O0):
@.str = [23 x i8] c"scs - dest invalid: %d\00"
@.str.1 = [22 x i8] c"scs - src invalid: %d\00"
define void @song_copy_scene(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
store i32 %0, i32* %3
store i32 %1, i32* %4
%6 = load i32, i32* %3
%7 = icmp slt i32 %6, 0
br i1 %7, label %11, label %8
8: ; preds = %2
%9 = load i32, i32* %4
%10 = icmp sge i32 %9, 6
br i1 %10, label %11, label %14
11: ; preds = %8, %2
%12 = load i32, i32* %3
%13 = call i32 @log_error(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str, i64 0, i64 0), i32 %12)
br label %115
14: ; preds = %8
%15 = load i32, i32* %4
%16 = icmp slt i32 %15, 0
br i1 %16, label %20, label %17
17: ; preds = %14
%18 = load i32, i32* %4
%19 = icmp sge i32 %18, 6
br i1 %19, label %20, label %23
20: ; preds = %17, %14
%21 = load i32, i32* %4
%22 = call i32 @log_error(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.1, i64 0, i64 0), i32 %21)
br label %115
23: ; preds = %17
store i32 0, i32* %5
br label %24
24: ; preds = %112, %23
%25 = load i32, i32* %5
%26 = icmp slt i32 %25, 6
br i1 %26, label %27, label %115
27: ; preds = %24
%28 = load i32, i32* %3
%29 = load i32, i32* %5
%30 = load i32, i32* %4
%31 = load i32, i32* %5
%32 = call i32 @song_get_step_length(i32 %30, i32 %31)
%33 = call i32 @song_set_step_length(i32 %28, i32 %29, i32 %32)
%34 = load i32, i32* %3
%35 = load i32, i32* %5
%36 = load i32, i32* %4
%37 = load i32, i32* %5
%38 = call i32 @song_get_tonality(i32 %36, i32 %37)
%39 = call i32 @song_set_tonality(i32 %34, i32 %35, i32 %38)
%40 = load i32, i32* %3
%41 = load i32, i32* %5
%42 = load i32, i32* %4
%43 = load i32, i32* %5
%44 = call i32 @song_get_transpose(i32 %42, i32 %43)
%45 = call i32 @song_set_transpose(i32 %40, i32 %41, i32 %44)
%46 = load i32, i32* %3
%47 = load i32, i32* %5
%48 = load i32, i32* %4
%49 = load i32, i32* %5
%50 = call i32 @song_get_bias_track(i32 %48, i32 %49)
%51 = call i32 @song_set_bias_track(i32 %46, i32 %47, i32 %50)
%52 = load i32, i32* %3
%53 = load i32, i32* %5
%54 = load i32, i32* %4
%55 = load i32, i32* %5
%56 = call i32 @song_get_motion_start(i32 %54, i32 %55)
%57 = call i32 @song_set_motion_start(i32 %52, i32 %53, i32 %56)
%58 = load i32, i32* %3
%59 = load i32, i32* %5
%60 = load i32, i32* %4
%61 = load i32, i32* %5
%62 = call i32 @song_get_motion_length(i32 %60, i32 %61)
%63 = call i32 @song_set_motion_length(i32 %58, i32 %59, i32 %62)
%64 = load i32, i32* %3
%65 = load i32, i32* %5
%66 = load i32, i32* %4
%67 = load i32, i32* %5
%68 = call i32 @song_get_gate_time(i32 %66, i32 %67)
%69 = call i32 @song_set_gate_time(i32 %64, i32 %65, i32 %68)
%70 = load i32, i32* %3
%71 = load i32, i32* %5
%72 = load i32, i32* %4
%73 = load i32, i32* %5
%74 = call i32 @song_get_pattern_type(i32 %72, i32 %73)
%75 = call i32 @song_set_pattern_type(i32 %70, i32 %71, i32 %74)
%76 = load i32, i32* %3
%77 = load i32, i32* %5
%78 = load i32, i32* %4
%79 = load i32, i32* %5
%80 = call i32 @song_get_motion_dir(i32 %78, i32 %79)
%81 = call i32 @song_set_motion_dir(i32 %76, i32 %77, i32 %80)
%82 = load i32, i32* %3
%83 = load i32, i32* %5
%84 = load i32, i32* %4
%85 = load i32, i32* %5
%86 = call i32 @song_get_mute(i32 %84, i32 %85)
%87 = call i32 @song_set_mute(i32 %82, i32 %83, i32 %86)
%88 = load i32, i32* %3
%89 = load i32, i32* %5
%90 = load i32, i32* %4
%91 = load i32, i32* %5
%92 = call i32 @song_get_arp_speed(i32 %90, i32 %91)
%93 = call i32 @song_set_arp_speed(i32 %88, i32 %89, i32 %92)
%94 = load i32, i32* %3
%95 = load i32, i32* %5
%96 = load i32, i32* %4
%97 = load i32, i32* %5
%98 = call i32 @song_get_arp_type(i32 %96, i32 %97)
%99 = call i32 @song_set_arp_type(i32 %94, i32 %95, i32 %98)
%100 = load i32, i32* %3
%101 = load i32, i32* %5
%102 = load i32, i32* %4
%103 = load i32, i32* %5
%104 = call i32 @song_get_arp_gate_time(i32 %102, i32 %103)
%105 = call i32 @song_set_arp_gate_time(i32 %100, i32 %101, i32 %104)
%106 = load i32, i32* %3
%107 = load i32, i32* %5
%108 = load i32, i32* %4
%109 = load i32, i32* %5
%110 = call i32 @song_get_arp_enable(i32 %108, i32 %109)
%111 = call i32 @song_set_arp_enable(i32 %106, i32 %107, i32 %110)
br label %112
112: ; preds = %27
%113 = load i32, i32* %5
%114 = add nsw i32 %113, 1
store i32 %114, i32* %5
br label %24
115: ; preds = %11, %20, %24
ret void
}

LLVM IR (-O2):
@.str = [23 x i8] c"scs - dest invalid: %d\00"
@.str.1 = [22 x i8] c"scs - src invalid: %d\00"
define void @song_copy_scene(i32 %0, i32 %1) {
%3 = icmp slt i32 %0, 0
%4 = icmp sgt i32 %1, 5
%5 = or i1 %3, %4
br i1 %5, label %6, label %8
6: ; preds = %2
%7 = tail call i32 @log_error(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str, i64 0, i64 0), i32 %0)
br label %44
8: ; preds = %2
%9 = icmp slt i32 %1, 0
br i1 %9, label %10, label %12
10: ; preds = %8
%11 = tail call i32 @log_error(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.1, i64 0, i64 0), i32 %1)
br label %44
12: ; preds = %8, %12
%13 = phi i32 [ %42, %12 ], [ 0, %8 ]
%14 = tail call i32 @song_get_step_length(i32 %1, i32 %13)
%15 = tail call i32 @song_set_step_length(i32 %0, i32 %13, i32 %14)
%16 = tail call i32 @song_get_tonality(i32 %1, i32 %13)
%17 = tail call i32 @song_set_tonality(i32 %0, i32 %13, i32 %16)
%18 = tail call i32 @song_get_transpose(i32 %1, i32 %13)
%19 = tail call i32 @song_set_transpose(i32 %0, i32 %13, i32 %18)
%20 = tail call i32 @song_get_bias_track(i32 %1, i32 %13)
%21 = tail call i32 @song_set_bias_track(i32 %0, i32 %13, i32 %20)
%22 = tail call i32 @song_get_motion_start(i32 %1, i32 %13)
%23 = tail call i32 @song_set_motion_start(i32 %0, i32 %13, i32 %22)
%24 = tail call i32 @song_get_motion_length(i32 %1, i32 %13)
%25 = tail call i32 @song_set_motion_length(i32 %0, i32 %13, i32 %24)
%26 = tail call i32 @song_get_gate_time(i32 %1, i32 %13)
%27 = tail call i32 @song_set_gate_time(i32 %0, i32 %13, i32 %26)
%28 = tail call i32 @song_get_pattern_type(i32 %1, i32 %13)
%29 = tail call i32 @song_set_pattern_type(i32 %0, i32 %13, i32 %28)
%30 = tail call i32 @song_get_motion_dir(i32 %1, i32 %13)
%31 = tail call i32 @song_set_motion_dir(i32 %0, i32 %13, i32 %30)
%32 = tail call i32 @song_get_mute(i32 %1, i32 %13)
%33 = tail call i32 @song_set_mute(i32 %0, i32 %13, i32 %32)
%34 = tail call i32 @song_get_arp_speed(i32 %1, i32 %13)
%35 = tail call i32 @song_set_arp_speed(i32 %0, i32 %13, i32 %34)
%36 = tail call i32 @song_get_arp_type(i32 %1, i32 %13)
%37 = tail call i32 @song_set_arp_type(i32 %0, i32 %13, i32 %36)
%38 = tail call i32 @song_get_arp_gate_time(i32 %1, i32 %13)
%39 = tail call i32 @song_set_arp_gate_time(i32 %0, i32 %13, i32 %38)
%40 = tail call i32 @song_get_arp_enable(i32 %1, i32 %13)
%41 = tail call i32 @song_set_arp_enable(i32 %0, i32 %13, i32 %40)
%42 = add nuw nsw i32 %13, 1
%43 = icmp eq i32 %42, 6
br i1 %43, label %44, label %12
44: ; preds = %12, %10, %6
ret void
}