#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*/ sscanf(char *, char *, int *, int *, int *, int *, int *,
                          int *, int *, int *, int *, int *, int *, int *,
                          int *, int *, int *, int *);
int parse_uuid(char *s, int uuid[]) {
  sscanf(s, "%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x",
         uuid + 0, uuid + 1, uuid + 2, uuid + 3, uuid + 4, uuid + 5, uuid + 6,
         uuid + 7, uuid + 8, uuid + 9, uuid + 10, uuid + 11, uuid + 12,
         uuid + 13, uuid + 14, uuid + 15);
  return 0;
}


x86 assembly (clang, -O0):
<parse_uuid>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x98,%rsp
mov    %rdi,-0x30(%rbp)
mov    %rsi,-0x38(%rbp)
mov    -0x30(%rbp),%rdi
mov    -0x38(%rbp),%rdx
mov    -0x38(%rbp),%rcx
add    $0x4,%rcx
mov    -0x38(%rbp),%r8
add    $0x8,%r8
mov    -0x38(%rbp),%r9
add    $0xc,%r9
mov    -0x38(%rbp),%rax
add    $0x10,%rax
mov    -0x38(%rbp),%rsi
add    $0x14,%rsi
mov    %rsi,-0x58(%rbp)
mov    -0x38(%rbp),%rsi
add    $0x18,%rsi
mov    %rsi,-0x50(%rbp)
mov    -0x38(%rbp),%rsi
add    $0x1c,%rsi
mov    %rsi,-0x48(%rbp)
mov    -0x38(%rbp),%r13
add    $0x20,%r13
mov    -0x38(%rbp),%r12
add    $0x24,%r12
mov    -0x38(%rbp),%r15
add    $0x28,%r15
mov    -0x38(%rbp),%r14
add    $0x2c,%r14
mov    -0x38(%rbp),%rbx
add    $0x30,%rbx
mov    -0x38(%rbp),%r11
add    $0x34,%r11
mov    -0x38(%rbp),%r10
add    $0x38,%r10
mov    -0x38(%rbp),%rsi
add    $0x3c,%rsi
mov    %rsi,-0x40(%rbp)
lea    0xe3d(%rip),%rsi
mov    %rax,(%rsp)
mov    -0x58(%rbp),%rax
mov    %rax,0x8(%rsp)
mov    -0x50(%rbp),%rax
mov    %rax,0x10(%rsp)
mov    -0x48(%rbp),%rax
mov    %rax,0x18(%rsp)
mov    -0x40(%rbp),%rax
mov    %r13,0x20(%rsp)
mov    %r12,0x28(%rsp)
mov    %r15,0x30(%rsp)
mov    %r14,0x38(%rsp)
mov    %rbx,0x40(%rsp)
mov    %r11,0x48(%rsp)
mov    %r10,0x50(%rsp)
mov    %rax,0x58(%rsp)
call   1030 <sscanf@plt>
xor    %eax,%eax
add    $0x98,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

x86 assembly (clang, -O2):
<parse_uuid>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
mov    %rsi,%rdx
lea    0x4(%rsi),%rcx
lea    0x8(%rsi),%r8
lea    0xc(%rsi),%r9
lea    0x10(%rsi),%rax
mov    %rax,0x10(%rsp)
lea    0x14(%rsi),%rax
mov    %rax,0x8(%rsp)
lea    0x18(%rsi),%rax
mov    %rax,(%rsp)
lea    0x1c(%rsi),%r15
lea    0x20(%rsi),%r12
lea    0x24(%rsi),%r13
lea    0x28(%rsi),%r14
lea    0x2c(%rsi),%rbx
lea    0x30(%rsi),%rbp
lea    0x34(%rsi),%r11
lea    0x38(%rsi),%r10
lea    0x3c(%rsi),%rax
lea    0xe8e(%rip),%rsi
push   %rax
push   %r10
push   %r11
push   %rbp
push   %rbx
push   %r14
push   %r13
push   %r12
push   %r15
push   0x48(%rsp)
push   0x58(%rsp)
push   0x68(%rsp)
call   1030 <sscanf@plt>
add    $0x60,%rsp
xor    %eax,%eax
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [65 x i8] c"%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x\00"
define i32 @parse_uuid(i8* %0, i32* %1) {
%3 = alloca i8*
%4 = alloca i32*
store i8* %0, i8** %3
store i32* %1, i32** %4
%5 = load i8*, i8** %3
%6 = load i32*, i32** %4
%7 = getelementptr inbounds i32, i32* %6, i64 0
%8 = load i32*, i32** %4
%9 = getelementptr inbounds i32, i32* %8, i64 1
%10 = load i32*, i32** %4
%11 = getelementptr inbounds i32, i32* %10, i64 2
%12 = load i32*, i32** %4
%13 = getelementptr inbounds i32, i32* %12, i64 3
%14 = load i32*, i32** %4
%15 = getelementptr inbounds i32, i32* %14, i64 4
%16 = load i32*, i32** %4
%17 = getelementptr inbounds i32, i32* %16, i64 5
%18 = load i32*, i32** %4
%19 = getelementptr inbounds i32, i32* %18, i64 6
%20 = load i32*, i32** %4
%21 = getelementptr inbounds i32, i32* %20, i64 7
%22 = load i32*, i32** %4
%23 = getelementptr inbounds i32, i32* %22, i64 8
%24 = load i32*, i32** %4
%25 = getelementptr inbounds i32, i32* %24, i64 9
%26 = load i32*, i32** %4
%27 = getelementptr inbounds i32, i32* %26, i64 10
%28 = load i32*, i32** %4
%29 = getelementptr inbounds i32, i32* %28, i64 11
%30 = load i32*, i32** %4
%31 = getelementptr inbounds i32, i32* %30, i64 12
%32 = load i32*, i32** %4
%33 = getelementptr inbounds i32, i32* %32, i64 13
%34 = load i32*, i32** %4
%35 = getelementptr inbounds i32, i32* %34, i64 14
%36 = load i32*, i32** %4
%37 = getelementptr inbounds i32, i32* %36, i64 15
%38 = call i32 @sscanf(i8* %5, i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str, i64 0, i64 0), i32* %7, i32* %9, i32* %11, i32* %13, i32* %15, i32* %17, i32* %19, i32* %21, i32* %23, i32* %25, i32* %27, i32* %29, i32* %31, i32* %33, i32* %35, i32* %37)
ret i32 0
}

LLVM IR (-O2):
@.str = [65 x i8] c"%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x\00"
define i32 @parse_uuid(i8* nocapture %0, i32* %1) {
%3 = getelementptr inbounds i32, i32* %1, i64 1
%4 = getelementptr inbounds i32, i32* %1, i64 2
%5 = getelementptr inbounds i32, i32* %1, i64 3
%6 = getelementptr inbounds i32, i32* %1, i64 4
%7 = getelementptr inbounds i32, i32* %1, i64 5
%8 = getelementptr inbounds i32, i32* %1, i64 6
%9 = getelementptr inbounds i32, i32* %1, i64 7
%10 = getelementptr inbounds i32, i32* %1, i64 8
%11 = getelementptr inbounds i32, i32* %1, i64 9
%12 = getelementptr inbounds i32, i32* %1, i64 10
%13 = getelementptr inbounds i32, i32* %1, i64 11
%14 = getelementptr inbounds i32, i32* %1, i64 12
%15 = getelementptr inbounds i32, i32* %1, i64 13
%16 = getelementptr inbounds i32, i32* %1, i64 14
%17 = getelementptr inbounds i32, i32* %1, i64 15
%18 = tail call i32 @sscanf(i8* %0, i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str, i64 0, i64 0), i32* %1, i32* %3, i32* %4, i32* %5, i32* %6, i32* %7, i32* %8, i32* %9, i32* %10, i32* %11, i32* %12, i32* %13, i32* %14, i32* %15, i32* %16, i32* %17)
ret i32 0
}