; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 1
; Bound: 54
; Schema: 0
               OpCapability Shader
               OpMemoryModel Logical GLSL450
               OpEntryPoint GLCompute %f "f"
               OpExecutionMode %f LocalSize 1 1 1
               OpName %f "f"
               OpName %i "i"
               OpName %tint_loop_idx "tint_loop_idx"
               OpName %tint_low_inc "tint_low_inc"
               OpName %tint_carry "tint_carry"
       %void = OpTypeVoid
          %3 = OpTypeFunction %void
        %int = OpTypeInt 32 1
%_ptr_Function_int = OpTypePointer Function %int
      %int_0 = OpConstant %int 0
       %uint = OpTypeInt 32 0
     %v2uint = OpTypeVector %uint 2
%_ptr_Function_v2uint = OpTypePointer Function %v2uint
%uint_4294967295 = OpConstant %uint 4294967295
         %18 = OpConstantComposite %v2uint %uint_4294967295 %uint_4294967295
         %22 = OpConstantNull %v2uint
       %bool = OpTypeBool
     %v2bool = OpTypeVector %bool 2
%_ptr_Function_uint = OpTypePointer Function %uint
     %uint_0 = OpConstant %uint 0
     %uint_1 = OpConstant %uint 1
      %int_1 = OpConstant %int 1
      %int_4 = OpConstant %int 4
          %f = OpFunction %void None %3
          %4 = OpLabel
          %i = OpVariable %_ptr_Function_int Function
%tint_loop_idx = OpVariable %_ptr_Function_v2uint Function
               OpStore %i %int_0
               OpBranch %9
          %9 = OpLabel
               OpStore %tint_loop_idx %18
               OpBranch %12
         %12 = OpLabel
               OpLoopMerge %13 %11 None
               OpBranch %10
         %10 = OpLabel
         %20 = OpLoad %v2uint %tint_loop_idx None
         %21 = OpIEqual %v2bool %20 %22
         %25 = OpAll %bool %21
               OpSelectionMerge %26 None
               OpBranchConditional %25 %27 %26
         %27 = OpLabel
               OpBranch %13
         %26 = OpLabel
         %28 = OpLoad %int %i None
               OpSelectionMerge %31 None
               OpSwitch %28 %29 0 %30
         %29 = OpLabel
               OpBranch %31
         %30 = OpLabel
               OpBranch %11
         %31 = OpLabel
               OpBranch %11
         %11 = OpLabel
         %32 = OpAccessChain %_ptr_Function_uint %tint_loop_idx %uint_0
         %35 = OpLoad %uint %32 None
%tint_low_inc = OpISub %uint %35 %uint_1
         %38 = OpAccessChain %_ptr_Function_uint %tint_loop_idx %uint_0
               OpStore %38 %tint_low_inc None
         %39 = OpIEqual %bool %tint_low_inc %uint_4294967295
 %tint_carry = OpSelect %uint %39 %uint_1 %uint_0
         %41 = OpAccessChain %_ptr_Function_uint %tint_loop_idx %uint_1
         %42 = OpLoad %uint %41 None
         %43 = OpISub %uint %42 %tint_carry
         %44 = OpAccessChain %_ptr_Function_uint %tint_loop_idx %uint_1
               OpStore %44 %43 None
         %45 = OpLoad %int %i None
         %46 = OpBitcast %uint %45
         %47 = OpBitcast %uint %int_1
         %49 = OpIAdd %uint %46 %47
         %50 = OpBitcast %int %49
               OpStore %i %50 None
         %51 = OpLoad %int %i None
         %52 = OpSGreaterThanEqual %bool %51 %int_4
               OpBranchConditional %52 %13 %12
         %13 = OpLabel
               OpReturn
               OpFunctionEnd
