#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*/ _rasterize_horiz_line(int, int, int, float, float, float,
                                         float);
void _rasterize_horiz_line__unordered(int x1, int x2, int y, float u1, float v1,
                                      float u2, float v2, float dudx,
                                      float dvdx) {
  if (x1 <= x2) {
    _rasterize_horiz_line(x1, x2, y, u1, v1, dudx, dvdx);
  } else {
    _rasterize_horiz_line(x2, x1, y, u2, v2, dudx, dvdx);
  }
}


x86 assembly (clang, -O0):
<_rasterize_horiz_line__unordered>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
movss  %xmm0,-0x10(%rbp)
movss  %xmm1,-0x14(%rbp)
movss  %xmm2,-0x18(%rbp)
movss  %xmm3,-0x1c(%rbp)
movss  %xmm4,-0x20(%rbp)
movss  %xmm5,-0x24(%rbp)
mov    -0x4(%rbp),%eax
cmp    -0x8(%rbp),%eax
jg     1172 <_rasterize_horiz_line__unordered+0x62>
mov    -0x4(%rbp),%edi
mov    -0x8(%rbp),%esi
mov    -0xc(%rbp),%edx
movss  -0x10(%rbp),%xmm0
movss  -0x14(%rbp),%xmm1
movss  -0x20(%rbp),%xmm2
movss  -0x24(%rbp),%xmm3
call   1030 <_rasterize_horiz_line@plt>
jmp    1194 <_rasterize_horiz_line__unordered+0x84>
mov    -0x8(%rbp),%edi
mov    -0x4(%rbp),%esi
mov    -0xc(%rbp),%edx
movss  -0x18(%rbp),%xmm0
movss  -0x1c(%rbp),%xmm1
movss  -0x20(%rbp),%xmm2
movss  -0x24(%rbp),%xmm3
call   1030 <_rasterize_horiz_line@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<_rasterize_horiz_line__unordered>:
mov    %edi,%eax
cmp    %esi,%edi
jle    1122 <_rasterize_horiz_line__unordered+0x12>
mov    %esi,%edi
mov    %eax,%esi
movaps %xmm2,%xmm0
movaps %xmm3,%xmm1
jmp    1124 <_rasterize_horiz_line__unordered+0x14>
mov    %eax,%edi
movaps %xmm4,%xmm2
movaps %xmm5,%xmm3
jmp    1030 <_rasterize_horiz_line@plt>

LLVM IR (-O0):
define void @_rasterize_horiz_line__unordered(i32 %0, i32 %1, i32 %2, float %3, float %4, float %5, float %6, float %7, float %8) {
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
%13 = alloca float
%14 = alloca float
%15 = alloca float
%16 = alloca float
%17 = alloca float
%18 = alloca float
store i32 %0, i32* %10
store i32 %1, i32* %11
store i32 %2, i32* %12
store float %3, float* %13
store float %4, float* %14
store float %5, float* %15
store float %6, float* %16
store float %7, float* %17
store float %8, float* %18
%19 = load i32, i32* %10
%20 = load i32, i32* %11
%21 = icmp sle i32 %19, %20
br i1 %21, label %22, label %31
22: ; preds = %9
%23 = load i32, i32* %10
%24 = load i32, i32* %11
%25 = load i32, i32* %12
%26 = load float, float* %13
%27 = load float, float* %14
%28 = load float, float* %17
%29 = load float, float* %18
%30 = call i32 @_rasterize_horiz_line(i32 %23, i32 %24, i32 %25, float %26, float %27, float %28, float %29)
br label %40
31: ; preds = %9
%32 = load i32, i32* %11
%33 = load i32, i32* %10
%34 = load i32, i32* %12
%35 = load float, float* %15
%36 = load float, float* %16
%37 = load float, float* %17
%38 = load float, float* %18
%39 = call i32 @_rasterize_horiz_line(i32 %32, i32 %33, i32 %34, float %35, float %36, float %37, float %38)
br label %40
40: ; preds = %31, %22
ret void
}

LLVM IR (-O2):
define void @_rasterize_horiz_line__unordered(i32 %0, i32 %1, i32 %2, float %3, float %4, float %5, float %6, float %7, float %8) {
%10 = icmp sgt i32 %0, %1
br i1 %10, label %13, label %11
11: ; preds = %9
%12 = tail call i32 @_rasterize_horiz_line(i32 %0, i32 %1, i32 %2, float %3, float %4, float %7, float %8)
br label %15
13: ; preds = %9
%14 = tail call i32 @_rasterize_horiz_line(i32 %1, i32 %0, i32 %2, float %5, float %6, float %7, float %8)
br label %15
15: ; preds = %13, %11
ret void
}