#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 */
struct v4l2_rect {
  int left;
  int top;
  int width;
  int height;
};
struct v4l2_mbus_framefmt {
  int width;
  int height;
  int /*<<< orphan*/ code;
};
struct media_entity {
  int dummy;
};
typedef enum v4l2_subdev_format_whence {
  ____Placeholder_v4l2_subdev_format_whence
} v4l2_subdev_format_whence;

/* Variables and functions */
int /*<<< orphan*/ V4L2_SEL_TGT_COMPOSE;
int /*<<< orphan*/ V4L2_SEL_TGT_COMPOSE_BOUNDS;
int /*<<< orphan*/ V4L2_SEL_TGT_CROP;
int /*<<< orphan*/ V4L2_SEL_TGT_CROP_BOUNDS;
int /*<<< orphan*/ printf(char *, ...);
int v4l2_subdev_get_format(struct media_entity *, struct v4l2_mbus_framefmt *,
                           unsigned int, int);
int v4l2_subdev_get_selection(struct media_entity *, struct v4l2_rect *,
                              unsigned int, int /*<<< orphan*/, int);
char *v4l2_subdev_pixelcode_to_string(int /*<<< orphan*/);
void v4l2_subdev_print_format(struct media_entity *entity, unsigned int pad,
                              enum v4l2_subdev_format_whence which) {
  struct v4l2_mbus_framefmt format;
  struct v4l2_rect rect;
  int ret;
  ret = v4l2_subdev_get_format(entity, &format, pad, which);
  if (ret != 0)
    return;
  printf("\t\t[fmt:%s/%ux%u", v4l2_subdev_pixelcode_to_string(format.code),
         format.width, format.height);
  ret = v4l2_subdev_get_selection(entity, &rect, pad, V4L2_SEL_TGT_CROP_BOUNDS,
                                  which);
  if (ret == 0)
    printf("\n\t\t crop.bounds:(%u,%u)/%ux%u", rect.left, rect.top, rect.width,
           rect.height);
  ret = v4l2_subdev_get_selection(entity, &rect, pad, V4L2_SEL_TGT_CROP, which);
  if (ret == 0)
    printf("\n\t\t crop:(%u,%u)/%ux%u", rect.left, rect.top, rect.width,
           rect.height);
  ret = v4l2_subdev_get_selection(entity, &rect, pad,
                                  V4L2_SEL_TGT_COMPOSE_BOUNDS, which);
  if (ret == 0)
    printf("\n\t\t compose.bounds:(%u,%u)/%ux%u", rect.left, rect.top,
           rect.width, rect.height);
  ret = v4l2_subdev_get_selection(entity, &rect, pad, V4L2_SEL_TGT_COMPOSE,
                                  which);
  if (ret == 0)
    printf("\n\t\t compose:(%u,%u)/%ux%u", rect.left, rect.top, rect.width,
           rect.height);
  printf("]\n");
}


x86 assembly (clang, -O0):
<v4l2_subdev_print_format>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %edx,-0x10(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%edx
mov    -0x10(%rbp),%ecx
lea    -0x20(%rbp),%rsi
call   1030 <v4l2_subdev_get_format@plt>
mov    %eax,-0x34(%rbp)
cmpl   $0x0,-0x34(%rbp)
je     1177 <v4l2_subdev_print_format+0x37>
jmp    12b8 <v4l2_subdev_print_format+0x178>
mov    -0x18(%rbp),%edi
call   1050 <v4l2_subdev_pixelcode_to_string@plt>
mov    %rax,%rsi
mov    -0x20(%rbp),%edx
mov    -0x1c(%rbp),%ecx
lea    0xe71(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%edx
mov    0x2e2c(%rip),%rax
mov    (%rax),%ecx
mov    -0x10(%rbp),%r8d
lea    -0x30(%rbp),%rsi
call   1060 <v4l2_subdev_get_selection@plt>
mov    %eax,-0x34(%rbp)
cmpl   $0x0,-0x34(%rbp)
jne    11db <v4l2_subdev_print_format+0x9b>
mov    -0x30(%rbp),%esi
mov    -0x2c(%rbp),%edx
mov    -0x28(%rbp),%ecx
mov    -0x24(%rbp),%r8d
lea    0xe3c(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%edx
mov    0x2dff(%rip),%rax
mov    (%rax),%ecx
mov    -0x10(%rbp),%r8d
lea    -0x30(%rbp),%rsi
call   1060 <v4l2_subdev_get_selection@plt>
mov    %eax,-0x34(%rbp)
cmpl   $0x0,-0x34(%rbp)
jne    1220 <v4l2_subdev_print_format+0xe0>
mov    -0x30(%rbp),%esi
mov    -0x2c(%rbp),%edx
mov    -0x28(%rbp),%ecx
mov    -0x24(%rbp),%r8d
lea    0xe15(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%edx
mov    0x2d92(%rip),%rax
mov    (%rax),%ecx
mov    -0x10(%rbp),%r8d
lea    -0x30(%rbp),%rsi
call   1060 <v4l2_subdev_get_selection@plt>
mov    %eax,-0x34(%rbp)
cmpl   $0x0,-0x34(%rbp)
jne    1265 <v4l2_subdev_print_format+0x125>
mov    -0x30(%rbp),%esi
mov    -0x2c(%rbp),%edx
mov    -0x28(%rbp),%ecx
mov    -0x24(%rbp),%r8d
lea    0xde7(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%edx
mov    0x2d65(%rip),%rax
mov    (%rax),%ecx
mov    -0x10(%rbp),%r8d
lea    -0x30(%rbp),%rsi
call   1060 <v4l2_subdev_get_selection@plt>
mov    %eax,-0x34(%rbp)
cmpl   $0x0,-0x34(%rbp)
jne    12aa <v4l2_subdev_print_format+0x16a>
mov    -0x30(%rbp),%esi
mov    -0x2c(%rbp),%edx
mov    -0x28(%rbp),%ecx
mov    -0x24(%rbp),%r8d
lea    0xdc3(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xdcf(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<v4l2_subdev_print_format>:
push   %rbp
push   %r14
push   %rbx
sub    $0x20,%rsp
mov    %edx,%r14d
mov    %esi,%ebp
mov    %rdi,%rbx
lea    0x10(%rsp),%rsi
mov    %ebp,%edx
mov    %r14d,%ecx
call   1030 <v4l2_subdev_get_format@plt>
test   %eax,%eax
jne    1291 <v4l2_subdev_print_format+0x141>
mov    0x18(%rsp),%edi
call   1060 <v4l2_subdev_pixelcode_to_string@plt>
mov    0x10(%rsp),%edx
mov    0x14(%rsp),%ecx
lea    0xe71(%rip),%rdi
mov    %rax,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x2e30(%rip),%rax
mov    (%rax),%ecx
mov    %rsp,%rsi
mov    %rbx,%rdi
mov    %ebp,%edx
mov    %r14d,%r8d
call   1070 <v4l2_subdev_get_selection@plt>
test   %eax,%eax
jne    11d4 <v4l2_subdev_print_format+0x84>
mov    (%rsp),%esi
mov    0x4(%rsp),%edx
mov    0x8(%rsp),%ecx
mov    0xc(%rsp),%r8d
lea    0xe43(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x2e0d(%rip),%rax
mov    (%rax),%ecx
mov    %rsp,%rsi
mov    %rbx,%rdi
mov    %ebp,%edx
mov    %r14d,%r8d
call   1070 <v4l2_subdev_get_selection@plt>
test   %eax,%eax
jne    120f <v4l2_subdev_print_format+0xbf>
mov    (%rsp),%esi
mov    0x4(%rsp),%edx
mov    0x8(%rsp),%ecx
mov    0xc(%rsp),%r8d
lea    0xe26(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x2daa(%rip),%rax
mov    (%rax),%ecx
mov    %rsp,%rsi
mov    %rbx,%rdi
mov    %ebp,%edx
mov    %r14d,%r8d
call   1070 <v4l2_subdev_get_selection@plt>
test   %eax,%eax
jne    124a <v4l2_subdev_print_format+0xfa>
mov    (%rsp),%esi
mov    0x4(%rsp),%edx
mov    0x8(%rsp),%ecx
mov    0xc(%rsp),%r8d
lea    0xe02(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x2d87(%rip),%rax
mov    (%rax),%ecx
mov    %rsp,%rsi
mov    %rbx,%rdi
mov    %ebp,%edx
mov    %r14d,%r8d
call   1070 <v4l2_subdev_get_selection@plt>
test   %eax,%eax
jne    1285 <v4l2_subdev_print_format+0x135>
mov    (%rsp),%esi
mov    0x4(%rsp),%edx
mov    0x8(%rsp),%ecx
mov    0xc(%rsp),%r8d
lea    0xde8(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xdf4(%rip),%rdi
call   1040 <puts@plt>
add    $0x20,%rsp
pop    %rbx
pop    %r14
pop    %rbp
ret

LLVM IR (-O0):
%struct.media_entity = type { i32 }
%struct.v4l2_mbus_framefmt = type { i32, i32, i32 }
%struct.v4l2_rect = type { i32, i32, i32, i32 }
@.str = [16 x i8] c"\09\09[fmt:%s/%ux%u\00"
@V4L2_SEL_TGT_CROP_BOUNDS = global i32 0
@.str.1 = [30 x i8] c"\0A\09\09 crop.bounds:(%u,%u)/%ux%u\00"
@V4L2_SEL_TGT_CROP = global i32 0
@.str.2 = [23 x i8] c"\0A\09\09 crop:(%u,%u)/%ux%u\00"
@V4L2_SEL_TGT_COMPOSE_BOUNDS = global i32 0
@.str.3 = [33 x i8] c"\0A\09\09 compose.bounds:(%u,%u)/%ux%u\00"
@V4L2_SEL_TGT_COMPOSE = global i32 0
@.str.4 = [26 x i8] c"\0A\09\09 compose:(%u,%u)/%ux%u\00"
@.str.5 = [3 x i8] c"]\0A\00"
define void @v4l2_subdev_print_format(%struct.media_entity* %0, i32 %1, i32 %2) {
%4 = alloca %struct.media_entity*
%5 = alloca i32
%6 = alloca i32
%7 = alloca %struct.v4l2_mbus_framefmt
%8 = alloca %struct.v4l2_rect
%9 = alloca i32
store %struct.media_entity* %0, %struct.media_entity** %4
store i32 %1, i32* %5
store i32 %2, i32* %6
%10 = load %struct.media_entity*, %struct.media_entity** %4
%11 = load i32, i32* %5
%12 = load i32, i32* %6
%13 = call i32 @v4l2_subdev_get_format(%struct.media_entity* %10, %struct.v4l2_mbus_framefmt* %7, i32 %11, i32 %12)
store i32 %13, i32* %9
%14 = load i32, i32* %9
%15 = icmp ne i32 %14, 0
br i1 %15, label %16, label %17
16: ; preds = %3
br label %99
17: ; preds = %3
%18 = getelementptr inbounds %struct.v4l2_mbus_framefmt, %struct.v4l2_mbus_framefmt* %7, i32 0, i32 2
%19 = load i32, i32* %18
%20 = call i8* @v4l2_subdev_pixelcode_to_string(i32 %19)
%21 = getelementptr inbounds %struct.v4l2_mbus_framefmt, %struct.v4l2_mbus_framefmt* %7, i32 0, i32 0
%22 = load i32, i32* %21
%23 = getelementptr inbounds %struct.v4l2_mbus_framefmt, %struct.v4l2_mbus_framefmt* %7, i32 0, i32 1
%24 = load i32, i32* %23
%25 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0), i8* %20, i32 %22, i32 %24)
%26 = load %struct.media_entity*, %struct.media_entity** %4
%27 = load i32, i32* %5
%28 = load i32, i32* @V4L2_SEL_TGT_CROP_BOUNDS
%29 = load i32, i32* %6
%30 = call i32 @v4l2_subdev_get_selection(%struct.media_entity* %26, %struct.v4l2_rect* %8, i32 %27, i32 %28, i32 %29)
store i32 %30, i32* %9
%31 = load i32, i32* %9
%32 = icmp eq i32 %31, 0
br i1 %32, label %33, label %43
33: ; preds = %17
%34 = getelementptr inbounds %struct.v4l2_rect, %struct.v4l2_rect* %8, i32 0, i32 0
%35 = load i32, i32* %34
%36 = getelementptr inbounds %struct.v4l2_rect, %struct.v4l2_rect* %8, i32 0, i32 1
%37 = load i32, i32* %36
%38 = getelementptr inbounds %struct.v4l2_rect, %struct.v4l2_rect* %8, i32 0, i32 2
%39 = load i32, i32* %38
%40 = getelementptr inbounds %struct.v4l2_rect, %struct.v4l2_rect* %8, i32 0, i32 3
%41 = load i32, i32* %40
%42 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.1, i64 0, i64 0), i32 %35, i32 %37, i32 %39, i32 %41)
br label %43
43: ; preds = %33, %17
%44 = load %struct.media_entity*, %struct.media_entity** %4
%45 = load i32, i32* %5
%46 = load i32, i32* @V4L2_SEL_TGT_CROP
%47 = load i32, i32* %6
%48 = call i32 @v4l2_subdev_get_selection(%struct.media_entity* %44, %struct.v4l2_rect* %8, i32 %45, i32 %46, i32 %47)
store i32 %48, i32* %9
%49 = load i32, i32* %9
%50 = icmp eq i32 %49, 0
br i1 %50, label %51, label %61
51: ; preds = %43
%52 = getelementptr inbounds %struct.v4l2_rect, %struct.v4l2_rect* %8, i32 0, i32 0
%53 = load i32, i32* %52
%54 = getelementptr inbounds %struct.v4l2_rect, %struct.v4l2_rect* %8, i32 0, i32 1
%55 = load i32, i32* %54
%56 = getelementptr inbounds %struct.v4l2_rect, %struct.v4l2_rect* %8, i32 0, i32 2
%57 = load i32, i32* %56
%58 = getelementptr inbounds %struct.v4l2_rect, %struct.v4l2_rect* %8, i32 0, i32 3
%59 = load i32, i32* %58
%60 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.2, i64 0, i64 0), i32 %53, i32 %55, i32 %57, i32 %59)
br label %61
61: ; preds = %51, %43
%62 = load %struct.media_entity*, %struct.media_entity** %4
%63 = load i32, i32* %5
%64 = load i32, i32* @V4L2_SEL_TGT_COMPOSE_BOUNDS
%65 = load i32, i32* %6
%66 = call i32 @v4l2_subdev_get_selection(%struct.media_entity* %62, %struct.v4l2_rect* %8, i32 %63, i32 %64, i32 %65)
store i32 %66, i32* %9
%67 = load i32, i32* %9
%68 = icmp eq i32 %67, 0
br i1 %68, label %69, label %79
69: ; preds = %61
%70 = getelementptr inbounds %struct.v4l2_rect, %struct.v4l2_rect* %8, i32 0, i32 0
%71 = load i32, i32* %70
%72 = getelementptr inbounds %struct.v4l2_rect, %struct.v4l2_rect* %8, i32 0, i32 1
%73 = load i32, i32* %72
%74 = getelementptr inbounds %struct.v4l2_rect, %struct.v4l2_rect* %8, i32 0, i32 2
%75 = load i32, i32* %74
%76 = getelementptr inbounds %struct.v4l2_rect, %struct.v4l2_rect* %8, i32 0, i32 3
%77 = load i32, i32* %76
%78 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.3, i64 0, i64 0), i32 %71, i32 %73, i32 %75, i32 %77)
br label %79
79: ; preds = %69, %61
%80 = load %struct.media_entity*, %struct.media_entity** %4
%81 = load i32, i32* %5
%82 = load i32, i32* @V4L2_SEL_TGT_COMPOSE
%83 = load i32, i32* %6
%84 = call i32 @v4l2_subdev_get_selection(%struct.media_entity* %80, %struct.v4l2_rect* %8, i32 %81, i32 %82, i32 %83)
store i32 %84, i32* %9
%85 = load i32, i32* %9
%86 = icmp eq i32 %85, 0
br i1 %86, label %87, label %97
87: ; preds = %79
%88 = getelementptr inbounds %struct.v4l2_rect, %struct.v4l2_rect* %8, i32 0, i32 0
%89 = load i32, i32* %88
%90 = getelementptr inbounds %struct.v4l2_rect, %struct.v4l2_rect* %8, i32 0, i32 1
%91 = load i32, i32* %90
%92 = getelementptr inbounds %struct.v4l2_rect, %struct.v4l2_rect* %8, i32 0, i32 2
%93 = load i32, i32* %92
%94 = getelementptr inbounds %struct.v4l2_rect, %struct.v4l2_rect* %8, i32 0, i32 3
%95 = load i32, i32* %94
%96 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.4, i64 0, i64 0), i32 %89, i32 %91, i32 %93, i32 %95)
br label %97
97: ; preds = %87, %79
%98 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0))
br label %99
99: ; preds = %97, %16
ret void
}

LLVM IR (-O2):
%struct.media_entity = type { i32 }
%struct.v4l2_mbus_framefmt = type { i32, i32, i32 }
%struct.v4l2_rect = type { i32, i32, i32, i32 }
@.str = [16 x i8] c"\09\09[fmt:%s/%ux%u\00"
@V4L2_SEL_TGT_CROP_BOUNDS = global i32 0
@.str.1 = [30 x i8] c"\0A\09\09 crop.bounds:(%u,%u)/%ux%u\00"
@V4L2_SEL_TGT_CROP = global i32 0
@.str.2 = [23 x i8] c"\0A\09\09 crop:(%u,%u)/%ux%u\00"
@V4L2_SEL_TGT_COMPOSE_BOUNDS = global i32 0
@.str.3 = [33 x i8] c"\0A\09\09 compose.bounds:(%u,%u)/%ux%u\00"
@V4L2_SEL_TGT_COMPOSE = global i32 0
@.str.4 = [26 x i8] c"\0A\09\09 compose:(%u,%u)/%ux%u\00"
@str = [2 x i8] c"]\00"
define void @v4l2_subdev_print_format(%struct.media_entity* %0, i32 %1, i32 %2) {
%4 = alloca %struct.v4l2_mbus_framefmt
%5 = alloca %struct.v4l2_rect
%6 = bitcast %struct.v4l2_mbus_framefmt* %4 to i8*
%7 = bitcast %struct.v4l2_rect* %5 to i8*
%8 = call i32 @v4l2_subdev_get_format(%struct.media_entity* %0, %struct.v4l2_mbus_framefmt* %4, i32 %1, i32 %2)
%9 = icmp eq i32 %8, 0
br i1 %9, label %10, label %76
10: ; preds = %3
%11 = getelementptr inbounds %struct.v4l2_mbus_framefmt, %struct.v4l2_mbus_framefmt* %4, i64 0, i32 2
%12 = load i32, i32* %11
%13 = call i8* @v4l2_subdev_pixelcode_to_string(i32 %12)
%14 = getelementptr inbounds %struct.v4l2_mbus_framefmt, %struct.v4l2_mbus_framefmt* %4, i64 0, i32 0
%15 = load i32, i32* %14
%16 = getelementptr inbounds %struct.v4l2_mbus_framefmt, %struct.v4l2_mbus_framefmt* %4, i64 0, i32 1
%17 = load i32, i32* %16
%18 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0), i8* %13, i32 %15, i32 %17)
%19 = load i32, i32* @V4L2_SEL_TGT_CROP_BOUNDS
%20 = call i32 @v4l2_subdev_get_selection(%struct.media_entity* %0, %struct.v4l2_rect* %5, i32 %1, i32 %19, i32 %2)
%21 = icmp eq i32 %20, 0
br i1 %21, label %22, label %32
22: ; preds = %10
%23 = getelementptr inbounds %struct.v4l2_rect, %struct.v4l2_rect* %5, i64 0, i32 0
%24 = load i32, i32* %23
%25 = getelementptr inbounds %struct.v4l2_rect, %struct.v4l2_rect* %5, i64 0, i32 1
%26 = load i32, i32* %25
%27 = getelementptr inbounds %struct.v4l2_rect, %struct.v4l2_rect* %5, i64 0, i32 2
%28 = load i32, i32* %27
%29 = getelementptr inbounds %struct.v4l2_rect, %struct.v4l2_rect* %5, i64 0, i32 3
%30 = load i32, i32* %29
%31 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @.str.1, i64 0, i64 0), i32 %24, i32 %26, i32 %28, i32 %30)
br label %32
32: ; preds = %22, %10
%33 = load i32, i32* @V4L2_SEL_TGT_CROP
%34 = call i32 @v4l2_subdev_get_selection(%struct.media_entity* %0, %struct.v4l2_rect* %5, i32 %1, i32 %33, i32 %2)
%35 = icmp eq i32 %34, 0
br i1 %35, label %36, label %46
36: ; preds = %32
%37 = getelementptr inbounds %struct.v4l2_rect, %struct.v4l2_rect* %5, i64 0, i32 0
%38 = load i32, i32* %37
%39 = getelementptr inbounds %struct.v4l2_rect, %struct.v4l2_rect* %5, i64 0, i32 1
%40 = load i32, i32* %39
%41 = getelementptr inbounds %struct.v4l2_rect, %struct.v4l2_rect* %5, i64 0, i32 2
%42 = load i32, i32* %41
%43 = getelementptr inbounds %struct.v4l2_rect, %struct.v4l2_rect* %5, i64 0, i32 3
%44 = load i32, i32* %43
%45 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.2, i64 0, i64 0), i32 %38, i32 %40, i32 %42, i32 %44)
br label %46
46: ; preds = %36, %32
%47 = load i32, i32* @V4L2_SEL_TGT_COMPOSE_BOUNDS
%48 = call i32 @v4l2_subdev_get_selection(%struct.media_entity* %0, %struct.v4l2_rect* %5, i32 %1, i32 %47, i32 %2)
%49 = icmp eq i32 %48, 0
br i1 %49, label %50, label %60
50: ; preds = %46
%51 = getelementptr inbounds %struct.v4l2_rect, %struct.v4l2_rect* %5, i64 0, i32 0
%52 = load i32, i32* %51
%53 = getelementptr inbounds %struct.v4l2_rect, %struct.v4l2_rect* %5, i64 0, i32 1
%54 = load i32, i32* %53
%55 = getelementptr inbounds %struct.v4l2_rect, %struct.v4l2_rect* %5, i64 0, i32 2
%56 = load i32, i32* %55
%57 = getelementptr inbounds %struct.v4l2_rect, %struct.v4l2_rect* %5, i64 0, i32 3
%58 = load i32, i32* %57
%59 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str.3, i64 0, i64 0), i32 %52, i32 %54, i32 %56, i32 %58)
br label %60
60: ; preds = %50, %46
%61 = load i32, i32* @V4L2_SEL_TGT_COMPOSE
%62 = call i32 @v4l2_subdev_get_selection(%struct.media_entity* %0, %struct.v4l2_rect* %5, i32 %1, i32 %61, i32 %2)
%63 = icmp eq i32 %62, 0
br i1 %63, label %64, label %74
64: ; preds = %60
%65 = getelementptr inbounds %struct.v4l2_rect, %struct.v4l2_rect* %5, i64 0, i32 0
%66 = load i32, i32* %65
%67 = getelementptr inbounds %struct.v4l2_rect, %struct.v4l2_rect* %5, i64 0, i32 1
%68 = load i32, i32* %67
%69 = getelementptr inbounds %struct.v4l2_rect, %struct.v4l2_rect* %5, i64 0, i32 2
%70 = load i32, i32* %69
%71 = getelementptr inbounds %struct.v4l2_rect, %struct.v4l2_rect* %5, i64 0, i32 3
%72 = load i32, i32* %71
%73 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @.str.4, i64 0, i64 0), i32 %66, i32 %68, i32 %70, i32 %72)
br label %74
74: ; preds = %64, %60
%75 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([2 x i8], [2 x i8]* @str, i64 0, i64 0))
br label %76
76: ; preds = %3, %74
ret void
}