You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: a_svd_110.m
    path of file: ./repos/d2d/arFramework3/ThirdParty/StrucID/adimat/runtime
    
    the code of the file until where you have to start completion: % function [a_A U S V] = a_svd_110(a_U, a_S, A)
%
% Compute adjoint of A in [ U S V ] = svd(A), where a_U and a_S are
% the adjoints of U and S, resp.
%
% Using the method from Mike Giles, "An extended collection of matrix
% derivative results for forwar
    
function [a_A U S V] = a_svd_110(a_U, a_S, A)
  
  [m, n] = size(A);
  broad = m <= n;
  
  [U S V] = svd(A);
  
  diagS1 = adimat_safediag(S);
    
  F = d_eig_F(diagS1.^2);
    
  if broad 
  
    S1 = S(1:m, 1:m);
    emS1 = repmat(diagS1.', [m 1]);

    a_C = U.' * a_U;

    a_CF = a_C .* F;
    
    a_P1 =        emS1 .* a_CF;
    a_P1 = a_P1 + emS1 .* a_CF.';
    
    a_P = [a_P1 a_zeros(zeros(m, n-m))];
    
    a_A = U * a_P * V.';

    pad_a_S = [call(@diag, call(@adimat_safediag, a_S)) a_zeros(zeros([m, n-m]))];
    
  else
    
    S1 = S(1:n, 1:n);
    emS1 = repmat(diagS1, [1 n]);

    a_D = U.' * a_U;

    a_D1 = a_D(1:n, 1:n);
    a_D2 = -a_D(1:n, n+1:end